Documentation ¶
Index ¶
- Constants
- Variables
- func IsStakingV2Deployed(chainID *big.Int, blockNumber *big.Int, transactionIndex uint) bool
- type ChipInfo
- type Chips
- type ChipsApproval
- type ChipsApprovalForAll
- type ChipsApprovalForAllIterator
- type ChipsApprovalIterator
- type ChipsCaller
- func (_Chips *ChipsCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_Chips *ChipsCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_Chips *ChipsCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)
- func (_Chips *ChipsCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Chips *ChipsCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_Chips *ChipsCaller) StakingContract(opts *bind.CallOpts) (common.Address, error)
- func (_Chips *ChipsCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_Chips *ChipsCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Chips *ChipsCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)
- func (_Chips *ChipsCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type ChipsCallerRaw
- type ChipsCallerSession
- func (_Chips *ChipsCallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_Chips *ChipsCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_Chips *ChipsCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_Chips *ChipsCallerSession) Name() (string, error)
- func (_Chips *ChipsCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_Chips *ChipsCallerSession) StakingContract() (common.Address, error)
- func (_Chips *ChipsCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Chips *ChipsCallerSession) Symbol() (string, error)
- func (_Chips *ChipsCallerSession) TokenURI(tokenId *big.Int) (string, error)
- func (_Chips *ChipsCallerSession) TotalSupply() (*big.Int, error)
- type ChipsFilterer
- func (_Chips *ChipsFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, ...) (*ChipsApprovalIterator, error)
- func (_Chips *ChipsFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ChipsApprovalForAllIterator, error)
- func (_Chips *ChipsFilterer) FilterInitialized(opts *bind.FilterOpts) (*ChipsInitializedIterator, error)
- func (_Chips *ChipsFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, ...) (*ChipsTransferIterator, error)
- func (_Chips *ChipsFilterer) ParseApproval(log types.Log) (*ChipsApproval, error)
- func (_Chips *ChipsFilterer) ParseApprovalForAll(log types.Log) (*ChipsApprovalForAll, error)
- func (_Chips *ChipsFilterer) ParseInitialized(log types.Log) (*ChipsInitialized, error)
- func (_Chips *ChipsFilterer) ParseTransfer(log types.Log) (*ChipsTransfer, error)
- func (_Chips *ChipsFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ChipsApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_Chips *ChipsFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ChipsApprovalForAll, owner []common.Address, ...) (event.Subscription, error)
- func (_Chips *ChipsFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ChipsInitialized) (event.Subscription, error)
- func (_Chips *ChipsFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ChipsTransfer, from []common.Address, ...) (event.Subscription, error)
- type ChipsInitialized
- type ChipsInitializedIterator
- type ChipsRaw
- func (_Chips *ChipsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Chips *ChipsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Chips *ChipsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ChipsSession
- func (_Chips *ChipsSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_Chips *ChipsSession) Burn(tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsSession) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_Chips *ChipsSession) Initialize(name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)
- func (_Chips *ChipsSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_Chips *ChipsSession) Mint(account common.Address) (*types.Transaction, error)
- func (_Chips *ChipsSession) MintBatch(to common.Address, batchSize *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsSession) Name() (string, error)
- func (_Chips *ChipsSession) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_Chips *ChipsSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_Chips *ChipsSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_Chips *ChipsSession) StakingContract() (common.Address, error)
- func (_Chips *ChipsSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Chips *ChipsSession) Symbol() (string, error)
- func (_Chips *ChipsSession) TokenURI(tokenId *big.Int) (string, error)
- func (_Chips *ChipsSession) TotalSupply() (*big.Int, error)
- func (_Chips *ChipsSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- type ChipsTokenMetadata
- type ChipsTransactor
- func (_Chips *ChipsTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) Initialize(opts *bind.TransactOpts, name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) Mint(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) MintBatch(opts *bind.TransactOpts, to common.Address, batchSize *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
- func (_Chips *ChipsTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type ChipsTransactorRaw
- type ChipsTransactorSession
- func (_Chips *ChipsTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) Initialize(name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) Mint(account common.Address) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) MintBatch(to common.Address, batchSize *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_Chips *ChipsTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- type ChipsTransfer
- type ChipsTransferIterator
- type Events
- type EventsCaller
- type EventsCallerRaw
- type EventsCallerSession
- type EventsChipsMerged
- type EventsChipsMergedIterator
- type EventsDemotionRevoked
- type EventsDemotionRevokedIterator
- type EventsDemotionSubmitted
- type EventsDemotionSubmittedIterator
- type EventsDeposited
- type EventsDepositedIterator
- type EventsFilterer
- func (_Events *EventsFilterer) FilterChipsMerged(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, ...) (*EventsChipsMergedIterator, error)
- func (_Events *EventsFilterer) FilterDemotionRevoked(opts *bind.FilterOpts, demotionId []*big.Int) (*EventsDemotionRevokedIterator, error)
- func (_Events *EventsFilterer) FilterDemotionSubmitted(opts *bind.FilterOpts, epoch []*big.Int, nodeAddr []common.Address, ...) (*EventsDemotionSubmittedIterator, error)
- func (_Events *EventsFilterer) FilterDeposited(opts *bind.FilterOpts, nodeAddr []common.Address, amount []*big.Int) (*EventsDepositedIterator, error)
- func (_Events *EventsFilterer) FilterNodeCreated(opts *bind.FilterOpts, nodeId []*big.Int, nodeAddr []common.Address) (*EventsNodeCreatedIterator, error)
- func (_Events *EventsFilterer) FilterNodeStatusChanged(opts *bind.FilterOpts, nodeAddr []common.Address, curStatus []uint8, ...) (*EventsNodeStatusChangedIterator, error)
- func (_Events *EventsFilterer) FilterNodeTaxRateBasisPointsSet(opts *bind.FilterOpts, nodeAddr []common.Address, taxRateBasisPoints []uint64) (*EventsNodeTaxRateBasisPointsSetIterator, error)
- func (_Events *EventsFilterer) FilterNodeUpdated(opts *bind.FilterOpts, nodeAddr []common.Address) (*EventsNodeUpdatedIterator, error)
- func (_Events *EventsFilterer) FilterPublicGoodRewardDistributed(opts *bind.FilterOpts, epoch []*big.Int) (*EventsPublicGoodRewardDistributedIterator, error)
- func (_Events *EventsFilterer) FilterPublicPoolTaxRateBasisPointsSet(opts *bind.FilterOpts, taxRateBasisPoints []uint64) (*EventsPublicPoolTaxRateBasisPointsSetIterator, error)
- func (_Events *EventsFilterer) FilterRewardDistributed(opts *bind.FilterOpts, epoch []*big.Int) (*EventsRewardDistributedIterator, error)
- func (_Events *EventsFilterer) FilterSlashCommitted(opts *bind.FilterOpts) (*EventsSlashCommittedIterator, error)
- func (_Events *EventsFilterer) FilterSlashRecorded(opts *bind.FilterOpts, nodeAddr []common.Address, epoch []*big.Int) (*EventsSlashRecordedIterator, error)
- func (_Events *EventsFilterer) FilterSlashRevoked(opts *bind.FilterOpts) (*EventsSlashRevokedIterator, error)
- func (_Events *EventsFilterer) FilterStaked(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, ...) (*EventsStakedIterator, error)
- func (_Events *EventsFilterer) FilterUnstakeClaimed(opts *bind.FilterOpts, requestId []*big.Int, nodeAddr []common.Address, ...) (*EventsUnstakeClaimedIterator, error)
- func (_Events *EventsFilterer) FilterUnstakeRequested(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, ...) (*EventsUnstakeRequestedIterator, error)
- func (_Events *EventsFilterer) FilterWithdrawRequested(opts *bind.FilterOpts, nodeAddr []common.Address, amount []*big.Int, ...) (*EventsWithdrawRequestedIterator, error)
- func (_Events *EventsFilterer) FilterWithdrawalClaimed(opts *bind.FilterOpts, requestId []*big.Int, nodeAddr []common.Address, ...) (*EventsWithdrawalClaimedIterator, error)
- func (_Events *EventsFilterer) ParseChipsMerged(log types.Log) (*EventsChipsMerged, error)
- func (_Events *EventsFilterer) ParseDemotionRevoked(log types.Log) (*EventsDemotionRevoked, error)
- func (_Events *EventsFilterer) ParseDemotionSubmitted(log types.Log) (*EventsDemotionSubmitted, error)
- func (_Events *EventsFilterer) ParseDeposited(log types.Log) (*EventsDeposited, error)
- func (_Events *EventsFilterer) ParseNodeCreated(log types.Log) (*EventsNodeCreated, error)
- func (_Events *EventsFilterer) ParseNodeStatusChanged(log types.Log) (*EventsNodeStatusChanged, error)
- func (_Events *EventsFilterer) ParseNodeTaxRateBasisPointsSet(log types.Log) (*EventsNodeTaxRateBasisPointsSet, error)
- func (_Events *EventsFilterer) ParseNodeUpdated(log types.Log) (*EventsNodeUpdated, error)
- func (_Events *EventsFilterer) ParsePublicGoodRewardDistributed(log types.Log) (*EventsPublicGoodRewardDistributed, error)
- func (_Events *EventsFilterer) ParsePublicPoolTaxRateBasisPointsSet(log types.Log) (*EventsPublicPoolTaxRateBasisPointsSet, error)
- func (_Events *EventsFilterer) ParseRewardDistributed(log types.Log) (*EventsRewardDistributed, error)
- func (_Events *EventsFilterer) ParseSlashCommitted(log types.Log) (*EventsSlashCommitted, error)
- func (_Events *EventsFilterer) ParseSlashRecorded(log types.Log) (*EventsSlashRecorded, error)
- func (_Events *EventsFilterer) ParseSlashRevoked(log types.Log) (*EventsSlashRevoked, error)
- func (_Events *EventsFilterer) ParseStaked(log types.Log) (*EventsStaked, error)
- func (_Events *EventsFilterer) ParseUnstakeClaimed(log types.Log) (*EventsUnstakeClaimed, error)
- func (_Events *EventsFilterer) ParseUnstakeRequested(log types.Log) (*EventsUnstakeRequested, error)
- func (_Events *EventsFilterer) ParseWithdrawRequested(log types.Log) (*EventsWithdrawRequested, error)
- func (_Events *EventsFilterer) ParseWithdrawalClaimed(log types.Log) (*EventsWithdrawalClaimed, error)
- func (_Events *EventsFilterer) WatchChipsMerged(opts *bind.WatchOpts, sink chan<- *EventsChipsMerged, user []common.Address, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchDemotionRevoked(opts *bind.WatchOpts, sink chan<- *EventsDemotionRevoked, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchDemotionSubmitted(opts *bind.WatchOpts, sink chan<- *EventsDemotionSubmitted, epoch []*big.Int, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *EventsDeposited, nodeAddr []common.Address, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchNodeCreated(opts *bind.WatchOpts, sink chan<- *EventsNodeCreated, nodeId []*big.Int, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchNodeStatusChanged(opts *bind.WatchOpts, sink chan<- *EventsNodeStatusChanged, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchNodeTaxRateBasisPointsSet(opts *bind.WatchOpts, sink chan<- *EventsNodeTaxRateBasisPointsSet, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchNodeUpdated(opts *bind.WatchOpts, sink chan<- *EventsNodeUpdated, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchPublicGoodRewardDistributed(opts *bind.WatchOpts, sink chan<- *EventsPublicGoodRewardDistributed, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchPublicPoolTaxRateBasisPointsSet(opts *bind.WatchOpts, sink chan<- *EventsPublicPoolTaxRateBasisPointsSet, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchRewardDistributed(opts *bind.WatchOpts, sink chan<- *EventsRewardDistributed, epoch []*big.Int) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchSlashCommitted(opts *bind.WatchOpts, sink chan<- *EventsSlashCommitted) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchSlashRecorded(opts *bind.WatchOpts, sink chan<- *EventsSlashRecorded, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchSlashRevoked(opts *bind.WatchOpts, sink chan<- *EventsSlashRevoked) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *EventsStaked, user []common.Address, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchUnstakeClaimed(opts *bind.WatchOpts, sink chan<- *EventsUnstakeClaimed, requestId []*big.Int, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchUnstakeRequested(opts *bind.WatchOpts, sink chan<- *EventsUnstakeRequested, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchWithdrawRequested(opts *bind.WatchOpts, sink chan<- *EventsWithdrawRequested, ...) (event.Subscription, error)
- func (_Events *EventsFilterer) WatchWithdrawalClaimed(opts *bind.WatchOpts, sink chan<- *EventsWithdrawalClaimed, ...) (event.Subscription, error)
- type EventsNodeCreated
- type EventsNodeCreatedIterator
- type EventsNodeStatusChanged
- type EventsNodeStatusChangedIterator
- type EventsNodeTaxRateBasisPointsSet
- type EventsNodeTaxRateBasisPointsSetIterator
- type EventsNodeUpdated
- type EventsNodeUpdatedIterator
- type EventsPublicGoodRewardDistributed
- type EventsPublicGoodRewardDistributedIterator
- type EventsPublicPoolTaxRateBasisPointsSet
- type EventsPublicPoolTaxRateBasisPointsSetIterator
- type EventsRaw
- func (_Events *EventsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Events *EventsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Events *EventsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EventsRewardDistributed
- type EventsRewardDistributedIterator
- type EventsSession
- type EventsSlashCommitted
- type EventsSlashCommittedIterator
- type EventsSlashRecorded
- type EventsSlashRecordedIterator
- type EventsSlashRevoked
- type EventsSlashRevokedIterator
- type EventsStaked
- type EventsStakedIterator
- type EventsTransactor
- type EventsTransactorRaw
- type EventsTransactorSession
- type EventsUnstakeClaimed
- type EventsUnstakeClaimedIterator
- type EventsUnstakeRequested
- type EventsUnstakeRequestedIterator
- type EventsWithdrawRequested
- type EventsWithdrawRequestedIterator
- type EventsWithdrawalClaimed
- type EventsWithdrawalClaimedIterator
- type NetworkParams
- type NetworkParamsCaller
- func (_NetworkParams *NetworkParamsCaller) ADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_NetworkParams *NetworkParamsCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_NetworkParams *NetworkParamsCaller) GetParams(opts *bind.CallOpts, epoch uint64) (string, error)
- func (_NetworkParams *NetworkParamsCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_NetworkParams *NetworkParamsCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_NetworkParams *NetworkParamsCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_NetworkParams *NetworkParamsCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_NetworkParams *NetworkParamsCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- type NetworkParamsCallerRaw
- type NetworkParamsCallerSession
- func (_NetworkParams *NetworkParamsCallerSession) ADMINROLE() ([32]byte, error)
- func (_NetworkParams *NetworkParamsCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_NetworkParams *NetworkParamsCallerSession) GetParams(epoch uint64) (string, error)
- func (_NetworkParams *NetworkParamsCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_NetworkParams *NetworkParamsCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_NetworkParams *NetworkParamsCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_NetworkParams *NetworkParamsCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_NetworkParams *NetworkParamsCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- type NetworkParamsFilterer
- func (_NetworkParams *NetworkParamsFilterer) FilterInitialized(opts *bind.FilterOpts) (*NetworkParamsInitializedIterator, error)
- func (_NetworkParams *NetworkParamsFilterer) FilterParamsSet(opts *bind.FilterOpts, epoch []uint64) (*NetworkParamsParamsSetIterator, error)
- func (_NetworkParams *NetworkParamsFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*NetworkParamsRoleAdminChangedIterator, error)
- func (_NetworkParams *NetworkParamsFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*NetworkParamsRoleGrantedIterator, error)
- func (_NetworkParams *NetworkParamsFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*NetworkParamsRoleRevokedIterator, error)
- func (_NetworkParams *NetworkParamsFilterer) ParseInitialized(log types.Log) (*NetworkParamsInitialized, error)
- func (_NetworkParams *NetworkParamsFilterer) ParseParamsSet(log types.Log) (*NetworkParamsParamsSet, error)
- func (_NetworkParams *NetworkParamsFilterer) ParseRoleAdminChanged(log types.Log) (*NetworkParamsRoleAdminChanged, error)
- func (_NetworkParams *NetworkParamsFilterer) ParseRoleGranted(log types.Log) (*NetworkParamsRoleGranted, error)
- func (_NetworkParams *NetworkParamsFilterer) ParseRoleRevoked(log types.Log) (*NetworkParamsRoleRevoked, error)
- func (_NetworkParams *NetworkParamsFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *NetworkParamsInitialized) (event.Subscription, error)
- func (_NetworkParams *NetworkParamsFilterer) WatchParamsSet(opts *bind.WatchOpts, sink chan<- *NetworkParamsParamsSet, epoch []uint64) (event.Subscription, error)
- func (_NetworkParams *NetworkParamsFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *NetworkParamsRoleAdminChanged, ...) (event.Subscription, error)
- func (_NetworkParams *NetworkParamsFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *NetworkParamsRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_NetworkParams *NetworkParamsFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *NetworkParamsRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- type NetworkParamsInitialized
- type NetworkParamsInitializedIterator
- type NetworkParamsParamsSet
- type NetworkParamsParamsSetIterator
- type NetworkParamsRaw
- func (_NetworkParams *NetworkParamsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_NetworkParams *NetworkParamsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type NetworkParamsRoleAdminChanged
- type NetworkParamsRoleAdminChangedIterator
- type NetworkParamsRoleGranted
- type NetworkParamsRoleGrantedIterator
- type NetworkParamsRoleRevoked
- type NetworkParamsRoleRevokedIterator
- type NetworkParamsSession
- func (_NetworkParams *NetworkParamsSession) ADMINROLE() ([32]byte, error)
- func (_NetworkParams *NetworkParamsSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_NetworkParams *NetworkParamsSession) GetParams(epoch uint64) (string, error)
- func (_NetworkParams *NetworkParamsSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_NetworkParams *NetworkParamsSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_NetworkParams *NetworkParamsSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_NetworkParams *NetworkParamsSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_NetworkParams *NetworkParamsSession) Initialize(adminAccount common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsSession) SetParams(epoch uint64, params []byte) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- type NetworkParamsTransactor
- func (_NetworkParams *NetworkParamsTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactor) Initialize(opts *bind.TransactOpts, adminAccount common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactor) SetParams(opts *bind.TransactOpts, epoch uint64, params []byte) (*types.Transaction, error)
- type NetworkParamsTransactorRaw
- type NetworkParamsTransactorSession
- func (_NetworkParams *NetworkParamsTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactorSession) Initialize(adminAccount common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NetworkParams *NetworkParamsTransactorSession) SetParams(epoch uint64, params []byte) (*types.Transaction, error)
- type Settlement
- type SettlementCaller
- func (_Settlement *SettlementCaller) CHECKEPOCHINTERVAL(opts *bind.CallOpts) (bool, error)
- func (_Settlement *SettlementCaller) CurrentEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_Settlement *SettlementCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Settlement *SettlementCaller) EPOCHDURATION(opts *bind.CallOpts) (*big.Int, error)
- func (_Settlement *SettlementCaller) GetBonusInfo(opts *bind.CallOpts) (*big.Int, *big.Int, error)
- func (_Settlement *SettlementCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_Settlement *SettlementCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_Settlement *SettlementCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_Settlement *SettlementCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_Settlement *SettlementCaller) ORACLEROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Settlement *SettlementCaller) StakingContract(opts *bind.CallOpts) (common.Address, error)
- func (_Settlement *SettlementCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_Settlement *SettlementCaller) TOTALREWARDSPERYEAR(opts *bind.CallOpts) (*big.Int, error)
- func (_Settlement *SettlementCaller) Version(opts *bind.CallOpts) (string, error)
- type SettlementCallerRaw
- type SettlementCallerSession
- func (_Settlement *SettlementCallerSession) CHECKEPOCHINTERVAL() (bool, error)
- func (_Settlement *SettlementCallerSession) CurrentEpoch() (*big.Int, error)
- func (_Settlement *SettlementCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Settlement *SettlementCallerSession) EPOCHDURATION() (*big.Int, error)
- func (_Settlement *SettlementCallerSession) GetBonusInfo() (*big.Int, *big.Int, error)
- func (_Settlement *SettlementCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Settlement *SettlementCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Settlement *SettlementCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Settlement *SettlementCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Settlement *SettlementCallerSession) ORACLEROLE() ([32]byte, error)
- func (_Settlement *SettlementCallerSession) StakingContract() (common.Address, error)
- func (_Settlement *SettlementCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Settlement *SettlementCallerSession) TOTALREWARDSPERYEAR() (*big.Int, error)
- func (_Settlement *SettlementCallerSession) Version() (string, error)
- type SettlementFilterer
- func (_Settlement *SettlementFilterer) FilterInitialized(opts *bind.FilterOpts) (*SettlementInitializedIterator, error)
- func (_Settlement *SettlementFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*SettlementRoleAdminChangedIterator, error)
- func (_Settlement *SettlementFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*SettlementRoleGrantedIterator, error)
- func (_Settlement *SettlementFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*SettlementRoleRevokedIterator, error)
- func (_Settlement *SettlementFilterer) ParseInitialized(log types.Log) (*SettlementInitialized, error)
- func (_Settlement *SettlementFilterer) ParseRoleAdminChanged(log types.Log) (*SettlementRoleAdminChanged, error)
- func (_Settlement *SettlementFilterer) ParseRoleGranted(log types.Log) (*SettlementRoleGranted, error)
- func (_Settlement *SettlementFilterer) ParseRoleRevoked(log types.Log) (*SettlementRoleRevoked, error)
- func (_Settlement *SettlementFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SettlementInitialized) (event.Subscription, error)
- func (_Settlement *SettlementFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SettlementRoleAdminChanged, role [][32]byte, ...) (event.Subscription, error)
- func (_Settlement *SettlementFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SettlementRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_Settlement *SettlementFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SettlementRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- type SettlementInitialized
- type SettlementInitializedIterator
- type SettlementRaw
- func (_Settlement *SettlementRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Settlement *SettlementRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Settlement *SettlementRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SettlementRoleAdminChanged
- type SettlementRoleAdminChangedIterator
- type SettlementRoleGranted
- type SettlementRoleGrantedIterator
- type SettlementRoleRevoked
- type SettlementRoleRevokedIterator
- type SettlementSession
- func (_Settlement *SettlementSession) CHECKEPOCHINTERVAL() (bool, error)
- func (_Settlement *SettlementSession) CommitSlashing(nodeAddrs []common.Address, epochs []*big.Int) (*types.Transaction, error)
- func (_Settlement *SettlementSession) CurrentEpoch() (*big.Int, error)
- func (_Settlement *SettlementSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Settlement *SettlementSession) DistributeRewards(epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, ...) (*types.Transaction, error)
- func (_Settlement *SettlementSession) EPOCHDURATION() (*big.Int, error)
- func (_Settlement *SettlementSession) GetBonusInfo() (*big.Int, *big.Int, error)
- func (_Settlement *SettlementSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Settlement *SettlementSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Settlement *SettlementSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Settlement *SettlementSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Settlement *SettlementSession) Initialize(staking common.Address, oracleAccount common.Address, startTime *big.Int, ...) (*types.Transaction, error)
- func (_Settlement *SettlementSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_Settlement *SettlementSession) ORACLEROLE() ([32]byte, error)
- func (_Settlement *SettlementSession) Receive() (*types.Transaction, error)
- func (_Settlement *SettlementSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIds []*big.Int) (*types.Transaction, error)
- func (_Settlement *SettlementSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementSession) SetNodeStatus(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Settlement *SettlementSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Settlement *SettlementSession) StakingContract() (common.Address, error)
- func (_Settlement *SettlementSession) SubmitDemotions(nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Settlement *SettlementSession) TOTALREWARDSPERYEAR() (*big.Int, error)
- func (_Settlement *SettlementSession) Version() (string, error)
- type SettlementTransactor
- func (_Settlement *SettlementTransactor) CommitSlashing(opts *bind.TransactOpts, nodeAddrs []common.Address, epochs []*big.Int) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) DistributeRewards(opts *bind.TransactOpts, epoch *big.Int, nodeAddrs []common.Address, ...) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) Initialize(opts *bind.TransactOpts, staking common.Address, oracleAccount common.Address, ...) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) RevokeDemotions(opts *bind.TransactOpts, nodeAddr common.Address, epoch *big.Int, ...) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) SetNodeStatus(opts *bind.TransactOpts, nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) SetTaxRateBasisPoints4PublicPool(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Settlement *SettlementTransactor) SubmitDemotions(opts *bind.TransactOpts, nodeAddrs []common.Address, reasons []string, ...) (*types.Transaction, error)
- type SettlementTransactorRaw
- type SettlementTransactorSession
- func (_Settlement *SettlementTransactorSession) CommitSlashing(nodeAddrs []common.Address, epochs []*big.Int) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) DistributeRewards(epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, ...) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) Initialize(staking common.Address, oracleAccount common.Address, startTime *big.Int, ...) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) Receive() (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIds []*big.Int) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) SetNodeStatus(nodeAddrs []common.Address, status []uint8) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
- func (_Settlement *SettlementTransactorSession) SubmitDemotions(nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
- type StakingV2MulticallClient
Constants ¶
const ( ChainIDMainnet = 12553 ChainIDTestnet = 2331 )
Variables ¶
var ( AddressGovernanceTokenProxy = predeploys.GovernanceTokenAddr // https://scan.testnet.rss3.io/token/0x4200000000000000000000000000000000000042 AddressL2StandardBridgeProxy = predeploys.L2StandardBridgeAddr // https://scan.testnet.rss3.io/address/0x4200000000000000000000000000000000000010 AddressL2CrossDomainMessengerProxy = predeploys.L2CrossDomainMessengerAddr // https://scan.testnet.rss3.io/address/0x4200000000000000000000000000000000000007 AddressL2ToL1MessagePasser = predeploys.L2ToL1MessagePasserAddr // https://scan.testnet.rss3.io/address/0x4200000000000000000000000000000000000007 )
var ( EventHashL2StandardBridgeWithdrawalInitiated = crypto.Keccak256Hash([]byte("WithdrawalInitiated(address,address,address,address,uint256,bytes)")) EventHashL2StandardBridgeDepositFinalized = crypto.Keccak256Hash([]byte("DepositFinalized(address,address,address,address,uint256,bytes)")) EventHashL2CrossDomainMessengerSentMessage = crypto.Keccak256Hash([]byte("SentMessage(address,address,bytes,uint256,uint256)")) EventHashL2CrossDomainMessengerRelayedMessage = crypto.Keccak256Hash([]byte("RelayedMessage(bytes32)")) EventHashL2ToL1MessagePasserMessagePassed = crypto.Keccak256Hash([]byte("MessagePassed(uint256,address,address,uint256,uint256,bytes,bytes32)")) EventHashStakingV1Deposited = crypto.Keccak256Hash([]byte("Deposited(address,uint256)")) EventHashStakingV1Staked = crypto.Keccak256Hash([]byte("Staked(address,address,uint256,uint256,uint256)")) EventHashStakingV1UnstakeRequested = crypto.Keccak256Hash([]byte("UnstakeRequested(address,address,uint256,uint256,uint256[])")) EventHashStakingV1UnstakeClaimed = crypto.Keccak256Hash([]byte("UnstakeClaimed(uint256,address,address,uint256)")) EventHashStakingV1WithdrawRequested = crypto.Keccak256Hash([]byte("WithdrawRequested(address,uint256,uint256)")) EventHashStakingV1WithdrawalClaimed = crypto.Keccak256Hash([]byte("WithdrawalClaimed(uint256)")) EventHashStakingV1RewardDistributed = crypto.Keccak256Hash([]byte("RewardDistributed(uint256,uint256,uint256,address[],uint256[],uint256[],uint256[],uint256[])")) EventHashStakingV1NodeCreated = crypto.Keccak256Hash([]byte("NodeCreated(uint256,address,string,string,uint64,bool,bool)")) EventHashStakingV1NodeUpdated = crypto.Keccak256Hash([]byte("NodeUpdated(address,string,string)")) EventHashStakingV2ChipsMerged = crypto.Keccak256Hash([]byte("ChipsMerged(address,address,uint256,uint256[])")) EventHashStakingV2WithdrawalClaimed = crypto.Keccak256Hash([]byte("WithdrawalClaimed(uint256,address,uint256)")) EventHashChipsTransfer = crypto.Keccak256Hash([]byte("Transfer(address,address,uint256)")) EventHashNodeStatusChanged = crypto.Keccak256Hash([]byte("NodeStatusChanged(address,uint8,uint8)")) )
var ( MethodDistributeRewards = "distributeRewards" MethodSetNodeStatus = "setNodeStatus" MethodSubmitDemotions = "submitDemotions" MethodMulticall = "multicall" MethodSetTaxRateBasisPoints4PublicPool = "setTaxRateBasisPoints4PublicPool" )
var ChipsABI = ChipsMetaData.ABI
ChipsABI is the input ABI used to generate the binding from. Deprecated: Use ChipsMetaData.ABI instead.
var ChipsMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"AlreadyClaimed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"AmountTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BatchSizeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotNodeOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotStaking\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotAuthorized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotPublicGood\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"ChipNotValid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChipsIdOverflow\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"claimId\",\"type\":\"uint256\"}],\"name\":\"ClaimIdNotExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimTimeNotReady\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CreateNodeToZeroAddress\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721IncorrectOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721InsufficientApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC721InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721NonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyNodeList\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExcessWithdrawalAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InvalidEpoch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeNotExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeNotPublicGood\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeStakedOrDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicGoodNodeNotDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RewardDistributionFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"StakeToPublicGoodNode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SubmissionIntervalNotElapsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TaxRateBasisPointsTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"staking_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\"}],\"name\":\"mintBatch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakingContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
ChipsMetaData contains all meta data concerning the Chips contract.
var ContractMap = map[uint64]*struct { AddressStakingProxy common.Address AddressChipsProxy common.Address AddressSettlementProxy common.Address AddressNetworkParamsProxy common.Address AddressPowerToken common.Address }{ ChainIDTestnet: { AddressStakingProxy: common.HexToAddress("0xb1b209Ee24272C7EE8076764DAa27563c5add9FF"), AddressChipsProxy: common.HexToAddress("0x305A3cD2E972ceE48C362ABca02DfA699161edd6"), AddressSettlementProxy: common.HexToAddress("0xA37a6Ef0c3635824be2b6c87A23F6Df5d0E2ba1b"), AddressNetworkParamsProxy: common.HexToAddress("0xC244Ef2f548D6E482ACb455c5d519b9432aa49E3"), AddressPowerToken: common.HexToAddress("0x973A5aa22E07B46D95B5Fd3c9561A3955496a0e7"), }, ChainIDMainnet: { AddressStakingProxy: common.HexToAddress("0x28F14d917fddbA0c1f2923C406952478DfDA5578"), AddressChipsProxy: common.HexToAddress("0x849f8F55078dCc69dD857b58Cc04631EBA54E4DE"), AddressSettlementProxy: common.HexToAddress("0x0cE3159BF19F3C55B648D04E8f0Ae1Ae118D2A0B"), AddressNetworkParamsProxy: common.HexToAddress("0xbF8A881c687E2C5f028Cc22eF9A3Dc31C6b57107"), AddressPowerToken: common.HexToAddress("0xE06Af68F0c9e819513a6CD083EF6848E76C28CD8"), }, }
var EventsABI = EventsMetaData.ABI
EventsABI is the input ABI used to generate the binding from. Deprecated: Use EventsMetaData.ABI instead.
var EventsMetaData = &bind.MetaData{
ABI: "[{\"type\":\"event\",\"name\":\"ChipsMerged\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newTokenId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"burnedTokenIds\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DemotionRevoked\",\"inputs\":[{\"name\":\"demotionId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DemotionSubmitted\",\"inputs\":[{\"name\":\"epoch\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"demotionId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"reason\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"reporter\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Deposited\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NodeCreated\",\"inputs\":[{\"name\":\"nodeId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"name\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"description\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"publicGood\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"alpha\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NodeStatusChanged\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"curStatus\",\"type\":\"uint8\",\"indexed\":true,\"internalType\":\"enumNodeStatus\"},{\"name\":\"newStatus\",\"type\":\"uint8\",\"indexed\":true,\"internalType\":\"enumNodeStatus\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NodeTaxRateBasisPointsSet\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"indexed\":true,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NodeUpdated\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"name\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"description\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PublicGoodRewardDistributed\",\"inputs\":[{\"name\":\"epoch\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"startTimestamp\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"endTimestamp\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"publicPoolRewards\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"publicPoolTax\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PublicPoolTaxRateBasisPointsSet\",\"inputs\":[{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"indexed\":true,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RewardDistributed\",\"inputs\":[{\"name\":\"epoch\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"startTimestamp\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"endTimestamp\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"indexed\":false,\"internalType\":\"address[]\"},{\"name\":\"operationRewards\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"},{\"name\":\"stakingRewards\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"},{\"name\":\"taxCollected\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"},{\"name\":\"requestCounts\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SlashCommitted\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SlashRecorded\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"slashedOperationPool\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"slashedStakingPool\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SlashRevoked\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Staked\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"startTokenId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"endTokenId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UnstakeClaimed\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"user\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"unstakeAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UnstakeRequested\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"requestId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"unstakeAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"chipsIds\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"WithdrawRequested\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"requestId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"WithdrawalClaimed\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"nodeAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}
EventsMetaData contains all meta data concerning the Events contract.
var GenesisEpochMap = map[uint64]int64{ ChainIDMainnet: 1710208800, }
var NetworkParamsABI = NetworkParamsMetaData.ABI
NetworkParamsABI is the input ABI used to generate the binding from. Deprecated: Use NetworkParamsMetaData.ABI instead.
var NetworkParamsMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"AccessControlBadConfirmation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"neededRole\",\"type\":\"bytes32\"}],\"name\":\"AccessControlUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"}],\"name\":\"ParamsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"}],\"name\":\"getParams\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"adminAccount\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"callerConfirmation\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"epoch\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"}],\"name\":\"setParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
NetworkParamsMetaData contains all meta data concerning the NetworkParams contract.
var SettlementABI = SettlementMetaData.ABI
SettlementABI is the input ABI used to generate the binding from. Deprecated: Use SettlementMetaData.ABI instead.
var SettlementMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"checkEpochInterval\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"CHECK_EPOCH_INTERVAL\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"DEFAULT_ADMIN_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"EPOCH_DURATION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ORACLE_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"TOTAL_REWARDS_PER_YEAR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"commitSlashing\",\"inputs\":[{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"epochs\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"currentEpoch\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"distributeRewards\",\"inputs\":[{\"name\":\"epoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"nodeAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"operationRewards\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"requestCounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"isFinal\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getBonusInfo\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"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\":\"staking\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"oracleAccount\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"startTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"operationRewardsPercent\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"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\":\"renounceRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"callerConfirmation\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"revokeDemotions\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"epoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"demotionIds\",\"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\":\"setTaxRateBasisPoints4PublicPool\",\"inputs\":[{\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"stakingContract\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"submitDemotions\",\"inputs\":[{\"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\":\"version\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"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\":\"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\":\"CommitEpochNotElapsed\",\"inputs\":[{\"name\":\"recordedEpoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"currentEpoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"FailedInnerCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidArrayLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidEpochNumber\",\"inputs\":[{\"name\":\"current\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"got\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"InvalidInitialization\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotInitializing\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OperationRewardsExceed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"RewardsAlreadyDistributed\",\"inputs\":[{\"name\":\"nodeAddr\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"SubmissionIntervalNotElapsed\",\"inputs\":[]}]",
}
SettlementMetaData contains all meta data concerning the Settlement contract.
Functions ¶
Types ¶
type Chips ¶
type Chips struct { ChipsCaller // Read-only binding to the contract ChipsTransactor // Write-only binding to the contract ChipsFilterer // Log filterer for contract events }
Chips is an auto generated Go binding around an Ethereum contract.
type ChipsApproval ¶
type ChipsApproval struct { Owner common.Address Approved common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
ChipsApproval represents a Approval event raised by the Chips contract.
type ChipsApprovalForAll ¶
type ChipsApprovalForAll struct { Owner common.Address Operator common.Address Approved bool Raw types.Log // Blockchain specific contextual infos }
ChipsApprovalForAll represents a ApprovalForAll event raised by the Chips contract.
type ChipsApprovalForAllIterator ¶
type ChipsApprovalForAllIterator struct { Event *ChipsApprovalForAll // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ChipsApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the Chips contract.
func (*ChipsApprovalForAllIterator) Close ¶
func (it *ChipsApprovalForAllIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ChipsApprovalForAllIterator) Error ¶
func (it *ChipsApprovalForAllIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ChipsApprovalForAllIterator) Next ¶
func (it *ChipsApprovalForAllIterator) 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 ChipsApprovalIterator ¶
type ChipsApprovalIterator struct { Event *ChipsApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ChipsApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Chips contract.
func (*ChipsApprovalIterator) Close ¶
func (it *ChipsApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ChipsApprovalIterator) Error ¶
func (it *ChipsApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ChipsApprovalIterator) Next ¶
func (it *ChipsApprovalIterator) 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 ChipsCaller ¶
type ChipsCaller struct {
// contains filtered or unexported fields
}
ChipsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewChipsCaller ¶
func NewChipsCaller(address common.Address, caller bind.ContractCaller) (*ChipsCaller, error)
NewChipsCaller creates a new read-only instance of Chips, bound to a specific deployed contract.
func (*ChipsCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*ChipsCaller) GetApproved ¶
func (_Chips *ChipsCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*ChipsCaller) IsApprovedForAll ¶
func (_Chips *ChipsCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*ChipsCaller) Name ¶
func (_Chips *ChipsCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ChipsCaller) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*ChipsCaller) StakingContract ¶
StakingContract is a free data retrieval call binding the contract method 0xee99205c.
Solidity: function stakingContract() view returns(address)
func (*ChipsCaller) SupportsInterface ¶
func (_Chips *ChipsCaller) 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)
func (*ChipsCaller) Symbol ¶
func (_Chips *ChipsCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ChipsCaller) TokenURI ¶
TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
Solidity: function tokenURI(uint256 tokenId) view returns(string)
func (*ChipsCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type ChipsCallerRaw ¶
type ChipsCallerRaw struct {
Contract *ChipsCaller // Generic read-only contract binding to access the raw methods on
}
ChipsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ChipsCallerRaw) Call ¶
func (_Chips *ChipsCallerRaw) 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 ChipsCallerSession ¶
type ChipsCallerSession struct { Contract *ChipsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ChipsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ChipsCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*ChipsCallerSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*ChipsCallerSession) IsApprovedForAll ¶
func (_Chips *ChipsCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*ChipsCallerSession) Name ¶
func (_Chips *ChipsCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ChipsCallerSession) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*ChipsCallerSession) StakingContract ¶
func (_Chips *ChipsCallerSession) StakingContract() (common.Address, error)
StakingContract is a free data retrieval call binding the contract method 0xee99205c.
Solidity: function stakingContract() view returns(address)
func (*ChipsCallerSession) SupportsInterface ¶
func (_Chips *ChipsCallerSession) 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 (*ChipsCallerSession) Symbol ¶
func (_Chips *ChipsCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ChipsCallerSession) TokenURI ¶
func (_Chips *ChipsCallerSession) TokenURI(tokenId *big.Int) (string, error)
TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
Solidity: function tokenURI(uint256 tokenId) view returns(string)
func (*ChipsCallerSession) TotalSupply ¶
func (_Chips *ChipsCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type ChipsFilterer ¶
type ChipsFilterer struct {
// contains filtered or unexported fields
}
ChipsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewChipsFilterer ¶
func NewChipsFilterer(address common.Address, filterer bind.ContractFilterer) (*ChipsFilterer, error)
NewChipsFilterer creates a new log filterer instance of Chips, bound to a specific deployed contract.
func (*ChipsFilterer) FilterApproval ¶
func (_Chips *ChipsFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ChipsApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*ChipsFilterer) FilterApprovalForAll ¶
func (_Chips *ChipsFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ChipsApprovalForAllIterator, error)
FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*ChipsFilterer) FilterInitialized ¶
func (_Chips *ChipsFilterer) FilterInitialized(opts *bind.FilterOpts) (*ChipsInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*ChipsFilterer) FilterTransfer ¶
func (_Chips *ChipsFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*ChipsTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
func (*ChipsFilterer) ParseApproval ¶
func (_Chips *ChipsFilterer) ParseApproval(log types.Log) (*ChipsApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*ChipsFilterer) ParseApprovalForAll ¶
func (_Chips *ChipsFilterer) ParseApprovalForAll(log types.Log) (*ChipsApprovalForAll, error)
ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*ChipsFilterer) ParseInitialized ¶
func (_Chips *ChipsFilterer) ParseInitialized(log types.Log) (*ChipsInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*ChipsFilterer) ParseTransfer ¶
func (_Chips *ChipsFilterer) ParseTransfer(log types.Log) (*ChipsTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
func (*ChipsFilterer) WatchApproval ¶
func (_Chips *ChipsFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ChipsApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*ChipsFilterer) WatchApprovalForAll ¶
func (_Chips *ChipsFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ChipsApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)
WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*ChipsFilterer) WatchInitialized ¶
func (_Chips *ChipsFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ChipsInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*ChipsFilterer) WatchTransfer ¶
func (_Chips *ChipsFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ChipsTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
type ChipsInitialized ¶
type ChipsInitialized struct { Version uint64 Raw types.Log // Blockchain specific contextual infos }
ChipsInitialized represents a Initialized event raised by the Chips contract.
type ChipsInitializedIterator ¶
type ChipsInitializedIterator struct { Event *ChipsInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ChipsInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Chips contract.
func (*ChipsInitializedIterator) Close ¶
func (it *ChipsInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ChipsInitializedIterator) Error ¶
func (it *ChipsInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ChipsInitializedIterator) Next ¶
func (it *ChipsInitializedIterator) 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 ChipsRaw ¶
type ChipsRaw struct {
Contract *Chips // Generic contract binding to access the raw methods on
}
ChipsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ChipsRaw) Call ¶
func (_Chips *ChipsRaw) 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 (*ChipsRaw) Transact ¶
func (_Chips *ChipsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ChipsRaw) Transfer ¶
func (_Chips *ChipsRaw) 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 ChipsSession ¶
type ChipsSession struct { Contract *Chips // 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 }
ChipsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ChipsSession) Approve ¶
func (_Chips *ChipsSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*ChipsSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*ChipsSession) Burn ¶
func (_Chips *ChipsSession) Burn(tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*ChipsSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*ChipsSession) Initialize ¶
func (_Chips *ChipsSession) Initialize(name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x077f224a.
Solidity: function initialize(string name_, string symbol_, address staking_) returns()
func (*ChipsSession) IsApprovedForAll ¶
func (_Chips *ChipsSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*ChipsSession) Mint ¶
func (_Chips *ChipsSession) Mint(account common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address account) returns(uint256 tokenId)
func (*ChipsSession) MintBatch ¶
func (_Chips *ChipsSession) MintBatch(to common.Address, batchSize *big.Int) (*types.Transaction, error)
MintBatch is a paid mutator transaction binding the contract method 0x248b71fc.
Solidity: function mintBatch(address to, uint256 batchSize) returns(uint256 startTokenId, uint256 endTokenId)
func (*ChipsSession) Name ¶
func (_Chips *ChipsSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ChipsSession) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*ChipsSession) SafeTransferFrom ¶
func (_Chips *ChipsSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*ChipsSession) SafeTransferFrom0 ¶
func (_Chips *ChipsSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*ChipsSession) SetApprovalForAll ¶
func (_Chips *ChipsSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*ChipsSession) StakingContract ¶
func (_Chips *ChipsSession) StakingContract() (common.Address, error)
StakingContract is a free data retrieval call binding the contract method 0xee99205c.
Solidity: function stakingContract() view returns(address)
func (*ChipsSession) SupportsInterface ¶
func (_Chips *ChipsSession) 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 (*ChipsSession) Symbol ¶
func (_Chips *ChipsSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ChipsSession) TokenURI ¶
func (_Chips *ChipsSession) TokenURI(tokenId *big.Int) (string, error)
TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
Solidity: function tokenURI(uint256 tokenId) view returns(string)
func (*ChipsSession) TotalSupply ¶
func (_Chips *ChipsSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*ChipsSession) TransferFrom ¶
func (_Chips *ChipsSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
type ChipsTokenMetadata ¶
type ChipsTransactor ¶
type ChipsTransactor struct {
// contains filtered or unexported fields
}
ChipsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewChipsTransactor ¶
func NewChipsTransactor(address common.Address, transactor bind.ContractTransactor) (*ChipsTransactor, error)
NewChipsTransactor creates a new write-only instance of Chips, bound to a specific deployed contract.
func (*ChipsTransactor) Approve ¶
func (_Chips *ChipsTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*ChipsTransactor) Burn ¶
func (_Chips *ChipsTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*ChipsTransactor) Initialize ¶
func (_Chips *ChipsTransactor) Initialize(opts *bind.TransactOpts, name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x077f224a.
Solidity: function initialize(string name_, string symbol_, address staking_) returns()
func (*ChipsTransactor) Mint ¶
func (_Chips *ChipsTransactor) Mint(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address account) returns(uint256 tokenId)
func (*ChipsTransactor) MintBatch ¶
func (_Chips *ChipsTransactor) MintBatch(opts *bind.TransactOpts, to common.Address, batchSize *big.Int) (*types.Transaction, error)
MintBatch is a paid mutator transaction binding the contract method 0x248b71fc.
Solidity: function mintBatch(address to, uint256 batchSize) returns(uint256 startTokenId, uint256 endTokenId)
func (*ChipsTransactor) SafeTransferFrom ¶
func (_Chips *ChipsTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*ChipsTransactor) SafeTransferFrom0 ¶
func (_Chips *ChipsTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*ChipsTransactor) SetApprovalForAll ¶
func (_Chips *ChipsTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*ChipsTransactor) TransferFrom ¶
func (_Chips *ChipsTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
type ChipsTransactorRaw ¶
type ChipsTransactorRaw struct {
Contract *ChipsTransactor // Generic write-only contract binding to access the raw methods on
}
ChipsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ChipsTransactorRaw) Transact ¶
func (_Chips *ChipsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ChipsTransactorRaw) Transfer ¶
func (_Chips *ChipsTransactorRaw) 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 ChipsTransactorSession ¶
type ChipsTransactorSession struct { Contract *ChipsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ChipsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ChipsTransactorSession) Approve ¶
func (_Chips *ChipsTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*ChipsTransactorSession) Burn ¶
func (_Chips *ChipsTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*ChipsTransactorSession) Initialize ¶
func (_Chips *ChipsTransactorSession) Initialize(name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x077f224a.
Solidity: function initialize(string name_, string symbol_, address staking_) returns()
func (*ChipsTransactorSession) Mint ¶
func (_Chips *ChipsTransactorSession) Mint(account common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address account) returns(uint256 tokenId)
func (*ChipsTransactorSession) MintBatch ¶
func (_Chips *ChipsTransactorSession) MintBatch(to common.Address, batchSize *big.Int) (*types.Transaction, error)
MintBatch is a paid mutator transaction binding the contract method 0x248b71fc.
Solidity: function mintBatch(address to, uint256 batchSize) returns(uint256 startTokenId, uint256 endTokenId)
func (*ChipsTransactorSession) SafeTransferFrom ¶
func (_Chips *ChipsTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*ChipsTransactorSession) SafeTransferFrom0 ¶
func (_Chips *ChipsTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*ChipsTransactorSession) SetApprovalForAll ¶
func (_Chips *ChipsTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*ChipsTransactorSession) TransferFrom ¶
func (_Chips *ChipsTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
type ChipsTransfer ¶
type ChipsTransfer struct { From common.Address To common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
ChipsTransfer represents a Transfer event raised by the Chips contract.
type ChipsTransferIterator ¶
type ChipsTransferIterator struct { Event *ChipsTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ChipsTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Chips contract.
func (*ChipsTransferIterator) Close ¶
func (it *ChipsTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ChipsTransferIterator) Error ¶
func (it *ChipsTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ChipsTransferIterator) Next ¶
func (it *ChipsTransferIterator) 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 Events ¶ added in v0.7.0
type Events struct { EventsCaller // Read-only binding to the contract EventsTransactor // Write-only binding to the contract EventsFilterer // Log filterer for contract events }
Events is an auto generated Go binding around an Ethereum contract.
type EventsCaller ¶ added in v0.7.0
type EventsCaller struct {
// contains filtered or unexported fields
}
EventsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewEventsCaller ¶ added in v0.7.0
func NewEventsCaller(address common.Address, caller bind.ContractCaller) (*EventsCaller, error)
NewEventsCaller creates a new read-only instance of Events, bound to a specific deployed contract.
type EventsCallerRaw ¶ added in v0.7.0
type EventsCallerRaw struct {
Contract *EventsCaller // Generic read-only contract binding to access the raw methods on
}
EventsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*EventsCallerRaw) Call ¶ added in v0.7.0
func (_Events *EventsCallerRaw) 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 EventsCallerSession ¶ added in v0.7.0
type EventsCallerSession struct { Contract *EventsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
EventsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type EventsChipsMerged ¶ added in v0.7.0
type EventsChipsMerged struct { User common.Address NodeAddr common.Address NewTokenId *big.Int BurnedTokenIds []*big.Int Raw types.Log // Blockchain specific contextual infos }
EventsChipsMerged represents a ChipsMerged event raised by the Events contract.
type EventsChipsMergedIterator ¶ added in v0.7.0
type EventsChipsMergedIterator struct { Event *EventsChipsMerged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsChipsMergedIterator is returned from FilterChipsMerged and is used to iterate over the raw logs and unpacked data for ChipsMerged events raised by the Events contract.
func (*EventsChipsMergedIterator) Close ¶ added in v0.7.0
func (it *EventsChipsMergedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsChipsMergedIterator) Error ¶ added in v0.7.0
func (it *EventsChipsMergedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsChipsMergedIterator) Next ¶ added in v0.7.0
func (it *EventsChipsMergedIterator) 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 EventsDemotionRevoked ¶ added in v0.7.0
type EventsDemotionRevoked struct { DemotionId *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsDemotionRevoked represents a DemotionRevoked event raised by the Events contract.
type EventsDemotionRevokedIterator ¶ added in v0.7.0
type EventsDemotionRevokedIterator struct { Event *EventsDemotionRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsDemotionRevokedIterator is returned from FilterDemotionRevoked and is used to iterate over the raw logs and unpacked data for DemotionRevoked events raised by the Events contract.
func (*EventsDemotionRevokedIterator) Close ¶ added in v0.7.0
func (it *EventsDemotionRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsDemotionRevokedIterator) Error ¶ added in v0.7.0
func (it *EventsDemotionRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsDemotionRevokedIterator) Next ¶ added in v0.7.0
func (it *EventsDemotionRevokedIterator) 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 EventsDemotionSubmitted ¶ added in v0.7.0
type EventsDemotionSubmitted struct { Epoch *big.Int NodeAddr common.Address DemotionId *big.Int Reason string Reporter common.Address Raw types.Log // Blockchain specific contextual infos }
EventsDemotionSubmitted represents a DemotionSubmitted event raised by the Events contract.
type EventsDemotionSubmittedIterator ¶ added in v0.7.0
type EventsDemotionSubmittedIterator struct { Event *EventsDemotionSubmitted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsDemotionSubmittedIterator is returned from FilterDemotionSubmitted and is used to iterate over the raw logs and unpacked data for DemotionSubmitted events raised by the Events contract.
func (*EventsDemotionSubmittedIterator) Close ¶ added in v0.7.0
func (it *EventsDemotionSubmittedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsDemotionSubmittedIterator) Error ¶ added in v0.7.0
func (it *EventsDemotionSubmittedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsDemotionSubmittedIterator) Next ¶ added in v0.7.0
func (it *EventsDemotionSubmittedIterator) 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 EventsDeposited ¶ added in v0.7.0
type EventsDeposited struct { NodeAddr common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsDeposited represents a Deposited event raised by the Events contract.
type EventsDepositedIterator ¶ added in v0.7.0
type EventsDepositedIterator struct { Event *EventsDeposited // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Events contract.
func (*EventsDepositedIterator) Close ¶ added in v0.7.0
func (it *EventsDepositedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsDepositedIterator) Error ¶ added in v0.7.0
func (it *EventsDepositedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsDepositedIterator) Next ¶ added in v0.7.0
func (it *EventsDepositedIterator) 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 EventsFilterer ¶ added in v0.7.0
type EventsFilterer struct {
// contains filtered or unexported fields
}
EventsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewEventsFilterer ¶ added in v0.7.0
func NewEventsFilterer(address common.Address, filterer bind.ContractFilterer) (*EventsFilterer, error)
NewEventsFilterer creates a new log filterer instance of Events, bound to a specific deployed contract.
func (*EventsFilterer) FilterChipsMerged ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterChipsMerged(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, newTokenId []*big.Int) (*EventsChipsMergedIterator, error)
FilterChipsMerged is a free log retrieval operation binding the contract event 0x18f7a8d9091ae36e0b14acaa3e2ac8a6672a389ef8e18c8e3523fcae05d24f18.
Solidity: event ChipsMerged(address indexed user, address indexed nodeAddr, uint256 indexed newTokenId, uint256[] burnedTokenIds)
func (*EventsFilterer) FilterDemotionRevoked ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterDemotionRevoked(opts *bind.FilterOpts, demotionId []*big.Int) (*EventsDemotionRevokedIterator, error)
FilterDemotionRevoked is a free log retrieval operation binding the contract event 0xe07fc9955958541e451cd076ec11a41f7d3d69411be92715d1bd412050ad5918.
Solidity: event DemotionRevoked(uint256 indexed demotionId)
func (*EventsFilterer) FilterDemotionSubmitted ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterDemotionSubmitted(opts *bind.FilterOpts, epoch []*big.Int, nodeAddr []common.Address, demotionId []*big.Int) (*EventsDemotionSubmittedIterator, error)
FilterDemotionSubmitted is a free log retrieval operation binding the contract event 0x72cf50a64fcd4d3043cad57179bf0016d93d285e61b4fd0565a0e92b763deee9.
Solidity: event DemotionSubmitted(uint256 indexed epoch, address indexed nodeAddr, uint256 indexed demotionId, string reason, address reporter)
func (*EventsFilterer) FilterDeposited ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterDeposited(opts *bind.FilterOpts, nodeAddr []common.Address, amount []*big.Int) (*EventsDepositedIterator, error)
FilterDeposited is a free log retrieval operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.
Solidity: event Deposited(address indexed nodeAddr, uint256 indexed amount)
func (*EventsFilterer) FilterNodeCreated ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterNodeCreated(opts *bind.FilterOpts, nodeId []*big.Int, nodeAddr []common.Address) (*EventsNodeCreatedIterator, error)
FilterNodeCreated is a free log retrieval operation binding the contract event 0x37570f68d94fd46cd4009b3823da2b2bc1a9a7e38f824f311ede9e876816e321.
Solidity: event NodeCreated(uint256 indexed nodeId, address indexed nodeAddr, string name, string description, uint64 taxRateBasisPoints, bool publicGood, bool alpha)
func (*EventsFilterer) FilterNodeStatusChanged ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterNodeStatusChanged(opts *bind.FilterOpts, nodeAddr []common.Address, curStatus []uint8, newStatus []uint8) (*EventsNodeStatusChangedIterator, error)
FilterNodeStatusChanged is a free log retrieval operation binding the contract event 0xfb5740b379943f137d27260c0f7bd5f908f4d60a4507fd1c4824d264a00f0a72.
Solidity: event NodeStatusChanged(address indexed nodeAddr, uint8 indexed curStatus, uint8 indexed newStatus)
func (*EventsFilterer) FilterNodeTaxRateBasisPointsSet ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterNodeTaxRateBasisPointsSet(opts *bind.FilterOpts, nodeAddr []common.Address, taxRateBasisPoints []uint64) (*EventsNodeTaxRateBasisPointsSetIterator, error)
FilterNodeTaxRateBasisPointsSet is a free log retrieval operation binding the contract event 0xb8e5551053b871a40f7c7382e5bd3af5a62dd737d059d3838cf3aa7c325bd479.
Solidity: event NodeTaxRateBasisPointsSet(address indexed nodeAddr, uint64 indexed taxRateBasisPoints)
func (*EventsFilterer) FilterNodeUpdated ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterNodeUpdated(opts *bind.FilterOpts, nodeAddr []common.Address) (*EventsNodeUpdatedIterator, error)
FilterNodeUpdated is a free log retrieval operation binding the contract event 0x8dd72b3e159c2446f32a80f24459ad76e9f8fbb74165952a01c27adb16aba725.
Solidity: event NodeUpdated(address indexed nodeAddr, string name, string description)
func (*EventsFilterer) FilterPublicGoodRewardDistributed ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterPublicGoodRewardDistributed(opts *bind.FilterOpts, epoch []*big.Int) (*EventsPublicGoodRewardDistributedIterator, error)
FilterPublicGoodRewardDistributed is a free log retrieval operation binding the contract event 0xab7d25a2f6206ef56c88807f2474ddcd97e1a6323cb25149cde3a607fed6f2d7.
Solidity: event PublicGoodRewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, uint256 publicPoolRewards, uint256 publicPoolTax)
func (*EventsFilterer) FilterPublicPoolTaxRateBasisPointsSet ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterPublicPoolTaxRateBasisPointsSet(opts *bind.FilterOpts, taxRateBasisPoints []uint64) (*EventsPublicPoolTaxRateBasisPointsSetIterator, error)
FilterPublicPoolTaxRateBasisPointsSet is a free log retrieval operation binding the contract event 0x948cf2302b029d76db2ac06e4ef2625e6c687335de349317468f47942a44e8b0.
Solidity: event PublicPoolTaxRateBasisPointsSet(uint64 indexed taxRateBasisPoints)
func (*EventsFilterer) FilterRewardDistributed ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterRewardDistributed(opts *bind.FilterOpts, epoch []*big.Int) (*EventsRewardDistributedIterator, error)
FilterRewardDistributed is a free log retrieval operation binding the contract event 0x8ea79f19e90b084c2009d3490a097547d8bbb315a883b9efec0996502c1dd7ae.
Solidity: event RewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] taxCollected, uint256[] requestCounts)
func (*EventsFilterer) FilterSlashCommitted ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterSlashCommitted(opts *bind.FilterOpts) (*EventsSlashCommittedIterator, error)
FilterSlashCommitted is a free log retrieval operation binding the contract event 0x9520d039b6a33a0b9fb3d5c2c5c505f1d07dd471d64492553a5b10ffe05e1f9c.
Solidity: event SlashCommitted(address nodeAddr, uint256 epoch)
func (*EventsFilterer) FilterSlashRecorded ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterSlashRecorded(opts *bind.FilterOpts, nodeAddr []common.Address, epoch []*big.Int) (*EventsSlashRecordedIterator, error)
FilterSlashRecorded is a free log retrieval operation binding the contract event 0x364424c102a33f9705e7393b69481cfcc8bb4f448148681f2eca17247f017f7d.
Solidity: event SlashRecorded(address indexed nodeAddr, uint256 indexed epoch, uint256 slashedOperationPool, uint256 slashedStakingPool)
func (*EventsFilterer) FilterSlashRevoked ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterSlashRevoked(opts *bind.FilterOpts) (*EventsSlashRevokedIterator, error)
FilterSlashRevoked is a free log retrieval operation binding the contract event 0x15e7cd41a21eea06cee0aeb26dbe9c430c42463fc7f8e0124688bcde5bf04a31.
Solidity: event SlashRevoked(address nodeAddr, uint256 epoch)
func (*EventsFilterer) FilterStaked ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterStaked(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, amount []*big.Int) (*EventsStakedIterator, error)
FilterStaked is a free log retrieval operation binding the contract event 0xad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69.
Solidity: event Staked(address indexed user, address indexed nodeAddr, uint256 indexed amount, uint256 startTokenId, uint256 endTokenId)
func (*EventsFilterer) FilterUnstakeClaimed ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterUnstakeClaimed(opts *bind.FilterOpts, requestId []*big.Int, nodeAddr []common.Address, user []common.Address) (*EventsUnstakeClaimedIterator, error)
FilterUnstakeClaimed is a free log retrieval operation binding the contract event 0x2769ece66eadb650afd8c08c7a8772e39381dddd7230f9e039669e631044d47c.
Solidity: event UnstakeClaimed(uint256 indexed requestId, address indexed nodeAddr, address indexed user, uint256 unstakeAmount)
func (*EventsFilterer) FilterUnstakeRequested ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterUnstakeRequested(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, requestId []*big.Int) (*EventsUnstakeRequestedIterator, error)
FilterUnstakeRequested is a free log retrieval operation binding the contract event 0x2808f92d5a0fada467cbe4e766f62f323e78271a7471058a87ef63a9e3e4c5c5.
Solidity: event UnstakeRequested(address indexed user, address indexed nodeAddr, uint256 indexed requestId, uint256 unstakeAmount, uint256[] chipsIds)
func (*EventsFilterer) FilterWithdrawRequested ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterWithdrawRequested(opts *bind.FilterOpts, nodeAddr []common.Address, amount []*big.Int, requestId []*big.Int) (*EventsWithdrawRequestedIterator, error)
FilterWithdrawRequested is a free log retrieval operation binding the contract event 0xd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d14.
Solidity: event WithdrawRequested(address indexed nodeAddr, uint256 indexed amount, uint256 indexed requestId)
func (*EventsFilterer) FilterWithdrawalClaimed ¶ added in v0.7.0
func (_Events *EventsFilterer) FilterWithdrawalClaimed(opts *bind.FilterOpts, requestId []*big.Int, nodeAddr []common.Address, amount []*big.Int) (*EventsWithdrawalClaimedIterator, error)
FilterWithdrawalClaimed is a free log retrieval operation binding the contract event 0x8adb7a84b2998a8d11cd9284395f95d5a99f160be785ae79998c654979bd3d9a.
Solidity: event WithdrawalClaimed(uint256 indexed requestId, address indexed nodeAddr, uint256 indexed amount)
func (*EventsFilterer) ParseChipsMerged ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseChipsMerged(log types.Log) (*EventsChipsMerged, error)
ParseChipsMerged is a log parse operation binding the contract event 0x18f7a8d9091ae36e0b14acaa3e2ac8a6672a389ef8e18c8e3523fcae05d24f18.
Solidity: event ChipsMerged(address indexed user, address indexed nodeAddr, uint256 indexed newTokenId, uint256[] burnedTokenIds)
func (*EventsFilterer) ParseDemotionRevoked ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseDemotionRevoked(log types.Log) (*EventsDemotionRevoked, error)
ParseDemotionRevoked is a log parse operation binding the contract event 0xe07fc9955958541e451cd076ec11a41f7d3d69411be92715d1bd412050ad5918.
Solidity: event DemotionRevoked(uint256 indexed demotionId)
func (*EventsFilterer) ParseDemotionSubmitted ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseDemotionSubmitted(log types.Log) (*EventsDemotionSubmitted, error)
ParseDemotionSubmitted is a log parse operation binding the contract event 0x72cf50a64fcd4d3043cad57179bf0016d93d285e61b4fd0565a0e92b763deee9.
Solidity: event DemotionSubmitted(uint256 indexed epoch, address indexed nodeAddr, uint256 indexed demotionId, string reason, address reporter)
func (*EventsFilterer) ParseDeposited ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseDeposited(log types.Log) (*EventsDeposited, error)
ParseDeposited is a log parse operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.
Solidity: event Deposited(address indexed nodeAddr, uint256 indexed amount)
func (*EventsFilterer) ParseNodeCreated ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseNodeCreated(log types.Log) (*EventsNodeCreated, error)
ParseNodeCreated is a log parse operation binding the contract event 0x37570f68d94fd46cd4009b3823da2b2bc1a9a7e38f824f311ede9e876816e321.
Solidity: event NodeCreated(uint256 indexed nodeId, address indexed nodeAddr, string name, string description, uint64 taxRateBasisPoints, bool publicGood, bool alpha)
func (*EventsFilterer) ParseNodeStatusChanged ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseNodeStatusChanged(log types.Log) (*EventsNodeStatusChanged, error)
ParseNodeStatusChanged is a log parse operation binding the contract event 0xfb5740b379943f137d27260c0f7bd5f908f4d60a4507fd1c4824d264a00f0a72.
Solidity: event NodeStatusChanged(address indexed nodeAddr, uint8 indexed curStatus, uint8 indexed newStatus)
func (*EventsFilterer) ParseNodeTaxRateBasisPointsSet ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseNodeTaxRateBasisPointsSet(log types.Log) (*EventsNodeTaxRateBasisPointsSet, error)
ParseNodeTaxRateBasisPointsSet is a log parse operation binding the contract event 0xb8e5551053b871a40f7c7382e5bd3af5a62dd737d059d3838cf3aa7c325bd479.
Solidity: event NodeTaxRateBasisPointsSet(address indexed nodeAddr, uint64 indexed taxRateBasisPoints)
func (*EventsFilterer) ParseNodeUpdated ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseNodeUpdated(log types.Log) (*EventsNodeUpdated, error)
ParseNodeUpdated is a log parse operation binding the contract event 0x8dd72b3e159c2446f32a80f24459ad76e9f8fbb74165952a01c27adb16aba725.
Solidity: event NodeUpdated(address indexed nodeAddr, string name, string description)
func (*EventsFilterer) ParsePublicGoodRewardDistributed ¶ added in v0.7.0
func (_Events *EventsFilterer) ParsePublicGoodRewardDistributed(log types.Log) (*EventsPublicGoodRewardDistributed, error)
ParsePublicGoodRewardDistributed is a log parse operation binding the contract event 0xab7d25a2f6206ef56c88807f2474ddcd97e1a6323cb25149cde3a607fed6f2d7.
Solidity: event PublicGoodRewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, uint256 publicPoolRewards, uint256 publicPoolTax)
func (*EventsFilterer) ParsePublicPoolTaxRateBasisPointsSet ¶ added in v0.7.0
func (_Events *EventsFilterer) ParsePublicPoolTaxRateBasisPointsSet(log types.Log) (*EventsPublicPoolTaxRateBasisPointsSet, error)
ParsePublicPoolTaxRateBasisPointsSet is a log parse operation binding the contract event 0x948cf2302b029d76db2ac06e4ef2625e6c687335de349317468f47942a44e8b0.
Solidity: event PublicPoolTaxRateBasisPointsSet(uint64 indexed taxRateBasisPoints)
func (*EventsFilterer) ParseRewardDistributed ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseRewardDistributed(log types.Log) (*EventsRewardDistributed, error)
ParseRewardDistributed is a log parse operation binding the contract event 0x8ea79f19e90b084c2009d3490a097547d8bbb315a883b9efec0996502c1dd7ae.
Solidity: event RewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] taxCollected, uint256[] requestCounts)
func (*EventsFilterer) ParseSlashCommitted ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseSlashCommitted(log types.Log) (*EventsSlashCommitted, error)
ParseSlashCommitted is a log parse operation binding the contract event 0x9520d039b6a33a0b9fb3d5c2c5c505f1d07dd471d64492553a5b10ffe05e1f9c.
Solidity: event SlashCommitted(address nodeAddr, uint256 epoch)
func (*EventsFilterer) ParseSlashRecorded ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseSlashRecorded(log types.Log) (*EventsSlashRecorded, error)
ParseSlashRecorded is a log parse operation binding the contract event 0x364424c102a33f9705e7393b69481cfcc8bb4f448148681f2eca17247f017f7d.
Solidity: event SlashRecorded(address indexed nodeAddr, uint256 indexed epoch, uint256 slashedOperationPool, uint256 slashedStakingPool)
func (*EventsFilterer) ParseSlashRevoked ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseSlashRevoked(log types.Log) (*EventsSlashRevoked, error)
ParseSlashRevoked is a log parse operation binding the contract event 0x15e7cd41a21eea06cee0aeb26dbe9c430c42463fc7f8e0124688bcde5bf04a31.
Solidity: event SlashRevoked(address nodeAddr, uint256 epoch)
func (*EventsFilterer) ParseStaked ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseStaked(log types.Log) (*EventsStaked, error)
ParseStaked is a log parse operation binding the contract event 0xad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69.
Solidity: event Staked(address indexed user, address indexed nodeAddr, uint256 indexed amount, uint256 startTokenId, uint256 endTokenId)
func (*EventsFilterer) ParseUnstakeClaimed ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseUnstakeClaimed(log types.Log) (*EventsUnstakeClaimed, error)
ParseUnstakeClaimed is a log parse operation binding the contract event 0x2769ece66eadb650afd8c08c7a8772e39381dddd7230f9e039669e631044d47c.
Solidity: event UnstakeClaimed(uint256 indexed requestId, address indexed nodeAddr, address indexed user, uint256 unstakeAmount)
func (*EventsFilterer) ParseUnstakeRequested ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseUnstakeRequested(log types.Log) (*EventsUnstakeRequested, error)
ParseUnstakeRequested is a log parse operation binding the contract event 0x2808f92d5a0fada467cbe4e766f62f323e78271a7471058a87ef63a9e3e4c5c5.
Solidity: event UnstakeRequested(address indexed user, address indexed nodeAddr, uint256 indexed requestId, uint256 unstakeAmount, uint256[] chipsIds)
func (*EventsFilterer) ParseWithdrawRequested ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseWithdrawRequested(log types.Log) (*EventsWithdrawRequested, error)
ParseWithdrawRequested is a log parse operation binding the contract event 0xd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d14.
Solidity: event WithdrawRequested(address indexed nodeAddr, uint256 indexed amount, uint256 indexed requestId)
func (*EventsFilterer) ParseWithdrawalClaimed ¶ added in v0.7.0
func (_Events *EventsFilterer) ParseWithdrawalClaimed(log types.Log) (*EventsWithdrawalClaimed, error)
ParseWithdrawalClaimed is a log parse operation binding the contract event 0x8adb7a84b2998a8d11cd9284395f95d5a99f160be785ae79998c654979bd3d9a.
Solidity: event WithdrawalClaimed(uint256 indexed requestId, address indexed nodeAddr, uint256 indexed amount)
func (*EventsFilterer) WatchChipsMerged ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchChipsMerged(opts *bind.WatchOpts, sink chan<- *EventsChipsMerged, user []common.Address, nodeAddr []common.Address, newTokenId []*big.Int) (event.Subscription, error)
WatchChipsMerged is a free log subscription operation binding the contract event 0x18f7a8d9091ae36e0b14acaa3e2ac8a6672a389ef8e18c8e3523fcae05d24f18.
Solidity: event ChipsMerged(address indexed user, address indexed nodeAddr, uint256 indexed newTokenId, uint256[] burnedTokenIds)
func (*EventsFilterer) WatchDemotionRevoked ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchDemotionRevoked(opts *bind.WatchOpts, sink chan<- *EventsDemotionRevoked, demotionId []*big.Int) (event.Subscription, error)
WatchDemotionRevoked is a free log subscription operation binding the contract event 0xe07fc9955958541e451cd076ec11a41f7d3d69411be92715d1bd412050ad5918.
Solidity: event DemotionRevoked(uint256 indexed demotionId)
func (*EventsFilterer) WatchDemotionSubmitted ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchDemotionSubmitted(opts *bind.WatchOpts, sink chan<- *EventsDemotionSubmitted, epoch []*big.Int, nodeAddr []common.Address, demotionId []*big.Int) (event.Subscription, error)
WatchDemotionSubmitted is a free log subscription operation binding the contract event 0x72cf50a64fcd4d3043cad57179bf0016d93d285e61b4fd0565a0e92b763deee9.
Solidity: event DemotionSubmitted(uint256 indexed epoch, address indexed nodeAddr, uint256 indexed demotionId, string reason, address reporter)
func (*EventsFilterer) WatchDeposited ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *EventsDeposited, nodeAddr []common.Address, amount []*big.Int) (event.Subscription, error)
WatchDeposited is a free log subscription operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.
Solidity: event Deposited(address indexed nodeAddr, uint256 indexed amount)
func (*EventsFilterer) WatchNodeCreated ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchNodeCreated(opts *bind.WatchOpts, sink chan<- *EventsNodeCreated, nodeId []*big.Int, nodeAddr []common.Address) (event.Subscription, error)
WatchNodeCreated is a free log subscription operation binding the contract event 0x37570f68d94fd46cd4009b3823da2b2bc1a9a7e38f824f311ede9e876816e321.
Solidity: event NodeCreated(uint256 indexed nodeId, address indexed nodeAddr, string name, string description, uint64 taxRateBasisPoints, bool publicGood, bool alpha)
func (*EventsFilterer) WatchNodeStatusChanged ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchNodeStatusChanged(opts *bind.WatchOpts, sink chan<- *EventsNodeStatusChanged, nodeAddr []common.Address, curStatus []uint8, newStatus []uint8) (event.Subscription, error)
WatchNodeStatusChanged is a free log subscription operation binding the contract event 0xfb5740b379943f137d27260c0f7bd5f908f4d60a4507fd1c4824d264a00f0a72.
Solidity: event NodeStatusChanged(address indexed nodeAddr, uint8 indexed curStatus, uint8 indexed newStatus)
func (*EventsFilterer) WatchNodeTaxRateBasisPointsSet ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchNodeTaxRateBasisPointsSet(opts *bind.WatchOpts, sink chan<- *EventsNodeTaxRateBasisPointsSet, nodeAddr []common.Address, taxRateBasisPoints []uint64) (event.Subscription, error)
WatchNodeTaxRateBasisPointsSet is a free log subscription operation binding the contract event 0xb8e5551053b871a40f7c7382e5bd3af5a62dd737d059d3838cf3aa7c325bd479.
Solidity: event NodeTaxRateBasisPointsSet(address indexed nodeAddr, uint64 indexed taxRateBasisPoints)
func (*EventsFilterer) WatchNodeUpdated ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchNodeUpdated(opts *bind.WatchOpts, sink chan<- *EventsNodeUpdated, nodeAddr []common.Address) (event.Subscription, error)
WatchNodeUpdated is a free log subscription operation binding the contract event 0x8dd72b3e159c2446f32a80f24459ad76e9f8fbb74165952a01c27adb16aba725.
Solidity: event NodeUpdated(address indexed nodeAddr, string name, string description)
func (*EventsFilterer) WatchPublicGoodRewardDistributed ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchPublicGoodRewardDistributed(opts *bind.WatchOpts, sink chan<- *EventsPublicGoodRewardDistributed, epoch []*big.Int) (event.Subscription, error)
WatchPublicGoodRewardDistributed is a free log subscription operation binding the contract event 0xab7d25a2f6206ef56c88807f2474ddcd97e1a6323cb25149cde3a607fed6f2d7.
Solidity: event PublicGoodRewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, uint256 publicPoolRewards, uint256 publicPoolTax)
func (*EventsFilterer) WatchPublicPoolTaxRateBasisPointsSet ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchPublicPoolTaxRateBasisPointsSet(opts *bind.WatchOpts, sink chan<- *EventsPublicPoolTaxRateBasisPointsSet, taxRateBasisPoints []uint64) (event.Subscription, error)
WatchPublicPoolTaxRateBasisPointsSet is a free log subscription operation binding the contract event 0x948cf2302b029d76db2ac06e4ef2625e6c687335de349317468f47942a44e8b0.
Solidity: event PublicPoolTaxRateBasisPointsSet(uint64 indexed taxRateBasisPoints)
func (*EventsFilterer) WatchRewardDistributed ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchRewardDistributed(opts *bind.WatchOpts, sink chan<- *EventsRewardDistributed, epoch []*big.Int) (event.Subscription, error)
WatchRewardDistributed is a free log subscription operation binding the contract event 0x8ea79f19e90b084c2009d3490a097547d8bbb315a883b9efec0996502c1dd7ae.
Solidity: event RewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] taxCollected, uint256[] requestCounts)
func (*EventsFilterer) WatchSlashCommitted ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchSlashCommitted(opts *bind.WatchOpts, sink chan<- *EventsSlashCommitted) (event.Subscription, error)
WatchSlashCommitted is a free log subscription operation binding the contract event 0x9520d039b6a33a0b9fb3d5c2c5c505f1d07dd471d64492553a5b10ffe05e1f9c.
Solidity: event SlashCommitted(address nodeAddr, uint256 epoch)
func (*EventsFilterer) WatchSlashRecorded ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchSlashRecorded(opts *bind.WatchOpts, sink chan<- *EventsSlashRecorded, nodeAddr []common.Address, epoch []*big.Int) (event.Subscription, error)
WatchSlashRecorded is a free log subscription operation binding the contract event 0x364424c102a33f9705e7393b69481cfcc8bb4f448148681f2eca17247f017f7d.
Solidity: event SlashRecorded(address indexed nodeAddr, uint256 indexed epoch, uint256 slashedOperationPool, uint256 slashedStakingPool)
func (*EventsFilterer) WatchSlashRevoked ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchSlashRevoked(opts *bind.WatchOpts, sink chan<- *EventsSlashRevoked) (event.Subscription, error)
WatchSlashRevoked is a free log subscription operation binding the contract event 0x15e7cd41a21eea06cee0aeb26dbe9c430c42463fc7f8e0124688bcde5bf04a31.
Solidity: event SlashRevoked(address nodeAddr, uint256 epoch)
func (*EventsFilterer) WatchStaked ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *EventsStaked, user []common.Address, nodeAddr []common.Address, amount []*big.Int) (event.Subscription, error)
WatchStaked is a free log subscription operation binding the contract event 0xad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69.
Solidity: event Staked(address indexed user, address indexed nodeAddr, uint256 indexed amount, uint256 startTokenId, uint256 endTokenId)
func (*EventsFilterer) WatchUnstakeClaimed ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchUnstakeClaimed(opts *bind.WatchOpts, sink chan<- *EventsUnstakeClaimed, requestId []*big.Int, nodeAddr []common.Address, user []common.Address) (event.Subscription, error)
WatchUnstakeClaimed is a free log subscription operation binding the contract event 0x2769ece66eadb650afd8c08c7a8772e39381dddd7230f9e039669e631044d47c.
Solidity: event UnstakeClaimed(uint256 indexed requestId, address indexed nodeAddr, address indexed user, uint256 unstakeAmount)
func (*EventsFilterer) WatchUnstakeRequested ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchUnstakeRequested(opts *bind.WatchOpts, sink chan<- *EventsUnstakeRequested, user []common.Address, nodeAddr []common.Address, requestId []*big.Int) (event.Subscription, error)
WatchUnstakeRequested is a free log subscription operation binding the contract event 0x2808f92d5a0fada467cbe4e766f62f323e78271a7471058a87ef63a9e3e4c5c5.
Solidity: event UnstakeRequested(address indexed user, address indexed nodeAddr, uint256 indexed requestId, uint256 unstakeAmount, uint256[] chipsIds)
func (*EventsFilterer) WatchWithdrawRequested ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchWithdrawRequested(opts *bind.WatchOpts, sink chan<- *EventsWithdrawRequested, nodeAddr []common.Address, amount []*big.Int, requestId []*big.Int) (event.Subscription, error)
WatchWithdrawRequested is a free log subscription operation binding the contract event 0xd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d14.
Solidity: event WithdrawRequested(address indexed nodeAddr, uint256 indexed amount, uint256 indexed requestId)
func (*EventsFilterer) WatchWithdrawalClaimed ¶ added in v0.7.0
func (_Events *EventsFilterer) WatchWithdrawalClaimed(opts *bind.WatchOpts, sink chan<- *EventsWithdrawalClaimed, requestId []*big.Int, nodeAddr []common.Address, amount []*big.Int) (event.Subscription, error)
WatchWithdrawalClaimed is a free log subscription operation binding the contract event 0x8adb7a84b2998a8d11cd9284395f95d5a99f160be785ae79998c654979bd3d9a.
Solidity: event WithdrawalClaimed(uint256 indexed requestId, address indexed nodeAddr, uint256 indexed amount)
type EventsNodeCreated ¶ added in v0.7.0
type EventsNodeCreated struct { NodeId *big.Int NodeAddr common.Address Name string Description string TaxRateBasisPoints uint64 PublicGood bool Alpha bool Raw types.Log // Blockchain specific contextual infos }
EventsNodeCreated represents a NodeCreated event raised by the Events contract.
type EventsNodeCreatedIterator ¶ added in v0.7.0
type EventsNodeCreatedIterator struct { Event *EventsNodeCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsNodeCreatedIterator is returned from FilterNodeCreated and is used to iterate over the raw logs and unpacked data for NodeCreated events raised by the Events contract.
func (*EventsNodeCreatedIterator) Close ¶ added in v0.7.0
func (it *EventsNodeCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsNodeCreatedIterator) Error ¶ added in v0.7.0
func (it *EventsNodeCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsNodeCreatedIterator) Next ¶ added in v0.7.0
func (it *EventsNodeCreatedIterator) 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 EventsNodeStatusChanged ¶ added in v0.7.0
type EventsNodeStatusChanged struct { NodeAddr common.Address CurStatus uint8 NewStatus uint8 Raw types.Log // Blockchain specific contextual infos }
EventsNodeStatusChanged represents a NodeStatusChanged event raised by the Events contract.
type EventsNodeStatusChangedIterator ¶ added in v0.7.0
type EventsNodeStatusChangedIterator struct { Event *EventsNodeStatusChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsNodeStatusChangedIterator is returned from FilterNodeStatusChanged and is used to iterate over the raw logs and unpacked data for NodeStatusChanged events raised by the Events contract.
func (*EventsNodeStatusChangedIterator) Close ¶ added in v0.7.0
func (it *EventsNodeStatusChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsNodeStatusChangedIterator) Error ¶ added in v0.7.0
func (it *EventsNodeStatusChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsNodeStatusChangedIterator) Next ¶ added in v0.7.0
func (it *EventsNodeStatusChangedIterator) 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 EventsNodeTaxRateBasisPointsSet ¶ added in v0.7.0
type EventsNodeTaxRateBasisPointsSet struct { NodeAddr common.Address TaxRateBasisPoints uint64 Raw types.Log // Blockchain specific contextual infos }
EventsNodeTaxRateBasisPointsSet represents a NodeTaxRateBasisPointsSet event raised by the Events contract.
type EventsNodeTaxRateBasisPointsSetIterator ¶ added in v0.7.0
type EventsNodeTaxRateBasisPointsSetIterator struct { Event *EventsNodeTaxRateBasisPointsSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsNodeTaxRateBasisPointsSetIterator is returned from FilterNodeTaxRateBasisPointsSet and is used to iterate over the raw logs and unpacked data for NodeTaxRateBasisPointsSet events raised by the Events contract.
func (*EventsNodeTaxRateBasisPointsSetIterator) Close ¶ added in v0.7.0
func (it *EventsNodeTaxRateBasisPointsSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsNodeTaxRateBasisPointsSetIterator) Error ¶ added in v0.7.0
func (it *EventsNodeTaxRateBasisPointsSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsNodeTaxRateBasisPointsSetIterator) Next ¶ added in v0.7.0
func (it *EventsNodeTaxRateBasisPointsSetIterator) 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 EventsNodeUpdated ¶ added in v0.7.0
type EventsNodeUpdated struct { NodeAddr common.Address Name string Description string Raw types.Log // Blockchain specific contextual infos }
EventsNodeUpdated represents a NodeUpdated event raised by the Events contract.
type EventsNodeUpdatedIterator ¶ added in v0.7.0
type EventsNodeUpdatedIterator struct { Event *EventsNodeUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsNodeUpdatedIterator is returned from FilterNodeUpdated and is used to iterate over the raw logs and unpacked data for NodeUpdated events raised by the Events contract.
func (*EventsNodeUpdatedIterator) Close ¶ added in v0.7.0
func (it *EventsNodeUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsNodeUpdatedIterator) Error ¶ added in v0.7.0
func (it *EventsNodeUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsNodeUpdatedIterator) Next ¶ added in v0.7.0
func (it *EventsNodeUpdatedIterator) 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 EventsPublicGoodRewardDistributed ¶ added in v0.7.0
type EventsPublicGoodRewardDistributed struct { Epoch *big.Int StartTimestamp *big.Int EndTimestamp *big.Int PublicPoolRewards *big.Int PublicPoolTax *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsPublicGoodRewardDistributed represents a PublicGoodRewardDistributed event raised by the Events contract.
type EventsPublicGoodRewardDistributedIterator ¶ added in v0.7.0
type EventsPublicGoodRewardDistributedIterator struct { Event *EventsPublicGoodRewardDistributed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsPublicGoodRewardDistributedIterator is returned from FilterPublicGoodRewardDistributed and is used to iterate over the raw logs and unpacked data for PublicGoodRewardDistributed events raised by the Events contract.
func (*EventsPublicGoodRewardDistributedIterator) Close ¶ added in v0.7.0
func (it *EventsPublicGoodRewardDistributedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsPublicGoodRewardDistributedIterator) Error ¶ added in v0.7.0
func (it *EventsPublicGoodRewardDistributedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsPublicGoodRewardDistributedIterator) Next ¶ added in v0.7.0
func (it *EventsPublicGoodRewardDistributedIterator) 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 EventsPublicPoolTaxRateBasisPointsSet ¶ added in v0.7.0
type EventsPublicPoolTaxRateBasisPointsSet struct { TaxRateBasisPoints uint64 Raw types.Log // Blockchain specific contextual infos }
EventsPublicPoolTaxRateBasisPointsSet represents a PublicPoolTaxRateBasisPointsSet event raised by the Events contract.
type EventsPublicPoolTaxRateBasisPointsSetIterator ¶ added in v0.7.0
type EventsPublicPoolTaxRateBasisPointsSetIterator struct { Event *EventsPublicPoolTaxRateBasisPointsSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsPublicPoolTaxRateBasisPointsSetIterator is returned from FilterPublicPoolTaxRateBasisPointsSet and is used to iterate over the raw logs and unpacked data for PublicPoolTaxRateBasisPointsSet events raised by the Events contract.
func (*EventsPublicPoolTaxRateBasisPointsSetIterator) Close ¶ added in v0.7.0
func (it *EventsPublicPoolTaxRateBasisPointsSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsPublicPoolTaxRateBasisPointsSetIterator) Error ¶ added in v0.7.0
func (it *EventsPublicPoolTaxRateBasisPointsSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsPublicPoolTaxRateBasisPointsSetIterator) Next ¶ added in v0.7.0
func (it *EventsPublicPoolTaxRateBasisPointsSetIterator) 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 EventsRaw ¶ added in v0.7.0
type EventsRaw struct {
Contract *Events // Generic contract binding to access the raw methods on
}
EventsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*EventsRaw) Call ¶ added in v0.7.0
func (_Events *EventsRaw) 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 (*EventsRaw) Transact ¶ added in v0.7.0
func (_Events *EventsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EventsRaw) Transfer ¶ added in v0.7.0
func (_Events *EventsRaw) 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 EventsRewardDistributed ¶ added in v0.7.0
type EventsRewardDistributed struct { Epoch *big.Int StartTimestamp *big.Int EndTimestamp *big.Int NodeAddrs []common.Address OperationRewards []*big.Int StakingRewards []*big.Int TaxCollected []*big.Int RequestCounts []*big.Int Raw types.Log // Blockchain specific contextual infos }
EventsRewardDistributed represents a RewardDistributed event raised by the Events contract.
type EventsRewardDistributedIterator ¶ added in v0.7.0
type EventsRewardDistributedIterator struct { Event *EventsRewardDistributed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsRewardDistributedIterator is returned from FilterRewardDistributed and is used to iterate over the raw logs and unpacked data for RewardDistributed events raised by the Events contract.
func (*EventsRewardDistributedIterator) Close ¶ added in v0.7.0
func (it *EventsRewardDistributedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsRewardDistributedIterator) Error ¶ added in v0.7.0
func (it *EventsRewardDistributedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsRewardDistributedIterator) Next ¶ added in v0.7.0
func (it *EventsRewardDistributedIterator) 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 EventsSession ¶ added in v0.7.0
type EventsSession struct { Contract *Events // 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 }
EventsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type EventsSlashCommitted ¶ added in v0.7.0
type EventsSlashCommitted struct { NodeAddr common.Address Epoch *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsSlashCommitted represents a SlashCommitted event raised by the Events contract.
type EventsSlashCommittedIterator ¶ added in v0.7.0
type EventsSlashCommittedIterator struct { Event *EventsSlashCommitted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsSlashCommittedIterator is returned from FilterSlashCommitted and is used to iterate over the raw logs and unpacked data for SlashCommitted events raised by the Events contract.
func (*EventsSlashCommittedIterator) Close ¶ added in v0.7.0
func (it *EventsSlashCommittedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsSlashCommittedIterator) Error ¶ added in v0.7.0
func (it *EventsSlashCommittedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsSlashCommittedIterator) Next ¶ added in v0.7.0
func (it *EventsSlashCommittedIterator) 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 EventsSlashRecorded ¶ added in v0.7.0
type EventsSlashRecorded struct { NodeAddr common.Address Epoch *big.Int SlashedOperationPool *big.Int SlashedStakingPool *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsSlashRecorded represents a SlashRecorded event raised by the Events contract.
type EventsSlashRecordedIterator ¶ added in v0.7.0
type EventsSlashRecordedIterator struct { Event *EventsSlashRecorded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsSlashRecordedIterator is returned from FilterSlashRecorded and is used to iterate over the raw logs and unpacked data for SlashRecorded events raised by the Events contract.
func (*EventsSlashRecordedIterator) Close ¶ added in v0.7.0
func (it *EventsSlashRecordedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsSlashRecordedIterator) Error ¶ added in v0.7.0
func (it *EventsSlashRecordedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsSlashRecordedIterator) Next ¶ added in v0.7.0
func (it *EventsSlashRecordedIterator) 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 EventsSlashRevoked ¶ added in v0.7.0
type EventsSlashRevoked struct { NodeAddr common.Address Epoch *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsSlashRevoked represents a SlashRevoked event raised by the Events contract.
type EventsSlashRevokedIterator ¶ added in v0.7.0
type EventsSlashRevokedIterator struct { Event *EventsSlashRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsSlashRevokedIterator is returned from FilterSlashRevoked and is used to iterate over the raw logs and unpacked data for SlashRevoked events raised by the Events contract.
func (*EventsSlashRevokedIterator) Close ¶ added in v0.7.0
func (it *EventsSlashRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsSlashRevokedIterator) Error ¶ added in v0.7.0
func (it *EventsSlashRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsSlashRevokedIterator) Next ¶ added in v0.7.0
func (it *EventsSlashRevokedIterator) 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 EventsStaked ¶ added in v0.7.0
type EventsStaked struct { User common.Address NodeAddr common.Address Amount *big.Int StartTokenId *big.Int EndTokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsStaked represents a Staked event raised by the Events contract.
type EventsStakedIterator ¶ added in v0.7.0
type EventsStakedIterator struct { Event *EventsStaked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the Events contract.
func (*EventsStakedIterator) Close ¶ added in v0.7.0
func (it *EventsStakedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsStakedIterator) Error ¶ added in v0.7.0
func (it *EventsStakedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsStakedIterator) Next ¶ added in v0.7.0
func (it *EventsStakedIterator) 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 EventsTransactor ¶ added in v0.7.0
type EventsTransactor struct {
// contains filtered or unexported fields
}
EventsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewEventsTransactor ¶ added in v0.7.0
func NewEventsTransactor(address common.Address, transactor bind.ContractTransactor) (*EventsTransactor, error)
NewEventsTransactor creates a new write-only instance of Events, bound to a specific deployed contract.
type EventsTransactorRaw ¶ added in v0.7.0
type EventsTransactorRaw struct {
Contract *EventsTransactor // Generic write-only contract binding to access the raw methods on
}
EventsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*EventsTransactorRaw) Transact ¶ added in v0.7.0
func (_Events *EventsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EventsTransactorRaw) Transfer ¶ added in v0.7.0
func (_Events *EventsTransactorRaw) 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 EventsTransactorSession ¶ added in v0.7.0
type EventsTransactorSession struct { Contract *EventsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
EventsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type EventsUnstakeClaimed ¶ added in v0.7.0
type EventsUnstakeClaimed struct { RequestId *big.Int NodeAddr common.Address User common.Address UnstakeAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsUnstakeClaimed represents a UnstakeClaimed event raised by the Events contract.
type EventsUnstakeClaimedIterator ¶ added in v0.7.0
type EventsUnstakeClaimedIterator struct { Event *EventsUnstakeClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsUnstakeClaimedIterator is returned from FilterUnstakeClaimed and is used to iterate over the raw logs and unpacked data for UnstakeClaimed events raised by the Events contract.
func (*EventsUnstakeClaimedIterator) Close ¶ added in v0.7.0
func (it *EventsUnstakeClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsUnstakeClaimedIterator) Error ¶ added in v0.7.0
func (it *EventsUnstakeClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsUnstakeClaimedIterator) Next ¶ added in v0.7.0
func (it *EventsUnstakeClaimedIterator) 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 EventsUnstakeRequested ¶ added in v0.7.0
type EventsUnstakeRequested struct { User common.Address NodeAddr common.Address RequestId *big.Int UnstakeAmount *big.Int ChipsIds []*big.Int Raw types.Log // Blockchain specific contextual infos }
EventsUnstakeRequested represents a UnstakeRequested event raised by the Events contract.
type EventsUnstakeRequestedIterator ¶ added in v0.7.0
type EventsUnstakeRequestedIterator struct { Event *EventsUnstakeRequested // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsUnstakeRequestedIterator is returned from FilterUnstakeRequested and is used to iterate over the raw logs and unpacked data for UnstakeRequested events raised by the Events contract.
func (*EventsUnstakeRequestedIterator) Close ¶ added in v0.7.0
func (it *EventsUnstakeRequestedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsUnstakeRequestedIterator) Error ¶ added in v0.7.0
func (it *EventsUnstakeRequestedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsUnstakeRequestedIterator) Next ¶ added in v0.7.0
func (it *EventsUnstakeRequestedIterator) 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 EventsWithdrawRequested ¶ added in v0.7.0
type EventsWithdrawRequested struct { NodeAddr common.Address Amount *big.Int RequestId *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsWithdrawRequested represents a WithdrawRequested event raised by the Events contract.
type EventsWithdrawRequestedIterator ¶ added in v0.7.0
type EventsWithdrawRequestedIterator struct { Event *EventsWithdrawRequested // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsWithdrawRequestedIterator is returned from FilterWithdrawRequested and is used to iterate over the raw logs and unpacked data for WithdrawRequested events raised by the Events contract.
func (*EventsWithdrawRequestedIterator) Close ¶ added in v0.7.0
func (it *EventsWithdrawRequestedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsWithdrawRequestedIterator) Error ¶ added in v0.7.0
func (it *EventsWithdrawRequestedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsWithdrawRequestedIterator) Next ¶ added in v0.7.0
func (it *EventsWithdrawRequestedIterator) 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 EventsWithdrawalClaimed ¶ added in v0.7.0
type EventsWithdrawalClaimed struct { RequestId *big.Int NodeAddr common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
EventsWithdrawalClaimed represents a WithdrawalClaimed event raised by the Events contract.
type EventsWithdrawalClaimedIterator ¶ added in v0.7.0
type EventsWithdrawalClaimedIterator struct { Event *EventsWithdrawalClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EventsWithdrawalClaimedIterator is returned from FilterWithdrawalClaimed and is used to iterate over the raw logs and unpacked data for WithdrawalClaimed events raised by the Events contract.
func (*EventsWithdrawalClaimedIterator) Close ¶ added in v0.7.0
func (it *EventsWithdrawalClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EventsWithdrawalClaimedIterator) Error ¶ added in v0.7.0
func (it *EventsWithdrawalClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EventsWithdrawalClaimedIterator) Next ¶ added in v0.7.0
func (it *EventsWithdrawalClaimedIterator) 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 NetworkParams ¶ added in v0.6.20
type NetworkParams struct { NetworkParamsCaller // Read-only binding to the contract NetworkParamsTransactor // Write-only binding to the contract NetworkParamsFilterer // Log filterer for contract events }
NetworkParams is an auto generated Go binding around an Ethereum contract.
func NewNetworkParams ¶ added in v0.6.20
func NewNetworkParams(address common.Address, backend bind.ContractBackend) (*NetworkParams, error)
NewNetworkParams creates a new instance of NetworkParams, bound to a specific deployed contract.
type NetworkParamsCaller ¶ added in v0.6.20
type NetworkParamsCaller struct {
// contains filtered or unexported fields
}
NetworkParamsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewNetworkParamsCaller ¶ added in v0.6.20
func NewNetworkParamsCaller(address common.Address, caller bind.ContractCaller) (*NetworkParamsCaller, error)
NewNetworkParamsCaller creates a new read-only instance of NetworkParams, bound to a specific deployed contract.
func (*NetworkParamsCaller) ADMINROLE ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) ADMINROLE(opts *bind.CallOpts) ([32]byte, error)
ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*NetworkParamsCaller) DEFAULTADMINROLE ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) 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 (*NetworkParamsCaller) GetParams ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) GetParams(opts *bind.CallOpts, epoch uint64) (string, error)
GetParams is a free data retrieval call binding the contract method 0xace30dbc.
Solidity: function getParams(uint64 epoch) view returns(string)
func (*NetworkParamsCaller) GetRoleAdmin ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) GetRoleAdmin(opts *bind.CallOpts, 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 (*NetworkParamsCaller) GetRoleMember ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) 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 (*NetworkParamsCaller) GetRoleMemberCount ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) 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 (*NetworkParamsCaller) HasRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) 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 (*NetworkParamsCaller) SupportsInterface ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCaller) 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 NetworkParamsCallerRaw ¶ added in v0.6.20
type NetworkParamsCallerRaw struct {
Contract *NetworkParamsCaller // Generic read-only contract binding to access the raw methods on
}
NetworkParamsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*NetworkParamsCallerRaw) Call ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerRaw) 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 NetworkParamsCallerSession ¶ added in v0.6.20
type NetworkParamsCallerSession struct { Contract *NetworkParamsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
NetworkParamsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*NetworkParamsCallerSession) ADMINROLE ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) ADMINROLE() ([32]byte, error)
ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*NetworkParamsCallerSession) DEFAULTADMINROLE ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) 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 (*NetworkParamsCallerSession) GetParams ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) GetParams(epoch uint64) (string, error)
GetParams is a free data retrieval call binding the contract method 0xace30dbc.
Solidity: function getParams(uint64 epoch) view returns(string)
func (*NetworkParamsCallerSession) GetRoleAdmin ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) 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 (*NetworkParamsCallerSession) GetRoleMember ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) 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 (*NetworkParamsCallerSession) GetRoleMemberCount ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) 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 (*NetworkParamsCallerSession) HasRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) HasRole(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 (*NetworkParamsCallerSession) SupportsInterface ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsCallerSession) 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)
type NetworkParamsFilterer ¶ added in v0.6.20
type NetworkParamsFilterer struct {
// contains filtered or unexported fields
}
NetworkParamsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewNetworkParamsFilterer ¶ added in v0.6.20
func NewNetworkParamsFilterer(address common.Address, filterer bind.ContractFilterer) (*NetworkParamsFilterer, error)
NewNetworkParamsFilterer creates a new log filterer instance of NetworkParams, bound to a specific deployed contract.
func (*NetworkParamsFilterer) FilterInitialized ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) FilterInitialized(opts *bind.FilterOpts) (*NetworkParamsInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*NetworkParamsFilterer) FilterParamsSet ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) FilterParamsSet(opts *bind.FilterOpts, epoch []uint64) (*NetworkParamsParamsSetIterator, error)
FilterParamsSet is a free log retrieval operation binding the contract event 0xead0164680b20feec7ed3c7d1ad4c91a8694f52e8bcee1772910ea2c41c356eb.
Solidity: event ParamsSet(uint64 indexed epoch, bytes params)
func (*NetworkParamsFilterer) FilterRoleAdminChanged ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*NetworkParamsRoleAdminChangedIterator, 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 (*NetworkParamsFilterer) FilterRoleGranted ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*NetworkParamsRoleGrantedIterator, 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 (*NetworkParamsFilterer) FilterRoleRevoked ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*NetworkParamsRoleRevokedIterator, 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 (*NetworkParamsFilterer) ParseInitialized ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) ParseInitialized(log types.Log) (*NetworkParamsInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*NetworkParamsFilterer) ParseParamsSet ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) ParseParamsSet(log types.Log) (*NetworkParamsParamsSet, error)
ParseParamsSet is a log parse operation binding the contract event 0xead0164680b20feec7ed3c7d1ad4c91a8694f52e8bcee1772910ea2c41c356eb.
Solidity: event ParamsSet(uint64 indexed epoch, bytes params)
func (*NetworkParamsFilterer) ParseRoleAdminChanged ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) ParseRoleAdminChanged(log types.Log) (*NetworkParamsRoleAdminChanged, 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 (*NetworkParamsFilterer) ParseRoleGranted ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) ParseRoleGranted(log types.Log) (*NetworkParamsRoleGranted, 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 (*NetworkParamsFilterer) ParseRoleRevoked ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) ParseRoleRevoked(log types.Log) (*NetworkParamsRoleRevoked, 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 (*NetworkParamsFilterer) WatchInitialized ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *NetworkParamsInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*NetworkParamsFilterer) WatchParamsSet ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) WatchParamsSet(opts *bind.WatchOpts, sink chan<- *NetworkParamsParamsSet, epoch []uint64) (event.Subscription, error)
WatchParamsSet is a free log subscription operation binding the contract event 0xead0164680b20feec7ed3c7d1ad4c91a8694f52e8bcee1772910ea2c41c356eb.
Solidity: event ParamsSet(uint64 indexed epoch, bytes params)
func (*NetworkParamsFilterer) WatchRoleAdminChanged ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *NetworkParamsRoleAdminChanged, 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 (*NetworkParamsFilterer) WatchRoleGranted ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *NetworkParamsRoleGranted, 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 (*NetworkParamsFilterer) WatchRoleRevoked ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *NetworkParamsRoleRevoked, 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)
type NetworkParamsInitialized ¶ added in v0.6.20
type NetworkParamsInitialized struct { Version uint64 Raw types.Log // Blockchain specific contextual infos }
NetworkParamsInitialized represents a Initialized event raised by the NetworkParams contract.
type NetworkParamsInitializedIterator ¶ added in v0.6.20
type NetworkParamsInitializedIterator struct { Event *NetworkParamsInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NetworkParamsInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the NetworkParams contract.
func (*NetworkParamsInitializedIterator) Close ¶ added in v0.6.20
func (it *NetworkParamsInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NetworkParamsInitializedIterator) Error ¶ added in v0.6.20
func (it *NetworkParamsInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NetworkParamsInitializedIterator) Next ¶ added in v0.6.20
func (it *NetworkParamsInitializedIterator) 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 NetworkParamsParamsSet ¶ added in v0.6.20
type NetworkParamsParamsSet struct { Epoch uint64 Params []byte Raw types.Log // Blockchain specific contextual infos }
NetworkParamsParamsSet represents a ParamsSet event raised by the NetworkParams contract.
type NetworkParamsParamsSetIterator ¶ added in v0.6.20
type NetworkParamsParamsSetIterator struct { Event *NetworkParamsParamsSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NetworkParamsParamsSetIterator is returned from FilterParamsSet and is used to iterate over the raw logs and unpacked data for ParamsSet events raised by the NetworkParams contract.
func (*NetworkParamsParamsSetIterator) Close ¶ added in v0.6.20
func (it *NetworkParamsParamsSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NetworkParamsParamsSetIterator) Error ¶ added in v0.6.20
func (it *NetworkParamsParamsSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NetworkParamsParamsSetIterator) Next ¶ added in v0.6.20
func (it *NetworkParamsParamsSetIterator) 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 NetworkParamsRaw ¶ added in v0.6.20
type NetworkParamsRaw struct {
Contract *NetworkParams // Generic contract binding to access the raw methods on
}
NetworkParamsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*NetworkParamsRaw) Call ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsRaw) 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 (*NetworkParamsRaw) Transact ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NetworkParamsRaw) Transfer ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsRaw) 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 NetworkParamsRoleAdminChanged ¶ added in v0.6.20
type NetworkParamsRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
NetworkParamsRoleAdminChanged represents a RoleAdminChanged event raised by the NetworkParams contract.
type NetworkParamsRoleAdminChangedIterator ¶ added in v0.6.20
type NetworkParamsRoleAdminChangedIterator struct { Event *NetworkParamsRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NetworkParamsRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the NetworkParams contract.
func (*NetworkParamsRoleAdminChangedIterator) Close ¶ added in v0.6.20
func (it *NetworkParamsRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NetworkParamsRoleAdminChangedIterator) Error ¶ added in v0.6.20
func (it *NetworkParamsRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NetworkParamsRoleAdminChangedIterator) Next ¶ added in v0.6.20
func (it *NetworkParamsRoleAdminChangedIterator) 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 NetworkParamsRoleGranted ¶ added in v0.6.20
type NetworkParamsRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
NetworkParamsRoleGranted represents a RoleGranted event raised by the NetworkParams contract.
type NetworkParamsRoleGrantedIterator ¶ added in v0.6.20
type NetworkParamsRoleGrantedIterator struct { Event *NetworkParamsRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NetworkParamsRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the NetworkParams contract.
func (*NetworkParamsRoleGrantedIterator) Close ¶ added in v0.6.20
func (it *NetworkParamsRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NetworkParamsRoleGrantedIterator) Error ¶ added in v0.6.20
func (it *NetworkParamsRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NetworkParamsRoleGrantedIterator) Next ¶ added in v0.6.20
func (it *NetworkParamsRoleGrantedIterator) 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 NetworkParamsRoleRevoked ¶ added in v0.6.20
type NetworkParamsRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
NetworkParamsRoleRevoked represents a RoleRevoked event raised by the NetworkParams contract.
type NetworkParamsRoleRevokedIterator ¶ added in v0.6.20
type NetworkParamsRoleRevokedIterator struct { Event *NetworkParamsRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NetworkParamsRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the NetworkParams contract.
func (*NetworkParamsRoleRevokedIterator) Close ¶ added in v0.6.20
func (it *NetworkParamsRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NetworkParamsRoleRevokedIterator) Error ¶ added in v0.6.20
func (it *NetworkParamsRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NetworkParamsRoleRevokedIterator) Next ¶ added in v0.6.20
func (it *NetworkParamsRoleRevokedIterator) 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 NetworkParamsSession ¶ added in v0.6.20
type NetworkParamsSession struct { Contract *NetworkParams // 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 }
NetworkParamsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*NetworkParamsSession) ADMINROLE ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) ADMINROLE() ([32]byte, error)
ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*NetworkParamsSession) DEFAULTADMINROLE ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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 (*NetworkParamsSession) GetParams ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) GetParams(epoch uint64) (string, error)
GetParams is a free data retrieval call binding the contract method 0xace30dbc.
Solidity: function getParams(uint64 epoch) view returns(string)
func (*NetworkParamsSession) GetRoleAdmin ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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 (*NetworkParamsSession) GetRoleMember ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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 (*NetworkParamsSession) GetRoleMemberCount ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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 (*NetworkParamsSession) GrantRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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 (*NetworkParamsSession) HasRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) HasRole(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 (*NetworkParamsSession) Initialize ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) Initialize(adminAccount common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address adminAccount) returns()
func (*NetworkParamsSession) RenounceRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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 (*NetworkParamsSession) RevokeRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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 (*NetworkParamsSession) SetParams ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) SetParams(epoch uint64, params []byte) (*types.Transaction, error)
SetParams is a paid mutator transaction binding the contract method 0xdec995bf.
Solidity: function setParams(uint64 epoch, bytes params) returns()
func (*NetworkParamsSession) SupportsInterface ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsSession) 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)
type NetworkParamsTransactor ¶ added in v0.6.20
type NetworkParamsTransactor struct {
// contains filtered or unexported fields
}
NetworkParamsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewNetworkParamsTransactor ¶ added in v0.6.20
func NewNetworkParamsTransactor(address common.Address, transactor bind.ContractTransactor) (*NetworkParamsTransactor, error)
NewNetworkParamsTransactor creates a new write-only instance of NetworkParams, bound to a specific deployed contract.
func (*NetworkParamsTransactor) GrantRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactor) 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 (*NetworkParamsTransactor) Initialize ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactor) Initialize(opts *bind.TransactOpts, adminAccount common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address adminAccount) returns()
func (*NetworkParamsTransactor) RenounceRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactor) 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 (*NetworkParamsTransactor) RevokeRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactor) 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 (*NetworkParamsTransactor) SetParams ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactor) SetParams(opts *bind.TransactOpts, epoch uint64, params []byte) (*types.Transaction, error)
SetParams is a paid mutator transaction binding the contract method 0xdec995bf.
Solidity: function setParams(uint64 epoch, bytes params) returns()
type NetworkParamsTransactorRaw ¶ added in v0.6.20
type NetworkParamsTransactorRaw struct {
Contract *NetworkParamsTransactor // Generic write-only contract binding to access the raw methods on
}
NetworkParamsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*NetworkParamsTransactorRaw) Transact ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NetworkParamsTransactorRaw) Transfer ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactorRaw) 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 NetworkParamsTransactorSession ¶ added in v0.6.20
type NetworkParamsTransactorSession struct { Contract *NetworkParamsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
NetworkParamsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*NetworkParamsTransactorSession) GrantRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactorSession) 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 (*NetworkParamsTransactorSession) Initialize ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactorSession) Initialize(adminAccount common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address adminAccount) returns()
func (*NetworkParamsTransactorSession) RenounceRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactorSession) 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 (*NetworkParamsTransactorSession) RevokeRole ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactorSession) 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 (*NetworkParamsTransactorSession) SetParams ¶ added in v0.6.20
func (_NetworkParams *NetworkParamsTransactorSession) SetParams(epoch uint64, params []byte) (*types.Transaction, error)
SetParams is a paid mutator transaction binding the contract method 0xdec995bf.
Solidity: function setParams(uint64 epoch, bytes params) returns()
type Settlement ¶
type Settlement struct { SettlementCaller // Read-only binding to the contract SettlementTransactor // Write-only binding to the contract SettlementFilterer // Log filterer for contract events }
Settlement is an auto generated Go binding around an Ethereum contract.
func NewSettlement ¶
func NewSettlement(address common.Address, backend bind.ContractBackend) (*Settlement, error)
NewSettlement creates a new instance of Settlement, bound to a specific deployed contract.
type SettlementCaller ¶
type SettlementCaller struct {
// contains filtered or unexported fields
}
SettlementCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSettlementCaller ¶
func NewSettlementCaller(address common.Address, caller bind.ContractCaller) (*SettlementCaller, error)
NewSettlementCaller creates a new read-only instance of Settlement, bound to a specific deployed contract.
func (*SettlementCaller) CHECKEPOCHINTERVAL ¶ added in v0.7.0
func (_Settlement *SettlementCaller) CHECKEPOCHINTERVAL(opts *bind.CallOpts) (bool, error)
CHECKEPOCHINTERVAL is a free data retrieval call binding the contract method 0x3d102615.
Solidity: function CHECK_EPOCH_INTERVAL() view returns(bool)
func (*SettlementCaller) CurrentEpoch ¶
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint256)
func (*SettlementCaller) DEFAULTADMINROLE ¶
func (_Settlement *SettlementCaller) 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 (*SettlementCaller) EPOCHDURATION ¶
EPOCHDURATION is a free data retrieval call binding the contract method 0xa70b9f0c.
Solidity: function EPOCH_DURATION() view returns(uint256)
func (*SettlementCaller) GetBonusInfo ¶
GetBonusInfo is a free data retrieval call binding the contract method 0xfc5567d0.
Solidity: function getBonusInfo() view returns(uint256, uint256)
func (*SettlementCaller) GetRoleAdmin ¶
func (_Settlement *SettlementCaller) GetRoleAdmin(opts *bind.CallOpts, 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 (*SettlementCaller) GetRoleMember ¶
func (_Settlement *SettlementCaller) 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 (*SettlementCaller) GetRoleMemberCount ¶
func (_Settlement *SettlementCaller) 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 (*SettlementCaller) HasRole ¶
func (_Settlement *SettlementCaller) 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 (*SettlementCaller) ORACLEROLE ¶
func (_Settlement *SettlementCaller) 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 (*SettlementCaller) StakingContract ¶
StakingContract is a free data retrieval call binding the contract method 0xee99205c.
Solidity: function stakingContract() view returns(address)
func (*SettlementCaller) SupportsInterface ¶
func (_Settlement *SettlementCaller) 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)
func (*SettlementCaller) TOTALREWARDSPERYEAR ¶
TOTALREWARDSPERYEAR is a free data retrieval call binding the contract method 0xd2adf460.
Solidity: function TOTAL_REWARDS_PER_YEAR() view returns(uint256)
type SettlementCallerRaw ¶
type SettlementCallerRaw struct {
Contract *SettlementCaller // Generic read-only contract binding to access the raw methods on
}
SettlementCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SettlementCallerRaw) Call ¶
func (_Settlement *SettlementCallerRaw) 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 SettlementCallerSession ¶
type SettlementCallerSession struct { Contract *SettlementCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SettlementCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SettlementCallerSession) CHECKEPOCHINTERVAL ¶ added in v0.7.0
func (_Settlement *SettlementCallerSession) CHECKEPOCHINTERVAL() (bool, error)
CHECKEPOCHINTERVAL is a free data retrieval call binding the contract method 0x3d102615.
Solidity: function CHECK_EPOCH_INTERVAL() view returns(bool)
func (*SettlementCallerSession) CurrentEpoch ¶
func (_Settlement *SettlementCallerSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint256)
func (*SettlementCallerSession) DEFAULTADMINROLE ¶
func (_Settlement *SettlementCallerSession) 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 (*SettlementCallerSession) EPOCHDURATION ¶
func (_Settlement *SettlementCallerSession) EPOCHDURATION() (*big.Int, error)
EPOCHDURATION is a free data retrieval call binding the contract method 0xa70b9f0c.
Solidity: function EPOCH_DURATION() view returns(uint256)
func (*SettlementCallerSession) GetBonusInfo ¶
GetBonusInfo is a free data retrieval call binding the contract method 0xfc5567d0.
Solidity: function getBonusInfo() view returns(uint256, uint256)
func (*SettlementCallerSession) GetRoleAdmin ¶
func (_Settlement *SettlementCallerSession) 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 (*SettlementCallerSession) GetRoleMember ¶
func (_Settlement *SettlementCallerSession) 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 (*SettlementCallerSession) GetRoleMemberCount ¶
func (_Settlement *SettlementCallerSession) 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 (*SettlementCallerSession) HasRole ¶
func (_Settlement *SettlementCallerSession) HasRole(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 (*SettlementCallerSession) ORACLEROLE ¶
func (_Settlement *SettlementCallerSession) ORACLEROLE() ([32]byte, error)
ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.
Solidity: function ORACLE_ROLE() view returns(bytes32)
func (*SettlementCallerSession) StakingContract ¶
func (_Settlement *SettlementCallerSession) StakingContract() (common.Address, error)
StakingContract is a free data retrieval call binding the contract method 0xee99205c.
Solidity: function stakingContract() view returns(address)
func (*SettlementCallerSession) SupportsInterface ¶
func (_Settlement *SettlementCallerSession) 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 (*SettlementCallerSession) TOTALREWARDSPERYEAR ¶
func (_Settlement *SettlementCallerSession) TOTALREWARDSPERYEAR() (*big.Int, error)
TOTALREWARDSPERYEAR is a free data retrieval call binding the contract method 0xd2adf460.
Solidity: function TOTAL_REWARDS_PER_YEAR() view returns(uint256)
func (*SettlementCallerSession) Version ¶ added in v0.7.0
func (_Settlement *SettlementCallerSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(string)
type SettlementFilterer ¶
type SettlementFilterer struct {
// contains filtered or unexported fields
}
SettlementFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSettlementFilterer ¶
func NewSettlementFilterer(address common.Address, filterer bind.ContractFilterer) (*SettlementFilterer, error)
NewSettlementFilterer creates a new log filterer instance of Settlement, bound to a specific deployed contract.
func (*SettlementFilterer) FilterInitialized ¶
func (_Settlement *SettlementFilterer) FilterInitialized(opts *bind.FilterOpts) (*SettlementInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*SettlementFilterer) FilterRoleAdminChanged ¶
func (_Settlement *SettlementFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*SettlementRoleAdminChangedIterator, 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 (*SettlementFilterer) FilterRoleGranted ¶
func (_Settlement *SettlementFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SettlementRoleGrantedIterator, 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 (*SettlementFilterer) FilterRoleRevoked ¶
func (_Settlement *SettlementFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SettlementRoleRevokedIterator, 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 (*SettlementFilterer) ParseInitialized ¶
func (_Settlement *SettlementFilterer) ParseInitialized(log types.Log) (*SettlementInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*SettlementFilterer) ParseRoleAdminChanged ¶
func (_Settlement *SettlementFilterer) ParseRoleAdminChanged(log types.Log) (*SettlementRoleAdminChanged, 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 (*SettlementFilterer) ParseRoleGranted ¶
func (_Settlement *SettlementFilterer) ParseRoleGranted(log types.Log) (*SettlementRoleGranted, 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 (*SettlementFilterer) ParseRoleRevoked ¶
func (_Settlement *SettlementFilterer) ParseRoleRevoked(log types.Log) (*SettlementRoleRevoked, 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 (*SettlementFilterer) WatchInitialized ¶
func (_Settlement *SettlementFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SettlementInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*SettlementFilterer) WatchRoleAdminChanged ¶
func (_Settlement *SettlementFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SettlementRoleAdminChanged, 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 (*SettlementFilterer) WatchRoleGranted ¶
func (_Settlement *SettlementFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SettlementRoleGranted, 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 (*SettlementFilterer) WatchRoleRevoked ¶
func (_Settlement *SettlementFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SettlementRoleRevoked, 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)
type SettlementInitialized ¶
type SettlementInitialized struct { Version uint64 Raw types.Log // Blockchain specific contextual infos }
SettlementInitialized represents a Initialized event raised by the Settlement contract.
type SettlementInitializedIterator ¶
type SettlementInitializedIterator struct { Event *SettlementInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SettlementInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Settlement contract.
func (*SettlementInitializedIterator) Close ¶
func (it *SettlementInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SettlementInitializedIterator) Error ¶
func (it *SettlementInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SettlementInitializedIterator) Next ¶
func (it *SettlementInitializedIterator) 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 SettlementRaw ¶
type SettlementRaw struct {
Contract *Settlement // Generic contract binding to access the raw methods on
}
SettlementRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SettlementRaw) Call ¶
func (_Settlement *SettlementRaw) 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 (*SettlementRaw) Transact ¶
func (_Settlement *SettlementRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SettlementRaw) Transfer ¶
func (_Settlement *SettlementRaw) 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 SettlementRoleAdminChanged ¶
type SettlementRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
SettlementRoleAdminChanged represents a RoleAdminChanged event raised by the Settlement contract.
type SettlementRoleAdminChangedIterator ¶
type SettlementRoleAdminChangedIterator struct { Event *SettlementRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SettlementRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Settlement contract.
func (*SettlementRoleAdminChangedIterator) Close ¶
func (it *SettlementRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SettlementRoleAdminChangedIterator) Error ¶
func (it *SettlementRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SettlementRoleAdminChangedIterator) Next ¶
func (it *SettlementRoleAdminChangedIterator) 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 SettlementRoleGranted ¶
type SettlementRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
SettlementRoleGranted represents a RoleGranted event raised by the Settlement contract.
type SettlementRoleGrantedIterator ¶
type SettlementRoleGrantedIterator struct { Event *SettlementRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SettlementRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Settlement contract.
func (*SettlementRoleGrantedIterator) Close ¶
func (it *SettlementRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SettlementRoleGrantedIterator) Error ¶
func (it *SettlementRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SettlementRoleGrantedIterator) Next ¶
func (it *SettlementRoleGrantedIterator) 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 SettlementRoleRevoked ¶
type SettlementRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
SettlementRoleRevoked represents a RoleRevoked event raised by the Settlement contract.
type SettlementRoleRevokedIterator ¶
type SettlementRoleRevokedIterator struct { Event *SettlementRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SettlementRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Settlement contract.
func (*SettlementRoleRevokedIterator) Close ¶
func (it *SettlementRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SettlementRoleRevokedIterator) Error ¶
func (it *SettlementRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SettlementRoleRevokedIterator) Next ¶
func (it *SettlementRoleRevokedIterator) 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 SettlementSession ¶
type SettlementSession struct { Contract *Settlement // 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 }
SettlementSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SettlementSession) CHECKEPOCHINTERVAL ¶ added in v0.7.0
func (_Settlement *SettlementSession) CHECKEPOCHINTERVAL() (bool, error)
CHECKEPOCHINTERVAL is a free data retrieval call binding the contract method 0x3d102615.
Solidity: function CHECK_EPOCH_INTERVAL() view returns(bool)
func (*SettlementSession) CommitSlashing ¶ added in v0.7.0
func (_Settlement *SettlementSession) CommitSlashing(nodeAddrs []common.Address, epochs []*big.Int) (*types.Transaction, error)
CommitSlashing is a paid mutator transaction binding the contract method 0x92679cf4.
Solidity: function commitSlashing(address[] nodeAddrs, uint256[] epochs) returns()
func (*SettlementSession) CurrentEpoch ¶
func (_Settlement *SettlementSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint256)
func (*SettlementSession) DEFAULTADMINROLE ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) DistributeRewards ¶
func (_Settlement *SettlementSession) DistributeRewards(epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, requestCounts []*big.Int, isFinal bool) (*types.Transaction, error)
DistributeRewards is a paid mutator transaction binding the contract method 0x5c3d3078.
Solidity: function distributeRewards(uint256 epoch, address[] nodeAddrs, uint256[] operationRewards, uint256[] requestCounts, bool isFinal) returns()
func (*SettlementSession) EPOCHDURATION ¶
func (_Settlement *SettlementSession) EPOCHDURATION() (*big.Int, error)
EPOCHDURATION is a free data retrieval call binding the contract method 0xa70b9f0c.
Solidity: function EPOCH_DURATION() view returns(uint256)
func (*SettlementSession) GetBonusInfo ¶
GetBonusInfo is a free data retrieval call binding the contract method 0xfc5567d0.
Solidity: function getBonusInfo() view returns(uint256, uint256)
func (*SettlementSession) GetRoleAdmin ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) GetRoleMember ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) GetRoleMemberCount ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) GrantRole ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*SettlementSession) Initialize ¶
func (_Settlement *SettlementSession) Initialize(staking common.Address, oracleAccount common.Address, startTime *big.Int, operationRewardsPercent *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xeb990c59.
Solidity: function initialize(address staking, address oracleAccount, uint256 startTime, uint256 operationRewardsPercent) returns()
func (*SettlementSession) Multicall ¶ added in v0.7.0
func (_Settlement *SettlementSession) 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 (*SettlementSession) ORACLEROLE ¶
func (_Settlement *SettlementSession) ORACLEROLE() ([32]byte, error)
ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.
Solidity: function ORACLE_ROLE() view returns(bytes32)
func (*SettlementSession) Receive ¶ added in v0.7.0
func (_Settlement *SettlementSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*SettlementSession) RenounceRole ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) RevokeDemotions ¶ added in v0.7.0
func (_Settlement *SettlementSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIds []*big.Int) (*types.Transaction, error)
RevokeDemotions is a paid mutator transaction binding the contract method 0x6d623207.
Solidity: function revokeDemotions(address nodeAddr, uint256 epoch, uint256[] demotionIds) returns()
func (*SettlementSession) RevokeRole ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) SetNodeStatus ¶ added in v0.7.0
func (_Settlement *SettlementSession) 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 (*SettlementSession) SetTaxRateBasisPoints4PublicPool ¶
func (_Settlement *SettlementSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.
Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()
func (*SettlementSession) StakingContract ¶
func (_Settlement *SettlementSession) StakingContract() (common.Address, error)
StakingContract is a free data retrieval call binding the contract method 0xee99205c.
Solidity: function stakingContract() view returns(address)
func (*SettlementSession) SubmitDemotions ¶ added in v0.7.0
func (_Settlement *SettlementSession) SubmitDemotions(nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
SubmitDemotions is a paid mutator transaction binding the contract method 0x6668c7cf.
Solidity: function submitDemotions(address[] nodeAddrs, string[] reasons, address[] reporters) returns()
func (*SettlementSession) SupportsInterface ¶
func (_Settlement *SettlementSession) 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 (*SettlementSession) TOTALREWARDSPERYEAR ¶
func (_Settlement *SettlementSession) TOTALREWARDSPERYEAR() (*big.Int, error)
TOTALREWARDSPERYEAR is a free data retrieval call binding the contract method 0xd2adf460.
Solidity: function TOTAL_REWARDS_PER_YEAR() view returns(uint256)
func (*SettlementSession) Version ¶ added in v0.7.0
func (_Settlement *SettlementSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(string)
type SettlementTransactor ¶
type SettlementTransactor struct {
// contains filtered or unexported fields
}
SettlementTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSettlementTransactor ¶
func NewSettlementTransactor(address common.Address, transactor bind.ContractTransactor) (*SettlementTransactor, error)
NewSettlementTransactor creates a new write-only instance of Settlement, bound to a specific deployed contract.
func (*SettlementTransactor) CommitSlashing ¶ added in v0.7.0
func (_Settlement *SettlementTransactor) CommitSlashing(opts *bind.TransactOpts, nodeAddrs []common.Address, epochs []*big.Int) (*types.Transaction, error)
CommitSlashing is a paid mutator transaction binding the contract method 0x92679cf4.
Solidity: function commitSlashing(address[] nodeAddrs, uint256[] epochs) returns()
func (*SettlementTransactor) DistributeRewards ¶
func (_Settlement *SettlementTransactor) DistributeRewards(opts *bind.TransactOpts, epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, requestCounts []*big.Int, isFinal bool) (*types.Transaction, error)
DistributeRewards is a paid mutator transaction binding the contract method 0x5c3d3078.
Solidity: function distributeRewards(uint256 epoch, address[] nodeAddrs, uint256[] operationRewards, uint256[] requestCounts, bool isFinal) returns()
func (*SettlementTransactor) GrantRole ¶
func (_Settlement *SettlementTransactor) 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 (*SettlementTransactor) Initialize ¶
func (_Settlement *SettlementTransactor) Initialize(opts *bind.TransactOpts, staking common.Address, oracleAccount common.Address, startTime *big.Int, operationRewardsPercent *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xeb990c59.
Solidity: function initialize(address staking, address oracleAccount, uint256 startTime, uint256 operationRewardsPercent) returns()
func (*SettlementTransactor) Multicall ¶ added in v0.7.0
func (_Settlement *SettlementTransactor) 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 (*SettlementTransactor) Receive ¶ added in v0.7.0
func (_Settlement *SettlementTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*SettlementTransactor) RenounceRole ¶
func (_Settlement *SettlementTransactor) 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 (*SettlementTransactor) RevokeDemotions ¶ added in v0.7.0
func (_Settlement *SettlementTransactor) RevokeDemotions(opts *bind.TransactOpts, nodeAddr common.Address, epoch *big.Int, demotionIds []*big.Int) (*types.Transaction, error)
RevokeDemotions is a paid mutator transaction binding the contract method 0x6d623207.
Solidity: function revokeDemotions(address nodeAddr, uint256 epoch, uint256[] demotionIds) returns()
func (*SettlementTransactor) RevokeRole ¶
func (_Settlement *SettlementTransactor) 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 (*SettlementTransactor) SetNodeStatus ¶ added in v0.7.0
func (_Settlement *SettlementTransactor) 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 (*SettlementTransactor) SetTaxRateBasisPoints4PublicPool ¶
func (_Settlement *SettlementTransactor) 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 (*SettlementTransactor) SubmitDemotions ¶ added in v0.7.0
func (_Settlement *SettlementTransactor) SubmitDemotions(opts *bind.TransactOpts, nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
SubmitDemotions is a paid mutator transaction binding the contract method 0x6668c7cf.
Solidity: function submitDemotions(address[] nodeAddrs, string[] reasons, address[] reporters) returns()
type SettlementTransactorRaw ¶
type SettlementTransactorRaw struct {
Contract *SettlementTransactor // Generic write-only contract binding to access the raw methods on
}
SettlementTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SettlementTransactorRaw) Transact ¶
func (_Settlement *SettlementTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SettlementTransactorRaw) Transfer ¶
func (_Settlement *SettlementTransactorRaw) 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 SettlementTransactorSession ¶
type SettlementTransactorSession struct { Contract *SettlementTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SettlementTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SettlementTransactorSession) CommitSlashing ¶ added in v0.7.0
func (_Settlement *SettlementTransactorSession) CommitSlashing(nodeAddrs []common.Address, epochs []*big.Int) (*types.Transaction, error)
CommitSlashing is a paid mutator transaction binding the contract method 0x92679cf4.
Solidity: function commitSlashing(address[] nodeAddrs, uint256[] epochs) returns()
func (*SettlementTransactorSession) DistributeRewards ¶
func (_Settlement *SettlementTransactorSession) DistributeRewards(epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, requestCounts []*big.Int, isFinal bool) (*types.Transaction, error)
DistributeRewards is a paid mutator transaction binding the contract method 0x5c3d3078.
Solidity: function distributeRewards(uint256 epoch, address[] nodeAddrs, uint256[] operationRewards, uint256[] requestCounts, bool isFinal) returns()
func (*SettlementTransactorSession) GrantRole ¶
func (_Settlement *SettlementTransactorSession) 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 (*SettlementTransactorSession) Initialize ¶
func (_Settlement *SettlementTransactorSession) Initialize(staking common.Address, oracleAccount common.Address, startTime *big.Int, operationRewardsPercent *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xeb990c59.
Solidity: function initialize(address staking, address oracleAccount, uint256 startTime, uint256 operationRewardsPercent) returns()
func (*SettlementTransactorSession) Multicall ¶ added in v0.7.0
func (_Settlement *SettlementTransactorSession) 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 (*SettlementTransactorSession) Receive ¶ added in v0.7.0
func (_Settlement *SettlementTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*SettlementTransactorSession) RenounceRole ¶
func (_Settlement *SettlementTransactorSession) 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 (*SettlementTransactorSession) RevokeDemotions ¶ added in v0.7.0
func (_Settlement *SettlementTransactorSession) RevokeDemotions(nodeAddr common.Address, epoch *big.Int, demotionIds []*big.Int) (*types.Transaction, error)
RevokeDemotions is a paid mutator transaction binding the contract method 0x6d623207.
Solidity: function revokeDemotions(address nodeAddr, uint256 epoch, uint256[] demotionIds) returns()
func (*SettlementTransactorSession) RevokeRole ¶
func (_Settlement *SettlementTransactorSession) 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 (*SettlementTransactorSession) SetNodeStatus ¶ added in v0.7.0
func (_Settlement *SettlementTransactorSession) 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 (*SettlementTransactorSession) SetTaxRateBasisPoints4PublicPool ¶
func (_Settlement *SettlementTransactorSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)
SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.
Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()
func (*SettlementTransactorSession) SubmitDemotions ¶ added in v0.7.0
func (_Settlement *SettlementTransactorSession) SubmitDemotions(nodeAddrs []common.Address, reasons []string, reporters []common.Address) (*types.Transaction, error)
SubmitDemotions is a paid mutator transaction binding the contract method 0x6668c7cf.
Solidity: function submitDemotions(address[] nodeAddrs, string[] reasons, address[] reporters) returns()
type StakingV2MulticallClient ¶ added in v0.7.0
func NewStakingV2MulticallClient ¶ added in v0.7.0
func NewStakingV2MulticallClient(chainID uint64, ethereumClient *ethclient.Client) (*StakingV2MulticallClient, error)