Documentation ¶
Index ¶
- Variables
- type Demotion
- type Node
- type Staking
- type StakingCaller
- func (_Staking *StakingCaller) ChipsContract(opts *bind.CallOpts) (common.Address, error)
- func (_Staking *StakingCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Staking *StakingCaller) DEPOSITUNBONDINGPERIOD(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) GetChipInfo(opts *bind.CallOpts, tokenId *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCaller) GetDemotions(opts *bind.CallOpts, nodeAddr common.Address, epoch *big.Int) ([]Demotion, error)
- func (_Staking *StakingCaller) GetNode(opts *bind.CallOpts, nodeAddr common.Address) (Node, error)
- func (_Staking *StakingCaller) GetNodeAvatar(opts *bind.CallOpts, nodeAddr common.Address) (string, error)
- func (_Staking *StakingCaller) GetNodeCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) GetNodes(opts *bind.CallOpts, nodeAddrs []common.Address) ([]Node, error)
- func (_Staking *StakingCaller) GetPendingUnstake(opts *bind.CallOpts, requestId *big.Int) (UnstakeRequest, error)
- func (_Staking *StakingCaller) GetPendingWithdrawal(opts *bind.CallOpts, requestId *big.Int) (WithdrawalRequest, error)
- func (_Staking *StakingCaller) GetPoolInfo(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Staking *StakingCaller) GetPublicPool(opts *bind.CallOpts) (Node, error)
- func (_Staking *StakingCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_Staking *StakingCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_Staking *StakingCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_Staking *StakingCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_Staking *StakingCaller) IsAlphaPhase(opts *bind.CallOpts) (bool, error)
- func (_Staking *StakingCaller) IsSettlementPhase(opts *bind.CallOpts) (bool, error)
- func (_Staking *StakingCaller) OPERATORROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Staking *StakingCaller) ORACLEROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Staking *StakingCaller) PAUSEROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Staking *StakingCaller) PAYMENTPROCESSOR(opts *bind.CallOpts) (common.Address, error)
- func (_Staking *StakingCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_Staking *StakingCaller) STAKEUNBONDINGPERIOD(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_Staking *StakingCaller) TREASURY(opts *bind.CallOpts) (common.Address, error)
- func (_Staking *StakingCaller) Version(opts *bind.CallOpts) (string, error)
- type StakingCallerRaw
- type StakingCallerSession
- func (_Staking *StakingCallerSession) ChipsContract() (common.Address, error)
- func (_Staking *StakingCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Staking *StakingCallerSession) DEPOSITUNBONDINGPERIOD() (*big.Int, error)
- func (_Staking *StakingCallerSession) GetChipInfo(tokenId *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCallerSession) GetDemotions(nodeAddr common.Address, epoch *big.Int) ([]Demotion, error)
- func (_Staking *StakingCallerSession) GetNode(nodeAddr common.Address) (Node, error)
- func (_Staking *StakingCallerSession) GetNodeAvatar(nodeAddr common.Address) (string, error)
- func (_Staking *StakingCallerSession) GetNodeCount() (*big.Int, error)
- func (_Staking *StakingCallerSession) GetNodes(nodeAddrs []common.Address) ([]Node, error)
- func (_Staking *StakingCallerSession) GetPendingUnstake(requestId *big.Int) (UnstakeRequest, error)
- func (_Staking *StakingCallerSession) GetPendingWithdrawal(requestId *big.Int) (WithdrawalRequest, error)
- func (_Staking *StakingCallerSession) GetPoolInfo() (struct{ ... }, error)
- func (_Staking *StakingCallerSession) GetPublicPool() (Node, error)
- func (_Staking *StakingCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Staking *StakingCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Staking *StakingCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Staking *StakingCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Staking *StakingCallerSession) IsAlphaPhase() (bool, error)
- func (_Staking *StakingCallerSession) IsSettlementPhase() (bool, error)
- func (_Staking *StakingCallerSession) OPERATORROLE() ([32]byte, error)
- func (_Staking *StakingCallerSession) ORACLEROLE() ([32]byte, error)
- func (_Staking *StakingCallerSession) PAUSEROLE() ([32]byte, error)
- func (_Staking *StakingCallerSession) PAYMENTPROCESSOR() (common.Address, error)
- func (_Staking *StakingCallerSession) Paused() (bool, error)
- func (_Staking *StakingCallerSession) STAKEUNBONDINGPERIOD() (*big.Int, error)
- func (_Staking *StakingCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Staking *StakingCallerSession) TREASURY() (common.Address, error)
- func (_Staking *StakingCallerSession) Version() (string, error)
- type StakingFilterer
- func (_Staking *StakingFilterer) FilterInitialized(opts *bind.FilterOpts) (*StakingInitializedIterator, error)
- func (_Staking *StakingFilterer) FilterPaused(opts *bind.FilterOpts) (*StakingPausedIterator, error)
- func (_Staking *StakingFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*StakingRoleAdminChangedIterator, error)
- func (_Staking *StakingFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*StakingRoleGrantedIterator, error)
- func (_Staking *StakingFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*StakingRoleRevokedIterator, error)
- func (_Staking *StakingFilterer) FilterUnpaused(opts *bind.FilterOpts) (*StakingUnpausedIterator, error)
- func (_Staking *StakingFilterer) ParseInitialized(log types.Log) (*StakingInitialized, error)
- func (_Staking *StakingFilterer) ParsePaused(log types.Log) (*StakingPaused, error)
- func (_Staking *StakingFilterer) ParseRoleAdminChanged(log types.Log) (*StakingRoleAdminChanged, error)
- func (_Staking *StakingFilterer) ParseRoleGranted(log types.Log) (*StakingRoleGranted, error)
- func (_Staking *StakingFilterer) ParseRoleRevoked(log types.Log) (*StakingRoleRevoked, error)
- func (_Staking *StakingFilterer) ParseUnpaused(log types.Log) (*StakingUnpaused, error)
- func (_Staking *StakingFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StakingInitialized) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *StakingPaused) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *StakingRoleAdminChanged, role [][32]byte, ...) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *StakingRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *StakingRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *StakingUnpaused) (event.Subscription, error)
- type StakingInitialized
- type StakingInitializedIterator
- type StakingPaused
- type StakingPausedIterator
- type StakingRaw
- func (_Staking *StakingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Staking *StakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Staking *StakingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StakingRoleAdminChanged
- type StakingRoleAdminChangedIterator
- type StakingRoleGranted
- type StakingRoleGrantedIterator
- type StakingRoleRevoked
- type StakingRoleRevokedIterator
- type StakingSession
- func (_Staking *StakingSession) ChipsContract() (common.Address, error)
- func (_Staking *StakingSession) ClaimUnstake(requestIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingSession) ClaimWithdrawal(requestIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingSession) CommitSlashing(nodeAddr common.Address, epoch *big.Int) (*types.Transaction, error)
- func (_Staking *StakingSession) CreateNode(name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)
- func (_Staking *StakingSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Staking *StakingSession) DEPOSITUNBONDINGPERIOD() (*big.Int, error)
- func (_Staking *StakingSession) Deposit() (*types.Transaction, error)
- func (_Staking *StakingSession) DistributeRewards(epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, ...) (*types.Transaction, error)
- func (_Staking *StakingSession) Exit() (*types.Transaction, error)
- func (_Staking *StakingSession) GetChipInfo(tokenId *big.Int) (struct{ ... }, error)
- func (_Staking *StakingSession) GetDemotions(nodeAddr common.Address, epoch *big.Int) ([]Demotion, error)
- func (_Staking *StakingSession) GetNode(nodeAddr common.Address) (Node, error)
- func (_Staking *StakingSession) GetNodeAvatar(nodeAddr common.Address) (string, error)
- func (_Staking *StakingSession) GetNodeCount() (*big.Int, error)
- func (_Staking *StakingSession) GetNodes(nodeAddrs []common.Address) ([]Node, error)
- func (_Staking *StakingSession) GetPendingUnstake(requestId *big.Int) (UnstakeRequest, error)
- func (_Staking *StakingSession) GetPendingWithdrawal(requestId *big.Int) (WithdrawalRequest, error)
- func (_Staking *StakingSession) GetPoolInfo() (struct{ ... }, error)
- func (_Staking *StakingSession) GetPublicPool() (Node, error)
- func (_Staking *StakingSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Staking *StakingSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Staking *StakingSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Staking *StakingSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Staking *StakingSession) Initialize(chips common.Address, pauseAccount common.Address, ...) (*types.Transaction, error)
- func (_Staking *StakingSession) IsAlphaPhase() (bool, error)
- func (_Staking *StakingSession) IsSettlementPhase() (bool, error)
- func (_Staking *StakingSession) MergeChips(chipIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_Staking *StakingSession) OPERATORROLE() ([32]byte, error)
- func (_Staking *StakingSession) ORACLEROLE() ([32]byte, error)
- func (_Staking *StakingSession) Online() (*types.Transaction, error)
- func (_Staking *StakingSession) PAUSEROLE() ([32]byte, error)
- func (_Staking *StakingSession) PAYMENTPROCESSOR() (common.Address, error)
- func (_Staking *StakingSession) Pause() (*types.Transaction, error)
- func (_Staking *StakingSession) Paused() (bool, error)
- func (_Staking *StakingSession) Register() (*types.Transaction, error)
- func (_Staking *StakingSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) RequestUnstake(nodeAddr common.Address, chipIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingSession) RequestWithdrawal(amount *big.Int) (*types.Transaction, error)
- func (_Staking *StakingSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIdsToRevoke []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) STAKEUNBONDINGPERIOD() (*big.Int, error)
- func (_Staking *StakingSession) SetNodeStatus(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Staking *StakingSession) SetNodeStatusByOperator(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Staking *StakingSession) SetSettlementPhase(enabled bool) (*types.Transaction, error)
- func (_Staking *StakingSession) SetTaxRateBasisPoints4Node(taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Staking *StakingSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Staking *StakingSession) Stake(nodeAddr common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) StakeToPublicPool(nodeAddr common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) SubmitDemotions(epoch *big.Int, nodeAddrs []common.Address, reasons []string, ...) (*types.Transaction, error)
- func (_Staking *StakingSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Staking *StakingSession) TREASURY() (common.Address, error)
- func (_Staking *StakingSession) Unpause() (*types.Transaction, error)
- func (_Staking *StakingSession) UpdateNode(name string, description string) (*types.Transaction, error)
- func (_Staking *StakingSession) Version() (string, error)
- func (_Staking *StakingSession) Withdraw2Treasury() (*types.Transaction, error)
- type StakingTransactor
- func (_Staking *StakingTransactor) ClaimUnstake(opts *bind.TransactOpts, requestIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactor) ClaimWithdrawal(opts *bind.TransactOpts, requestIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactor) CommitSlashing(opts *bind.TransactOpts, nodeAddr common.Address, epoch *big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactor) CreateNode(opts *bind.TransactOpts, name string, description string, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) DistributeRewards(opts *bind.TransactOpts, epochInfo [3]*big.Int, nodeAddrs []common.Address, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Exit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Initialize(opts *bind.TransactOpts, chips common.Address, pauseAccount common.Address, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) MergeChips(opts *bind.TransactOpts, chipIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Online(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Register(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) RequestUnstake(opts *bind.TransactOpts, nodeAddr common.Address, chipIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactor) RequestWithdrawal(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactor) RevokeDemotions(opts *bind.TransactOpts, nodeAddr common.Address, epoch *big.Int, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) SetNodeStatus(opts *bind.TransactOpts, nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Staking *StakingTransactor) SetNodeStatusByOperator(opts *bind.TransactOpts, nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Staking *StakingTransactor) SetSettlementPhase(opts *bind.TransactOpts, enabled bool) (*types.Transaction, error)
- func (_Staking *StakingTransactor) SetTaxRateBasisPoints4Node(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Staking *StakingTransactor) SetTaxRateBasisPoints4PublicPool(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Stake(opts *bind.TransactOpts, nodeAddr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) StakeToPublicPool(opts *bind.TransactOpts, nodeAddr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) SubmitDemotions(opts *bind.TransactOpts, epoch *big.Int, nodeAddrs []common.Address, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) UpdateNode(opts *bind.TransactOpts, name string, description string) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Withdraw2Treasury(opts *bind.TransactOpts) (*types.Transaction, error)
- type StakingTransactorRaw
- type StakingTransactorSession
- func (_Staking *StakingTransactorSession) ClaimUnstake(requestIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) ClaimWithdrawal(requestIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) CommitSlashing(nodeAddr common.Address, epoch *big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) CreateNode(name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Deposit() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) DistributeRewards(epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Exit() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Initialize(chips common.Address, pauseAccount common.Address, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) MergeChips(chipIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Online() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Pause() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Register() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) RequestUnstake(nodeAddr common.Address, chipIds []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) RequestWithdrawal(amount *big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIdsToRevoke []*big.Int) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) SetNodeStatus(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) SetNodeStatusByOperator(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) SetSettlementPhase(enabled bool) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) SetTaxRateBasisPoints4Node(taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Stake(nodeAddr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) StakeToPublicPool(nodeAddr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) SubmitDemotions(epoch *big.Int, nodeAddrs []common.Address, reasons []string, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Unpause() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) UpdateNode(name string, description string) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Withdraw2Treasury() (*types.Transaction, error)
- type StakingUnpaused
- type StakingUnpausedIterator
- type UnstakeRequest
- type WithdrawalRequest
Constants ¶
This section is empty.
Variables ¶
var StakingABI = StakingMetaData.ABI
StakingABI is the input ABI used to generate the binding from. Deprecated: Use StakingMetaData.ABI instead.
var StakingMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"treasury\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"stakeUnbondingPeriod\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"depositUnbondingPeriod\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"paymentProcessor\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"DEFAULT_ADMIN_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"DEPOSIT_UNBONDING_PERIOD\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"OPERATOR_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ORACLE_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PAUSE_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PAYMENT_PROCESSOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"STAKE_UNBONDING_PERIOD\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"TREASURY\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"chipsContract\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"claimUnstake\",\"inputs\":[{\"name\":\"requestIds\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"claimWithdrawal\",\"inputs\":[{\"name\":\"requestIds\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"commitSlashing\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"createNode\",\"inputs\":[{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"description\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"publicGood\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"distributeRewards\",\"inputs\":[{\"name\":\"epochInfo\",\"type\":\"uint256[3]\",\"internalType\":\"uint256[3]\"},{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"operationRewards\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"stakingRewards\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"requestCounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"publicPoolRewards\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"exit\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getChipInfo\",\"inputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"shares\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDemotions\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"demotions\",\"type\":\"tuple[]\",\"internalType\":\"structDemotion[]\",\"components\":[{\"name\":\"demotionId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"reason\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"reporter\",\"type\":\"address\",\"internalType\":\"address\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNode\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structNode\",\"components\":[{\"name\":\"nodeId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"publicGood\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"alpha\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"description\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"operationPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"stakingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"totalShares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"slashedOperationPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"slashedStakingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"status\",\"type\":\"uint8\",\"internalType\":\"enumNodeStatus\"}]}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getNodeAvatar\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNodeCount\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNodes\",\"inputs\":[{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"nodes\",\"type\":\"tuple[]\",\"internalType\":\"structNode[]\",\"components\":[{\"name\":\"nodeId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"publicGood\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"alpha\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"description\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"operationPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"stakingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"totalShares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"slashedOperationPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"slashedStakingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"status\",\"type\":\"uint8\",\"internalType\":\"enumNodeStatus\"}]}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getPendingUnstake\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structUnstakeRequest\",\"components\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"timestamp\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPendingWithdrawal\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structWithdrawalRequest\",\"components\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"timestamp\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPoolInfo\",\"inputs\":[],\"outputs\":[{\"name\":\"totalOperationPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"totalStakingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"totalSlashingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPublicPool\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structNode\",\"components\":[{\"name\":\"nodeId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"publicGood\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"alpha\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"description\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"operationPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"stakingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"totalShares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"slashedOperationPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"slashedStakingPoolTokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"status\",\"type\":\"uint8\",\"internalType\":\"enumNodeStatus\"}]}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getRoleAdmin\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRoleMember\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"index\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRoleMemberCount\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"grantRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"hasRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"chips\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"pauseAccount\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"oracleAccount\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"operatorAccount\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"isAlphaPhase_\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"migrate\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"isAlphaPhase\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isSettlementPhase\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mergeChips\",\"inputs\":[{\"name\":\"chipIds\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[{\"name\":\"newTokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"multicall\",\"inputs\":[{\"name\":\"data\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"}],\"outputs\":[{\"name\":\"results\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"online\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"pause\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"paused\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"register\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"renounceRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"callerConfirmation\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"requestUnstake\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"chipIds\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[{\"name\":\"requestId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"requestWithdrawal\",\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"requestId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"revokeDemotions\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"demotionIdsToRevoke\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"revokeRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setNodeStatus\",\"inputs\":[{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"status\",\"type\":\"uint8[]\",\"internalType\":\"enumNodeStatus[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setNodeStatusByOperator\",\"inputs\":[{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"status\",\"type\":\"uint8[]\",\"internalType\":\"enumNodeStatus[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setSettlementPhase\",\"inputs\":[{\"name\":\"enabled\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setTaxRateBasisPoints4Node\",\"inputs\":[{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setTaxRateBasisPoints4PublicPool\",\"inputs\":[{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"stake\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"stakeToPublicPool\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"submitDemotions\",\"inputs\":[{\"name\":\"epoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"reasons\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"reporters\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportsInterface\",\"inputs\":[{\"name\":\"interfaceId\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"unpause\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateNode\",\"inputs\":[{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"description\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"version\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"withdraw2Treasury\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Paused\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleAdminChanged\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"previousAdminRole\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"newAdminRole\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleGranted\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleRevoked\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Unpaused\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AccessControlBadConfirmation\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"AccessControlUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"neededRole\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"AddressEmptyCode\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"EnforcedPause\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ExpectedPause\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"FailedInnerCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidInitialization\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NodeNotExists\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"NodeNotPublicGood\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"NotInitializing\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ReentrancyGuardReentrantCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SettlementPhase\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"StakeToPublicGoodNode\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
}
StakingMetaData contains all meta data concerning the Staking contract.
Functions ¶
This section is empty.
Types ¶
type Demotion ¶ added in v0.7.0
type Demotion struct { DemotionId *big.Int NodeAddr common.Address Epoch *big.Int Reason string Reporter common.Address }
Demotion is an auto generated low-level Go binding around an user-defined struct.
type Node ¶ added in v0.7.0
type Node struct { NodeId *big.Int Account common.Address TaxRateBasisPoints uint64 PublicGood bool Alpha bool Name string Description string OperationPoolTokens *big.Int StakingPoolTokens *big.Int SlashedOperationPoolTokens *big.Int SlashedStakingPoolTokens *big.Int Status uint8 }
Node is an auto generated low-level Go binding around an user-defined struct.
type Staking ¶
type Staking struct { StakingCaller // Read-only binding to the contract StakingTransactor // Write-only binding to the contract StakingFilterer // Log filterer for contract events }
Staking is an auto generated Go binding around an Ethereum contract.
func NewStaking ¶
NewStaking creates a new instance of Staking, bound to a specific deployed contract.
type StakingCaller ¶
type StakingCaller struct {
// contains filtered or unexported fields
}
StakingCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStakingCaller ¶
func NewStakingCaller(address common.Address, caller bind.ContractCaller) (*StakingCaller, error)
NewStakingCaller creates a new read-only instance of Staking, bound to a specific deployed contract.
func (*StakingCaller) ChipsContract ¶
ChipsContract is a free data retrieval call binding the contract method 0xd13b19a3.
Solidity: function chipsContract() view returns(address)
func (*StakingCaller) DEFAULTADMINROLE ¶
func (_Staking *StakingCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*StakingCaller) DEPOSITUNBONDINGPERIOD ¶
DEPOSITUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x6bdc11d5.
Solidity: function DEPOSIT_UNBONDING_PERIOD() view returns(uint256)
func (*StakingCaller) GetChipInfo ¶
func (_Staking *StakingCaller) GetChipInfo(opts *bind.CallOpts, tokenId *big.Int) (struct { NodeAddr common.Address Tokens *big.Int Shares *big.Int }, error)
GetChipInfo is a free data retrieval call binding the contract method 0x391f9418.
Solidity: function getChipInfo(uint256 tokenId) view returns(address nodeAddr, uint256 tokens, uint256 shares)
func (*StakingCaller) GetDemotions ¶ added in v0.7.0
func (_Staking *StakingCaller) GetDemotions(opts *bind.CallOpts, nodeAddr common.Address, epoch *big.Int) ([]Demotion, error)
GetDemotions is a free data retrieval call binding the contract method 0x7378fa9e.
Solidity: function getDemotions(address nodeAddr, uint256 epoch) view returns((uint256,address,uint256,string,address)[] demotions)
func (*StakingCaller) GetNode ¶
GetNode is a free data retrieval call binding the contract method 0x9d209048.
Solidity: function getNode(address nodeAddr) pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8))
func (*StakingCaller) GetNodeAvatar ¶
func (_Staking *StakingCaller) GetNodeAvatar(opts *bind.CallOpts, nodeAddr common.Address) (string, error)
GetNodeAvatar is a free data retrieval call binding the contract method 0x1474deaa.
Solidity: function getNodeAvatar(address nodeAddr) view returns(string)
func (*StakingCaller) GetNodeCount ¶
GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.
Solidity: function getNodeCount() view returns(uint256)
func (*StakingCaller) GetNodes ¶
func (_Staking *StakingCaller) GetNodes(opts *bind.CallOpts, nodeAddrs []common.Address) ([]Node, error)
GetNodes is a free data retrieval call binding the contract method 0x38c96b14.
Solidity: function getNodes(address[] nodeAddrs) pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8)[] nodes)
func (*StakingCaller) GetPendingUnstake ¶
func (_Staking *StakingCaller) GetPendingUnstake(opts *bind.CallOpts, requestId *big.Int) (UnstakeRequest, error)
GetPendingUnstake is a free data retrieval call binding the contract method 0xadfd065f.
Solidity: function getPendingUnstake(uint256 requestId) view returns((address,address,uint256,uint256))
func (*StakingCaller) GetPendingWithdrawal ¶
func (_Staking *StakingCaller) GetPendingWithdrawal(opts *bind.CallOpts, requestId *big.Int) (WithdrawalRequest, error)
GetPendingWithdrawal is a free data retrieval call binding the contract method 0x38a3c878.
Solidity: function getPendingWithdrawal(uint256 requestId) view returns((address,uint40,uint256))
func (*StakingCaller) GetPoolInfo ¶
func (_Staking *StakingCaller) GetPoolInfo(opts *bind.CallOpts) (struct { TotalOperationPoolTokens *big.Int TotalStakingPoolTokens *big.Int TotalSlashingPoolTokens *big.Int }, error)
GetPoolInfo is a free data retrieval call binding the contract method 0x60246c88.
Solidity: function getPoolInfo() view returns(uint256 totalOperationPoolTokens, uint256 totalStakingPoolTokens, uint256 totalSlashingPoolTokens)
func (*StakingCaller) GetPublicPool ¶
func (_Staking *StakingCaller) GetPublicPool(opts *bind.CallOpts) (Node, error)
GetPublicPool is a free data retrieval call binding the contract method 0xc84c42a3.
Solidity: function getPublicPool() pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8))
func (*StakingCaller) GetRoleAdmin ¶
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*StakingCaller) GetRoleMember ¶
func (_Staking *StakingCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*StakingCaller) GetRoleMemberCount ¶
func (_Staking *StakingCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*StakingCaller) HasRole ¶
func (_Staking *StakingCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*StakingCaller) IsAlphaPhase ¶
func (_Staking *StakingCaller) IsAlphaPhase(opts *bind.CallOpts) (bool, error)
IsAlphaPhase is a free data retrieval call binding the contract method 0x69ff71f6.
Solidity: function isAlphaPhase() view returns(bool)
func (*StakingCaller) IsSettlementPhase ¶
func (_Staking *StakingCaller) IsSettlementPhase(opts *bind.CallOpts) (bool, error)
IsSettlementPhase is a free data retrieval call binding the contract method 0x2e75fd59.
Solidity: function isSettlementPhase() view returns(bool)
func (*StakingCaller) OPERATORROLE ¶ added in v0.7.0
func (_Staking *StakingCaller) OPERATORROLE(opts *bind.CallOpts) ([32]byte, error)
OPERATORROLE is a free data retrieval call binding the contract method 0xf5b541a6.
Solidity: function OPERATOR_ROLE() view returns(bytes32)
func (*StakingCaller) ORACLEROLE ¶
func (_Staking *StakingCaller) ORACLEROLE(opts *bind.CallOpts) ([32]byte, error)
ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.
Solidity: function ORACLE_ROLE() view returns(bytes32)
func (*StakingCaller) PAUSEROLE ¶
func (_Staking *StakingCaller) PAUSEROLE(opts *bind.CallOpts) ([32]byte, error)
PAUSEROLE is a free data retrieval call binding the contract method 0x389ed267.
Solidity: function PAUSE_ROLE() view returns(bytes32)
func (*StakingCaller) PAYMENTPROCESSOR ¶ added in v0.7.0
PAYMENTPROCESSOR is a free data retrieval call binding the contract method 0xaf2ae425.
Solidity: function PAYMENT_PROCESSOR() view returns(address)
func (*StakingCaller) Paused ¶
func (_Staking *StakingCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*StakingCaller) STAKEUNBONDINGPERIOD ¶
STAKEUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x2606a44a.
Solidity: function STAKE_UNBONDING_PERIOD() view returns(uint256)
func (*StakingCaller) SupportsInterface ¶
func (_Staking *StakingCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
type StakingCallerRaw ¶
type StakingCallerRaw struct {
Contract *StakingCaller // Generic read-only contract binding to access the raw methods on
}
StakingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StakingCallerRaw) Call ¶
func (_Staking *StakingCallerRaw) 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 StakingCallerSession ¶
type StakingCallerSession struct { Contract *StakingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StakingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StakingCallerSession) ChipsContract ¶
func (_Staking *StakingCallerSession) ChipsContract() (common.Address, error)
ChipsContract is a free data retrieval call binding the contract method 0xd13b19a3.
Solidity: function chipsContract() view returns(address)
func (*StakingCallerSession) DEFAULTADMINROLE ¶
func (_Staking *StakingCallerSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*StakingCallerSession) DEPOSITUNBONDINGPERIOD ¶
func (_Staking *StakingCallerSession) DEPOSITUNBONDINGPERIOD() (*big.Int, error)
DEPOSITUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x6bdc11d5.
Solidity: function DEPOSIT_UNBONDING_PERIOD() view returns(uint256)
func (*StakingCallerSession) GetChipInfo ¶
func (_Staking *StakingCallerSession) GetChipInfo(tokenId *big.Int) (struct { NodeAddr common.Address Tokens *big.Int Shares *big.Int }, error)
GetChipInfo is a free data retrieval call binding the contract method 0x391f9418.
Solidity: function getChipInfo(uint256 tokenId) view returns(address nodeAddr, uint256 tokens, uint256 shares)
func (*StakingCallerSession) GetDemotions ¶ added in v0.7.0
func (_Staking *StakingCallerSession) GetDemotions(nodeAddr common.Address, epoch *big.Int) ([]Demotion, error)
GetDemotions is a free data retrieval call binding the contract method 0x7378fa9e.
Solidity: function getDemotions(address nodeAddr, uint256 epoch) view returns((uint256,address,uint256,string,address)[] demotions)
func (*StakingCallerSession) GetNode ¶
func (_Staking *StakingCallerSession) GetNode(nodeAddr common.Address) (Node, error)
GetNode is a free data retrieval call binding the contract method 0x9d209048.
Solidity: function getNode(address nodeAddr) pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8))
func (*StakingCallerSession) GetNodeAvatar ¶
func (_Staking *StakingCallerSession) GetNodeAvatar(nodeAddr common.Address) (string, error)
GetNodeAvatar is a free data retrieval call binding the contract method 0x1474deaa.
Solidity: function getNodeAvatar(address nodeAddr) view returns(string)
func (*StakingCallerSession) GetNodeCount ¶
func (_Staking *StakingCallerSession) GetNodeCount() (*big.Int, error)
GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.
Solidity: function getNodeCount() view returns(uint256)
func (*StakingCallerSession) GetNodes ¶
func (_Staking *StakingCallerSession) GetNodes(nodeAddrs []common.Address) ([]Node, error)
GetNodes is a free data retrieval call binding the contract method 0x38c96b14.
Solidity: function getNodes(address[] nodeAddrs) pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8)[] nodes)
func (*StakingCallerSession) GetPendingUnstake ¶
func (_Staking *StakingCallerSession) GetPendingUnstake(requestId *big.Int) (UnstakeRequest, error)
GetPendingUnstake is a free data retrieval call binding the contract method 0xadfd065f.
Solidity: function getPendingUnstake(uint256 requestId) view returns((address,address,uint256,uint256))
func (*StakingCallerSession) GetPendingWithdrawal ¶
func (_Staking *StakingCallerSession) GetPendingWithdrawal(requestId *big.Int) (WithdrawalRequest, error)
GetPendingWithdrawal is a free data retrieval call binding the contract method 0x38a3c878.
Solidity: function getPendingWithdrawal(uint256 requestId) view returns((address,uint40,uint256))
func (*StakingCallerSession) GetPoolInfo ¶
func (_Staking *StakingCallerSession) GetPoolInfo() (struct { TotalOperationPoolTokens *big.Int TotalStakingPoolTokens *big.Int TotalSlashingPoolTokens *big.Int }, error)
GetPoolInfo is a free data retrieval call binding the contract method 0x60246c88.
Solidity: function getPoolInfo() view returns(uint256 totalOperationPoolTokens, uint256 totalStakingPoolTokens, uint256 totalSlashingPoolTokens)
func (*StakingCallerSession) GetPublicPool ¶
func (_Staking *StakingCallerSession) GetPublicPool() (Node, error)
GetPublicPool is a free data retrieval call binding the contract method 0xc84c42a3.
Solidity: function getPublicPool() pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8))
func (*StakingCallerSession) GetRoleAdmin ¶
func (_Staking *StakingCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*StakingCallerSession) GetRoleMember ¶
func (_Staking *StakingCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*StakingCallerSession) GetRoleMemberCount ¶
func (_Staking *StakingCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*StakingCallerSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*StakingCallerSession) IsAlphaPhase ¶
func (_Staking *StakingCallerSession) IsAlphaPhase() (bool, error)
IsAlphaPhase is a free data retrieval call binding the contract method 0x69ff71f6.
Solidity: function isAlphaPhase() view returns(bool)
func (*StakingCallerSession) IsSettlementPhase ¶
func (_Staking *StakingCallerSession) IsSettlementPhase() (bool, error)
IsSettlementPhase is a free data retrieval call binding the contract method 0x2e75fd59.
Solidity: function isSettlementPhase() view returns(bool)
func (*StakingCallerSession) OPERATORROLE ¶ added in v0.7.0
func (_Staking *StakingCallerSession) OPERATORROLE() ([32]byte, error)
OPERATORROLE is a free data retrieval call binding the contract method 0xf5b541a6.
Solidity: function OPERATOR_ROLE() view returns(bytes32)
func (*StakingCallerSession) ORACLEROLE ¶
func (_Staking *StakingCallerSession) ORACLEROLE() ([32]byte, error)
ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.
Solidity: function ORACLE_ROLE() view returns(bytes32)
func (*StakingCallerSession) PAUSEROLE ¶
func (_Staking *StakingCallerSession) PAUSEROLE() ([32]byte, error)
PAUSEROLE is a free data retrieval call binding the contract method 0x389ed267.
Solidity: function PAUSE_ROLE() view returns(bytes32)
func (*StakingCallerSession) PAYMENTPROCESSOR ¶ added in v0.7.0
func (_Staking *StakingCallerSession) PAYMENTPROCESSOR() (common.Address, error)
PAYMENTPROCESSOR is a free data retrieval call binding the contract method 0xaf2ae425.
Solidity: function PAYMENT_PROCESSOR() view returns(address)
func (*StakingCallerSession) Paused ¶
func (_Staking *StakingCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*StakingCallerSession) STAKEUNBONDINGPERIOD ¶
func (_Staking *StakingCallerSession) STAKEUNBONDINGPERIOD() (*big.Int, error)
STAKEUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x2606a44a.
Solidity: function STAKE_UNBONDING_PERIOD() view returns(uint256)
func (*StakingCallerSession) SupportsInterface ¶
func (_Staking *StakingCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*StakingCallerSession) TREASURY ¶
func (_Staking *StakingCallerSession) TREASURY() (common.Address, error)
TREASURY is a free data retrieval call binding the contract method 0x2d2c5565.
Solidity: function TREASURY() view returns(address)
func (*StakingCallerSession) Version ¶ added in v0.7.0
func (_Staking *StakingCallerSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(string)
type StakingFilterer ¶
type StakingFilterer struct {
// contains filtered or unexported fields
}
StakingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStakingFilterer ¶
func NewStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingFilterer, error)
NewStakingFilterer creates a new log filterer instance of Staking, bound to a specific deployed contract.
func (*StakingFilterer) FilterInitialized ¶
func (_Staking *StakingFilterer) FilterInitialized(opts *bind.FilterOpts) (*StakingInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*StakingFilterer) FilterPaused ¶
func (_Staking *StakingFilterer) FilterPaused(opts *bind.FilterOpts) (*StakingPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*StakingFilterer) FilterRoleAdminChanged ¶
func (_Staking *StakingFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*StakingRoleAdminChangedIterator, error)
FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*StakingFilterer) FilterRoleGranted ¶
func (_Staking *StakingFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*StakingRoleGrantedIterator, error)
FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*StakingFilterer) FilterRoleRevoked ¶
func (_Staking *StakingFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*StakingRoleRevokedIterator, error)
FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*StakingFilterer) FilterUnpaused ¶
func (_Staking *StakingFilterer) FilterUnpaused(opts *bind.FilterOpts) (*StakingUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*StakingFilterer) ParseInitialized ¶
func (_Staking *StakingFilterer) ParseInitialized(log types.Log) (*StakingInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*StakingFilterer) ParsePaused ¶
func (_Staking *StakingFilterer) ParsePaused(log types.Log) (*StakingPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*StakingFilterer) ParseRoleAdminChanged ¶
func (_Staking *StakingFilterer) ParseRoleAdminChanged(log types.Log) (*StakingRoleAdminChanged, error)
ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*StakingFilterer) ParseRoleGranted ¶
func (_Staking *StakingFilterer) ParseRoleGranted(log types.Log) (*StakingRoleGranted, error)
ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*StakingFilterer) ParseRoleRevoked ¶
func (_Staking *StakingFilterer) ParseRoleRevoked(log types.Log) (*StakingRoleRevoked, error)
ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*StakingFilterer) ParseUnpaused ¶
func (_Staking *StakingFilterer) ParseUnpaused(log types.Log) (*StakingUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*StakingFilterer) WatchInitialized ¶
func (_Staking *StakingFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StakingInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*StakingFilterer) WatchPaused ¶
func (_Staking *StakingFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *StakingPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*StakingFilterer) WatchRoleAdminChanged ¶
func (_Staking *StakingFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *StakingRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)
WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*StakingFilterer) WatchRoleGranted ¶
func (_Staking *StakingFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *StakingRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*StakingFilterer) WatchRoleRevoked ¶
func (_Staking *StakingFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *StakingRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*StakingFilterer) WatchUnpaused ¶
func (_Staking *StakingFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *StakingUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
type StakingInitialized ¶
type StakingInitialized struct { Version uint64 Raw types.Log // Blockchain specific contextual infos }
StakingInitialized represents a Initialized event raised by the Staking contract.
type StakingInitializedIterator ¶
type StakingInitializedIterator struct { Event *StakingInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Staking contract.
func (*StakingInitializedIterator) Close ¶
func (it *StakingInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingInitializedIterator) Error ¶
func (it *StakingInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingInitializedIterator) Next ¶
func (it *StakingInitializedIterator) 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 StakingPaused ¶
type StakingPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
StakingPaused represents a Paused event raised by the Staking contract.
type StakingPausedIterator ¶
type StakingPausedIterator struct { Event *StakingPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Staking contract.
func (*StakingPausedIterator) Close ¶
func (it *StakingPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingPausedIterator) Error ¶
func (it *StakingPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingPausedIterator) Next ¶
func (it *StakingPausedIterator) 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 StakingRaw ¶
type StakingRaw struct {
Contract *Staking // Generic contract binding to access the raw methods on
}
StakingRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StakingRaw) Call ¶
func (_Staking *StakingRaw) 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 (*StakingRaw) Transact ¶
func (_Staking *StakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakingRaw) Transfer ¶
func (_Staking *StakingRaw) 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 StakingRoleAdminChanged ¶
type StakingRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
StakingRoleAdminChanged represents a RoleAdminChanged event raised by the Staking contract.
type StakingRoleAdminChangedIterator ¶
type StakingRoleAdminChangedIterator struct { Event *StakingRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Staking contract.
func (*StakingRoleAdminChangedIterator) Close ¶
func (it *StakingRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingRoleAdminChangedIterator) Error ¶
func (it *StakingRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingRoleAdminChangedIterator) Next ¶
func (it *StakingRoleAdminChangedIterator) 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 StakingRoleGranted ¶
type StakingRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
StakingRoleGranted represents a RoleGranted event raised by the Staking contract.
type StakingRoleGrantedIterator ¶
type StakingRoleGrantedIterator struct { Event *StakingRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Staking contract.
func (*StakingRoleGrantedIterator) Close ¶
func (it *StakingRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingRoleGrantedIterator) Error ¶
func (it *StakingRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingRoleGrantedIterator) Next ¶
func (it *StakingRoleGrantedIterator) 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 StakingRoleRevoked ¶
type StakingRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
StakingRoleRevoked represents a RoleRevoked event raised by the Staking contract.
type StakingRoleRevokedIterator ¶
type StakingRoleRevokedIterator struct { Event *StakingRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Staking contract.
func (*StakingRoleRevokedIterator) Close ¶
func (it *StakingRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingRoleRevokedIterator) Error ¶
func (it *StakingRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingRoleRevokedIterator) Next ¶
func (it *StakingRoleRevokedIterator) 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 StakingSession ¶
type StakingSession struct { Contract *Staking // 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 }
StakingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StakingSession) ChipsContract ¶
func (_Staking *StakingSession) ChipsContract() (common.Address, error)
ChipsContract is a free data retrieval call binding the contract method 0xd13b19a3.
Solidity: function chipsContract() view returns(address)
func (*StakingSession) ClaimUnstake ¶
func (_Staking *StakingSession) ClaimUnstake(requestIds []*big.Int) (*types.Transaction, error)
ClaimUnstake is a paid mutator transaction binding the contract method 0x04a4fb10.
Solidity: function claimUnstake(uint256[] requestIds) returns()
func (*StakingSession) ClaimWithdrawal ¶
func (_Staking *StakingSession) ClaimWithdrawal(requestIds []*big.Int) (*types.Transaction, error)
ClaimWithdrawal is a paid mutator transaction binding the contract method 0x3c256b98.
Solidity: function claimWithdrawal(uint256[] requestIds) returns()
func (*StakingSession) CommitSlashing ¶ added in v0.7.0
func (_Staking *StakingSession) CommitSlashing(nodeAddr common.Address, epoch *big.Int) (*types.Transaction, error)
CommitSlashing is a paid mutator transaction binding the contract method 0xbe168625.
Solidity: function commitSlashing(address nodeAddr, uint256 epoch) returns()
func (*StakingSession) CreateNode ¶
func (_Staking *StakingSession) CreateNode(name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)
CreateNode is a paid mutator transaction binding the contract method 0x96531623.
Solidity: function createNode(string name, string description, uint64 taxRateBasisPoints, bool publicGood) payable returns()
func (*StakingSession) DEFAULTADMINROLE ¶
func (_Staking *StakingSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*StakingSession) DEPOSITUNBONDINGPERIOD ¶
func (_Staking *StakingSession) DEPOSITUNBONDINGPERIOD() (*big.Int, error)
DEPOSITUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x6bdc11d5.
Solidity: function DEPOSIT_UNBONDING_PERIOD() view returns(uint256)
func (*StakingSession) Deposit ¶
func (_Staking *StakingSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*StakingSession) DistributeRewards ¶
func (_Staking *StakingSession) DistributeRewards(epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, stakingRewards []*big.Int, requestCounts []*big.Int, publicPoolRewards *big.Int) (*types.Transaction, error)
DistributeRewards is a paid mutator transaction binding the contract method 0x8e3e6174.
Solidity: function distributeRewards(uint256[3] epochInfo, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] requestCounts, uint256 publicPoolRewards) payable returns()
func (*StakingSession) Exit ¶ added in v0.7.0
func (_Staking *StakingSession) Exit() (*types.Transaction, error)
Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.
Solidity: function exit() returns()
func (*StakingSession) GetChipInfo ¶
func (_Staking *StakingSession) GetChipInfo(tokenId *big.Int) (struct { NodeAddr common.Address Tokens *big.Int Shares *big.Int }, error)
GetChipInfo is a free data retrieval call binding the contract method 0x391f9418.
Solidity: function getChipInfo(uint256 tokenId) view returns(address nodeAddr, uint256 tokens, uint256 shares)
func (*StakingSession) GetDemotions ¶ added in v0.7.0
func (_Staking *StakingSession) GetDemotions(nodeAddr common.Address, epoch *big.Int) ([]Demotion, error)
GetDemotions is a free data retrieval call binding the contract method 0x7378fa9e.
Solidity: function getDemotions(address nodeAddr, uint256 epoch) view returns((uint256,address,uint256,string,address)[] demotions)
func (*StakingSession) GetNode ¶
func (_Staking *StakingSession) GetNode(nodeAddr common.Address) (Node, error)
GetNode is a free data retrieval call binding the contract method 0x9d209048.
Solidity: function getNode(address nodeAddr) pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8))
func (*StakingSession) GetNodeAvatar ¶
func (_Staking *StakingSession) GetNodeAvatar(nodeAddr common.Address) (string, error)
GetNodeAvatar is a free data retrieval call binding the contract method 0x1474deaa.
Solidity: function getNodeAvatar(address nodeAddr) view returns(string)
func (*StakingSession) GetNodeCount ¶
func (_Staking *StakingSession) GetNodeCount() (*big.Int, error)
GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.
Solidity: function getNodeCount() view returns(uint256)
func (*StakingSession) GetNodes ¶
func (_Staking *StakingSession) GetNodes(nodeAddrs []common.Address) ([]Node, error)
GetNodes is a free data retrieval call binding the contract method 0x38c96b14.
Solidity: function getNodes(address[] nodeAddrs) pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8)[] nodes)
func (*StakingSession) GetPendingUnstake ¶
func (_Staking *StakingSession) GetPendingUnstake(requestId *big.Int) (UnstakeRequest, error)
GetPendingUnstake is a free data retrieval call binding the contract method 0xadfd065f.
Solidity: function getPendingUnstake(uint256 requestId) view returns((address,address,uint256,uint256))
func (*StakingSession) GetPendingWithdrawal ¶
func (_Staking *StakingSession) GetPendingWithdrawal(requestId *big.Int) (WithdrawalRequest, error)
GetPendingWithdrawal is a free data retrieval call binding the contract method 0x38a3c878.
Solidity: function getPendingWithdrawal(uint256 requestId) view returns((address,uint40,uint256))
func (*StakingSession) GetPoolInfo ¶
func (_Staking *StakingSession) GetPoolInfo() (struct { TotalOperationPoolTokens *big.Int TotalStakingPoolTokens *big.Int TotalSlashingPoolTokens *big.Int }, error)
GetPoolInfo is a free data retrieval call binding the contract method 0x60246c88.
Solidity: function getPoolInfo() view returns(uint256 totalOperationPoolTokens, uint256 totalStakingPoolTokens, uint256 totalSlashingPoolTokens)
func (*StakingSession) GetPublicPool ¶
func (_Staking *StakingSession) GetPublicPool() (Node, error)
GetPublicPool is a free data retrieval call binding the contract method 0xc84c42a3.
Solidity: function getPublicPool() pure returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256,uint256,uint8))
func (*StakingSession) GetRoleAdmin ¶
func (_Staking *StakingSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*StakingSession) GetRoleMember ¶
func (_Staking *StakingSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*StakingSession) GetRoleMemberCount ¶
func (_Staking *StakingSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*StakingSession) GrantRole ¶
func (_Staking *StakingSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*StakingSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*StakingSession) Initialize ¶
func (_Staking *StakingSession) Initialize(chips common.Address, pauseAccount common.Address, oracleAccount common.Address, operatorAccount common.Address, isAlphaPhase_ bool, migrate bool) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x71b27f6b.
Solidity: function initialize(address chips, address pauseAccount, address oracleAccount, address operatorAccount, bool isAlphaPhase_, bool migrate) returns()
func (*StakingSession) IsAlphaPhase ¶
func (_Staking *StakingSession) IsAlphaPhase() (bool, error)
IsAlphaPhase is a free data retrieval call binding the contract method 0x69ff71f6.
Solidity: function isAlphaPhase() view returns(bool)
func (*StakingSession) IsSettlementPhase ¶
func (_Staking *StakingSession) IsSettlementPhase() (bool, error)
IsSettlementPhase is a free data retrieval call binding the contract method 0x2e75fd59.
Solidity: function isSettlementPhase() view returns(bool)
func (*StakingSession) MergeChips ¶
func (_Staking *StakingSession) MergeChips(chipIds []*big.Int) (*types.Transaction, error)
MergeChips is a paid mutator transaction binding the contract method 0xca91c816.
Solidity: function mergeChips(uint256[] chipIds) returns(uint256 newTokenId)
func (*StakingSession) Multicall ¶ added in v0.7.0
func (_Staking *StakingSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (*StakingSession) OPERATORROLE ¶ added in v0.7.0
func (_Staking *StakingSession) OPERATORROLE() ([32]byte, error)
OPERATORROLE is a free data retrieval call binding the contract method 0xf5b541a6.
Solidity: function OPERATOR_ROLE() view returns(bytes32)
func (*StakingSession) ORACLEROLE ¶
func (_Staking *StakingSession) ORACLEROLE() ([32]byte, error)
ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.
Solidity: function ORACLE_ROLE() view returns(bytes32)
func (*StakingSession) Online ¶ added in v0.7.0
func (_Staking *StakingSession) Online() (*types.Transaction, error)
Online is a paid mutator transaction binding the contract method 0x5cd9f87a.
Solidity: function online() returns()
func (*StakingSession) PAUSEROLE ¶
func (_Staking *StakingSession) PAUSEROLE() ([32]byte, error)
PAUSEROLE is a free data retrieval call binding the contract method 0x389ed267.
Solidity: function PAUSE_ROLE() view returns(bytes32)
func (*StakingSession) PAYMENTPROCESSOR ¶ added in v0.7.0
func (_Staking *StakingSession) PAYMENTPROCESSOR() (common.Address, error)
PAYMENTPROCESSOR is a free data retrieval call binding the contract method 0xaf2ae425.
Solidity: function PAYMENT_PROCESSOR() view returns(address)
func (*StakingSession) Pause ¶
func (_Staking *StakingSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*StakingSession) Paused ¶
func (_Staking *StakingSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*StakingSession) Register ¶ added in v0.7.0
func (_Staking *StakingSession) Register() (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x1aa3a008.
Solidity: function register() returns()
func (*StakingSession) RenounceRole ¶
func (_Staking *StakingSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()
func (*StakingSession) RequestUnstake ¶
func (_Staking *StakingSession) RequestUnstake(nodeAddr common.Address, chipIds []*big.Int) (*types.Transaction, error)
RequestUnstake is a paid mutator transaction binding the contract method 0xbcdd4190.
Solidity: function requestUnstake(address nodeAddr, uint256[] chipIds) returns(uint256 requestId)
func (*StakingSession) RequestWithdrawal ¶
func (_Staking *StakingSession) RequestWithdrawal(amount *big.Int) (*types.Transaction, error)
RequestWithdrawal is a paid mutator transaction binding the contract method 0x9ee679e8.
Solidity: function requestWithdrawal(uint256 amount) returns(uint256 requestId)
func (*StakingSession) RevokeDemotions ¶ added in v0.7.0
func (_Staking *StakingSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIdsToRevoke []*big.Int) (*types.Transaction, error)
RevokeDemotions is a paid mutator transaction binding the contract method 0x6d623207.
Solidity: function revokeDemotions(address nodeAddr, uint256 epoch, uint256[] demotionIdsToRevoke) returns()
func (*StakingSession) RevokeRole ¶
func (_Staking *StakingSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*StakingSession) STAKEUNBONDINGPERIOD ¶
func (_Staking *StakingSession) STAKEUNBONDINGPERIOD() (*big.Int, error)
STAKEUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x2606a44a.
Solidity: function STAKE_UNBONDING_PERIOD() view returns(uint256)
func (*StakingSession) SetNodeStatus ¶ added in v0.7.0
func (_Staking *StakingSession) SetNodeStatus(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
SetNodeStatus is a paid mutator transaction binding the contract method 0x03b0d316.
Solidity: function setNodeStatus(address[] nodeAddrs, uint8[] status) returns()
func (*StakingSession) SetNodeStatusByOperator ¶ added in v0.7.0
func (_Staking *StakingSession) SetNodeStatusByOperator(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
SetNodeStatusByOperator is a paid mutator transaction binding the contract method 0x9399a898.
Solidity: function setNodeStatusByOperator(address[] nodeAddrs, uint8[] status) returns()
func (*StakingSession) SetSettlementPhase ¶
func (_Staking *StakingSession) SetSettlementPhase(enabled bool) (*types.Transaction, error)
SetSettlementPhase is a paid mutator transaction binding the contract method 0x4e7a1286.
Solidity: function setSettlementPhase(bool enabled) returns()
func (*StakingSession) SetTaxRateBasisPoints4Node ¶
func (_Staking *StakingSession) SetTaxRateBasisPoints4Node(taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4Node is a paid mutator transaction binding the contract method 0xc7057c1f.
Solidity: function setTaxRateBasisPoints4Node(uint64 taxRateBasisPoints) returns()
func (*StakingSession) SetTaxRateBasisPoints4PublicPool ¶
func (_Staking *StakingSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.
Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()
func (*StakingSession) Stake ¶
func (_Staking *StakingSession) Stake(nodeAddr common.Address) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x26476204.
Solidity: function stake(address nodeAddr) payable returns(uint256 tokenId)
func (*StakingSession) StakeToPublicPool ¶
func (_Staking *StakingSession) StakeToPublicPool(nodeAddr common.Address) (*types.Transaction, error)
StakeToPublicPool is a paid mutator transaction binding the contract method 0x379f8100.
Solidity: function stakeToPublicPool(address nodeAddr) payable returns(uint256 tokenId)
func (*StakingSession) SubmitDemotions ¶ added in v0.7.0
func (_Staking *StakingSession) SubmitDemotions(epoch *big.Int, nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
SubmitDemotions is a paid mutator transaction binding the contract method 0x287e9ac8.
Solidity: function submitDemotions(uint256 epoch, address[] nodeAddrs, string[] reasons, address[] reporters) returns()
func (*StakingSession) SupportsInterface ¶
func (_Staking *StakingSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*StakingSession) TREASURY ¶
func (_Staking *StakingSession) TREASURY() (common.Address, error)
TREASURY is a free data retrieval call binding the contract method 0x2d2c5565.
Solidity: function TREASURY() view returns(address)
func (*StakingSession) Unpause ¶
func (_Staking *StakingSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*StakingSession) UpdateNode ¶
func (_Staking *StakingSession) UpdateNode(name string, description string) (*types.Transaction, error)
UpdateNode is a paid mutator transaction binding the contract method 0x517fb203.
Solidity: function updateNode(string name, string description) returns()
func (*StakingSession) Version ¶ added in v0.7.0
func (_Staking *StakingSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(string)
func (*StakingSession) Withdraw2Treasury ¶
func (_Staking *StakingSession) Withdraw2Treasury() (*types.Transaction, error)
Withdraw2Treasury is a paid mutator transaction binding the contract method 0x4a7dfc90.
Solidity: function withdraw2Treasury() returns()
type StakingTransactor ¶
type StakingTransactor struct {
// contains filtered or unexported fields
}
StakingTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStakingTransactor ¶
func NewStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingTransactor, error)
NewStakingTransactor creates a new write-only instance of Staking, bound to a specific deployed contract.
func (*StakingTransactor) ClaimUnstake ¶
func (_Staking *StakingTransactor) ClaimUnstake(opts *bind.TransactOpts, requestIds []*big.Int) (*types.Transaction, error)
ClaimUnstake is a paid mutator transaction binding the contract method 0x04a4fb10.
Solidity: function claimUnstake(uint256[] requestIds) returns()
func (*StakingTransactor) ClaimWithdrawal ¶
func (_Staking *StakingTransactor) ClaimWithdrawal(opts *bind.TransactOpts, requestIds []*big.Int) (*types.Transaction, error)
ClaimWithdrawal is a paid mutator transaction binding the contract method 0x3c256b98.
Solidity: function claimWithdrawal(uint256[] requestIds) returns()
func (*StakingTransactor) CommitSlashing ¶ added in v0.7.0
func (_Staking *StakingTransactor) CommitSlashing(opts *bind.TransactOpts, nodeAddr common.Address, epoch *big.Int) (*types.Transaction, error)
CommitSlashing is a paid mutator transaction binding the contract method 0xbe168625.
Solidity: function commitSlashing(address nodeAddr, uint256 epoch) returns()
func (*StakingTransactor) CreateNode ¶
func (_Staking *StakingTransactor) CreateNode(opts *bind.TransactOpts, name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)
CreateNode is a paid mutator transaction binding the contract method 0x96531623.
Solidity: function createNode(string name, string description, uint64 taxRateBasisPoints, bool publicGood) payable returns()
func (*StakingTransactor) Deposit ¶
func (_Staking *StakingTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*StakingTransactor) DistributeRewards ¶
func (_Staking *StakingTransactor) DistributeRewards(opts *bind.TransactOpts, epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, stakingRewards []*big.Int, requestCounts []*big.Int, publicPoolRewards *big.Int) (*types.Transaction, error)
DistributeRewards is a paid mutator transaction binding the contract method 0x8e3e6174.
Solidity: function distributeRewards(uint256[3] epochInfo, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] requestCounts, uint256 publicPoolRewards) payable returns()
func (*StakingTransactor) Exit ¶ added in v0.7.0
func (_Staking *StakingTransactor) Exit(opts *bind.TransactOpts) (*types.Transaction, error)
Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.
Solidity: function exit() returns()
func (*StakingTransactor) GrantRole ¶
func (_Staking *StakingTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*StakingTransactor) Initialize ¶
func (_Staking *StakingTransactor) Initialize(opts *bind.TransactOpts, chips common.Address, pauseAccount common.Address, oracleAccount common.Address, operatorAccount common.Address, isAlphaPhase_ bool, migrate bool) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x71b27f6b.
Solidity: function initialize(address chips, address pauseAccount, address oracleAccount, address operatorAccount, bool isAlphaPhase_, bool migrate) returns()
func (*StakingTransactor) MergeChips ¶
func (_Staking *StakingTransactor) MergeChips(opts *bind.TransactOpts, chipIds []*big.Int) (*types.Transaction, error)
MergeChips is a paid mutator transaction binding the contract method 0xca91c816.
Solidity: function mergeChips(uint256[] chipIds) returns(uint256 newTokenId)
func (*StakingTransactor) Multicall ¶ added in v0.7.0
func (_Staking *StakingTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (*StakingTransactor) Online ¶ added in v0.7.0
func (_Staking *StakingTransactor) Online(opts *bind.TransactOpts) (*types.Transaction, error)
Online is a paid mutator transaction binding the contract method 0x5cd9f87a.
Solidity: function online() returns()
func (*StakingTransactor) Pause ¶
func (_Staking *StakingTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*StakingTransactor) Register ¶ added in v0.7.0
func (_Staking *StakingTransactor) Register(opts *bind.TransactOpts) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x1aa3a008.
Solidity: function register() returns()
func (*StakingTransactor) RenounceRole ¶
func (_Staking *StakingTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()
func (*StakingTransactor) RequestUnstake ¶
func (_Staking *StakingTransactor) RequestUnstake(opts *bind.TransactOpts, nodeAddr common.Address, chipIds []*big.Int) (*types.Transaction, error)
RequestUnstake is a paid mutator transaction binding the contract method 0xbcdd4190.
Solidity: function requestUnstake(address nodeAddr, uint256[] chipIds) returns(uint256 requestId)
func (*StakingTransactor) RequestWithdrawal ¶
func (_Staking *StakingTransactor) RequestWithdrawal(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
RequestWithdrawal is a paid mutator transaction binding the contract method 0x9ee679e8.
Solidity: function requestWithdrawal(uint256 amount) returns(uint256 requestId)
func (*StakingTransactor) RevokeDemotions ¶ added in v0.7.0
func (_Staking *StakingTransactor) RevokeDemotions(opts *bind.TransactOpts, nodeAddr common.Address, epoch *big.Int, demotionIdsToRevoke []*big.Int) (*types.Transaction, error)
RevokeDemotions is a paid mutator transaction binding the contract method 0x6d623207.
Solidity: function revokeDemotions(address nodeAddr, uint256 epoch, uint256[] demotionIdsToRevoke) returns()
func (*StakingTransactor) RevokeRole ¶
func (_Staking *StakingTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*StakingTransactor) SetNodeStatus ¶ added in v0.7.0
func (_Staking *StakingTransactor) SetNodeStatus(opts *bind.TransactOpts, nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
SetNodeStatus is a paid mutator transaction binding the contract method 0x03b0d316.
Solidity: function setNodeStatus(address[] nodeAddrs, uint8[] status) returns()
func (*StakingTransactor) SetNodeStatusByOperator ¶ added in v0.7.0
func (_Staking *StakingTransactor) SetNodeStatusByOperator(opts *bind.TransactOpts, nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
SetNodeStatusByOperator is a paid mutator transaction binding the contract method 0x9399a898.
Solidity: function setNodeStatusByOperator(address[] nodeAddrs, uint8[] status) returns()
func (*StakingTransactor) SetSettlementPhase ¶
func (_Staking *StakingTransactor) SetSettlementPhase(opts *bind.TransactOpts, enabled bool) (*types.Transaction, error)
SetSettlementPhase is a paid mutator transaction binding the contract method 0x4e7a1286.
Solidity: function setSettlementPhase(bool enabled) returns()
func (*StakingTransactor) SetTaxRateBasisPoints4Node ¶
func (_Staking *StakingTransactor) SetTaxRateBasisPoints4Node(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4Node is a paid mutator transaction binding the contract method 0xc7057c1f.
Solidity: function setTaxRateBasisPoints4Node(uint64 taxRateBasisPoints) returns()
func (*StakingTransactor) SetTaxRateBasisPoints4PublicPool ¶
func (_Staking *StakingTransactor) SetTaxRateBasisPoints4PublicPool(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.
Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()
func (*StakingTransactor) Stake ¶
func (_Staking *StakingTransactor) Stake(opts *bind.TransactOpts, nodeAddr common.Address) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x26476204.
Solidity: function stake(address nodeAddr) payable returns(uint256 tokenId)
func (*StakingTransactor) StakeToPublicPool ¶
func (_Staking *StakingTransactor) StakeToPublicPool(opts *bind.TransactOpts, nodeAddr common.Address) (*types.Transaction, error)
StakeToPublicPool is a paid mutator transaction binding the contract method 0x379f8100.
Solidity: function stakeToPublicPool(address nodeAddr) payable returns(uint256 tokenId)
func (*StakingTransactor) SubmitDemotions ¶ added in v0.7.0
func (_Staking *StakingTransactor) SubmitDemotions(opts *bind.TransactOpts, epoch *big.Int, nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
SubmitDemotions is a paid mutator transaction binding the contract method 0x287e9ac8.
Solidity: function submitDemotions(uint256 epoch, address[] nodeAddrs, string[] reasons, address[] reporters) returns()
func (*StakingTransactor) Unpause ¶
func (_Staking *StakingTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*StakingTransactor) UpdateNode ¶
func (_Staking *StakingTransactor) UpdateNode(opts *bind.TransactOpts, name string, description string) (*types.Transaction, error)
UpdateNode is a paid mutator transaction binding the contract method 0x517fb203.
Solidity: function updateNode(string name, string description) returns()
func (*StakingTransactor) Withdraw2Treasury ¶
func (_Staking *StakingTransactor) Withdraw2Treasury(opts *bind.TransactOpts) (*types.Transaction, error)
Withdraw2Treasury is a paid mutator transaction binding the contract method 0x4a7dfc90.
Solidity: function withdraw2Treasury() returns()
type StakingTransactorRaw ¶
type StakingTransactorRaw struct {
Contract *StakingTransactor // Generic write-only contract binding to access the raw methods on
}
StakingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StakingTransactorRaw) Transact ¶
func (_Staking *StakingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakingTransactorRaw) Transfer ¶
func (_Staking *StakingTransactorRaw) 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 StakingTransactorSession ¶
type StakingTransactorSession struct { Contract *StakingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StakingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StakingTransactorSession) ClaimUnstake ¶
func (_Staking *StakingTransactorSession) ClaimUnstake(requestIds []*big.Int) (*types.Transaction, error)
ClaimUnstake is a paid mutator transaction binding the contract method 0x04a4fb10.
Solidity: function claimUnstake(uint256[] requestIds) returns()
func (*StakingTransactorSession) ClaimWithdrawal ¶
func (_Staking *StakingTransactorSession) ClaimWithdrawal(requestIds []*big.Int) (*types.Transaction, error)
ClaimWithdrawal is a paid mutator transaction binding the contract method 0x3c256b98.
Solidity: function claimWithdrawal(uint256[] requestIds) returns()
func (*StakingTransactorSession) CommitSlashing ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) CommitSlashing(nodeAddr common.Address, epoch *big.Int) (*types.Transaction, error)
CommitSlashing is a paid mutator transaction binding the contract method 0xbe168625.
Solidity: function commitSlashing(address nodeAddr, uint256 epoch) returns()
func (*StakingTransactorSession) CreateNode ¶
func (_Staking *StakingTransactorSession) CreateNode(name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)
CreateNode is a paid mutator transaction binding the contract method 0x96531623.
Solidity: function createNode(string name, string description, uint64 taxRateBasisPoints, bool publicGood) payable returns()
func (*StakingTransactorSession) Deposit ¶
func (_Staking *StakingTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*StakingTransactorSession) DistributeRewards ¶
func (_Staking *StakingTransactorSession) DistributeRewards(epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, stakingRewards []*big.Int, requestCounts []*big.Int, publicPoolRewards *big.Int) (*types.Transaction, error)
DistributeRewards is a paid mutator transaction binding the contract method 0x8e3e6174.
Solidity: function distributeRewards(uint256[3] epochInfo, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] requestCounts, uint256 publicPoolRewards) payable returns()
func (*StakingTransactorSession) Exit ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) Exit() (*types.Transaction, error)
Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.
Solidity: function exit() returns()
func (*StakingTransactorSession) GrantRole ¶
func (_Staking *StakingTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*StakingTransactorSession) Initialize ¶
func (_Staking *StakingTransactorSession) Initialize(chips common.Address, pauseAccount common.Address, oracleAccount common.Address, operatorAccount common.Address, isAlphaPhase_ bool, migrate bool) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x71b27f6b.
Solidity: function initialize(address chips, address pauseAccount, address oracleAccount, address operatorAccount, bool isAlphaPhase_, bool migrate) returns()
func (*StakingTransactorSession) MergeChips ¶
func (_Staking *StakingTransactorSession) MergeChips(chipIds []*big.Int) (*types.Transaction, error)
MergeChips is a paid mutator transaction binding the contract method 0xca91c816.
Solidity: function mergeChips(uint256[] chipIds) returns(uint256 newTokenId)
func (*StakingTransactorSession) Multicall ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (*StakingTransactorSession) Online ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) Online() (*types.Transaction, error)
Online is a paid mutator transaction binding the contract method 0x5cd9f87a.
Solidity: function online() returns()
func (*StakingTransactorSession) Pause ¶
func (_Staking *StakingTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*StakingTransactorSession) Register ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) Register() (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x1aa3a008.
Solidity: function register() returns()
func (*StakingTransactorSession) RenounceRole ¶
func (_Staking *StakingTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()
func (*StakingTransactorSession) RequestUnstake ¶
func (_Staking *StakingTransactorSession) RequestUnstake(nodeAddr common.Address, chipIds []*big.Int) (*types.Transaction, error)
RequestUnstake is a paid mutator transaction binding the contract method 0xbcdd4190.
Solidity: function requestUnstake(address nodeAddr, uint256[] chipIds) returns(uint256 requestId)
func (*StakingTransactorSession) RequestWithdrawal ¶
func (_Staking *StakingTransactorSession) RequestWithdrawal(amount *big.Int) (*types.Transaction, error)
RequestWithdrawal is a paid mutator transaction binding the contract method 0x9ee679e8.
Solidity: function requestWithdrawal(uint256 amount) returns(uint256 requestId)
func (*StakingTransactorSession) RevokeDemotions ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIdsToRevoke []*big.Int) (*types.Transaction, error)
RevokeDemotions is a paid mutator transaction binding the contract method 0x6d623207.
Solidity: function revokeDemotions(address nodeAddr, uint256 epoch, uint256[] demotionIdsToRevoke) returns()
func (*StakingTransactorSession) RevokeRole ¶
func (_Staking *StakingTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*StakingTransactorSession) SetNodeStatus ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) SetNodeStatus(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
SetNodeStatus is a paid mutator transaction binding the contract method 0x03b0d316.
Solidity: function setNodeStatus(address[] nodeAddrs, uint8[] status) returns()
func (*StakingTransactorSession) SetNodeStatusByOperator ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) SetNodeStatusByOperator(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
SetNodeStatusByOperator is a paid mutator transaction binding the contract method 0x9399a898.
Solidity: function setNodeStatusByOperator(address[] nodeAddrs, uint8[] status) returns()
func (*StakingTransactorSession) SetSettlementPhase ¶
func (_Staking *StakingTransactorSession) SetSettlementPhase(enabled bool) (*types.Transaction, error)
SetSettlementPhase is a paid mutator transaction binding the contract method 0x4e7a1286.
Solidity: function setSettlementPhase(bool enabled) returns()
func (*StakingTransactorSession) SetTaxRateBasisPoints4Node ¶
func (_Staking *StakingTransactorSession) SetTaxRateBasisPoints4Node(taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4Node is a paid mutator transaction binding the contract method 0xc7057c1f.
Solidity: function setTaxRateBasisPoints4Node(uint64 taxRateBasisPoints) returns()
func (*StakingTransactorSession) SetTaxRateBasisPoints4PublicPool ¶
func (_Staking *StakingTransactorSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.
Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()
func (*StakingTransactorSession) Stake ¶
func (_Staking *StakingTransactorSession) Stake(nodeAddr common.Address) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x26476204.
Solidity: function stake(address nodeAddr) payable returns(uint256 tokenId)
func (*StakingTransactorSession) StakeToPublicPool ¶
func (_Staking *StakingTransactorSession) StakeToPublicPool(nodeAddr common.Address) (*types.Transaction, error)
StakeToPublicPool is a paid mutator transaction binding the contract method 0x379f8100.
Solidity: function stakeToPublicPool(address nodeAddr) payable returns(uint256 tokenId)
func (*StakingTransactorSession) SubmitDemotions ¶ added in v0.7.0
func (_Staking *StakingTransactorSession) SubmitDemotions(epoch *big.Int, nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
SubmitDemotions is a paid mutator transaction binding the contract method 0x287e9ac8.
Solidity: function submitDemotions(uint256 epoch, address[] nodeAddrs, string[] reasons, address[] reporters) returns()
func (*StakingTransactorSession) Unpause ¶
func (_Staking *StakingTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*StakingTransactorSession) UpdateNode ¶
func (_Staking *StakingTransactorSession) UpdateNode(name string, description string) (*types.Transaction, error)
UpdateNode is a paid mutator transaction binding the contract method 0x517fb203.
Solidity: function updateNode(string name, string description) returns()
func (*StakingTransactorSession) Withdraw2Treasury ¶
func (_Staking *StakingTransactorSession) Withdraw2Treasury() (*types.Transaction, error)
Withdraw2Treasury is a paid mutator transaction binding the contract method 0x4a7dfc90.
Solidity: function withdraw2Treasury() returns()
type StakingUnpaused ¶
type StakingUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
StakingUnpaused represents a Unpaused event raised by the Staking contract.
type StakingUnpausedIterator ¶
type StakingUnpausedIterator struct { Event *StakingUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Staking contract.
func (*StakingUnpausedIterator) Close ¶
func (it *StakingUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingUnpausedIterator) Error ¶
func (it *StakingUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingUnpausedIterator) Next ¶
func (it *StakingUnpausedIterator) 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.