Versions in this module Expand all Collapse all v0 v0.0.1 Sep 23, 2024 Changes in this version + var TreasureManagerABI = TreasureManagerMetaData.ABI + var TreasureManagerBin = TreasureManagerMetaData.Bin + var TreasureManagerMetaData = &bind.MetaData + type TreasureManager struct + func DeployTreasureManager(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TreasureManager, error) + func NewTreasureManager(address common.Address, backend bind.ContractBackend) (*TreasureManager, error) + type TreasureManagerCaller struct + func NewTreasureManagerCaller(address common.Address, caller bind.ContractCaller) (*TreasureManagerCaller, error) + func (_TreasureManager *TreasureManagerCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error) + func (_TreasureManager *TreasureManagerCaller) EthAddress(opts *bind.CallOpts) (common.Address, error) + func (_TreasureManager *TreasureManagerCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error) + func (_TreasureManager *TreasureManagerCaller) GetTokenWhiteList(opts *bind.CallOpts) ([]common.Address, error) + func (_TreasureManager *TreasureManagerCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error) + func (_TreasureManager *TreasureManagerCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_TreasureManager *TreasureManagerCaller) QueryReward(opts *bind.CallOpts, _tokenAddress common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) + func (_TreasureManager *TreasureManagerCaller) TokenBalances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerCaller) TokenWhiteList(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) + func (_TreasureManager *TreasureManagerCaller) TreasureManager(opts *bind.CallOpts) (common.Address, error) + func (_TreasureManager *TreasureManagerCaller) UserRewardAmounts(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerCaller) WithdrawManager(opts *bind.CallOpts) (common.Address, error) + type TreasureManagerCallerRaw struct + Contract *TreasureManagerCaller + func (_TreasureManager *TreasureManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type TreasureManagerCallerSession struct + CallOpts bind.CallOpts + Contract *TreasureManagerCaller + func (_TreasureManager *TreasureManagerCallerSession) DEFAULTADMINROLE() ([32]byte, error) + func (_TreasureManager *TreasureManagerCallerSession) EthAddress() (common.Address, error) + func (_TreasureManager *TreasureManagerCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error) + func (_TreasureManager *TreasureManagerCallerSession) GetTokenWhiteList() ([]common.Address, error) + func (_TreasureManager *TreasureManagerCallerSession) HasRole(role [32]byte, account common.Address) (bool, error) + func (_TreasureManager *TreasureManagerCallerSession) Owner() (common.Address, error) + func (_TreasureManager *TreasureManagerCallerSession) QueryReward(_tokenAddress common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) + func (_TreasureManager *TreasureManagerCallerSession) TokenBalances(arg0 common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerCallerSession) TokenWhiteList(arg0 *big.Int) (common.Address, error) + func (_TreasureManager *TreasureManagerCallerSession) TreasureManager() (common.Address, error) + func (_TreasureManager *TreasureManagerCallerSession) UserRewardAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerCallerSession) WithdrawManager() (common.Address, error) + type TreasureManagerDepositToken struct + Amount *big.Int + Raw types.Log + Sender common.Address + TokenAddress common.Address + type TreasureManagerDepositTokenIterator struct + Event *TreasureManagerDepositToken + func (it *TreasureManagerDepositTokenIterator) Close() error + func (it *TreasureManagerDepositTokenIterator) Error() error + func (it *TreasureManagerDepositTokenIterator) Next() bool + type TreasureManagerFilterer struct + func NewTreasureManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*TreasureManagerFilterer, error) + func (_TreasureManager *TreasureManagerFilterer) FilterDepositToken(opts *bind.FilterOpts, tokenAddress []common.Address, sender []common.Address) (*TreasureManagerDepositTokenIterator, error) + func (_TreasureManager *TreasureManagerFilterer) FilterGrantRewardTokenAmount(opts *bind.FilterOpts, tokenAddress []common.Address) (*TreasureManagerGrantRewardTokenAmountIterator, error) + func (_TreasureManager *TreasureManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*TreasureManagerInitializedIterator, error) + func (_TreasureManager *TreasureManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*TreasureManagerOwnershipTransferredIterator, error) + func (_TreasureManager *TreasureManagerFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*TreasureManagerRoleAdminChangedIterator, error) + func (_TreasureManager *TreasureManagerFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*TreasureManagerRoleGrantedIterator, error) + func (_TreasureManager *TreasureManagerFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*TreasureManagerRoleRevokedIterator, error) + func (_TreasureManager *TreasureManagerFilterer) FilterWithdrawManagerUpdate(opts *bind.FilterOpts, withdrawManager []common.Address) (*TreasureManagerWithdrawManagerUpdateIterator, error) + func (_TreasureManager *TreasureManagerFilterer) ParseDepositToken(log types.Log) (*TreasureManagerDepositToken, error) + func (_TreasureManager *TreasureManagerFilterer) ParseGrantRewardTokenAmount(log types.Log) (*TreasureManagerGrantRewardTokenAmount, error) + func (_TreasureManager *TreasureManagerFilterer) ParseInitialized(log types.Log) (*TreasureManagerInitialized, error) + func (_TreasureManager *TreasureManagerFilterer) ParseOwnershipTransferred(log types.Log) (*TreasureManagerOwnershipTransferred, error) + func (_TreasureManager *TreasureManagerFilterer) ParseRoleAdminChanged(log types.Log) (*TreasureManagerRoleAdminChanged, error) + func (_TreasureManager *TreasureManagerFilterer) ParseRoleGranted(log types.Log) (*TreasureManagerRoleGranted, error) + func (_TreasureManager *TreasureManagerFilterer) ParseRoleRevoked(log types.Log) (*TreasureManagerRoleRevoked, error) + func (_TreasureManager *TreasureManagerFilterer) ParseWithdrawManagerUpdate(log types.Log) (*TreasureManagerWithdrawManagerUpdate, error) + func (_TreasureManager *TreasureManagerFilterer) WatchDepositToken(opts *bind.WatchOpts, sink chan<- *TreasureManagerDepositToken, ...) (event.Subscription, error) + func (_TreasureManager *TreasureManagerFilterer) WatchGrantRewardTokenAmount(opts *bind.WatchOpts, sink chan<- *TreasureManagerGrantRewardTokenAmount, ...) (event.Subscription, error) + func (_TreasureManager *TreasureManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *TreasureManagerInitialized) (event.Subscription, error) + func (_TreasureManager *TreasureManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TreasureManagerOwnershipTransferred, ...) (event.Subscription, error) + func (_TreasureManager *TreasureManagerFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *TreasureManagerRoleAdminChanged, ...) (event.Subscription, error) + func (_TreasureManager *TreasureManagerFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *TreasureManagerRoleGranted, role [][32]byte, ...) (event.Subscription, error) + func (_TreasureManager *TreasureManagerFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *TreasureManagerRoleRevoked, role [][32]byte, ...) (event.Subscription, error) + func (_TreasureManager *TreasureManagerFilterer) WatchWithdrawManagerUpdate(opts *bind.WatchOpts, sink chan<- *TreasureManagerWithdrawManagerUpdate, ...) (event.Subscription, error) + type TreasureManagerGrantRewardTokenAmount struct + Amount *big.Int + Granter common.Address + Raw types.Log + TokenAddress common.Address + type TreasureManagerGrantRewardTokenAmountIterator struct + Event *TreasureManagerGrantRewardTokenAmount + func (it *TreasureManagerGrantRewardTokenAmountIterator) Close() error + func (it *TreasureManagerGrantRewardTokenAmountIterator) Error() error + func (it *TreasureManagerGrantRewardTokenAmountIterator) Next() bool + type TreasureManagerInitialized struct + Raw types.Log + Version uint64 + type TreasureManagerInitializedIterator struct + Event *TreasureManagerInitialized + func (it *TreasureManagerInitializedIterator) Close() error + func (it *TreasureManagerInitializedIterator) Error() error + func (it *TreasureManagerInitializedIterator) Next() bool + type TreasureManagerOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type TreasureManagerOwnershipTransferredIterator struct + Event *TreasureManagerOwnershipTransferred + func (it *TreasureManagerOwnershipTransferredIterator) Close() error + func (it *TreasureManagerOwnershipTransferredIterator) Error() error + func (it *TreasureManagerOwnershipTransferredIterator) Next() bool + type TreasureManagerRaw struct + Contract *TreasureManager + func (_TreasureManager *TreasureManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_TreasureManager *TreasureManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type TreasureManagerRoleAdminChanged struct + NewAdminRole [32]byte + PreviousAdminRole [32]byte + Raw types.Log + Role [32]byte + type TreasureManagerRoleAdminChangedIterator struct + Event *TreasureManagerRoleAdminChanged + func (it *TreasureManagerRoleAdminChangedIterator) Close() error + func (it *TreasureManagerRoleAdminChangedIterator) Error() error + func (it *TreasureManagerRoleAdminChangedIterator) Next() bool + type TreasureManagerRoleGranted struct + Account common.Address + Raw types.Log + Role [32]byte + Sender common.Address + type TreasureManagerRoleGrantedIterator struct + Event *TreasureManagerRoleGranted + func (it *TreasureManagerRoleGrantedIterator) Close() error + func (it *TreasureManagerRoleGrantedIterator) Error() error + func (it *TreasureManagerRoleGrantedIterator) Next() bool + type TreasureManagerRoleRevoked struct + Account common.Address + Raw types.Log + Role [32]byte + Sender common.Address + type TreasureManagerRoleRevokedIterator struct + Event *TreasureManagerRoleRevoked + func (it *TreasureManagerRoleRevokedIterator) Close() error + func (it *TreasureManagerRoleRevokedIterator) Error() error + func (it *TreasureManagerRoleRevokedIterator) Next() bool + type TreasureManagerSession struct + CallOpts bind.CallOpts + Contract *TreasureManager + TransactOpts bind.TransactOpts + func (_TreasureManager *TreasureManagerSession) ClaimAllTokens() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) ClaimToken(tokenAddress common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) DEFAULTADMINROLE() ([32]byte, error) + func (_TreasureManager *TreasureManagerSession) DepositERC20(tokenAddress common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) DepositETH() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) EthAddress() (common.Address, error) + func (_TreasureManager *TreasureManagerSession) GetRoleAdmin(role [32]byte) ([32]byte, error) + func (_TreasureManager *TreasureManagerSession) GetTokenWhiteList() ([]common.Address, error) + func (_TreasureManager *TreasureManagerSession) GrantRewards(tokenAddress common.Address, granter common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) HasRole(role [32]byte, account common.Address) (bool, error) + func (_TreasureManager *TreasureManagerSession) Initialize(_initialOwner common.Address, _treasureManager common.Address, ...) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) Owner() (common.Address, error) + func (_TreasureManager *TreasureManagerSession) QueryReward(_tokenAddress common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerSession) Receive() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) RenounceOwnership() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) SetTokenWhiteList(tokenAddress common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) SetWithdrawManager(_withdrawManager common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) SupportsInterface(interfaceId [4]byte) (bool, error) + func (_TreasureManager *TreasureManagerSession) TokenBalances(arg0 common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerSession) TokenWhiteList(arg0 *big.Int) (common.Address, error) + func (_TreasureManager *TreasureManagerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) TreasureManager() (common.Address, error) + func (_TreasureManager *TreasureManagerSession) UserRewardAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error) + func (_TreasureManager *TreasureManagerSession) WithdrawERC20(tokenAddress common.Address, withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) WithdrawETH(withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerSession) WithdrawManager() (common.Address, error) + type TreasureManagerTransactor struct + func NewTreasureManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*TreasureManagerTransactor, error) + func (_TreasureManager *TreasureManagerTransactor) ClaimAllTokens(opts *bind.TransactOpts) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) ClaimToken(opts *bind.TransactOpts, tokenAddress common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) DepositERC20(opts *bind.TransactOpts, tokenAddress common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) DepositETH(opts *bind.TransactOpts) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) GrantRewards(opts *bind.TransactOpts, tokenAddress common.Address, granter common.Address, ...) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) Initialize(opts *bind.TransactOpts, _initialOwner common.Address, ...) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) SetTokenWhiteList(opts *bind.TransactOpts, tokenAddress common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) SetWithdrawManager(opts *bind.TransactOpts, _withdrawManager common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) WithdrawERC20(opts *bind.TransactOpts, tokenAddress common.Address, ...) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactor) WithdrawETH(opts *bind.TransactOpts, withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + type TreasureManagerTransactorRaw struct + Contract *TreasureManagerTransactor + func (_TreasureManager *TreasureManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type TreasureManagerTransactorSession struct + Contract *TreasureManagerTransactor + TransactOpts bind.TransactOpts + func (_TreasureManager *TreasureManagerTransactorSession) ClaimAllTokens() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) ClaimToken(tokenAddress common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) DepositERC20(tokenAddress common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) DepositETH() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) GrantRewards(tokenAddress common.Address, granter common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) Initialize(_initialOwner common.Address, _treasureManager common.Address, ...) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) Receive() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) SetTokenWhiteList(tokenAddress common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) SetWithdrawManager(_withdrawManager common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) WithdrawERC20(tokenAddress common.Address, withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + func (_TreasureManager *TreasureManagerTransactorSession) WithdrawETH(withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + type TreasureManagerWithdrawManagerUpdate struct + Raw types.Log + WithdrawManager common.Address + type TreasureManagerWithdrawManagerUpdateIterator struct + Event *TreasureManagerWithdrawManagerUpdate + func (it *TreasureManagerWithdrawManagerUpdateIterator) Close() error + func (it *TreasureManagerWithdrawManagerUpdateIterator) Error() error + func (it *TreasureManagerWithdrawManagerUpdateIterator) Next() bool