Documentation ¶
Index ¶
- Variables
- type CommonAddressAndWeight
- type RewardManager
- type RewardManagerCaller
- func (_RewardManager *RewardManagerCaller) GetAvailableRewardPoolIds(opts *bind.CallOpts, recipient common.Address) ([][32]byte, error)
- func (_RewardManager *RewardManagerCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_RewardManager *RewardManagerCaller) SFeeManagerAddress(opts *bind.CallOpts) (common.Address, error)
- func (_RewardManager *RewardManagerCaller) SRegisteredPoolIds(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (_RewardManager *RewardManagerCaller) SRewardRecipientWeights(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (_RewardManager *RewardManagerCaller) STotalRewardRecipientFees(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (_RewardManager *RewardManagerCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_RewardManager *RewardManagerCaller) TypeAndVersion(opts *bind.CallOpts) (string, error)
- type RewardManagerCallerRaw
- type RewardManagerCallerSession
- func (_RewardManager *RewardManagerCallerSession) GetAvailableRewardPoolIds(recipient common.Address) ([][32]byte, error)
- func (_RewardManager *RewardManagerCallerSession) Owner() (common.Address, error)
- func (_RewardManager *RewardManagerCallerSession) SFeeManagerAddress() (common.Address, error)
- func (_RewardManager *RewardManagerCallerSession) SRegisteredPoolIds(arg0 *big.Int) ([32]byte, error)
- func (_RewardManager *RewardManagerCallerSession) SRewardRecipientWeights(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (_RewardManager *RewardManagerCallerSession) STotalRewardRecipientFees(arg0 [32]byte) (*big.Int, error)
- func (_RewardManager *RewardManagerCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_RewardManager *RewardManagerCallerSession) TypeAndVersion() (string, error)
- type RewardManagerFeeManagerUpdated
- type RewardManagerFeeManagerUpdatedIterator
- type RewardManagerFeePaid
- type RewardManagerFeePaidIterator
- type RewardManagerFilterer
- func (_RewardManager *RewardManagerFilterer) FilterFeeManagerUpdated(opts *bind.FilterOpts) (*RewardManagerFeeManagerUpdatedIterator, error)
- func (_RewardManager *RewardManagerFilterer) FilterFeePaid(opts *bind.FilterOpts) (*RewardManagerFeePaidIterator, error)
- func (_RewardManager *RewardManagerFilterer) FilterOwnershipTransferRequested(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*RewardManagerOwnershipTransferRequestedIterator, error)
- func (_RewardManager *RewardManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*RewardManagerOwnershipTransferredIterator, error)
- func (_RewardManager *RewardManagerFilterer) FilterRewardRecipientsUpdated(opts *bind.FilterOpts, poolId [][32]byte) (*RewardManagerRewardRecipientsUpdatedIterator, error)
- func (_RewardManager *RewardManagerFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, poolId [][32]byte, recipient []common.Address) (*RewardManagerRewardsClaimedIterator, error)
- func (_RewardManager *RewardManagerFilterer) ParseFeeManagerUpdated(log types.Log) (*RewardManagerFeeManagerUpdated, error)
- func (_RewardManager *RewardManagerFilterer) ParseFeePaid(log types.Log) (*RewardManagerFeePaid, error)
- func (_RewardManager *RewardManagerFilterer) ParseOwnershipTransferRequested(log types.Log) (*RewardManagerOwnershipTransferRequested, error)
- func (_RewardManager *RewardManagerFilterer) ParseOwnershipTransferred(log types.Log) (*RewardManagerOwnershipTransferred, error)
- func (_RewardManager *RewardManagerFilterer) ParseRewardRecipientsUpdated(log types.Log) (*RewardManagerRewardRecipientsUpdated, error)
- func (_RewardManager *RewardManagerFilterer) ParseRewardsClaimed(log types.Log) (*RewardManagerRewardsClaimed, error)
- func (_RewardManager *RewardManagerFilterer) WatchFeeManagerUpdated(opts *bind.WatchOpts, sink chan<- *RewardManagerFeeManagerUpdated) (event.Subscription, error)
- func (_RewardManager *RewardManagerFilterer) WatchFeePaid(opts *bind.WatchOpts, sink chan<- *RewardManagerFeePaid) (event.Subscription, error)
- func (_RewardManager *RewardManagerFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *RewardManagerOwnershipTransferRequested, ...) (event.Subscription, error)
- func (_RewardManager *RewardManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RewardManagerOwnershipTransferred, ...) (event.Subscription, error)
- func (_RewardManager *RewardManagerFilterer) WatchRewardRecipientsUpdated(opts *bind.WatchOpts, sink chan<- *RewardManagerRewardRecipientsUpdated, ...) (event.Subscription, error)
- func (_RewardManager *RewardManagerFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *RewardManagerRewardsClaimed, ...) (event.Subscription, error)
- type RewardManagerInterface
- type RewardManagerOwnershipTransferRequested
- type RewardManagerOwnershipTransferRequestedIterator
- type RewardManagerOwnershipTransferred
- type RewardManagerOwnershipTransferredIterator
- type RewardManagerRaw
- func (_RewardManager *RewardManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_RewardManager *RewardManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_RewardManager *RewardManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RewardManagerRewardRecipientsUpdated
- type RewardManagerRewardRecipientsUpdatedIterator
- type RewardManagerRewardsClaimed
- type RewardManagerRewardsClaimedIterator
- type RewardManagerSession
- func (_RewardManager *RewardManagerSession) AcceptOwnership() (*types.Transaction, error)
- func (_RewardManager *RewardManagerSession) ClaimRewards(poolIds [][32]byte) (*types.Transaction, error)
- func (_RewardManager *RewardManagerSession) GetAvailableRewardPoolIds(recipient common.Address) ([][32]byte, error)
- func (_RewardManager *RewardManagerSession) OnFeePaid(poolId [32]byte, payee common.Address, amount *big.Int) (*types.Transaction, error)
- func (_RewardManager *RewardManagerSession) Owner() (common.Address, error)
- func (_RewardManager *RewardManagerSession) PayRecipients(poolId [32]byte, recipients []common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerSession) SFeeManagerAddress() (common.Address, error)
- func (_RewardManager *RewardManagerSession) SRegisteredPoolIds(arg0 *big.Int) ([32]byte, error)
- func (_RewardManager *RewardManagerSession) SRewardRecipientWeights(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (_RewardManager *RewardManagerSession) STotalRewardRecipientFees(arg0 [32]byte) (*big.Int, error)
- func (_RewardManager *RewardManagerSession) SetFeeManager(newFeeManagerAddress common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerSession) SetRewardRecipients(poolId [32]byte, rewardRecipientAndWeights []CommonAddressAndWeight) (*types.Transaction, error)
- func (_RewardManager *RewardManagerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_RewardManager *RewardManagerSession) TransferOwnership(to common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerSession) TypeAndVersion() (string, error)
- func (_RewardManager *RewardManagerSession) UpdateRewardRecipients(poolId [32]byte, newRewardRecipients []CommonAddressAndWeight) (*types.Transaction, error)
- type RewardManagerTransactor
- func (_RewardManager *RewardManagerTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactor) ClaimRewards(opts *bind.TransactOpts, poolIds [][32]byte) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactor) OnFeePaid(opts *bind.TransactOpts, poolId [32]byte, payee common.Address, ...) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactor) PayRecipients(opts *bind.TransactOpts, poolId [32]byte, recipients []common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactor) SetFeeManager(opts *bind.TransactOpts, newFeeManagerAddress common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactor) SetRewardRecipients(opts *bind.TransactOpts, poolId [32]byte, ...) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactor) TransferOwnership(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactor) UpdateRewardRecipients(opts *bind.TransactOpts, poolId [32]byte, ...) (*types.Transaction, error)
- type RewardManagerTransactorRaw
- type RewardManagerTransactorSession
- func (_RewardManager *RewardManagerTransactorSession) AcceptOwnership() (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactorSession) ClaimRewards(poolIds [][32]byte) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactorSession) OnFeePaid(poolId [32]byte, payee common.Address, amount *big.Int) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactorSession) PayRecipients(poolId [32]byte, recipients []common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactorSession) SetFeeManager(newFeeManagerAddress common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactorSession) SetRewardRecipients(poolId [32]byte, rewardRecipientAndWeights []CommonAddressAndWeight) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactorSession) TransferOwnership(to common.Address) (*types.Transaction, error)
- func (_RewardManager *RewardManagerTransactorSession) UpdateRewardRecipients(poolId [32]byte, newRewardRecipients []CommonAddressAndWeight) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RewardManagerABI = RewardManagerMetaData.ABI
View Source
var RewardManagerBin = RewardManagerMetaData.Bin
View Source
var RewardManagerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"linkAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPoolId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidWeights\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManagerAddress\",\"type\":\"address\"}],\"name\":\"FeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"payee\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"name\":\"FeePaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"OwnershipTransferRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCommon.AddressAndWeight[]\",\"name\":\"newRewardRecipients\",\"type\":\"tuple[]\"}],\"name\":\"RewardRecipientsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"name\":\"RewardsClaimed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"poolIds\",\"type\":\"bytes32[]\"}],\"name\":\"claimRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"getAvailableRewardPoolIds\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"payee\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"onFeePaid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"recipients\",\"type\":\"address[]\"}],\"name\":\"payRecipients\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_feeManagerAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"s_registeredPoolIds\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"s_rewardRecipientWeights\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"s_totalRewardRecipientFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newFeeManagerAddress\",\"type\":\"address\"}],\"name\":\"setFeeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"internalType\":\"structCommon.AddressAndWeight[]\",\"name\":\"rewardRecipientAndWeights\",\"type\":\"tuple[]\"}],\"name\":\"setRewardRecipients\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"typeAndVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"internalType\":\"structCommon.AddressAndWeight[]\",\"name\":\"newRewardRecipients\",\"type\":\"tuple[]\"}],\"name\":\"updateRewardRecipients\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x60a06040523480156200001157600080fd5b50604051620019ce380380620019ce8339810160408190526200003491620001a6565b33806000816200008b5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206f776e657220746f207a65726f000000000000000060448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0384811691909117909155811615620000be57620000be81620000fb565b5050506001600160a01b038116620000e95760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b0316608052620001d8565b336001600160a01b03821603620001555760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c66000000000000000000604482015260640162000082565b600180546001600160a01b0319166001600160a01b0383811691821790925560008054604051929316917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b600060208284031215620001b957600080fd5b81516001600160a01b0381168114620001d157600080fd5b9392505050565b6080516117d3620001fb600039600081816109f10152610dda01526117d36000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80636992922f11610097578063cd5f729211610066578063cd5f7292146102e0578063efb03fe9146102f3578063f2fde38b14610306578063f34517aa1461031957600080fd5b80636992922f1461026f57806379ba50971461028f5780638ac85a5c146102975780638da5cb5b146102c257600080fd5b806339ee81e1116100d357806339ee81e114610208578063472d35b9146102365780634d32208414610249578063633b5f6e1461025c57600080fd5b806301ffc9a7146101055780630f3c34d11461016f578063181f5a7714610184578063276e7660146101c3575b600080fd5b61015a61011336600461127a565b7fffffffff00000000000000000000000000000000000000000000000000000000167fefb03fe9000000000000000000000000000000000000000000000000000000001490565b60405190151581526020015b60405180910390f35b61018261017d36600461133a565b61032c565b005b604080518082018252601381527f5265776172644d616e6167657220302e302e31000000000000000000000000006020820152905161016691906113e0565b6007546101e39073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610166565b61022861021636600461144c565b60026020526000908152604090205481565b604051908152602001610166565b61018261024436600461148e565b61033a565b6101826102573660046114b0565b610408565b61018261026a36600461152f565b61053f565b61028261027d36600461148e565b6106f5565b604051610166919061159b565b6101826107f1565b6102286102a53660046115df565b600460209081526000928352604080842090915290825290205481565b60005473ffffffffffffffffffffffffffffffffffffffff166101e3565b6102286102ee36600461144c565b6108f3565b61018261030136600461160b565b610914565b61018261031436600461148e565b610aba565b61018261032736600461152f565b610ace565b6103363382610c48565b5050565b610342610e52565b73ffffffffffffffffffffffffffffffffffffffff811661038f576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fe45f5e140399b0a7e12971ab020724b828fbed8ac408c420884dc7d1bbe506b49060200160405180910390a150565b8261042860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801561047a57506000818152600460209081526040808320338452909152902054155b156104b1576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160018082528183019092526000916020808301908036833701905050905084816000815181106104e7576104e7611640565b60200260200101818152505060005b838110156105375761052e85858381811061051357610513611640565b9050602002016020810190610528919061148e565b83610c48565b506001016104f6565b505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331480159061057f575060075473ffffffffffffffffffffffffffffffffffffffff163314155b156105b6576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008190036105f1576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526005602052604090205460ff161561063a576040517f0afa7ee800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006805460018181019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01849055600084815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790556106b6838383670de0b6b3a7640000610ed5565b827fe5ca4131deaeb848b5d6a9c0f85795efc54e8a0252eb38d3e77a1efc2b38419683836040516106e892919061166f565b60405180910390a2505050565b60065460609060008167ffffffffffffffff811115610716576107166112bc565b60405190808252806020026020018201604052801561073f578160200160208202803683370190505b5090506000805b838110156107e75760006006828154811061076357610763611640565b600091825260208083209091015480835260048252604080842073ffffffffffffffffffffffffffffffffffffffff8c168552909252912054909150156107de57600081815260026020526040902054156107de57808484815181106107cb576107cb611640565b6020026020010181815250508260010192505b50600101610746565b5090949350505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742062652070726f706f736564206f776e65720000000000000000000060448201526064015b60405180910390fd5b60008054337fffffffffffffffffffffffff00000000000000000000000000000000000000008083168217845560018054909116905560405173ffffffffffffffffffffffffffffffffffffffff90921692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a350565b6006818154811061090357600080fd5b600091825260209091200154905081565b60005473ffffffffffffffffffffffffffffffffffffffff163314801590610954575060075473ffffffffffffffffffffffffffffffffffffffff163314155b1561098b576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526002602052604090819020805483019055517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152306024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af1158015610a3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5e91906116d3565b506040805184815273ffffffffffffffffffffffffffffffffffffffff841660208201529081018290527f0ae7c9bfbc7dfc3426a34852f9a1cdd2f750abec8190abbff0bbe13d8118c30c9060600160405180910390a1505050565b610ac2610e52565b610acb816110ce565b50565b610ad6610e52565b604080516001808252818301909252600091602080830190803683370190505090508381600081518110610b0c57610b0c611640565b6020026020010181815250506000805b83811015610bfa576000858583818110610b3857610b38611640565b610b4e926020604090920201908101915061148e565b600088815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152812054919250819003610bba576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610beb878785818110610bcf57610bcf611640565b610be5926020604090920201908101915061148e565b86610c48565b50929092019150600101610b1c565b50610c0785858584610ed5565b847fe5ca4131deaeb848b5d6a9c0f85795efc54e8a0252eb38d3e77a1efc2b3841968585604051610c3992919061166f565b60405180910390a25050505050565b60008060005b8351811015610d87576000848281518110610c6b57610c6b611640565b6020908102919091018101516000818152600283526040808220546003855281832073ffffffffffffffffffffffffffffffffffffffff8c16808552908652828420548585526004875283852091855295529082205492945092830391670de0b6b3a76400009083020490819003610ce65750505050610d77565b600084815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8d168085529252909120849055885196820196899087908110610d3157610d31611640565b60200260200101517ffec539b3c42d74cd492c3ecf7966bf014b327beef98e935cdc3ec5e54a6901c783604051610d6a91815260200190565b60405180910390a3505050505b610d8081611724565b9050610c4e565b508015610e49576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610e23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4791906116d3565b505b90505b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ed3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f6e6c792063616c6c61626c65206279206f776e657200000000000000000000604482015260640161086e565b565b610f308383808060200260200160405190810160405280939291908181526020016000905b82821015610f2657610f176040830286013681900381019061175c565b81526020019060010190610efa565b50505050506111c3565b15610f67576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b8381101561108d576000858583818110610f8757610f87611640565b9050604002016020013590506000868684818110610fa757610fa7611640565b610fbd926020604090920201908101915061148e565b905073ffffffffffffffffffffffffffffffffffffffff811661100c576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003611046576040517f84677ce800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600088815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff909416835292905220819055919091019061108681611724565b9050610f6b565b508181146110c7576040517f84677ce800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff82160361114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c66000000000000000000604482015260640161086e565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83811691821790925560008054604051929316917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b6000805b82518110156112715760006111dd8260016117b3565b90505b8351811015611268578381815181106111fb576111fb611640565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1684838151811061122f5761122f611640565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1603611260575060019392505050565b6001016111e0565b506001016111c7565b50600092915050565b60006020828403121561128c57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610e4957600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611332576113326112bc565b604052919050565b6000602080838503121561134d57600080fd5b823567ffffffffffffffff8082111561136557600080fd5b818501915085601f83011261137957600080fd5b81358181111561138b5761138b6112bc565b8060051b915061139c8483016112eb565b81815291830184019184810190888411156113b657600080fd5b938501935b838510156113d4578435825293850193908501906113bb565b98975050505050505050565b600060208083528351808285015260005b8181101561140d578581018301518582016040015282016113f1565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60006020828403121561145e57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461148957600080fd5b919050565b6000602082840312156114a057600080fd5b6114a982611465565b9392505050565b6000806000604084860312156114c557600080fd5b83359250602084013567ffffffffffffffff808211156114e457600080fd5b818601915086601f8301126114f857600080fd5b81358181111561150757600080fd5b8760208260051b850101111561151c57600080fd5b6020830194508093505050509250925092565b60008060006040848603121561154457600080fd5b83359250602084013567ffffffffffffffff8082111561156357600080fd5b818601915086601f83011261157757600080fd5b81358181111561158657600080fd5b8760208260061b850101111561151c57600080fd5b6020808252825182820181905260009190848201906040850190845b818110156115d3578351835292840192918401916001016115b7565b50909695505050505050565b600080604083850312156115f257600080fd5b8235915061160260208401611465565b90509250929050565b60008060006060848603121561162057600080fd5b8335925061163060208501611465565b9150604084013590509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020808252818101839052600090604080840186845b878110156116c65773ffffffffffffffffffffffffffffffffffffffff6116ab83611465565b16835281850135858401529183019190830190600101611685565b5090979650505050505050565b6000602082840312156116e557600080fd5b81518015158114610e4957600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611755576117556116f5565b5060010190565b60006040828403121561176e57600080fd5b6040516040810181811067ffffffffffffffff82111715611791576117916112bc565b60405261179d83611465565b8152602083013560208201528091505092915050565b80820180821115610e4c57610e4c6116f556fea164736f6c6343000810000a",
}
Functions ¶
This section is empty.
Types ¶
type CommonAddressAndWeight ¶
type RewardManager ¶
type RewardManager struct { RewardManagerCaller RewardManagerTransactor RewardManagerFilterer // contains filtered or unexported fields }
func DeployRewardManager ¶
func DeployRewardManager(auth *bind.TransactOpts, backend bind.ContractBackend, linkAddress common.Address) (common.Address, *types.Transaction, *RewardManager, error)
func NewRewardManager ¶
func NewRewardManager(address common.Address, backend bind.ContractBackend) (*RewardManager, error)
func (*RewardManager) Address ¶
func (_RewardManager *RewardManager) Address() common.Address
type RewardManagerCaller ¶
type RewardManagerCaller struct {
// contains filtered or unexported fields
}
func NewRewardManagerCaller ¶
func NewRewardManagerCaller(address common.Address, caller bind.ContractCaller) (*RewardManagerCaller, error)
func (*RewardManagerCaller) GetAvailableRewardPoolIds ¶
func (*RewardManagerCaller) SFeeManagerAddress ¶
func (*RewardManagerCaller) SRegisteredPoolIds ¶
func (*RewardManagerCaller) SRewardRecipientWeights ¶
func (*RewardManagerCaller) STotalRewardRecipientFees ¶
func (*RewardManagerCaller) SupportsInterface ¶
func (*RewardManagerCaller) TypeAndVersion ¶
func (_RewardManager *RewardManagerCaller) TypeAndVersion(opts *bind.CallOpts) (string, error)
type RewardManagerCallerRaw ¶
type RewardManagerCallerRaw struct {
Contract *RewardManagerCaller
}
type RewardManagerCallerSession ¶
type RewardManagerCallerSession struct { Contract *RewardManagerCaller CallOpts bind.CallOpts }
func (*RewardManagerCallerSession) GetAvailableRewardPoolIds ¶
func (_RewardManager *RewardManagerCallerSession) GetAvailableRewardPoolIds(recipient common.Address) ([][32]byte, error)
func (*RewardManagerCallerSession) Owner ¶
func (_RewardManager *RewardManagerCallerSession) Owner() (common.Address, error)
func (*RewardManagerCallerSession) SFeeManagerAddress ¶
func (_RewardManager *RewardManagerCallerSession) SFeeManagerAddress() (common.Address, error)
func (*RewardManagerCallerSession) SRegisteredPoolIds ¶
func (_RewardManager *RewardManagerCallerSession) SRegisteredPoolIds(arg0 *big.Int) ([32]byte, error)
func (*RewardManagerCallerSession) SRewardRecipientWeights ¶
func (*RewardManagerCallerSession) STotalRewardRecipientFees ¶
func (_RewardManager *RewardManagerCallerSession) STotalRewardRecipientFees(arg0 [32]byte) (*big.Int, error)
func (*RewardManagerCallerSession) SupportsInterface ¶
func (_RewardManager *RewardManagerCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
func (*RewardManagerCallerSession) TypeAndVersion ¶
func (_RewardManager *RewardManagerCallerSession) TypeAndVersion() (string, error)
type RewardManagerFeeManagerUpdated ¶
func (RewardManagerFeeManagerUpdated) Topic ¶
func (RewardManagerFeeManagerUpdated) Topic() common.Hash
type RewardManagerFeeManagerUpdatedIterator ¶
type RewardManagerFeeManagerUpdatedIterator struct { Event *RewardManagerFeeManagerUpdated // contains filtered or unexported fields }
func (*RewardManagerFeeManagerUpdatedIterator) Close ¶
func (it *RewardManagerFeeManagerUpdatedIterator) Close() error
func (*RewardManagerFeeManagerUpdatedIterator) Error ¶
func (it *RewardManagerFeeManagerUpdatedIterator) Error() error
func (*RewardManagerFeeManagerUpdatedIterator) Next ¶
func (it *RewardManagerFeeManagerUpdatedIterator) Next() bool
type RewardManagerFeePaid ¶
type RewardManagerFeePaid struct { PoolId [32]byte Payee common.Address Quantity *big.Int Raw types.Log }
func (RewardManagerFeePaid) Topic ¶
func (RewardManagerFeePaid) Topic() common.Hash
type RewardManagerFeePaidIterator ¶
type RewardManagerFeePaidIterator struct { Event *RewardManagerFeePaid // contains filtered or unexported fields }
func (*RewardManagerFeePaidIterator) Close ¶
func (it *RewardManagerFeePaidIterator) Close() error
func (*RewardManagerFeePaidIterator) Error ¶
func (it *RewardManagerFeePaidIterator) Error() error
func (*RewardManagerFeePaidIterator) Next ¶
func (it *RewardManagerFeePaidIterator) Next() bool
type RewardManagerFilterer ¶
type RewardManagerFilterer struct {
// contains filtered or unexported fields
}
func NewRewardManagerFilterer ¶
func NewRewardManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardManagerFilterer, error)
func (*RewardManagerFilterer) FilterFeeManagerUpdated ¶
func (_RewardManager *RewardManagerFilterer) FilterFeeManagerUpdated(opts *bind.FilterOpts) (*RewardManagerFeeManagerUpdatedIterator, error)
func (*RewardManagerFilterer) FilterFeePaid ¶
func (_RewardManager *RewardManagerFilterer) FilterFeePaid(opts *bind.FilterOpts) (*RewardManagerFeePaidIterator, error)
func (*RewardManagerFilterer) FilterOwnershipTransferRequested ¶
func (_RewardManager *RewardManagerFilterer) FilterOwnershipTransferRequested(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*RewardManagerOwnershipTransferRequestedIterator, error)
func (*RewardManagerFilterer) FilterOwnershipTransferred ¶
func (_RewardManager *RewardManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*RewardManagerOwnershipTransferredIterator, error)
func (*RewardManagerFilterer) FilterRewardRecipientsUpdated ¶
func (_RewardManager *RewardManagerFilterer) FilterRewardRecipientsUpdated(opts *bind.FilterOpts, poolId [][32]byte) (*RewardManagerRewardRecipientsUpdatedIterator, error)
func (*RewardManagerFilterer) FilterRewardsClaimed ¶
func (_RewardManager *RewardManagerFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, poolId [][32]byte, recipient []common.Address) (*RewardManagerRewardsClaimedIterator, error)
func (*RewardManagerFilterer) ParseFeeManagerUpdated ¶
func (_RewardManager *RewardManagerFilterer) ParseFeeManagerUpdated(log types.Log) (*RewardManagerFeeManagerUpdated, error)
func (*RewardManagerFilterer) ParseFeePaid ¶
func (_RewardManager *RewardManagerFilterer) ParseFeePaid(log types.Log) (*RewardManagerFeePaid, error)
func (*RewardManagerFilterer) ParseOwnershipTransferRequested ¶
func (_RewardManager *RewardManagerFilterer) ParseOwnershipTransferRequested(log types.Log) (*RewardManagerOwnershipTransferRequested, error)
func (*RewardManagerFilterer) ParseOwnershipTransferred ¶
func (_RewardManager *RewardManagerFilterer) ParseOwnershipTransferred(log types.Log) (*RewardManagerOwnershipTransferred, error)
func (*RewardManagerFilterer) ParseRewardRecipientsUpdated ¶
func (_RewardManager *RewardManagerFilterer) ParseRewardRecipientsUpdated(log types.Log) (*RewardManagerRewardRecipientsUpdated, error)
func (*RewardManagerFilterer) ParseRewardsClaimed ¶
func (_RewardManager *RewardManagerFilterer) ParseRewardsClaimed(log types.Log) (*RewardManagerRewardsClaimed, error)
func (*RewardManagerFilterer) WatchFeeManagerUpdated ¶
func (_RewardManager *RewardManagerFilterer) WatchFeeManagerUpdated(opts *bind.WatchOpts, sink chan<- *RewardManagerFeeManagerUpdated) (event.Subscription, error)
func (*RewardManagerFilterer) WatchFeePaid ¶
func (_RewardManager *RewardManagerFilterer) WatchFeePaid(opts *bind.WatchOpts, sink chan<- *RewardManagerFeePaid) (event.Subscription, error)
func (*RewardManagerFilterer) WatchOwnershipTransferRequested ¶
func (_RewardManager *RewardManagerFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *RewardManagerOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error)
func (*RewardManagerFilterer) WatchOwnershipTransferred ¶
func (_RewardManager *RewardManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RewardManagerOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error)
func (*RewardManagerFilterer) WatchRewardRecipientsUpdated ¶
func (_RewardManager *RewardManagerFilterer) WatchRewardRecipientsUpdated(opts *bind.WatchOpts, sink chan<- *RewardManagerRewardRecipientsUpdated, poolId [][32]byte) (event.Subscription, error)
func (*RewardManagerFilterer) WatchRewardsClaimed ¶
func (_RewardManager *RewardManagerFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *RewardManagerRewardsClaimed, poolId [][32]byte, recipient []common.Address) (event.Subscription, error)
type RewardManagerInterface ¶
type RewardManagerInterface interface { GetAvailableRewardPoolIds(opts *bind.CallOpts, recipient common.Address) ([][32]byte, error) Owner(opts *bind.CallOpts) (common.Address, error) SFeeManagerAddress(opts *bind.CallOpts) (common.Address, error) SRegisteredPoolIds(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error) SRewardRecipientWeights(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (*big.Int, error) STotalRewardRecipientFees(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) TypeAndVersion(opts *bind.CallOpts) (string, error) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) ClaimRewards(opts *bind.TransactOpts, poolIds [][32]byte) (*types.Transaction, error) OnFeePaid(opts *bind.TransactOpts, poolId [32]byte, payee common.Address, amount *big.Int) (*types.Transaction, error) PayRecipients(opts *bind.TransactOpts, poolId [32]byte, recipients []common.Address) (*types.Transaction, error) SetFeeManager(opts *bind.TransactOpts, newFeeManagerAddress common.Address) (*types.Transaction, error) SetRewardRecipients(opts *bind.TransactOpts, poolId [32]byte, rewardRecipientAndWeights []CommonAddressAndWeight) (*types.Transaction, error) TransferOwnership(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) UpdateRewardRecipients(opts *bind.TransactOpts, poolId [32]byte, newRewardRecipients []CommonAddressAndWeight) (*types.Transaction, error) FilterFeeManagerUpdated(opts *bind.FilterOpts) (*RewardManagerFeeManagerUpdatedIterator, error) WatchFeeManagerUpdated(opts *bind.WatchOpts, sink chan<- *RewardManagerFeeManagerUpdated) (event.Subscription, error) ParseFeeManagerUpdated(log types.Log) (*RewardManagerFeeManagerUpdated, error) FilterFeePaid(opts *bind.FilterOpts) (*RewardManagerFeePaidIterator, error) WatchFeePaid(opts *bind.WatchOpts, sink chan<- *RewardManagerFeePaid) (event.Subscription, error) ParseFeePaid(log types.Log) (*RewardManagerFeePaid, error) FilterOwnershipTransferRequested(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*RewardManagerOwnershipTransferRequestedIterator, error) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *RewardManagerOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error) ParseOwnershipTransferRequested(log types.Log) (*RewardManagerOwnershipTransferRequested, error) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*RewardManagerOwnershipTransferredIterator, error) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RewardManagerOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error) ParseOwnershipTransferred(log types.Log) (*RewardManagerOwnershipTransferred, error) FilterRewardRecipientsUpdated(opts *bind.FilterOpts, poolId [][32]byte) (*RewardManagerRewardRecipientsUpdatedIterator, error) WatchRewardRecipientsUpdated(opts *bind.WatchOpts, sink chan<- *RewardManagerRewardRecipientsUpdated, poolId [][32]byte) (event.Subscription, error) ParseRewardRecipientsUpdated(log types.Log) (*RewardManagerRewardRecipientsUpdated, error) FilterRewardsClaimed(opts *bind.FilterOpts, poolId [][32]byte, recipient []common.Address) (*RewardManagerRewardsClaimedIterator, error) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *RewardManagerRewardsClaimed, poolId [][32]byte, recipient []common.Address) (event.Subscription, error) ParseRewardsClaimed(log types.Log) (*RewardManagerRewardsClaimed, error) ParseLog(log types.Log) (generated.AbigenLog, error) Address() common.Address }
type RewardManagerOwnershipTransferRequested ¶
type RewardManagerOwnershipTransferRequested struct { From common.Address To common.Address Raw types.Log }
func (RewardManagerOwnershipTransferRequested) Topic ¶
func (RewardManagerOwnershipTransferRequested) Topic() common.Hash
type RewardManagerOwnershipTransferRequestedIterator ¶
type RewardManagerOwnershipTransferRequestedIterator struct { Event *RewardManagerOwnershipTransferRequested // contains filtered or unexported fields }
func (*RewardManagerOwnershipTransferRequestedIterator) Close ¶
func (it *RewardManagerOwnershipTransferRequestedIterator) Close() error
func (*RewardManagerOwnershipTransferRequestedIterator) Error ¶
func (it *RewardManagerOwnershipTransferRequestedIterator) Error() error
func (*RewardManagerOwnershipTransferRequestedIterator) Next ¶
func (it *RewardManagerOwnershipTransferRequestedIterator) Next() bool
type RewardManagerOwnershipTransferred ¶
type RewardManagerOwnershipTransferred struct { From common.Address To common.Address Raw types.Log }
func (RewardManagerOwnershipTransferred) Topic ¶
func (RewardManagerOwnershipTransferred) Topic() common.Hash
type RewardManagerOwnershipTransferredIterator ¶
type RewardManagerOwnershipTransferredIterator struct { Event *RewardManagerOwnershipTransferred // contains filtered or unexported fields }
func (*RewardManagerOwnershipTransferredIterator) Close ¶
func (it *RewardManagerOwnershipTransferredIterator) Close() error
func (*RewardManagerOwnershipTransferredIterator) Error ¶
func (it *RewardManagerOwnershipTransferredIterator) Error() error
func (*RewardManagerOwnershipTransferredIterator) Next ¶
func (it *RewardManagerOwnershipTransferredIterator) Next() bool
type RewardManagerRaw ¶
type RewardManagerRaw struct {
Contract *RewardManager
}
func (*RewardManagerRaw) Call ¶
func (_RewardManager *RewardManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
func (*RewardManagerRaw) Transact ¶
func (_RewardManager *RewardManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
func (*RewardManagerRaw) Transfer ¶
func (_RewardManager *RewardManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
type RewardManagerRewardRecipientsUpdated ¶
type RewardManagerRewardRecipientsUpdated struct { PoolId [32]byte NewRewardRecipients []CommonAddressAndWeight Raw types.Log }
func (RewardManagerRewardRecipientsUpdated) Topic ¶
func (RewardManagerRewardRecipientsUpdated) Topic() common.Hash
type RewardManagerRewardRecipientsUpdatedIterator ¶
type RewardManagerRewardRecipientsUpdatedIterator struct { Event *RewardManagerRewardRecipientsUpdated // contains filtered or unexported fields }
func (*RewardManagerRewardRecipientsUpdatedIterator) Close ¶
func (it *RewardManagerRewardRecipientsUpdatedIterator) Close() error
func (*RewardManagerRewardRecipientsUpdatedIterator) Error ¶
func (it *RewardManagerRewardRecipientsUpdatedIterator) Error() error
func (*RewardManagerRewardRecipientsUpdatedIterator) Next ¶
func (it *RewardManagerRewardRecipientsUpdatedIterator) Next() bool
type RewardManagerRewardsClaimed ¶
type RewardManagerRewardsClaimed struct { PoolId [32]byte Recipient common.Address Quantity *big.Int Raw types.Log }
func (RewardManagerRewardsClaimed) Topic ¶
func (RewardManagerRewardsClaimed) Topic() common.Hash
type RewardManagerRewardsClaimedIterator ¶
type RewardManagerRewardsClaimedIterator struct { Event *RewardManagerRewardsClaimed // contains filtered or unexported fields }
func (*RewardManagerRewardsClaimedIterator) Close ¶
func (it *RewardManagerRewardsClaimedIterator) Close() error
func (*RewardManagerRewardsClaimedIterator) Error ¶
func (it *RewardManagerRewardsClaimedIterator) Error() error
func (*RewardManagerRewardsClaimedIterator) Next ¶
func (it *RewardManagerRewardsClaimedIterator) Next() bool
type RewardManagerSession ¶
type RewardManagerSession struct { Contract *RewardManager CallOpts bind.CallOpts TransactOpts bind.TransactOpts }
func (*RewardManagerSession) AcceptOwnership ¶
func (_RewardManager *RewardManagerSession) AcceptOwnership() (*types.Transaction, error)
func (*RewardManagerSession) ClaimRewards ¶
func (_RewardManager *RewardManagerSession) ClaimRewards(poolIds [][32]byte) (*types.Transaction, error)
func (*RewardManagerSession) GetAvailableRewardPoolIds ¶
func (_RewardManager *RewardManagerSession) GetAvailableRewardPoolIds(recipient common.Address) ([][32]byte, error)
func (*RewardManagerSession) OnFeePaid ¶
func (_RewardManager *RewardManagerSession) OnFeePaid(poolId [32]byte, payee common.Address, amount *big.Int) (*types.Transaction, error)
func (*RewardManagerSession) Owner ¶
func (_RewardManager *RewardManagerSession) Owner() (common.Address, error)
func (*RewardManagerSession) PayRecipients ¶
func (_RewardManager *RewardManagerSession) PayRecipients(poolId [32]byte, recipients []common.Address) (*types.Transaction, error)
func (*RewardManagerSession) SFeeManagerAddress ¶
func (_RewardManager *RewardManagerSession) SFeeManagerAddress() (common.Address, error)
func (*RewardManagerSession) SRegisteredPoolIds ¶
func (_RewardManager *RewardManagerSession) SRegisteredPoolIds(arg0 *big.Int) ([32]byte, error)
func (*RewardManagerSession) SRewardRecipientWeights ¶
func (*RewardManagerSession) STotalRewardRecipientFees ¶
func (_RewardManager *RewardManagerSession) STotalRewardRecipientFees(arg0 [32]byte) (*big.Int, error)
func (*RewardManagerSession) SetFeeManager ¶
func (_RewardManager *RewardManagerSession) SetFeeManager(newFeeManagerAddress common.Address) (*types.Transaction, error)
func (*RewardManagerSession) SetRewardRecipients ¶
func (_RewardManager *RewardManagerSession) SetRewardRecipients(poolId [32]byte, rewardRecipientAndWeights []CommonAddressAndWeight) (*types.Transaction, error)
func (*RewardManagerSession) SupportsInterface ¶
func (_RewardManager *RewardManagerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
func (*RewardManagerSession) TransferOwnership ¶
func (_RewardManager *RewardManagerSession) TransferOwnership(to common.Address) (*types.Transaction, error)
func (*RewardManagerSession) TypeAndVersion ¶
func (_RewardManager *RewardManagerSession) TypeAndVersion() (string, error)
func (*RewardManagerSession) UpdateRewardRecipients ¶
func (_RewardManager *RewardManagerSession) UpdateRewardRecipients(poolId [32]byte, newRewardRecipients []CommonAddressAndWeight) (*types.Transaction, error)
type RewardManagerTransactor ¶
type RewardManagerTransactor struct {
// contains filtered or unexported fields
}
func NewRewardManagerTransactor ¶
func NewRewardManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardManagerTransactor, error)
func (*RewardManagerTransactor) AcceptOwnership ¶
func (_RewardManager *RewardManagerTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
func (*RewardManagerTransactor) ClaimRewards ¶
func (_RewardManager *RewardManagerTransactor) ClaimRewards(opts *bind.TransactOpts, poolIds [][32]byte) (*types.Transaction, error)
func (*RewardManagerTransactor) OnFeePaid ¶
func (_RewardManager *RewardManagerTransactor) OnFeePaid(opts *bind.TransactOpts, poolId [32]byte, payee common.Address, amount *big.Int) (*types.Transaction, error)
func (*RewardManagerTransactor) PayRecipients ¶
func (_RewardManager *RewardManagerTransactor) PayRecipients(opts *bind.TransactOpts, poolId [32]byte, recipients []common.Address) (*types.Transaction, error)
func (*RewardManagerTransactor) SetFeeManager ¶
func (_RewardManager *RewardManagerTransactor) SetFeeManager(opts *bind.TransactOpts, newFeeManagerAddress common.Address) (*types.Transaction, error)
func (*RewardManagerTransactor) SetRewardRecipients ¶
func (_RewardManager *RewardManagerTransactor) SetRewardRecipients(opts *bind.TransactOpts, poolId [32]byte, rewardRecipientAndWeights []CommonAddressAndWeight) (*types.Transaction, error)
func (*RewardManagerTransactor) TransferOwnership ¶
func (_RewardManager *RewardManagerTransactor) TransferOwnership(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
func (*RewardManagerTransactor) UpdateRewardRecipients ¶
func (_RewardManager *RewardManagerTransactor) UpdateRewardRecipients(opts *bind.TransactOpts, poolId [32]byte, newRewardRecipients []CommonAddressAndWeight) (*types.Transaction, error)
type RewardManagerTransactorRaw ¶
type RewardManagerTransactorRaw struct {
Contract *RewardManagerTransactor
}
func (*RewardManagerTransactorRaw) Transact ¶
func (_RewardManager *RewardManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
func (*RewardManagerTransactorRaw) Transfer ¶
func (_RewardManager *RewardManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
type RewardManagerTransactorSession ¶
type RewardManagerTransactorSession struct { Contract *RewardManagerTransactor TransactOpts bind.TransactOpts }
func (*RewardManagerTransactorSession) AcceptOwnership ¶
func (_RewardManager *RewardManagerTransactorSession) AcceptOwnership() (*types.Transaction, error)
func (*RewardManagerTransactorSession) ClaimRewards ¶
func (_RewardManager *RewardManagerTransactorSession) ClaimRewards(poolIds [][32]byte) (*types.Transaction, error)
func (*RewardManagerTransactorSession) OnFeePaid ¶
func (_RewardManager *RewardManagerTransactorSession) OnFeePaid(poolId [32]byte, payee common.Address, amount *big.Int) (*types.Transaction, error)
func (*RewardManagerTransactorSession) PayRecipients ¶
func (_RewardManager *RewardManagerTransactorSession) PayRecipients(poolId [32]byte, recipients []common.Address) (*types.Transaction, error)
func (*RewardManagerTransactorSession) SetFeeManager ¶
func (_RewardManager *RewardManagerTransactorSession) SetFeeManager(newFeeManagerAddress common.Address) (*types.Transaction, error)
func (*RewardManagerTransactorSession) SetRewardRecipients ¶
func (_RewardManager *RewardManagerTransactorSession) SetRewardRecipients(poolId [32]byte, rewardRecipientAndWeights []CommonAddressAndWeight) (*types.Transaction, error)
func (*RewardManagerTransactorSession) TransferOwnership ¶
func (_RewardManager *RewardManagerTransactorSession) TransferOwnership(to common.Address) (*types.Transaction, error)
func (*RewardManagerTransactorSession) UpdateRewardRecipients ¶
func (_RewardManager *RewardManagerTransactorSession) UpdateRewardRecipients(poolId [32]byte, newRewardRecipients []CommonAddressAndWeight) (*types.Transaction, error)
Click to show internal directories.
Click to hide internal directories.