Documentation ¶
Index ¶
- Variables
- type L2RewardManager
- type L2RewardManagerCaller
- func (_L2RewardManager *L2RewardManagerCaller) Delegation(opts *bind.CallOpts) (common.Address, error)
- func (_L2RewardManager *L2RewardManagerCaller) OperatorRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_L2RewardManager *L2RewardManagerCaller) RewardToken(opts *bind.CallOpts) (common.Address, error)
- func (_L2RewardManager *L2RewardManagerCaller) StakerPercent(opts *bind.CallOpts) (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerCaller) StakerRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerCaller) StrategyManager(opts *bind.CallOpts) (common.Address, error)
- type L2RewardManagerCallerRaw
- type L2RewardManagerCallerSession
- func (_L2RewardManager *L2RewardManagerCallerSession) Delegation() (common.Address, error)
- func (_L2RewardManager *L2RewardManagerCallerSession) OperatorRewards(arg0 common.Address) (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerCallerSession) Owner() (common.Address, error)
- func (_L2RewardManager *L2RewardManagerCallerSession) RewardToken() (common.Address, error)
- func (_L2RewardManager *L2RewardManagerCallerSession) StakerPercent() (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerCallerSession) StakerRewards(arg0 common.Address) (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerCallerSession) StrategyManager() (common.Address, error)
- type L2RewardManagerDepositDappLinkToken
- type L2RewardManagerDepositDappLinkTokenIterator
- type L2RewardManagerFilterer
- func (_L2RewardManager *L2RewardManagerFilterer) FilterDepositDappLinkToken(opts *bind.FilterOpts) (*L2RewardManagerDepositDappLinkTokenIterator, error)
- func (_L2RewardManager *L2RewardManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*L2RewardManagerInitializedIterator, error)
- func (_L2RewardManager *L2RewardManagerFilterer) FilterOperatorClaimReward(opts *bind.FilterOpts) (*L2RewardManagerOperatorClaimRewardIterator, error)
- func (_L2RewardManager *L2RewardManagerFilterer) FilterOperatorStakerReward(opts *bind.FilterOpts) (*L2RewardManagerOperatorStakerRewardIterator, error)
- func (_L2RewardManager *L2RewardManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*L2RewardManagerOwnershipTransferredIterator, error)
- func (_L2RewardManager *L2RewardManagerFilterer) FilterStakerClaimReward(opts *bind.FilterOpts) (*L2RewardManagerStakerClaimRewardIterator, error)
- func (_L2RewardManager *L2RewardManagerFilterer) ParseDepositDappLinkToken(log types.Log) (*L2RewardManagerDepositDappLinkToken, error)
- func (_L2RewardManager *L2RewardManagerFilterer) ParseInitialized(log types.Log) (*L2RewardManagerInitialized, error)
- func (_L2RewardManager *L2RewardManagerFilterer) ParseOperatorClaimReward(log types.Log) (*L2RewardManagerOperatorClaimReward, error)
- func (_L2RewardManager *L2RewardManagerFilterer) ParseOperatorStakerReward(log types.Log) (*L2RewardManagerOperatorStakerReward, error)
- func (_L2RewardManager *L2RewardManagerFilterer) ParseOwnershipTransferred(log types.Log) (*L2RewardManagerOwnershipTransferred, error)
- func (_L2RewardManager *L2RewardManagerFilterer) ParseStakerClaimReward(log types.Log) (*L2RewardManagerStakerClaimReward, error)
- func (_L2RewardManager *L2RewardManagerFilterer) WatchDepositDappLinkToken(opts *bind.WatchOpts, sink chan<- *L2RewardManagerDepositDappLinkToken) (event.Subscription, error)
- func (_L2RewardManager *L2RewardManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *L2RewardManagerInitialized) (event.Subscription, error)
- func (_L2RewardManager *L2RewardManagerFilterer) WatchOperatorClaimReward(opts *bind.WatchOpts, sink chan<- *L2RewardManagerOperatorClaimReward) (event.Subscription, error)
- func (_L2RewardManager *L2RewardManagerFilterer) WatchOperatorStakerReward(opts *bind.WatchOpts, sink chan<- *L2RewardManagerOperatorStakerReward) (event.Subscription, error)
- func (_L2RewardManager *L2RewardManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *L2RewardManagerOwnershipTransferred, ...) (event.Subscription, error)
- func (_L2RewardManager *L2RewardManagerFilterer) WatchStakerClaimReward(opts *bind.WatchOpts, sink chan<- *L2RewardManagerStakerClaimReward) (event.Subscription, error)
- type L2RewardManagerInitialized
- type L2RewardManagerInitializedIterator
- type L2RewardManagerOperatorClaimReward
- type L2RewardManagerOperatorClaimRewardIterator
- type L2RewardManagerOperatorStakerReward
- type L2RewardManagerOperatorStakerRewardIterator
- type L2RewardManagerOwnershipTransferred
- type L2RewardManagerOwnershipTransferredIterator
- type L2RewardManagerRaw
- func (_L2RewardManager *L2RewardManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_L2RewardManager *L2RewardManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type L2RewardManagerSession
- func (_L2RewardManager *L2RewardManagerSession) CalculateFee(strategy common.Address, operator common.Address, baseFee *big.Int) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) Delegation() (common.Address, error)
- func (_L2RewardManager *L2RewardManagerSession) DepositDappLinkToken(amount *big.Int) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) Initialize(initialOwner common.Address, _delegation common.Address, ...) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) OperatorClaimReward() (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) OperatorRewards(arg0 common.Address) (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerSession) Owner() (common.Address, error)
- func (_L2RewardManager *L2RewardManagerSession) RenounceOwnership() (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) RewardToken() (common.Address, error)
- func (_L2RewardManager *L2RewardManagerSession) StakerClaimReward(strategy common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) StakerPercent() (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerSession) StakerRewards(arg0 common.Address) (*big.Int, error)
- func (_L2RewardManager *L2RewardManagerSession) StakerRewardsAmount(strategy common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) StrategyManager() (common.Address, error)
- func (_L2RewardManager *L2RewardManagerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerSession) UpdateOperatorAndStakerShareFee(_stakerPercent *big.Int) (*types.Transaction, error)
- type L2RewardManagerStakerClaimReward
- type L2RewardManagerStakerClaimRewardIterator
- type L2RewardManagerTransactor
- func (_L2RewardManager *L2RewardManagerTransactor) CalculateFee(opts *bind.TransactOpts, strategy common.Address, operator common.Address, ...) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) DepositDappLinkToken(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) Initialize(opts *bind.TransactOpts, initialOwner common.Address, ...) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) OperatorClaimReward(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) StakerClaimReward(opts *bind.TransactOpts, strategy common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) StakerRewardsAmount(opts *bind.TransactOpts, strategy common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactor) UpdateOperatorAndStakerShareFee(opts *bind.TransactOpts, _stakerPercent *big.Int) (*types.Transaction, error)
- type L2RewardManagerTransactorRaw
- type L2RewardManagerTransactorSession
- func (_L2RewardManager *L2RewardManagerTransactorSession) CalculateFee(strategy common.Address, operator common.Address, baseFee *big.Int) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) DepositDappLinkToken(amount *big.Int) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) Initialize(initialOwner common.Address, _delegation common.Address, ...) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) OperatorClaimReward() (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) StakerClaimReward(strategy common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) StakerRewardsAmount(strategy common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_L2RewardManager *L2RewardManagerTransactorSession) UpdateOperatorAndStakerShareFee(_stakerPercent *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var L2RewardManagerABI = L2RewardManagerMetaData.ABI
L2RewardManagerABI is the input ABI used to generate the binding from. Deprecated: Use L2RewardManagerMetaData.ABI instead.
var L2RewardManagerBin = L2RewardManagerMetaData.Bin
L2RewardManagerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use L2RewardManagerMetaData.Bin instead.
var L2RewardManagerMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"calculateFee\",\"inputs\":[{\"name\":\"strategy\",\"type\":\"address\",\"internalType\":\"contractIStrategy\"},{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"baseFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"delegation\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIDelegationManager\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"depositDappLinkToken\",\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"initialOwner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_delegation\",\"type\":\"address\",\"internalType\":\"contractIDelegationManager\"},{\"name\":\"_strategyManager\",\"type\":\"address\",\"internalType\":\"contractIStrategyManager\"},{\"name\":\"_rewardToken\",\"type\":\"address\",\"internalType\":\"contractIERC20\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"operatorClaimReward\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"operatorRewards\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"rewardToken\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIERC20\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stakerClaimReward\",\"inputs\":[{\"name\":\"strategy\",\"type\":\"address\",\"internalType\":\"contractIStrategy\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"stakerPercent\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stakerRewards\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIStrategy\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stakerRewardsAmount\",\"inputs\":[{\"name\":\"strategy\",\"type\":\"address\",\"internalType\":\"contractIStrategy\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"strategyManager\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIStrategyManager\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateOperatorAndStakerShareFee\",\"inputs\":[{\"name\":\"_stakerPercent\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"DepositDappLinkToken\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OperatorClaimReward\",\"inputs\":[{\"name\":\"operator\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OperatorStakerReward\",\"inputs\":[{\"name\":\"strategy\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"contractIStrategy\"},{\"name\":\"operator\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"stakerFee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"operatorFee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"StakerClaimReward\",\"inputs\":[{\"name\":\"staker\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AddressEmptyCode\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"AddressInsufficientBalance\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"FailedInnerCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidInitialization\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotInitializing\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ReentrancyGuardReentrantCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SafeERC20FailedOperation\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
Bin: "0x608080604052346100bd57605c6005557ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009081549060ff8260401c166100ae57506001600160401b036002600160401b031982821601610069575b604051610bbc90816100c38239f35b6001600160401b031990911681179091556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a138808061005a565b63f92ee8a960e01b8152600490fd5b600080fdfe608060408181526004918236101561001657600080fd5b600090813560e01c9081631546e9801461078d575080632cb082721461073257806339b70e381461070a57806341a2b8d6146106d25780635adbc180146106aa578063715018a6146106405780637ca87cb6146104705780638da5cb5b1461043a578063df5cf72314610411578063f0f0b228146103da578063f2fde38b14610384578063f4d7152b1461036a578063f7c618c114610341578063f8401008146102d8578063f8c8765e1461014a5763fb1bca50146100d457600080fd5b3461014757602036600319011261014757507f08fba1e7a1091d4e4242ae25b8f8291ec7423fba91244b59db8030ee503dfbe861013d602093356101268160018060a01b03600254163090339061095f565b835133815260208101919091529081906040820190565b0390a15160018152f35b80fd5b5091346102d45760803660031901126102d4576101656107a9565b6001600160a01b03602435818116908190036102d057604435938285168095036102cc576064359283168093036102cc577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009485549460ff86891c16159567ffffffffffffffff8116801590816102c4575b60011490816102ba575b1590816102b1575b506102a15767ffffffffffffffff1981166001178855610210919087610282575b50610aad565b6bffffffffffffffffffffffff60a01b92836003541617600355828254161790556002541617600255610241578280f35b805468ff00000000000000001916905551600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a138808280f35b68ffffffffffffffffff1916680100000000000000011788553861020a565b885163f92ee8a960e01b81528490fd5b905015386101e9565b303b1591506101e1565b8891506101d7565b8680fd5b8580fd5b8280fd5b50903461033d57602036600319011261033d576020907f7246707380751b547f467fe94a754399171213cf43250351e02327307bc7f40c61013d61032261031d6107a9565b610845565b600254610126908290339030906001600160a01b031661095f565b5080fd5b50903461033d578160031936011261033d5760025490516001600160a01b039091168152602090f35b50823461033d57602036600319011261033d573560055580f35b5091346102d45760203660031901126102d45761039f6107a9565b916103a8610a74565b6001600160a01b038316156103c457836103c184610aad565b80f35b51631e4fbdf760e01b8152908101839052602490fd5b50903461033d57602036600319011261033d5760209181906001600160a01b036104026107a9565b16815280845220549051908152f35b50903461033d578160031936011261033d5760035490516001600160a01b039091168152602090f35b50903461033d578160031936011261033d57600080516020610b678339815191525490516001600160a01b039091168152602090f35b50903461033d57606036600319011261033d5761048b6107a9565b90602435906001600160a01b0380831691908284036102d0578151633a98ef3960e01b81528582169560209586838b818b5afa92831561063657908792918a946105ff575b50600354865163778e55f360e01b81526001600160a01b03928316818e019081529290931660208301529394919384921690829081906040015b03915afa9081156105f55787916105c6575b506105329161052a916107fc565b6044356107fc565b916105426064600554048461081c565b928587528685528383882055600554606403606481116105b35791610592608096949260647f6ceab34dc8550787796af13d9da5dfd30e73c264921e6d874a04ebce40a352c1999795049061081c565b938189526001815284838a205582519586528501528301526060820152a180f35b634e487b7160e01b885260118952602488fd5b90508481813d83116105ee575b6105dd81836107c4565b810103126102cc575161053261051c565b503d6105d3565b83513d89823e3d90fd5b9193509181813d811161062f575b61061781836107c4565b8101031261062b575191869161050a6104d0565b8880fd5b503d61060d565b85513d8b823e3d90fd5b5034610147578060031936011261014757610659610a74565b600080516020610b6783398151915280546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50903461033d57602036600319011261033d576020906106cb61031d6107a9565b9051908152f35b50903461033d57602036600319011261033d5760209181906001600160a01b036106fa6107a9565b1681526001845220549051908152f35b5091346102d457826003193601126102d4575490516001600160a01b03909116815260209150f35b50903461033d578160031936011261033d577ff358f13bbeaf315167e16e69fa1b06ca23f46b7fcc119b65b735a427539b332b61013d826020943381526001865220546101268160018060a01b03600254163390309061095f565b90503461033d578160031936011261033d576020906005548152f35b600435906001600160a01b03821682036107bf57565b600080fd5b90601f8019910116810190811067ffffffffffffffff8211176107e657604052565b634e487b7160e01b600052604160045260246000fd5b8115610806570490565b634e487b7160e01b600052601260045260246000fd5b8181029291811591840414171561082f57565b634e487b7160e01b600052601160045260246000fd5b60048054604051633d3f06c960e11b815233928101929092526001600160a01b038381166024840152602093909184908490604490829086165afa92831561092457600093610930575b501691604051633a98ef3960e01b81528181600481875afa908115610924576000916108f7575b50821580156108ef575b6108e65760006108dd926108e395825252604060002054926107fc565b9061081c565b90565b50505050600090565b5080156108c0565b90508181813d831161091d575b61090e81836107c4565b810103126107bf5751386108b6565b503d610904565b6040513d6000823e3d90fd5b9092508381813d8311610958575b61094881836107c4565b810103126107bf5751913861088f565b503d61093e565b6040516323b872dd60e01b602082019081526001600160a01b039384166024830152938316604482015260648082019590955293845267ffffffffffffffff919060a08501838111868210176107e6576040521692600080938192519082875af13d15610a67573d918211610a5357906109fb91604051916109eb6020601f19601f84011601846107c4565b82523d84602084013e5b84610b03565b908151918215159283610a2b575b505050610a135750565b60249060405190635274afe760e01b82526004820152fd5b81929350906020918101031261033d5760200151908115918215036101475750388080610a09565b634e487b7160e01b83526041600452602483fd5b6109fb91506060906109f5565b600080516020610b67833981519152546001600160a01b03163303610a9557565b60405163118cdaa760e01b8152336004820152602490fd5b600080516020610b6783398151915280546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b90610b2a5750805115610b1857805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580610b5d575b610b3b575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15610b3356fe9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300a2646970667358221220fede1540f8fd11466c753797286acb51abd6cf5ff141f91478941b53a54e4ead64736f6c63430008180033",
}
L2RewardManagerMetaData contains all meta data concerning the L2RewardManager contract.
Functions ¶
This section is empty.
Types ¶
type L2RewardManager ¶
type L2RewardManager struct { L2RewardManagerCaller // Read-only binding to the contract L2RewardManagerTransactor // Write-only binding to the contract L2RewardManagerFilterer // Log filterer for contract events }
L2RewardManager is an auto generated Go binding around an Ethereum contract.
func DeployL2RewardManager ¶
func DeployL2RewardManager(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *L2RewardManager, error)
DeployL2RewardManager deploys a new Ethereum contract, binding an instance of L2RewardManager to it.
func NewL2RewardManager ¶
func NewL2RewardManager(address common.Address, backend bind.ContractBackend) (*L2RewardManager, error)
NewL2RewardManager creates a new instance of L2RewardManager, bound to a specific deployed contract.
type L2RewardManagerCaller ¶
type L2RewardManagerCaller struct {
// contains filtered or unexported fields
}
L2RewardManagerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewL2RewardManagerCaller ¶
func NewL2RewardManagerCaller(address common.Address, caller bind.ContractCaller) (*L2RewardManagerCaller, error)
NewL2RewardManagerCaller creates a new read-only instance of L2RewardManager, bound to a specific deployed contract.
func (*L2RewardManagerCaller) Delegation ¶
func (_L2RewardManager *L2RewardManagerCaller) Delegation(opts *bind.CallOpts) (common.Address, error)
Delegation is a free data retrieval call binding the contract method 0xdf5cf723.
Solidity: function delegation() view returns(address)
func (*L2RewardManagerCaller) OperatorRewards ¶
func (_L2RewardManager *L2RewardManagerCaller) OperatorRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
OperatorRewards is a free data retrieval call binding the contract method 0x41a2b8d6.
Solidity: function operatorRewards(address ) view returns(uint256)
func (*L2RewardManagerCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*L2RewardManagerCaller) RewardToken ¶
func (_L2RewardManager *L2RewardManagerCaller) RewardToken(opts *bind.CallOpts) (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*L2RewardManagerCaller) StakerPercent ¶
StakerPercent is a free data retrieval call binding the contract method 0x1546e980.
Solidity: function stakerPercent() view returns(uint256)
func (*L2RewardManagerCaller) StakerRewards ¶
func (_L2RewardManager *L2RewardManagerCaller) StakerRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
StakerRewards is a free data retrieval call binding the contract method 0xf0f0b228.
Solidity: function stakerRewards(address ) view returns(uint256)
func (*L2RewardManagerCaller) StrategyManager ¶
func (_L2RewardManager *L2RewardManagerCaller) StrategyManager(opts *bind.CallOpts) (common.Address, error)
StrategyManager is a free data retrieval call binding the contract method 0x39b70e38.
Solidity: function strategyManager() view returns(address)
type L2RewardManagerCallerRaw ¶
type L2RewardManagerCallerRaw struct {
Contract *L2RewardManagerCaller // Generic read-only contract binding to access the raw methods on
}
L2RewardManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*L2RewardManagerCallerRaw) Call ¶
func (_L2RewardManager *L2RewardManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type L2RewardManagerCallerSession ¶
type L2RewardManagerCallerSession struct { Contract *L2RewardManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
L2RewardManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*L2RewardManagerCallerSession) Delegation ¶
func (_L2RewardManager *L2RewardManagerCallerSession) Delegation() (common.Address, error)
Delegation is a free data retrieval call binding the contract method 0xdf5cf723.
Solidity: function delegation() view returns(address)
func (*L2RewardManagerCallerSession) OperatorRewards ¶
func (_L2RewardManager *L2RewardManagerCallerSession) OperatorRewards(arg0 common.Address) (*big.Int, error)
OperatorRewards is a free data retrieval call binding the contract method 0x41a2b8d6.
Solidity: function operatorRewards(address ) view returns(uint256)
func (*L2RewardManagerCallerSession) Owner ¶
func (_L2RewardManager *L2RewardManagerCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*L2RewardManagerCallerSession) RewardToken ¶
func (_L2RewardManager *L2RewardManagerCallerSession) RewardToken() (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*L2RewardManagerCallerSession) StakerPercent ¶
func (_L2RewardManager *L2RewardManagerCallerSession) StakerPercent() (*big.Int, error)
StakerPercent is a free data retrieval call binding the contract method 0x1546e980.
Solidity: function stakerPercent() view returns(uint256)
func (*L2RewardManagerCallerSession) StakerRewards ¶
func (_L2RewardManager *L2RewardManagerCallerSession) StakerRewards(arg0 common.Address) (*big.Int, error)
StakerRewards is a free data retrieval call binding the contract method 0xf0f0b228.
Solidity: function stakerRewards(address ) view returns(uint256)
func (*L2RewardManagerCallerSession) StrategyManager ¶
func (_L2RewardManager *L2RewardManagerCallerSession) StrategyManager() (common.Address, error)
StrategyManager is a free data retrieval call binding the contract method 0x39b70e38.
Solidity: function strategyManager() view returns(address)
type L2RewardManagerDepositDappLinkToken ¶
type L2RewardManagerDepositDappLinkToken struct { Sender common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
L2RewardManagerDepositDappLinkToken represents a DepositDappLinkToken event raised by the L2RewardManager contract.
type L2RewardManagerDepositDappLinkTokenIterator ¶
type L2RewardManagerDepositDappLinkTokenIterator struct { Event *L2RewardManagerDepositDappLinkToken // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2RewardManagerDepositDappLinkTokenIterator is returned from FilterDepositDappLinkToken and is used to iterate over the raw logs and unpacked data for DepositDappLinkToken events raised by the L2RewardManager contract.
func (*L2RewardManagerDepositDappLinkTokenIterator) Close ¶
func (it *L2RewardManagerDepositDappLinkTokenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2RewardManagerDepositDappLinkTokenIterator) Error ¶
func (it *L2RewardManagerDepositDappLinkTokenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2RewardManagerDepositDappLinkTokenIterator) Next ¶
func (it *L2RewardManagerDepositDappLinkTokenIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type L2RewardManagerFilterer ¶
type L2RewardManagerFilterer struct {
// contains filtered or unexported fields
}
L2RewardManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewL2RewardManagerFilterer ¶
func NewL2RewardManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*L2RewardManagerFilterer, error)
NewL2RewardManagerFilterer creates a new log filterer instance of L2RewardManager, bound to a specific deployed contract.
func (*L2RewardManagerFilterer) FilterDepositDappLinkToken ¶
func (_L2RewardManager *L2RewardManagerFilterer) FilterDepositDappLinkToken(opts *bind.FilterOpts) (*L2RewardManagerDepositDappLinkTokenIterator, error)
FilterDepositDappLinkToken is a free log retrieval operation binding the contract event 0x08fba1e7a1091d4e4242ae25b8f8291ec7423fba91244b59db8030ee503dfbe8.
Solidity: event DepositDappLinkToken(address sender, uint256 amount)
func (*L2RewardManagerFilterer) FilterInitialized ¶
func (_L2RewardManager *L2RewardManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*L2RewardManagerInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*L2RewardManagerFilterer) FilterOperatorClaimReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) FilterOperatorClaimReward(opts *bind.FilterOpts) (*L2RewardManagerOperatorClaimRewardIterator, error)
FilterOperatorClaimReward is a free log retrieval operation binding the contract event 0xf358f13bbeaf315167e16e69fa1b06ca23f46b7fcc119b65b735a427539b332b.
Solidity: event OperatorClaimReward(address operator, uint256 amount)
func (*L2RewardManagerFilterer) FilterOperatorStakerReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) FilterOperatorStakerReward(opts *bind.FilterOpts) (*L2RewardManagerOperatorStakerRewardIterator, error)
FilterOperatorStakerReward is a free log retrieval operation binding the contract event 0x6ceab34dc8550787796af13d9da5dfd30e73c264921e6d874a04ebce40a352c1.
Solidity: event OperatorStakerReward(address strategy, address operator, uint256 stakerFee, uint256 operatorFee)
func (*L2RewardManagerFilterer) FilterOwnershipTransferred ¶
func (_L2RewardManager *L2RewardManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*L2RewardManagerOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*L2RewardManagerFilterer) FilterStakerClaimReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) FilterStakerClaimReward(opts *bind.FilterOpts) (*L2RewardManagerStakerClaimRewardIterator, error)
FilterStakerClaimReward is a free log retrieval operation binding the contract event 0x7246707380751b547f467fe94a754399171213cf43250351e02327307bc7f40c.
Solidity: event StakerClaimReward(address staker, uint256 amount)
func (*L2RewardManagerFilterer) ParseDepositDappLinkToken ¶
func (_L2RewardManager *L2RewardManagerFilterer) ParseDepositDappLinkToken(log types.Log) (*L2RewardManagerDepositDappLinkToken, error)
ParseDepositDappLinkToken is a log parse operation binding the contract event 0x08fba1e7a1091d4e4242ae25b8f8291ec7423fba91244b59db8030ee503dfbe8.
Solidity: event DepositDappLinkToken(address sender, uint256 amount)
func (*L2RewardManagerFilterer) ParseInitialized ¶
func (_L2RewardManager *L2RewardManagerFilterer) ParseInitialized(log types.Log) (*L2RewardManagerInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*L2RewardManagerFilterer) ParseOperatorClaimReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) ParseOperatorClaimReward(log types.Log) (*L2RewardManagerOperatorClaimReward, error)
ParseOperatorClaimReward is a log parse operation binding the contract event 0xf358f13bbeaf315167e16e69fa1b06ca23f46b7fcc119b65b735a427539b332b.
Solidity: event OperatorClaimReward(address operator, uint256 amount)
func (*L2RewardManagerFilterer) ParseOperatorStakerReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) ParseOperatorStakerReward(log types.Log) (*L2RewardManagerOperatorStakerReward, error)
ParseOperatorStakerReward is a log parse operation binding the contract event 0x6ceab34dc8550787796af13d9da5dfd30e73c264921e6d874a04ebce40a352c1.
Solidity: event OperatorStakerReward(address strategy, address operator, uint256 stakerFee, uint256 operatorFee)
func (*L2RewardManagerFilterer) ParseOwnershipTransferred ¶
func (_L2RewardManager *L2RewardManagerFilterer) ParseOwnershipTransferred(log types.Log) (*L2RewardManagerOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*L2RewardManagerFilterer) ParseStakerClaimReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) ParseStakerClaimReward(log types.Log) (*L2RewardManagerStakerClaimReward, error)
ParseStakerClaimReward is a log parse operation binding the contract event 0x7246707380751b547f467fe94a754399171213cf43250351e02327307bc7f40c.
Solidity: event StakerClaimReward(address staker, uint256 amount)
func (*L2RewardManagerFilterer) WatchDepositDappLinkToken ¶
func (_L2RewardManager *L2RewardManagerFilterer) WatchDepositDappLinkToken(opts *bind.WatchOpts, sink chan<- *L2RewardManagerDepositDappLinkToken) (event.Subscription, error)
WatchDepositDappLinkToken is a free log subscription operation binding the contract event 0x08fba1e7a1091d4e4242ae25b8f8291ec7423fba91244b59db8030ee503dfbe8.
Solidity: event DepositDappLinkToken(address sender, uint256 amount)
func (*L2RewardManagerFilterer) WatchInitialized ¶
func (_L2RewardManager *L2RewardManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *L2RewardManagerInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*L2RewardManagerFilterer) WatchOperatorClaimReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) WatchOperatorClaimReward(opts *bind.WatchOpts, sink chan<- *L2RewardManagerOperatorClaimReward) (event.Subscription, error)
WatchOperatorClaimReward is a free log subscription operation binding the contract event 0xf358f13bbeaf315167e16e69fa1b06ca23f46b7fcc119b65b735a427539b332b.
Solidity: event OperatorClaimReward(address operator, uint256 amount)
func (*L2RewardManagerFilterer) WatchOperatorStakerReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) WatchOperatorStakerReward(opts *bind.WatchOpts, sink chan<- *L2RewardManagerOperatorStakerReward) (event.Subscription, error)
WatchOperatorStakerReward is a free log subscription operation binding the contract event 0x6ceab34dc8550787796af13d9da5dfd30e73c264921e6d874a04ebce40a352c1.
Solidity: event OperatorStakerReward(address strategy, address operator, uint256 stakerFee, uint256 operatorFee)
func (*L2RewardManagerFilterer) WatchOwnershipTransferred ¶
func (_L2RewardManager *L2RewardManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *L2RewardManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*L2RewardManagerFilterer) WatchStakerClaimReward ¶
func (_L2RewardManager *L2RewardManagerFilterer) WatchStakerClaimReward(opts *bind.WatchOpts, sink chan<- *L2RewardManagerStakerClaimReward) (event.Subscription, error)
WatchStakerClaimReward is a free log subscription operation binding the contract event 0x7246707380751b547f467fe94a754399171213cf43250351e02327307bc7f40c.
Solidity: event StakerClaimReward(address staker, uint256 amount)
type L2RewardManagerInitialized ¶
type L2RewardManagerInitialized struct { Version uint64 Raw types.Log // Blockchain specific contextual infos }
L2RewardManagerInitialized represents a Initialized event raised by the L2RewardManager contract.
type L2RewardManagerInitializedIterator ¶
type L2RewardManagerInitializedIterator struct { Event *L2RewardManagerInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2RewardManagerInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the L2RewardManager contract.
func (*L2RewardManagerInitializedIterator) Close ¶
func (it *L2RewardManagerInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2RewardManagerInitializedIterator) Error ¶
func (it *L2RewardManagerInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2RewardManagerInitializedIterator) Next ¶
func (it *L2RewardManagerInitializedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type L2RewardManagerOperatorClaimReward ¶
type L2RewardManagerOperatorClaimReward struct { Operator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
L2RewardManagerOperatorClaimReward represents a OperatorClaimReward event raised by the L2RewardManager contract.
type L2RewardManagerOperatorClaimRewardIterator ¶
type L2RewardManagerOperatorClaimRewardIterator struct { Event *L2RewardManagerOperatorClaimReward // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2RewardManagerOperatorClaimRewardIterator is returned from FilterOperatorClaimReward and is used to iterate over the raw logs and unpacked data for OperatorClaimReward events raised by the L2RewardManager contract.
func (*L2RewardManagerOperatorClaimRewardIterator) Close ¶
func (it *L2RewardManagerOperatorClaimRewardIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2RewardManagerOperatorClaimRewardIterator) Error ¶
func (it *L2RewardManagerOperatorClaimRewardIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2RewardManagerOperatorClaimRewardIterator) Next ¶
func (it *L2RewardManagerOperatorClaimRewardIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type L2RewardManagerOperatorStakerReward ¶
type L2RewardManagerOperatorStakerReward struct { Strategy common.Address Operator common.Address StakerFee *big.Int OperatorFee *big.Int Raw types.Log // Blockchain specific contextual infos }
L2RewardManagerOperatorStakerReward represents a OperatorStakerReward event raised by the L2RewardManager contract.
type L2RewardManagerOperatorStakerRewardIterator ¶
type L2RewardManagerOperatorStakerRewardIterator struct { Event *L2RewardManagerOperatorStakerReward // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2RewardManagerOperatorStakerRewardIterator is returned from FilterOperatorStakerReward and is used to iterate over the raw logs and unpacked data for OperatorStakerReward events raised by the L2RewardManager contract.
func (*L2RewardManagerOperatorStakerRewardIterator) Close ¶
func (it *L2RewardManagerOperatorStakerRewardIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2RewardManagerOperatorStakerRewardIterator) Error ¶
func (it *L2RewardManagerOperatorStakerRewardIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2RewardManagerOperatorStakerRewardIterator) Next ¶
func (it *L2RewardManagerOperatorStakerRewardIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type L2RewardManagerOwnershipTransferred ¶
type L2RewardManagerOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
L2RewardManagerOwnershipTransferred represents a OwnershipTransferred event raised by the L2RewardManager contract.
type L2RewardManagerOwnershipTransferredIterator ¶
type L2RewardManagerOwnershipTransferredIterator struct { Event *L2RewardManagerOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2RewardManagerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the L2RewardManager contract.
func (*L2RewardManagerOwnershipTransferredIterator) Close ¶
func (it *L2RewardManagerOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2RewardManagerOwnershipTransferredIterator) Error ¶
func (it *L2RewardManagerOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2RewardManagerOwnershipTransferredIterator) Next ¶
func (it *L2RewardManagerOwnershipTransferredIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type L2RewardManagerRaw ¶
type L2RewardManagerRaw struct {
Contract *L2RewardManager // Generic contract binding to access the raw methods on
}
L2RewardManagerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*L2RewardManagerRaw) Call ¶
func (_L2RewardManager *L2RewardManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*L2RewardManagerRaw) Transact ¶
func (_L2RewardManager *L2RewardManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L2RewardManagerRaw) Transfer ¶
func (_L2RewardManager *L2RewardManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type L2RewardManagerSession ¶
type L2RewardManagerSession struct { Contract *L2RewardManager // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
L2RewardManagerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*L2RewardManagerSession) CalculateFee ¶
func (_L2RewardManager *L2RewardManagerSession) CalculateFee(strategy common.Address, operator common.Address, baseFee *big.Int) (*types.Transaction, error)
CalculateFee is a paid mutator transaction binding the contract method 0x7ca87cb6.
Solidity: function calculateFee(address strategy, address operator, uint256 baseFee) returns()
func (*L2RewardManagerSession) Delegation ¶
func (_L2RewardManager *L2RewardManagerSession) Delegation() (common.Address, error)
Delegation is a free data retrieval call binding the contract method 0xdf5cf723.
Solidity: function delegation() view returns(address)
func (*L2RewardManagerSession) DepositDappLinkToken ¶
func (_L2RewardManager *L2RewardManagerSession) DepositDappLinkToken(amount *big.Int) (*types.Transaction, error)
DepositDappLinkToken is a paid mutator transaction binding the contract method 0xfb1bca50.
Solidity: function depositDappLinkToken(uint256 amount) returns(bool)
func (*L2RewardManagerSession) Initialize ¶
func (_L2RewardManager *L2RewardManagerSession) Initialize(initialOwner common.Address, _delegation common.Address, _strategyManager common.Address, _rewardToken common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.
Solidity: function initialize(address initialOwner, address _delegation, address _strategyManager, address _rewardToken) returns()
func (*L2RewardManagerSession) OperatorClaimReward ¶
func (_L2RewardManager *L2RewardManagerSession) OperatorClaimReward() (*types.Transaction, error)
OperatorClaimReward is a paid mutator transaction binding the contract method 0x2cb08272.
Solidity: function operatorClaimReward() returns(bool)
func (*L2RewardManagerSession) OperatorRewards ¶
func (_L2RewardManager *L2RewardManagerSession) OperatorRewards(arg0 common.Address) (*big.Int, error)
OperatorRewards is a free data retrieval call binding the contract method 0x41a2b8d6.
Solidity: function operatorRewards(address ) view returns(uint256)
func (*L2RewardManagerSession) Owner ¶
func (_L2RewardManager *L2RewardManagerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*L2RewardManagerSession) RenounceOwnership ¶
func (_L2RewardManager *L2RewardManagerSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*L2RewardManagerSession) RewardToken ¶
func (_L2RewardManager *L2RewardManagerSession) RewardToken() (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*L2RewardManagerSession) StakerClaimReward ¶
func (_L2RewardManager *L2RewardManagerSession) StakerClaimReward(strategy common.Address) (*types.Transaction, error)
StakerClaimReward is a paid mutator transaction binding the contract method 0xf8401008.
Solidity: function stakerClaimReward(address strategy) returns(bool)
func (*L2RewardManagerSession) StakerPercent ¶
func (_L2RewardManager *L2RewardManagerSession) StakerPercent() (*big.Int, error)
StakerPercent is a free data retrieval call binding the contract method 0x1546e980.
Solidity: function stakerPercent() view returns(uint256)
func (*L2RewardManagerSession) StakerRewards ¶
func (_L2RewardManager *L2RewardManagerSession) StakerRewards(arg0 common.Address) (*big.Int, error)
StakerRewards is a free data retrieval call binding the contract method 0xf0f0b228.
Solidity: function stakerRewards(address ) view returns(uint256)
func (*L2RewardManagerSession) StakerRewardsAmount ¶
func (_L2RewardManager *L2RewardManagerSession) StakerRewardsAmount(strategy common.Address) (*types.Transaction, error)
StakerRewardsAmount is a paid mutator transaction binding the contract method 0x5adbc180.
Solidity: function stakerRewardsAmount(address strategy) returns(uint256)
func (*L2RewardManagerSession) StrategyManager ¶
func (_L2RewardManager *L2RewardManagerSession) StrategyManager() (common.Address, error)
StrategyManager is a free data retrieval call binding the contract method 0x39b70e38.
Solidity: function strategyManager() view returns(address)
func (*L2RewardManagerSession) TransferOwnership ¶
func (_L2RewardManager *L2RewardManagerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*L2RewardManagerSession) UpdateOperatorAndStakerShareFee ¶
func (_L2RewardManager *L2RewardManagerSession) UpdateOperatorAndStakerShareFee(_stakerPercent *big.Int) (*types.Transaction, error)
UpdateOperatorAndStakerShareFee is a paid mutator transaction binding the contract method 0xf4d7152b.
Solidity: function updateOperatorAndStakerShareFee(uint256 _stakerPercent) returns()
type L2RewardManagerStakerClaimReward ¶
type L2RewardManagerStakerClaimReward struct { Staker common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
L2RewardManagerStakerClaimReward represents a StakerClaimReward event raised by the L2RewardManager contract.
type L2RewardManagerStakerClaimRewardIterator ¶
type L2RewardManagerStakerClaimRewardIterator struct { Event *L2RewardManagerStakerClaimReward // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2RewardManagerStakerClaimRewardIterator is returned from FilterStakerClaimReward and is used to iterate over the raw logs and unpacked data for StakerClaimReward events raised by the L2RewardManager contract.
func (*L2RewardManagerStakerClaimRewardIterator) Close ¶
func (it *L2RewardManagerStakerClaimRewardIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2RewardManagerStakerClaimRewardIterator) Error ¶
func (it *L2RewardManagerStakerClaimRewardIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2RewardManagerStakerClaimRewardIterator) Next ¶
func (it *L2RewardManagerStakerClaimRewardIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type L2RewardManagerTransactor ¶
type L2RewardManagerTransactor struct {
// contains filtered or unexported fields
}
L2RewardManagerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewL2RewardManagerTransactor ¶
func NewL2RewardManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*L2RewardManagerTransactor, error)
NewL2RewardManagerTransactor creates a new write-only instance of L2RewardManager, bound to a specific deployed contract.
func (*L2RewardManagerTransactor) CalculateFee ¶
func (_L2RewardManager *L2RewardManagerTransactor) CalculateFee(opts *bind.TransactOpts, strategy common.Address, operator common.Address, baseFee *big.Int) (*types.Transaction, error)
CalculateFee is a paid mutator transaction binding the contract method 0x7ca87cb6.
Solidity: function calculateFee(address strategy, address operator, uint256 baseFee) returns()
func (*L2RewardManagerTransactor) DepositDappLinkToken ¶
func (_L2RewardManager *L2RewardManagerTransactor) DepositDappLinkToken(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
DepositDappLinkToken is a paid mutator transaction binding the contract method 0xfb1bca50.
Solidity: function depositDappLinkToken(uint256 amount) returns(bool)
func (*L2RewardManagerTransactor) Initialize ¶
func (_L2RewardManager *L2RewardManagerTransactor) Initialize(opts *bind.TransactOpts, initialOwner common.Address, _delegation common.Address, _strategyManager common.Address, _rewardToken common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.
Solidity: function initialize(address initialOwner, address _delegation, address _strategyManager, address _rewardToken) returns()
func (*L2RewardManagerTransactor) OperatorClaimReward ¶
func (_L2RewardManager *L2RewardManagerTransactor) OperatorClaimReward(opts *bind.TransactOpts) (*types.Transaction, error)
OperatorClaimReward is a paid mutator transaction binding the contract method 0x2cb08272.
Solidity: function operatorClaimReward() returns(bool)
func (*L2RewardManagerTransactor) RenounceOwnership ¶
func (_L2RewardManager *L2RewardManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*L2RewardManagerTransactor) StakerClaimReward ¶
func (_L2RewardManager *L2RewardManagerTransactor) StakerClaimReward(opts *bind.TransactOpts, strategy common.Address) (*types.Transaction, error)
StakerClaimReward is a paid mutator transaction binding the contract method 0xf8401008.
Solidity: function stakerClaimReward(address strategy) returns(bool)
func (*L2RewardManagerTransactor) StakerRewardsAmount ¶
func (_L2RewardManager *L2RewardManagerTransactor) StakerRewardsAmount(opts *bind.TransactOpts, strategy common.Address) (*types.Transaction, error)
StakerRewardsAmount is a paid mutator transaction binding the contract method 0x5adbc180.
Solidity: function stakerRewardsAmount(address strategy) returns(uint256)
func (*L2RewardManagerTransactor) TransferOwnership ¶
func (_L2RewardManager *L2RewardManagerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*L2RewardManagerTransactor) UpdateOperatorAndStakerShareFee ¶
func (_L2RewardManager *L2RewardManagerTransactor) UpdateOperatorAndStakerShareFee(opts *bind.TransactOpts, _stakerPercent *big.Int) (*types.Transaction, error)
UpdateOperatorAndStakerShareFee is a paid mutator transaction binding the contract method 0xf4d7152b.
Solidity: function updateOperatorAndStakerShareFee(uint256 _stakerPercent) returns()
type L2RewardManagerTransactorRaw ¶
type L2RewardManagerTransactorRaw struct {
Contract *L2RewardManagerTransactor // Generic write-only contract binding to access the raw methods on
}
L2RewardManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*L2RewardManagerTransactorRaw) Transact ¶
func (_L2RewardManager *L2RewardManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L2RewardManagerTransactorRaw) Transfer ¶
func (_L2RewardManager *L2RewardManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type L2RewardManagerTransactorSession ¶
type L2RewardManagerTransactorSession struct { Contract *L2RewardManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
L2RewardManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*L2RewardManagerTransactorSession) CalculateFee ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) CalculateFee(strategy common.Address, operator common.Address, baseFee *big.Int) (*types.Transaction, error)
CalculateFee is a paid mutator transaction binding the contract method 0x7ca87cb6.
Solidity: function calculateFee(address strategy, address operator, uint256 baseFee) returns()
func (*L2RewardManagerTransactorSession) DepositDappLinkToken ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) DepositDappLinkToken(amount *big.Int) (*types.Transaction, error)
DepositDappLinkToken is a paid mutator transaction binding the contract method 0xfb1bca50.
Solidity: function depositDappLinkToken(uint256 amount) returns(bool)
func (*L2RewardManagerTransactorSession) Initialize ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) Initialize(initialOwner common.Address, _delegation common.Address, _strategyManager common.Address, _rewardToken common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.
Solidity: function initialize(address initialOwner, address _delegation, address _strategyManager, address _rewardToken) returns()
func (*L2RewardManagerTransactorSession) OperatorClaimReward ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) OperatorClaimReward() (*types.Transaction, error)
OperatorClaimReward is a paid mutator transaction binding the contract method 0x2cb08272.
Solidity: function operatorClaimReward() returns(bool)
func (*L2RewardManagerTransactorSession) RenounceOwnership ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*L2RewardManagerTransactorSession) StakerClaimReward ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) StakerClaimReward(strategy common.Address) (*types.Transaction, error)
StakerClaimReward is a paid mutator transaction binding the contract method 0xf8401008.
Solidity: function stakerClaimReward(address strategy) returns(bool)
func (*L2RewardManagerTransactorSession) StakerRewardsAmount ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) StakerRewardsAmount(strategy common.Address) (*types.Transaction, error)
StakerRewardsAmount is a paid mutator transaction binding the contract method 0x5adbc180.
Solidity: function stakerRewardsAmount(address strategy) returns(uint256)
func (*L2RewardManagerTransactorSession) TransferOwnership ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*L2RewardManagerTransactorSession) UpdateOperatorAndStakerShareFee ¶
func (_L2RewardManager *L2RewardManagerTransactorSession) UpdateOperatorAndStakerShareFee(_stakerPercent *big.Int) (*types.Transaction, error)
UpdateOperatorAndStakerShareFee is a paid mutator transaction binding the contract method 0xf4d7152b.
Solidity: function updateOperatorAndStakerShareFee(uint256 _stakerPercent) returns()