Documentation ¶
Overview ¶
Package proof contains all functions to make a proof-chain tx for an encoded block-replica object
Index ¶
- Variables
- type ProofChain
- type ProofChainBlockHeightSubmissionThresholdChanged
- type ProofChainBlockHeightSubmissionThresholdChangedIterator
- type ProofChainBlockSpecimenProductionProofSubmitted
- type ProofChainBlockSpecimenProductionProofSubmittedIterator
- type ProofChainBlockSpecimenQuorum
- type ProofChainBlockSpecimenQuorumIterator
- type ProofChainBlockSpecimenRewardChanged
- type ProofChainBlockSpecimenRewardChangedIterator
- type ProofChainCaller
- func (_ProofChain *ProofChainCaller) AUDITORROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_ProofChain *ProofChainCaller) BLOCKSPECIMENPRODUCERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_ProofChain *ProofChainCaller) GOVERNANCEROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_ProofChain *ProofChainCaller) GetAllOperators(opts *bind.CallOpts) (struct{ ... }, error)
- func (_ProofChain *ProofChainCaller) GetBSPRoleData(opts *bind.CallOpts) (struct{ ... }, error)
- func (_ProofChain *ProofChainCaller) GetChainData(opts *bind.CallOpts, chainId uint64) (struct{ ... }, error)
- func (_ProofChain *ProofChainCaller) GetEnabledOperatorCount(opts *bind.CallOpts, validatorId *big.Int) (*big.Int, error)
- func (_ProofChain *ProofChainCaller) GetMetadata(opts *bind.CallOpts) (struct{ ... }, error)
- func (_ProofChain *ProofChainCaller) GetOperators(opts *bind.CallOpts, validatorId *big.Int) ([]common.Address, error)
- func (_ProofChain *ProofChainCaller) GetURLS(opts *bind.CallOpts, specimenhash [32]byte) ([]string, error)
- func (_ProofChain *ProofChainCaller) IsEnabled(opts *bind.CallOpts, operator common.Address) (bool, error)
- func (_ProofChain *ProofChainCaller) IsSessionOpen(opts *bind.CallOpts, chainId uint64, blockHeight uint64, ...) (bool, error)
- func (_ProofChain *ProofChainCaller) IsValidatorEnabled(opts *bind.CallOpts, validatorId *big.Int) (bool, error)
- func (_ProofChain *ProofChainCaller) OperatorRoles(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error)
- func (_ProofChain *ProofChainCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_ProofChain *ProofChainCaller) ValidatorIDs(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- type ProofChainCallerRaw
- type ProofChainCallerSession
- func (_ProofChain *ProofChainCallerSession) AUDITORROLE() ([32]byte, error)
- func (_ProofChain *ProofChainCallerSession) BLOCKSPECIMENPRODUCERROLE() ([32]byte, error)
- func (_ProofChain *ProofChainCallerSession) GOVERNANCEROLE() ([32]byte, error)
- func (_ProofChain *ProofChainCallerSession) GetAllOperators() (struct{ ... }, error)
- func (_ProofChain *ProofChainCallerSession) GetBSPRoleData() (struct{ ... }, error)
- func (_ProofChain *ProofChainCallerSession) GetChainData(chainId uint64) (struct{ ... }, error)
- func (_ProofChain *ProofChainCallerSession) GetEnabledOperatorCount(validatorId *big.Int) (*big.Int, error)
- func (_ProofChain *ProofChainCallerSession) GetMetadata() (struct{ ... }, error)
- func (_ProofChain *ProofChainCallerSession) GetOperators(validatorId *big.Int) ([]common.Address, error)
- func (_ProofChain *ProofChainCallerSession) GetURLS(specimenhash [32]byte) ([]string, error)
- func (_ProofChain *ProofChainCallerSession) IsEnabled(operator common.Address) (bool, error)
- func (_ProofChain *ProofChainCallerSession) IsSessionOpen(chainId uint64, blockHeight uint64, operator common.Address) (bool, error)
- func (_ProofChain *ProofChainCallerSession) IsValidatorEnabled(validatorId *big.Int) (bool, error)
- func (_ProofChain *ProofChainCallerSession) OperatorRoles(arg0 common.Address) ([32]byte, error)
- func (_ProofChain *ProofChainCallerSession) Owner() (common.Address, error)
- func (_ProofChain *ProofChainCallerSession) ValidatorIDs(arg0 common.Address) (*big.Int, error)
- type ProofChainChainSyncDataChanged
- type ProofChainChainSyncDataChangedIterator
- type ProofChainFilterer
- func (_ProofChain *ProofChainFilterer) FilterBlockHeightSubmissionThresholdChanged(opts *bind.FilterOpts, chainId []uint64) (*ProofChainBlockHeightSubmissionThresholdChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterBlockSpecimenProductionProofSubmitted(opts *bind.FilterOpts) (*ProofChainBlockSpecimenProductionProofSubmittedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterBlockSpecimenQuorum(opts *bind.FilterOpts, chainId []uint64, blockHeight []uint64, ...) (*ProofChainBlockSpecimenQuorumIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterBlockSpecimenRewardChanged(opts *bind.FilterOpts) (*ProofChainBlockSpecimenRewardChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterChainSyncDataChanged(opts *bind.FilterOpts, chainId []uint64) (*ProofChainChainSyncDataChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterInitialized(opts *bind.FilterOpts) (*ProofChainInitializedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterMaxSubmissionsPerBlockHeightChanged(opts *bind.FilterOpts) (*ProofChainMaxSubmissionsPerBlockHeightChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterMinimumRequiredStakeChanged(opts *bind.FilterOpts) (*ProofChainMinimumRequiredStakeChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterNthBlockChanged(opts *bind.FilterOpts, chainId []uint64, nthBlock []uint64) (*ProofChainNthBlockChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterOperatorAdded(opts *bind.FilterOpts) (*ProofChainOperatorAddedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterOperatorRemoved(opts *bind.FilterOpts) (*ProofChainOperatorRemovedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*ProofChainOwnershipTransferredIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterQuorumNotReached(opts *bind.FilterOpts, chainId []uint64) (*ProofChainQuorumNotReachedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterSecondsPerBlockCurrentChainChanged(opts *bind.FilterOpts, secondsPerBlockCurrentChain []uint64) (*ProofChainSecondsPerBlockCurrentChainChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterSessionStarted(opts *bind.FilterOpts, chainId []uint64, blockHeight []uint64) (*ProofChainSessionStartedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterSpecimenSessionDurationChanged(opts *bind.FilterOpts) (*ProofChainSpecimenSessionDurationChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterSpecimenSessionMinSubmissionChanged(opts *bind.FilterOpts) (*ProofChainSpecimenSessionMinSubmissionChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterSpecimenSessionQuorumChanged(opts *bind.FilterOpts) (*ProofChainSpecimenSessionQuorumChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterStakingManagerChanged(opts *bind.FilterOpts) (*ProofChainStakingManagerChangedIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterValidatorDisabled(opts *bind.FilterOpts) (*ProofChainValidatorDisabledIterator, error)
- func (_ProofChain *ProofChainFilterer) FilterValidatorEnabled(opts *bind.FilterOpts) (*ProofChainValidatorEnabledIterator, error)
- func (_ProofChain *ProofChainFilterer) ParseBlockHeightSubmissionThresholdChanged(log types.Log) (*ProofChainBlockHeightSubmissionThresholdChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseBlockSpecimenProductionProofSubmitted(log types.Log) (*ProofChainBlockSpecimenProductionProofSubmitted, error)
- func (_ProofChain *ProofChainFilterer) ParseBlockSpecimenQuorum(log types.Log) (*ProofChainBlockSpecimenQuorum, error)
- func (_ProofChain *ProofChainFilterer) ParseBlockSpecimenRewardChanged(log types.Log) (*ProofChainBlockSpecimenRewardChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseChainSyncDataChanged(log types.Log) (*ProofChainChainSyncDataChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseInitialized(log types.Log) (*ProofChainInitialized, error)
- func (_ProofChain *ProofChainFilterer) ParseMaxSubmissionsPerBlockHeightChanged(log types.Log) (*ProofChainMaxSubmissionsPerBlockHeightChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseMinimumRequiredStakeChanged(log types.Log) (*ProofChainMinimumRequiredStakeChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseNthBlockChanged(log types.Log) (*ProofChainNthBlockChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseOperatorAdded(log types.Log) (*ProofChainOperatorAdded, error)
- func (_ProofChain *ProofChainFilterer) ParseOperatorRemoved(log types.Log) (*ProofChainOperatorRemoved, error)
- func (_ProofChain *ProofChainFilterer) ParseOwnershipTransferred(log types.Log) (*ProofChainOwnershipTransferred, error)
- func (_ProofChain *ProofChainFilterer) ParseQuorumNotReached(log types.Log) (*ProofChainQuorumNotReached, error)
- func (_ProofChain *ProofChainFilterer) ParseSecondsPerBlockCurrentChainChanged(log types.Log) (*ProofChainSecondsPerBlockCurrentChainChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseSessionStarted(log types.Log) (*ProofChainSessionStarted, error)
- func (_ProofChain *ProofChainFilterer) ParseSpecimenSessionDurationChanged(log types.Log) (*ProofChainSpecimenSessionDurationChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseSpecimenSessionMinSubmissionChanged(log types.Log) (*ProofChainSpecimenSessionMinSubmissionChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseSpecimenSessionQuorumChanged(log types.Log) (*ProofChainSpecimenSessionQuorumChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseStakingManagerChanged(log types.Log) (*ProofChainStakingManagerChanged, error)
- func (_ProofChain *ProofChainFilterer) ParseValidatorDisabled(log types.Log) (*ProofChainValidatorDisabled, error)
- func (_ProofChain *ProofChainFilterer) ParseValidatorEnabled(log types.Log) (*ProofChainValidatorEnabled, error)
- func (_ProofChain *ProofChainFilterer) WatchBlockHeightSubmissionThresholdChanged(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchBlockSpecimenProductionProofSubmitted(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchBlockSpecimenQuorum(opts *bind.WatchOpts, sink chan<- *ProofChainBlockSpecimenQuorum, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchBlockSpecimenRewardChanged(opts *bind.WatchOpts, sink chan<- *ProofChainBlockSpecimenRewardChanged) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchChainSyncDataChanged(opts *bind.WatchOpts, sink chan<- *ProofChainChainSyncDataChanged, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ProofChainInitialized) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchMaxSubmissionsPerBlockHeightChanged(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchMinimumRequiredStakeChanged(opts *bind.WatchOpts, sink chan<- *ProofChainMinimumRequiredStakeChanged) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchNthBlockChanged(opts *bind.WatchOpts, sink chan<- *ProofChainNthBlockChanged, chainId []uint64, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchOperatorAdded(opts *bind.WatchOpts, sink chan<- *ProofChainOperatorAdded) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchOperatorRemoved(opts *bind.WatchOpts, sink chan<- *ProofChainOperatorRemoved) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProofChainOwnershipTransferred, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchQuorumNotReached(opts *bind.WatchOpts, sink chan<- *ProofChainQuorumNotReached, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchSecondsPerBlockCurrentChainChanged(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchSessionStarted(opts *bind.WatchOpts, sink chan<- *ProofChainSessionStarted, chainId []uint64, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchSpecimenSessionDurationChanged(opts *bind.WatchOpts, sink chan<- *ProofChainSpecimenSessionDurationChanged) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchSpecimenSessionMinSubmissionChanged(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchSpecimenSessionQuorumChanged(opts *bind.WatchOpts, sink chan<- *ProofChainSpecimenSessionQuorumChanged) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchStakingManagerChanged(opts *bind.WatchOpts, sink chan<- *ProofChainStakingManagerChanged) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchValidatorDisabled(opts *bind.WatchOpts, sink chan<- *ProofChainValidatorDisabled) (event.Subscription, error)
- func (_ProofChain *ProofChainFilterer) WatchValidatorEnabled(opts *bind.WatchOpts, sink chan<- *ProofChainValidatorEnabled) (event.Subscription, error)
- type ProofChainInitialized
- type ProofChainInitializedIterator
- type ProofChainMaxSubmissionsPerBlockHeightChanged
- type ProofChainMaxSubmissionsPerBlockHeightChangedIterator
- type ProofChainMinimumRequiredStakeChanged
- type ProofChainMinimumRequiredStakeChangedIterator
- type ProofChainNthBlockChanged
- type ProofChainNthBlockChangedIterator
- type ProofChainOperatorAdded
- type ProofChainOperatorAddedIterator
- type ProofChainOperatorRemoved
- type ProofChainOperatorRemovedIterator
- type ProofChainOwnershipTransferred
- type ProofChainOwnershipTransferredIterator
- type ProofChainQuorumNotReached
- type ProofChainQuorumNotReachedIterator
- type ProofChainRaw
- func (_ProofChain *ProofChainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ProofChain *ProofChainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ProofChain *ProofChainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ProofChainSecondsPerBlockCurrentChainChanged
- type ProofChainSecondsPerBlockCurrentChainChangedIterator
- type ProofChainSession
- func (_ProofChain *ProofChainSession) AUDITORROLE() ([32]byte, error)
- func (_ProofChain *ProofChainSession) AddAuditor(auditor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) AddBSPOperator(operator common.Address, validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) AddGovernor(governor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) BLOCKSPECIMENPRODUCERROLE() ([32]byte, error)
- func (_ProofChain *ProofChainSession) DisableValidator(validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) EnableValidator(validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) FinalizeSpecimenSession(chainId uint64, blockHeight uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) GOVERNANCEROLE() ([32]byte, error)
- func (_ProofChain *ProofChainSession) GetAllOperators() (struct{ ... }, error)
- func (_ProofChain *ProofChainSession) GetBSPRoleData() (struct{ ... }, error)
- func (_ProofChain *ProofChainSession) GetChainData(chainId uint64) (struct{ ... }, error)
- func (_ProofChain *ProofChainSession) GetEnabledOperatorCount(validatorId *big.Int) (*big.Int, error)
- func (_ProofChain *ProofChainSession) GetMetadata() (struct{ ... }, error)
- func (_ProofChain *ProofChainSession) GetOperators(validatorId *big.Int) ([]common.Address, error)
- func (_ProofChain *ProofChainSession) GetURLS(specimenhash [32]byte) ([]string, error)
- func (_ProofChain *ProofChainSession) Initialize(initialGovernor common.Address, stakingManager common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) IsEnabled(operator common.Address) (bool, error)
- func (_ProofChain *ProofChainSession) IsSessionOpen(chainId uint64, blockHeight uint64, operator common.Address) (bool, error)
- func (_ProofChain *ProofChainSession) IsValidatorEnabled(validatorId *big.Int) (bool, error)
- func (_ProofChain *ProofChainSession) OperatorRoles(arg0 common.Address) ([32]byte, error)
- func (_ProofChain *ProofChainSession) Owner() (common.Address, error)
- func (_ProofChain *ProofChainSession) RemoveAuditor(auditor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) RemoveBSPOperator(operator common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) RemoveGovernor(governor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) RenounceOwnership() (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetBlockHeightSubmissionsThreshold(chainId uint64, threshold uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetBlockSpecimenReward(newBlockSpecimenReward *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetBlockSpecimenSessionDuration(newSessionDuration uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetChainSyncData(chainId uint64, blockOnTargetChain *big.Int, blockOnCurrentChain *big.Int, ...) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetMaxSubmissionsPerBlockHeight(chainId uint64, maxSubmissions uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetMinSubmissionsRequired(minSubmissions uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetNthBlock(chainId uint64, n uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetQuorumThreshold(quorum *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetSecondsPerBlockCurrentChain(secondsPerBlockCurrentChain uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SetStakingManagerAddress(stakingManagerAddress common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) SubmitBlockSpecimenProof(chainId uint64, blockHeight uint64, blockHash [32]byte, specimenHash [32]byte, ...) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainSession) ValidatorIDs(arg0 common.Address) (*big.Int, error)
- type ProofChainSessionStarted
- type ProofChainSessionStartedIterator
- type ProofChainSpecimenSessionDurationChanged
- type ProofChainSpecimenSessionDurationChangedIterator
- type ProofChainSpecimenSessionMinSubmissionChanged
- type ProofChainSpecimenSessionMinSubmissionChangedIterator
- type ProofChainSpecimenSessionQuorumChanged
- type ProofChainSpecimenSessionQuorumChangedIterator
- type ProofChainStakingManagerChanged
- type ProofChainStakingManagerChangedIterator
- type ProofChainTransactor
- func (_ProofChain *ProofChainTransactor) AddAuditor(opts *bind.TransactOpts, auditor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) AddBSPOperator(opts *bind.TransactOpts, operator common.Address, validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) AddGovernor(opts *bind.TransactOpts, governor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) DisableValidator(opts *bind.TransactOpts, validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) EnableValidator(opts *bind.TransactOpts, validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) FinalizeSpecimenSession(opts *bind.TransactOpts, chainId uint64, blockHeight uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) Initialize(opts *bind.TransactOpts, initialGovernor common.Address, ...) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) RemoveAuditor(opts *bind.TransactOpts, auditor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) RemoveBSPOperator(opts *bind.TransactOpts, operator common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) RemoveGovernor(opts *bind.TransactOpts, governor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetBlockHeightSubmissionsThreshold(opts *bind.TransactOpts, chainId uint64, threshold uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetBlockSpecimenReward(opts *bind.TransactOpts, newBlockSpecimenReward *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetBlockSpecimenSessionDuration(opts *bind.TransactOpts, newSessionDuration uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetChainSyncData(opts *bind.TransactOpts, chainId uint64, blockOnTargetChain *big.Int, ...) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetMaxSubmissionsPerBlockHeight(opts *bind.TransactOpts, chainId uint64, maxSubmissions uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetMinSubmissionsRequired(opts *bind.TransactOpts, minSubmissions uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetNthBlock(opts *bind.TransactOpts, chainId uint64, n uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetQuorumThreshold(opts *bind.TransactOpts, quorum *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetSecondsPerBlockCurrentChain(opts *bind.TransactOpts, secondsPerBlockCurrentChain uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SetStakingManagerAddress(opts *bind.TransactOpts, stakingManagerAddress common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) SubmitBlockSpecimenProof(opts *bind.TransactOpts, chainId uint64, blockHeight uint64, ...) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- type ProofChainTransactorRaw
- type ProofChainTransactorSession
- func (_ProofChain *ProofChainTransactorSession) AddAuditor(auditor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) AddBSPOperator(operator common.Address, validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) AddGovernor(governor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) DisableValidator(validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) EnableValidator(validatorId *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) FinalizeSpecimenSession(chainId uint64, blockHeight uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) Initialize(initialGovernor common.Address, stakingManager common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) RemoveAuditor(auditor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) RemoveBSPOperator(operator common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) RemoveGovernor(governor common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetBlockHeightSubmissionsThreshold(chainId uint64, threshold uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetBlockSpecimenReward(newBlockSpecimenReward *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetBlockSpecimenSessionDuration(newSessionDuration uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetChainSyncData(chainId uint64, blockOnTargetChain *big.Int, blockOnCurrentChain *big.Int, ...) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetMaxSubmissionsPerBlockHeight(chainId uint64, maxSubmissions uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetMinSubmissionsRequired(minSubmissions uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetNthBlock(chainId uint64, n uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetQuorumThreshold(quorum *big.Int) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetSecondsPerBlockCurrentChain(secondsPerBlockCurrentChain uint64) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SetStakingManagerAddress(stakingManagerAddress common.Address) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) SubmitBlockSpecimenProof(chainId uint64, blockHeight uint64, blockHash [32]byte, specimenHash [32]byte, ...) (*types.Transaction, error)
- func (_ProofChain *ProofChainTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type ProofChainValidatorDisabled
- type ProofChainValidatorDisabledIterator
- type ProofChainValidatorEnabled
- type ProofChainValidatorEnabledIterator
- type ProofchainInteractor
Constants ¶
This section is empty.
Variables ¶
var ProofChainABI = ProofChainMetaData.ABI
ProofChainABI is the input ABI used to generate the binding from. Deprecated: Use ProofChainMetaData.ABI instead.
var ProofChainMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"threshold\",\"type\":\"uint64\"}],\"name\":\"BlockHeightSubmissionThresholdChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"blockHeight\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"specimenHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"storageURL\",\"type\":\"string\"}],\"name\":\"BlockSpecimenProductionProofSubmitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"blockHeight\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"validatorBitMap\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"specimenHash\",\"type\":\"bytes32\"}],\"name\":\"BlockSpecimenQuorum\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newBlockSpecimenRewardAllocation\",\"type\":\"uint128\"}],\"name\":\"BlockSpecimenRewardChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockOnTargetChain\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockOnCurrentChain\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"secondsPerBlockTargetChain\",\"type\":\"uint256\"}],\"name\":\"ChainSyncDataChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxSubmissions\",\"type\":\"uint256\"}],\"name\":\"MaxSubmissionsPerBlockHeightChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newStakeRequirement\",\"type\":\"uint128\"}],\"name\":\"MinimumRequiredStakeChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"nthBlock\",\"type\":\"uint64\"}],\"name\":\"NthBlockChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"OperatorAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"activeOperatorCount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"OperatorRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"blockHeight\",\"type\":\"uint64\"}],\"name\":\"QuorumNotReached\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"secondsPerBlockCurrentChain\",\"type\":\"uint64\"}],\"name\":\"SecondsPerBlockCurrentChainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"blockHeight\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"deadline\",\"type\":\"uint64\"}],\"name\":\"SessionStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"newSessionDuration\",\"type\":\"uint64\"}],\"name\":\"SpecimenSessionDurationChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"minSubmissions\",\"type\":\"uint64\"}],\"name\":\"SpecimenSessionMinSubmissionChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newQuorumThreshold\",\"type\":\"uint256\"}],\"name\":\"SpecimenSessionQuorumChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newStakingManager\",\"type\":\"address\"}],\"name\":\"StakingManagerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"ValidatorDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"ValidatorEnabled\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUDITOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BLOCK_SPECIMEN_PRODUCER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GOVERNANCE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"auditor\",\"type\":\"address\"}],\"name\":\"addAuditor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"addBSPOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"governor\",\"type\":\"address\"}],\"name\":\"addGovernor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"disableValidator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"enableValidator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"blockHeight\",\"type\":\"uint64\"}],\"name\":\"finalizeSpecimenSession\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllOperators\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"_bsps\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"__governors\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"__auditors\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBSPRoleData\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"requiredStake\",\"type\":\"uint128\"},{\"internalType\":\"address[]\",\"name\":\"activeMembers\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"}],\"name\":\"getChainData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockOnTargetChain\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockOnCurrentChain\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"secondsPerBlockTargetChain\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"allowedThreshold\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"maxSubmissionsPerBlockHeight\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"nthBlock\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"getEnabledOperatorCount\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMetadata\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"stakingManager\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"blockSpecimenRewardAllocation\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"blockSpecimenSessionDuration\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"minSubmissionsRequired\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"blockSpecimenQuorum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"secondsPerBlockCurrentChain\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"getOperators\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"specimenhash\",\"type\":\"bytes32\"}],\"name\":\"getURLS\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialGovernor\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stakingManager\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"blockHeight\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isSessionOpen\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"validatorId\",\"type\":\"uint128\"}],\"name\":\"isValidatorEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"operatorRoles\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"auditor\",\"type\":\"address\"}],\"name\":\"removeAuditor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"removeBSPOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"governor\",\"type\":\"address\"}],\"name\":\"removeGovernor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"threshold\",\"type\":\"uint64\"}],\"name\":\"setBlockHeightSubmissionsThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"newBlockSpecimenReward\",\"type\":\"uint128\"}],\"name\":\"setBlockSpecimenReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"newSessionDuration\",\"type\":\"uint64\"}],\"name\":\"setBlockSpecimenSessionDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"blockOnTargetChain\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockOnCurrentChain\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"secondsPerBlockTargetChain\",\"type\":\"uint256\"}],\"name\":\"setChainSyncData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"maxSubmissions\",\"type\":\"uint64\"}],\"name\":\"setMaxSubmissionsPerBlockHeight\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"minSubmissions\",\"type\":\"uint64\"}],\"name\":\"setMinSubmissionsRequired\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"n\",\"type\":\"uint64\"}],\"name\":\"setNthBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"quorum\",\"type\":\"uint256\"}],\"name\":\"setQuorumThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"secondsPerBlockCurrentChain\",\"type\":\"uint64\"}],\"name\":\"setSecondsPerBlockCurrentChain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"stakingManagerAddress\",\"type\":\"address\"}],\"name\":\"setStakingManagerAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"chainId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"blockHeight\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"specimenHash\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"storageURL\",\"type\":\"string\"}],\"name\":\"submitBlockSpecimenProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"validatorIDs\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
ProofChainMetaData contains all meta data concerning the ProofChain contract.
Functions ¶
This section is empty.
Types ¶
type ProofChain ¶
type ProofChain struct { ProofChainCaller // Read-only binding to the contract ProofChainTransactor // Write-only binding to the contract ProofChainFilterer // Log filterer for contract events }
ProofChain is an auto generated Go binding around an Ethereum contract.
func NewProofChain ¶
func NewProofChain(address common.Address, backend bind.ContractBackend) (*ProofChain, error)
NewProofChain creates a new instance of ProofChain, bound to a specific deployed contract.
type ProofChainBlockHeightSubmissionThresholdChanged ¶ added in v1.4.7
type ProofChainBlockHeightSubmissionThresholdChanged struct { ChainId uint64 Threshold uint64 Raw types.Log // Blockchain specific contextual infos }
ProofChainBlockHeightSubmissionThresholdChanged represents a BlockHeightSubmissionThresholdChanged event raised by the ProofChain contract.
type ProofChainBlockHeightSubmissionThresholdChangedIterator ¶ added in v1.4.7
type ProofChainBlockHeightSubmissionThresholdChangedIterator struct { Event *ProofChainBlockHeightSubmissionThresholdChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainBlockHeightSubmissionThresholdChangedIterator is returned from FilterBlockHeightSubmissionThresholdChanged and is used to iterate over the raw logs and unpacked data for BlockHeightSubmissionThresholdChanged events raised by the ProofChain contract.
func (*ProofChainBlockHeightSubmissionThresholdChangedIterator) Close ¶ added in v1.4.7
func (it *ProofChainBlockHeightSubmissionThresholdChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainBlockHeightSubmissionThresholdChangedIterator) Error ¶ added in v1.4.7
func (it *ProofChainBlockHeightSubmissionThresholdChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainBlockHeightSubmissionThresholdChangedIterator) Next ¶ added in v1.4.7
func (it *ProofChainBlockHeightSubmissionThresholdChangedIterator) 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 ProofChainBlockSpecimenProductionProofSubmitted ¶
type ProofChainBlockSpecimenProductionProofSubmitted struct { ChainId uint64 BlockHeight uint64 BlockHash [32]byte SpecimenHash [32]byte StorageURL string Raw types.Log // Blockchain specific contextual infos }
ProofChainBlockSpecimenProductionProofSubmitted represents a BlockSpecimenProductionProofSubmitted event raised by the ProofChain contract.
type ProofChainBlockSpecimenProductionProofSubmittedIterator ¶
type ProofChainBlockSpecimenProductionProofSubmittedIterator struct { Event *ProofChainBlockSpecimenProductionProofSubmitted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainBlockSpecimenProductionProofSubmittedIterator is returned from FilterBlockSpecimenProductionProofSubmitted and is used to iterate over the raw logs and unpacked data for BlockSpecimenProductionProofSubmitted events raised by the ProofChain contract.
func (*ProofChainBlockSpecimenProductionProofSubmittedIterator) Close ¶
func (it *ProofChainBlockSpecimenProductionProofSubmittedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainBlockSpecimenProductionProofSubmittedIterator) Error ¶
func (it *ProofChainBlockSpecimenProductionProofSubmittedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainBlockSpecimenProductionProofSubmittedIterator) Next ¶
func (it *ProofChainBlockSpecimenProductionProofSubmittedIterator) 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 ProofChainBlockSpecimenQuorum ¶ added in v1.5.0
type ProofChainBlockSpecimenQuorum struct { ChainId uint64 BlockHeight uint64 ValidatorBitMap *big.Int BlockHash [32]byte SpecimenHash [32]byte Raw types.Log // Blockchain specific contextual infos }
ProofChainBlockSpecimenQuorum represents a BlockSpecimenQuorum event raised by the ProofChain contract.
type ProofChainBlockSpecimenQuorumIterator ¶ added in v1.5.0
type ProofChainBlockSpecimenQuorumIterator struct { Event *ProofChainBlockSpecimenQuorum // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainBlockSpecimenQuorumIterator is returned from FilterBlockSpecimenQuorum and is used to iterate over the raw logs and unpacked data for BlockSpecimenQuorum events raised by the ProofChain contract.
func (*ProofChainBlockSpecimenQuorumIterator) Close ¶ added in v1.5.0
func (it *ProofChainBlockSpecimenQuorumIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainBlockSpecimenQuorumIterator) Error ¶ added in v1.5.0
func (it *ProofChainBlockSpecimenQuorumIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainBlockSpecimenQuorumIterator) Next ¶ added in v1.5.0
func (it *ProofChainBlockSpecimenQuorumIterator) 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 ProofChainBlockSpecimenRewardChanged ¶
type ProofChainBlockSpecimenRewardChanged struct { NewBlockSpecimenRewardAllocation *big.Int Raw types.Log // Blockchain specific contextual infos }
ProofChainBlockSpecimenRewardChanged represents a BlockSpecimenRewardChanged event raised by the ProofChain contract.
type ProofChainBlockSpecimenRewardChangedIterator ¶
type ProofChainBlockSpecimenRewardChangedIterator struct { Event *ProofChainBlockSpecimenRewardChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainBlockSpecimenRewardChangedIterator is returned from FilterBlockSpecimenRewardChanged and is used to iterate over the raw logs and unpacked data for BlockSpecimenRewardChanged events raised by the ProofChain contract.
func (*ProofChainBlockSpecimenRewardChangedIterator) Close ¶
func (it *ProofChainBlockSpecimenRewardChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainBlockSpecimenRewardChangedIterator) Error ¶
func (it *ProofChainBlockSpecimenRewardChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainBlockSpecimenRewardChangedIterator) Next ¶
func (it *ProofChainBlockSpecimenRewardChangedIterator) 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 ProofChainCaller ¶
type ProofChainCaller struct {
// contains filtered or unexported fields
}
ProofChainCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewProofChainCaller ¶
func NewProofChainCaller(address common.Address, caller bind.ContractCaller) (*ProofChainCaller, error)
NewProofChainCaller creates a new read-only instance of ProofChain, bound to a specific deployed contract.
func (*ProofChainCaller) AUDITORROLE ¶
func (_ProofChain *ProofChainCaller) AUDITORROLE(opts *bind.CallOpts) ([32]byte, error)
AUDITORROLE is a free data retrieval call binding the contract method 0x6e1d616e.
Solidity: function AUDITOR_ROLE() view returns(bytes32)
func (*ProofChainCaller) BLOCKSPECIMENPRODUCERROLE ¶
func (_ProofChain *ProofChainCaller) BLOCKSPECIMENPRODUCERROLE(opts *bind.CallOpts) ([32]byte, error)
BLOCKSPECIMENPRODUCERROLE is a free data retrieval call binding the contract method 0x9c49d8ee.
Solidity: function BLOCK_SPECIMEN_PRODUCER_ROLE() view returns(bytes32)
func (*ProofChainCaller) GOVERNANCEROLE ¶
func (_ProofChain *ProofChainCaller) GOVERNANCEROLE(opts *bind.CallOpts) ([32]byte, error)
GOVERNANCEROLE is a free data retrieval call binding the contract method 0xf36c8f5c.
Solidity: function GOVERNANCE_ROLE() view returns(bytes32)
func (*ProofChainCaller) GetAllOperators ¶ added in v1.4.7
func (_ProofChain *ProofChainCaller) GetAllOperators(opts *bind.CallOpts) (struct { Bsps []common.Address Governors []common.Address Auditors []common.Address }, error)
GetAllOperators is a free data retrieval call binding the contract method 0xd911c632.
Solidity: function getAllOperators() view returns(address[] _bsps, address[] __governors, address[] __auditors)
func (*ProofChainCaller) GetBSPRoleData ¶ added in v1.4.7
func (_ProofChain *ProofChainCaller) GetBSPRoleData(opts *bind.CallOpts) (struct { RequiredStake *big.Int ActiveMembers []common.Address }, error)
GetBSPRoleData is a free data retrieval call binding the contract method 0x1fd55ae9.
Solidity: function getBSPRoleData() view returns(uint128 requiredStake, address[] activeMembers)
func (*ProofChainCaller) GetChainData ¶ added in v1.4.7
func (_ProofChain *ProofChainCaller) GetChainData(opts *bind.CallOpts, chainId uint64) (struct { BlockOnTargetChain *big.Int BlockOnCurrentChain *big.Int SecondsPerBlockTargetChain *big.Int AllowedThreshold *big.Int MaxSubmissionsPerBlockHeight *big.Int NthBlock uint64 }, error)
GetChainData is a free data retrieval call binding the contract method 0x54cfa69f.
Solidity: function getChainData(uint64 chainId) view returns(uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain, uint128 allowedThreshold, uint128 maxSubmissionsPerBlockHeight, uint64 nthBlock)
func (*ProofChainCaller) GetEnabledOperatorCount ¶ added in v1.5.0
func (_ProofChain *ProofChainCaller) GetEnabledOperatorCount(opts *bind.CallOpts, validatorId *big.Int) (*big.Int, error)
GetEnabledOperatorCount is a free data retrieval call binding the contract method 0x43b845b5.
Solidity: function getEnabledOperatorCount(uint128 validatorId) view returns(uint128)
func (*ProofChainCaller) GetMetadata ¶ added in v1.4.7
func (_ProofChain *ProofChainCaller) GetMetadata(opts *bind.CallOpts) (struct { StakingManager common.Address BlockSpecimenRewardAllocation *big.Int BlockSpecimenSessionDuration uint64 MinSubmissionsRequired uint64 BlockSpecimenQuorum *big.Int SecondsPerBlockCurrentChain *big.Int }, error)
GetMetadata is a free data retrieval call binding the contract method 0x7a5b4f59.
Solidity: function getMetadata() view returns(address stakingManager, uint128 blockSpecimenRewardAllocation, uint64 blockSpecimenSessionDuration, uint64 minSubmissionsRequired, uint256 blockSpecimenQuorum, uint256 secondsPerBlockCurrentChain)
func (*ProofChainCaller) GetOperators ¶
func (_ProofChain *ProofChainCaller) GetOperators(opts *bind.CallOpts, validatorId *big.Int) ([]common.Address, error)
GetOperators is a free data retrieval call binding the contract method 0xd3a8b2a8.
Solidity: function getOperators(uint128 validatorId) view returns(address[])
func (*ProofChainCaller) GetURLS ¶ added in v1.5.0
func (_ProofChain *ProofChainCaller) GetURLS(opts *bind.CallOpts, specimenhash [32]byte) ([]string, error)
GetURLS is a free data retrieval call binding the contract method 0xd5839da9.
Solidity: function getURLS(bytes32 specimenhash) view returns(string[])
func (*ProofChainCaller) IsEnabled ¶
func (_ProofChain *ProofChainCaller) IsEnabled(opts *bind.CallOpts, operator common.Address) (bool, error)
IsEnabled is a free data retrieval call binding the contract method 0x9015d371.
Solidity: function isEnabled(address operator) view returns(bool)
func (*ProofChainCaller) IsSessionOpen ¶ added in v1.5.0
func (_ProofChain *ProofChainCaller) IsSessionOpen(opts *bind.CallOpts, chainId uint64, blockHeight uint64, operator common.Address) (bool, error)
IsSessionOpen is a free data retrieval call binding the contract method 0xba75fd2f.
Solidity: function isSessionOpen(uint64 chainId, uint64 blockHeight, address operator) view returns(bool)
func (*ProofChainCaller) IsValidatorEnabled ¶ added in v1.5.0
func (_ProofChain *ProofChainCaller) IsValidatorEnabled(opts *bind.CallOpts, validatorId *big.Int) (bool, error)
IsValidatorEnabled is a free data retrieval call binding the contract method 0x429a481b.
Solidity: function isValidatorEnabled(uint128 validatorId) view returns(bool)
func (*ProofChainCaller) OperatorRoles ¶
func (_ProofChain *ProofChainCaller) OperatorRoles(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error)
OperatorRoles is a free data retrieval call binding the contract method 0x6ab9d8e8.
Solidity: function operatorRoles(address ) view returns(bytes32)
func (*ProofChainCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*ProofChainCaller) ValidatorIDs ¶
func (_ProofChain *ProofChainCaller) ValidatorIDs(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
ValidatorIDs is a free data retrieval call binding the contract method 0x0d92f4ed.
Solidity: function validatorIDs(address ) view returns(uint128)
type ProofChainCallerRaw ¶
type ProofChainCallerRaw struct {
Contract *ProofChainCaller // Generic read-only contract binding to access the raw methods on
}
ProofChainCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ProofChainCallerRaw) Call ¶
func (_ProofChain *ProofChainCallerRaw) 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 ProofChainCallerSession ¶
type ProofChainCallerSession struct { Contract *ProofChainCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ProofChainCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ProofChainCallerSession) AUDITORROLE ¶
func (_ProofChain *ProofChainCallerSession) AUDITORROLE() ([32]byte, error)
AUDITORROLE is a free data retrieval call binding the contract method 0x6e1d616e.
Solidity: function AUDITOR_ROLE() view returns(bytes32)
func (*ProofChainCallerSession) BLOCKSPECIMENPRODUCERROLE ¶
func (_ProofChain *ProofChainCallerSession) BLOCKSPECIMENPRODUCERROLE() ([32]byte, error)
BLOCKSPECIMENPRODUCERROLE is a free data retrieval call binding the contract method 0x9c49d8ee.
Solidity: function BLOCK_SPECIMEN_PRODUCER_ROLE() view returns(bytes32)
func (*ProofChainCallerSession) GOVERNANCEROLE ¶
func (_ProofChain *ProofChainCallerSession) GOVERNANCEROLE() ([32]byte, error)
GOVERNANCEROLE is a free data retrieval call binding the contract method 0xf36c8f5c.
Solidity: function GOVERNANCE_ROLE() view returns(bytes32)
func (*ProofChainCallerSession) GetAllOperators ¶ added in v1.4.7
func (_ProofChain *ProofChainCallerSession) GetAllOperators() (struct { Bsps []common.Address Governors []common.Address Auditors []common.Address }, error)
GetAllOperators is a free data retrieval call binding the contract method 0xd911c632.
Solidity: function getAllOperators() view returns(address[] _bsps, address[] __governors, address[] __auditors)
func (*ProofChainCallerSession) GetBSPRoleData ¶ added in v1.4.7
func (_ProofChain *ProofChainCallerSession) GetBSPRoleData() (struct { RequiredStake *big.Int ActiveMembers []common.Address }, error)
GetBSPRoleData is a free data retrieval call binding the contract method 0x1fd55ae9.
Solidity: function getBSPRoleData() view returns(uint128 requiredStake, address[] activeMembers)
func (*ProofChainCallerSession) GetChainData ¶ added in v1.4.7
func (_ProofChain *ProofChainCallerSession) GetChainData(chainId uint64) (struct { BlockOnTargetChain *big.Int BlockOnCurrentChain *big.Int SecondsPerBlockTargetChain *big.Int AllowedThreshold *big.Int MaxSubmissionsPerBlockHeight *big.Int NthBlock uint64 }, error)
GetChainData is a free data retrieval call binding the contract method 0x54cfa69f.
Solidity: function getChainData(uint64 chainId) view returns(uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain, uint128 allowedThreshold, uint128 maxSubmissionsPerBlockHeight, uint64 nthBlock)
func (*ProofChainCallerSession) GetEnabledOperatorCount ¶ added in v1.5.0
func (_ProofChain *ProofChainCallerSession) GetEnabledOperatorCount(validatorId *big.Int) (*big.Int, error)
GetEnabledOperatorCount is a free data retrieval call binding the contract method 0x43b845b5.
Solidity: function getEnabledOperatorCount(uint128 validatorId) view returns(uint128)
func (*ProofChainCallerSession) GetMetadata ¶ added in v1.4.7
func (_ProofChain *ProofChainCallerSession) GetMetadata() (struct { StakingManager common.Address BlockSpecimenRewardAllocation *big.Int BlockSpecimenSessionDuration uint64 MinSubmissionsRequired uint64 BlockSpecimenQuorum *big.Int SecondsPerBlockCurrentChain *big.Int }, error)
GetMetadata is a free data retrieval call binding the contract method 0x7a5b4f59.
Solidity: function getMetadata() view returns(address stakingManager, uint128 blockSpecimenRewardAllocation, uint64 blockSpecimenSessionDuration, uint64 minSubmissionsRequired, uint256 blockSpecimenQuorum, uint256 secondsPerBlockCurrentChain)
func (*ProofChainCallerSession) GetOperators ¶
func (_ProofChain *ProofChainCallerSession) GetOperators(validatorId *big.Int) ([]common.Address, error)
GetOperators is a free data retrieval call binding the contract method 0xd3a8b2a8.
Solidity: function getOperators(uint128 validatorId) view returns(address[])
func (*ProofChainCallerSession) GetURLS ¶ added in v1.5.0
func (_ProofChain *ProofChainCallerSession) GetURLS(specimenhash [32]byte) ([]string, error)
GetURLS is a free data retrieval call binding the contract method 0xd5839da9.
Solidity: function getURLS(bytes32 specimenhash) view returns(string[])
func (*ProofChainCallerSession) IsEnabled ¶
func (_ProofChain *ProofChainCallerSession) IsEnabled(operator common.Address) (bool, error)
IsEnabled is a free data retrieval call binding the contract method 0x9015d371.
Solidity: function isEnabled(address operator) view returns(bool)
func (*ProofChainCallerSession) IsSessionOpen ¶ added in v1.5.0
func (_ProofChain *ProofChainCallerSession) IsSessionOpen(chainId uint64, blockHeight uint64, operator common.Address) (bool, error)
IsSessionOpen is a free data retrieval call binding the contract method 0xba75fd2f.
Solidity: function isSessionOpen(uint64 chainId, uint64 blockHeight, address operator) view returns(bool)
func (*ProofChainCallerSession) IsValidatorEnabled ¶ added in v1.5.0
func (_ProofChain *ProofChainCallerSession) IsValidatorEnabled(validatorId *big.Int) (bool, error)
IsValidatorEnabled is a free data retrieval call binding the contract method 0x429a481b.
Solidity: function isValidatorEnabled(uint128 validatorId) view returns(bool)
func (*ProofChainCallerSession) OperatorRoles ¶
func (_ProofChain *ProofChainCallerSession) OperatorRoles(arg0 common.Address) ([32]byte, error)
OperatorRoles is a free data retrieval call binding the contract method 0x6ab9d8e8.
Solidity: function operatorRoles(address ) view returns(bytes32)
func (*ProofChainCallerSession) Owner ¶
func (_ProofChain *ProofChainCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*ProofChainCallerSession) ValidatorIDs ¶
ValidatorIDs is a free data retrieval call binding the contract method 0x0d92f4ed.
Solidity: function validatorIDs(address ) view returns(uint128)
type ProofChainChainSyncDataChanged ¶ added in v1.4.7
type ProofChainChainSyncDataChanged struct { ChainId uint64 BlockOnTargetChain *big.Int BlockOnCurrentChain *big.Int SecondsPerBlockTargetChain *big.Int Raw types.Log // Blockchain specific contextual infos }
ProofChainChainSyncDataChanged represents a ChainSyncDataChanged event raised by the ProofChain contract.
type ProofChainChainSyncDataChangedIterator ¶ added in v1.4.7
type ProofChainChainSyncDataChangedIterator struct { Event *ProofChainChainSyncDataChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainChainSyncDataChangedIterator is returned from FilterChainSyncDataChanged and is used to iterate over the raw logs and unpacked data for ChainSyncDataChanged events raised by the ProofChain contract.
func (*ProofChainChainSyncDataChangedIterator) Close ¶ added in v1.4.7
func (it *ProofChainChainSyncDataChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainChainSyncDataChangedIterator) Error ¶ added in v1.4.7
func (it *ProofChainChainSyncDataChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainChainSyncDataChangedIterator) Next ¶ added in v1.4.7
func (it *ProofChainChainSyncDataChangedIterator) 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 ProofChainFilterer ¶
type ProofChainFilterer struct {
// contains filtered or unexported fields
}
ProofChainFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewProofChainFilterer ¶
func NewProofChainFilterer(address common.Address, filterer bind.ContractFilterer) (*ProofChainFilterer, error)
NewProofChainFilterer creates a new log filterer instance of ProofChain, bound to a specific deployed contract.
func (*ProofChainFilterer) FilterBlockHeightSubmissionThresholdChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) FilterBlockHeightSubmissionThresholdChanged(opts *bind.FilterOpts, chainId []uint64) (*ProofChainBlockHeightSubmissionThresholdChangedIterator, error)
FilterBlockHeightSubmissionThresholdChanged is a free log retrieval operation binding the contract event 0x4e4c0afc3a2b327c2f061f8ff5190a491f1042ba8f292a887bab97840947b7a9.
Solidity: event BlockHeightSubmissionThresholdChanged(uint64 indexed chainId, uint64 threshold)
func (*ProofChainFilterer) FilterBlockSpecimenProductionProofSubmitted ¶
func (_ProofChain *ProofChainFilterer) FilterBlockSpecimenProductionProofSubmitted(opts *bind.FilterOpts) (*ProofChainBlockSpecimenProductionProofSubmittedIterator, error)
FilterBlockSpecimenProductionProofSubmitted is a free log retrieval operation binding the contract event 0xd79027d5232050798063d67d05f9e1545ea5b954e2334b09db548e63823fa1b1.
Solidity: event BlockSpecimenProductionProofSubmitted(uint64 chainId, uint64 blockHeight, bytes32 blockHash, bytes32 specimenHash, string storageURL)
func (*ProofChainFilterer) FilterBlockSpecimenQuorum ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) FilterBlockSpecimenQuorum(opts *bind.FilterOpts, chainId []uint64, blockHeight []uint64, blockHash [][32]byte) (*ProofChainBlockSpecimenQuorumIterator, error)
FilterBlockSpecimenQuorum is a free log retrieval operation binding the contract event 0x858deae9d885ee978c04934ceabf15ebe77ae274f3af6a05ecf3bd9880b08e1e.
Solidity: event BlockSpecimenQuorum(uint64 indexed chainId, uint64 indexed blockHeight, uint256 validatorBitMap, bytes32 indexed blockHash, bytes32 specimenHash)
func (*ProofChainFilterer) FilterBlockSpecimenRewardChanged ¶
func (_ProofChain *ProofChainFilterer) FilterBlockSpecimenRewardChanged(opts *bind.FilterOpts) (*ProofChainBlockSpecimenRewardChangedIterator, error)
FilterBlockSpecimenRewardChanged is a free log retrieval operation binding the contract event 0x01eb821dd596243f2f8c5f6c7478e281b855ac12a9f4be2c486cb2778a0bb81e.
Solidity: event BlockSpecimenRewardChanged(uint128 newBlockSpecimenRewardAllocation)
func (*ProofChainFilterer) FilterChainSyncDataChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) FilterChainSyncDataChanged(opts *bind.FilterOpts, chainId []uint64) (*ProofChainChainSyncDataChangedIterator, error)
FilterChainSyncDataChanged is a free log retrieval operation binding the contract event 0xfd97af399d19e6be9256c99c8e52b1809cdbc4dc96816739612b6fd4e6d940b0.
Solidity: event ChainSyncDataChanged(uint64 indexed chainId, uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain)
func (*ProofChainFilterer) FilterInitialized ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) FilterInitialized(opts *bind.FilterOpts) (*ProofChainInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*ProofChainFilterer) FilterMaxSubmissionsPerBlockHeightChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) FilterMaxSubmissionsPerBlockHeightChanged(opts *bind.FilterOpts) (*ProofChainMaxSubmissionsPerBlockHeightChangedIterator, error)
FilterMaxSubmissionsPerBlockHeightChanged is a free log retrieval operation binding the contract event 0x1bca1fb481202bb14258ce1030d54e9e7bafc8b696d96b9eb733826e58a3a030.
Solidity: event MaxSubmissionsPerBlockHeightChanged(uint256 maxSubmissions)
func (*ProofChainFilterer) FilterMinimumRequiredStakeChanged ¶
func (_ProofChain *ProofChainFilterer) FilterMinimumRequiredStakeChanged(opts *bind.FilterOpts) (*ProofChainMinimumRequiredStakeChangedIterator, error)
FilterMinimumRequiredStakeChanged is a free log retrieval operation binding the contract event 0xb6c040bb0324b47cbf9a620cce03b311e24597626a57322173d5d5465f739d27.
Solidity: event MinimumRequiredStakeChanged(uint128 newStakeRequirement)
func (*ProofChainFilterer) FilterNthBlockChanged ¶
func (_ProofChain *ProofChainFilterer) FilterNthBlockChanged(opts *bind.FilterOpts, chainId []uint64, nthBlock []uint64) (*ProofChainNthBlockChangedIterator, error)
FilterNthBlockChanged is a free log retrieval operation binding the contract event 0xbbfa9310306e8a8485d109f8be6b0a808473ce55d2e94b8ca3447c9ddb2854b4.
Solidity: event NthBlockChanged(uint64 indexed chainId, uint64 indexed nthBlock)
func (*ProofChainFilterer) FilterOperatorAdded ¶
func (_ProofChain *ProofChainFilterer) FilterOperatorAdded(opts *bind.FilterOpts) (*ProofChainOperatorAddedIterator, error)
FilterOperatorAdded is a free log retrieval operation binding the contract event 0x797ca55fc7be0f65c71f10996f7a16f801094f8ae3811874afc5a39730772a42.
Solidity: event OperatorAdded(address operator, uint128 validatorId, bytes32 role)
func (*ProofChainFilterer) FilterOperatorRemoved ¶
func (_ProofChain *ProofChainFilterer) FilterOperatorRemoved(opts *bind.FilterOpts) (*ProofChainOperatorRemovedIterator, error)
FilterOperatorRemoved is a free log retrieval operation binding the contract event 0xca6d116f31cc5d708ae73029e1d63d1be48afdfd99819a3405bfbaf229748d90.
Solidity: event OperatorRemoved(address operator, uint128 validatorId, uint128 activeOperatorCount, bytes32 role)
func (*ProofChainFilterer) FilterOwnershipTransferred ¶
func (_ProofChain *ProofChainFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ProofChainOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ProofChainFilterer) FilterQuorumNotReached ¶
func (_ProofChain *ProofChainFilterer) FilterQuorumNotReached(opts *bind.FilterOpts, chainId []uint64) (*ProofChainQuorumNotReachedIterator, error)
FilterQuorumNotReached is a free log retrieval operation binding the contract event 0x398fd8f638a7242217f011fd0720a06747f7a85b7d28d7276684b841baea4021.
Solidity: event QuorumNotReached(uint64 indexed chainId, uint64 blockHeight)
func (*ProofChainFilterer) FilterSecondsPerBlockCurrentChainChanged ¶ added in v1.6.0
func (_ProofChain *ProofChainFilterer) FilterSecondsPerBlockCurrentChainChanged(opts *bind.FilterOpts, secondsPerBlockCurrentChain []uint64) (*ProofChainSecondsPerBlockCurrentChainChangedIterator, error)
FilterSecondsPerBlockCurrentChainChanged is a free log retrieval operation binding the contract event 0x52eb144349cf62d6190a9e1cbb6a601848aa63df834dd2a2e75bb0be3fef86f4.
Solidity: event SecondsPerBlockCurrentChainChanged(uint64 indexed secondsPerBlockCurrentChain)
func (*ProofChainFilterer) FilterSessionStarted ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) FilterSessionStarted(opts *bind.FilterOpts, chainId []uint64, blockHeight []uint64) (*ProofChainSessionStartedIterator, error)
FilterSessionStarted is a free log retrieval operation binding the contract event 0x8b1f889addbfa41db5227bae3b091bd5c8b9a9122f874dfe54ba2f75aabe1f4c.
Solidity: event SessionStarted(uint64 indexed chainId, uint64 indexed blockHeight, uint64 deadline)
func (*ProofChainFilterer) FilterSpecimenSessionDurationChanged ¶
func (_ProofChain *ProofChainFilterer) FilterSpecimenSessionDurationChanged(opts *bind.FilterOpts) (*ProofChainSpecimenSessionDurationChangedIterator, error)
FilterSpecimenSessionDurationChanged is a free log retrieval operation binding the contract event 0x94bc488f4d9a985dd5f9d11e8f0a614a62828888eb65b704a90fa852be937549.
Solidity: event SpecimenSessionDurationChanged(uint64 newSessionDuration)
func (*ProofChainFilterer) FilterSpecimenSessionMinSubmissionChanged ¶
func (_ProofChain *ProofChainFilterer) FilterSpecimenSessionMinSubmissionChanged(opts *bind.FilterOpts) (*ProofChainSpecimenSessionMinSubmissionChangedIterator, error)
FilterSpecimenSessionMinSubmissionChanged is a free log retrieval operation binding the contract event 0x28312bbddd51eea4439db773218c441a4057f6ed285c642a569f1dcdba1cc047.
Solidity: event SpecimenSessionMinSubmissionChanged(uint64 minSubmissions)
func (*ProofChainFilterer) FilterSpecimenSessionQuorumChanged ¶
func (_ProofChain *ProofChainFilterer) FilterSpecimenSessionQuorumChanged(opts *bind.FilterOpts) (*ProofChainSpecimenSessionQuorumChangedIterator, error)
FilterSpecimenSessionQuorumChanged is a free log retrieval operation binding the contract event 0x00ec8eefea39d742ff523b872c1931ff4d509ab873041c5d6e237d5f0fc053f8.
Solidity: event SpecimenSessionQuorumChanged(uint256 newQuorumThreshold)
func (*ProofChainFilterer) FilterStakingManagerChanged ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) FilterStakingManagerChanged(opts *bind.FilterOpts) (*ProofChainStakingManagerChangedIterator, error)
FilterStakingManagerChanged is a free log retrieval operation binding the contract event 0xf725afeae606c3f3c4c0ac3963e5c76a046bc4f386be98100c54e55bf5aeab36.
Solidity: event StakingManagerChanged(address newStakingManager)
func (*ProofChainFilterer) FilterValidatorDisabled ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) FilterValidatorDisabled(opts *bind.FilterOpts) (*ProofChainValidatorDisabledIterator, error)
FilterValidatorDisabled is a free log retrieval operation binding the contract event 0xf97fbe9a37a2eae093c44e9bbcd9afde23ba64215e8fd80b9c49b1fbd4d58e54.
Solidity: event ValidatorDisabled(uint128 validatorId)
func (*ProofChainFilterer) FilterValidatorEnabled ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) FilterValidatorEnabled(opts *bind.FilterOpts) (*ProofChainValidatorEnabledIterator, error)
FilterValidatorEnabled is a free log retrieval operation binding the contract event 0x553b029ba5c74688a5da732136d246f722502db24ed6b4aaf1cdc9f2f9ef23ef.
Solidity: event ValidatorEnabled(uint128 validatorId)
func (*ProofChainFilterer) ParseBlockHeightSubmissionThresholdChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) ParseBlockHeightSubmissionThresholdChanged(log types.Log) (*ProofChainBlockHeightSubmissionThresholdChanged, error)
ParseBlockHeightSubmissionThresholdChanged is a log parse operation binding the contract event 0x4e4c0afc3a2b327c2f061f8ff5190a491f1042ba8f292a887bab97840947b7a9.
Solidity: event BlockHeightSubmissionThresholdChanged(uint64 indexed chainId, uint64 threshold)
func (*ProofChainFilterer) ParseBlockSpecimenProductionProofSubmitted ¶
func (_ProofChain *ProofChainFilterer) ParseBlockSpecimenProductionProofSubmitted(log types.Log) (*ProofChainBlockSpecimenProductionProofSubmitted, error)
ParseBlockSpecimenProductionProofSubmitted is a log parse operation binding the contract event 0xd79027d5232050798063d67d05f9e1545ea5b954e2334b09db548e63823fa1b1.
Solidity: event BlockSpecimenProductionProofSubmitted(uint64 chainId, uint64 blockHeight, bytes32 blockHash, bytes32 specimenHash, string storageURL)
func (*ProofChainFilterer) ParseBlockSpecimenQuorum ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) ParseBlockSpecimenQuorum(log types.Log) (*ProofChainBlockSpecimenQuorum, error)
ParseBlockSpecimenQuorum is a log parse operation binding the contract event 0x858deae9d885ee978c04934ceabf15ebe77ae274f3af6a05ecf3bd9880b08e1e.
Solidity: event BlockSpecimenQuorum(uint64 indexed chainId, uint64 indexed blockHeight, uint256 validatorBitMap, bytes32 indexed blockHash, bytes32 specimenHash)
func (*ProofChainFilterer) ParseBlockSpecimenRewardChanged ¶
func (_ProofChain *ProofChainFilterer) ParseBlockSpecimenRewardChanged(log types.Log) (*ProofChainBlockSpecimenRewardChanged, error)
ParseBlockSpecimenRewardChanged is a log parse operation binding the contract event 0x01eb821dd596243f2f8c5f6c7478e281b855ac12a9f4be2c486cb2778a0bb81e.
Solidity: event BlockSpecimenRewardChanged(uint128 newBlockSpecimenRewardAllocation)
func (*ProofChainFilterer) ParseChainSyncDataChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) ParseChainSyncDataChanged(log types.Log) (*ProofChainChainSyncDataChanged, error)
ParseChainSyncDataChanged is a log parse operation binding the contract event 0xfd97af399d19e6be9256c99c8e52b1809cdbc4dc96816739612b6fd4e6d940b0.
Solidity: event ChainSyncDataChanged(uint64 indexed chainId, uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain)
func (*ProofChainFilterer) ParseInitialized ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) ParseInitialized(log types.Log) (*ProofChainInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*ProofChainFilterer) ParseMaxSubmissionsPerBlockHeightChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) ParseMaxSubmissionsPerBlockHeightChanged(log types.Log) (*ProofChainMaxSubmissionsPerBlockHeightChanged, error)
ParseMaxSubmissionsPerBlockHeightChanged is a log parse operation binding the contract event 0x1bca1fb481202bb14258ce1030d54e9e7bafc8b696d96b9eb733826e58a3a030.
Solidity: event MaxSubmissionsPerBlockHeightChanged(uint256 maxSubmissions)
func (*ProofChainFilterer) ParseMinimumRequiredStakeChanged ¶
func (_ProofChain *ProofChainFilterer) ParseMinimumRequiredStakeChanged(log types.Log) (*ProofChainMinimumRequiredStakeChanged, error)
ParseMinimumRequiredStakeChanged is a log parse operation binding the contract event 0xb6c040bb0324b47cbf9a620cce03b311e24597626a57322173d5d5465f739d27.
Solidity: event MinimumRequiredStakeChanged(uint128 newStakeRequirement)
func (*ProofChainFilterer) ParseNthBlockChanged ¶
func (_ProofChain *ProofChainFilterer) ParseNthBlockChanged(log types.Log) (*ProofChainNthBlockChanged, error)
ParseNthBlockChanged is a log parse operation binding the contract event 0xbbfa9310306e8a8485d109f8be6b0a808473ce55d2e94b8ca3447c9ddb2854b4.
Solidity: event NthBlockChanged(uint64 indexed chainId, uint64 indexed nthBlock)
func (*ProofChainFilterer) ParseOperatorAdded ¶
func (_ProofChain *ProofChainFilterer) ParseOperatorAdded(log types.Log) (*ProofChainOperatorAdded, error)
ParseOperatorAdded is a log parse operation binding the contract event 0x797ca55fc7be0f65c71f10996f7a16f801094f8ae3811874afc5a39730772a42.
Solidity: event OperatorAdded(address operator, uint128 validatorId, bytes32 role)
func (*ProofChainFilterer) ParseOperatorRemoved ¶
func (_ProofChain *ProofChainFilterer) ParseOperatorRemoved(log types.Log) (*ProofChainOperatorRemoved, error)
ParseOperatorRemoved is a log parse operation binding the contract event 0xca6d116f31cc5d708ae73029e1d63d1be48afdfd99819a3405bfbaf229748d90.
Solidity: event OperatorRemoved(address operator, uint128 validatorId, uint128 activeOperatorCount, bytes32 role)
func (*ProofChainFilterer) ParseOwnershipTransferred ¶
func (_ProofChain *ProofChainFilterer) ParseOwnershipTransferred(log types.Log) (*ProofChainOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ProofChainFilterer) ParseQuorumNotReached ¶
func (_ProofChain *ProofChainFilterer) ParseQuorumNotReached(log types.Log) (*ProofChainQuorumNotReached, error)
ParseQuorumNotReached is a log parse operation binding the contract event 0x398fd8f638a7242217f011fd0720a06747f7a85b7d28d7276684b841baea4021.
Solidity: event QuorumNotReached(uint64 indexed chainId, uint64 blockHeight)
func (*ProofChainFilterer) ParseSecondsPerBlockCurrentChainChanged ¶ added in v1.6.0
func (_ProofChain *ProofChainFilterer) ParseSecondsPerBlockCurrentChainChanged(log types.Log) (*ProofChainSecondsPerBlockCurrentChainChanged, error)
ParseSecondsPerBlockCurrentChainChanged is a log parse operation binding the contract event 0x52eb144349cf62d6190a9e1cbb6a601848aa63df834dd2a2e75bb0be3fef86f4.
Solidity: event SecondsPerBlockCurrentChainChanged(uint64 indexed secondsPerBlockCurrentChain)
func (*ProofChainFilterer) ParseSessionStarted ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) ParseSessionStarted(log types.Log) (*ProofChainSessionStarted, error)
ParseSessionStarted is a log parse operation binding the contract event 0x8b1f889addbfa41db5227bae3b091bd5c8b9a9122f874dfe54ba2f75aabe1f4c.
Solidity: event SessionStarted(uint64 indexed chainId, uint64 indexed blockHeight, uint64 deadline)
func (*ProofChainFilterer) ParseSpecimenSessionDurationChanged ¶
func (_ProofChain *ProofChainFilterer) ParseSpecimenSessionDurationChanged(log types.Log) (*ProofChainSpecimenSessionDurationChanged, error)
ParseSpecimenSessionDurationChanged is a log parse operation binding the contract event 0x94bc488f4d9a985dd5f9d11e8f0a614a62828888eb65b704a90fa852be937549.
Solidity: event SpecimenSessionDurationChanged(uint64 newSessionDuration)
func (*ProofChainFilterer) ParseSpecimenSessionMinSubmissionChanged ¶
func (_ProofChain *ProofChainFilterer) ParseSpecimenSessionMinSubmissionChanged(log types.Log) (*ProofChainSpecimenSessionMinSubmissionChanged, error)
ParseSpecimenSessionMinSubmissionChanged is a log parse operation binding the contract event 0x28312bbddd51eea4439db773218c441a4057f6ed285c642a569f1dcdba1cc047.
Solidity: event SpecimenSessionMinSubmissionChanged(uint64 minSubmissions)
func (*ProofChainFilterer) ParseSpecimenSessionQuorumChanged ¶
func (_ProofChain *ProofChainFilterer) ParseSpecimenSessionQuorumChanged(log types.Log) (*ProofChainSpecimenSessionQuorumChanged, error)
ParseSpecimenSessionQuorumChanged is a log parse operation binding the contract event 0x00ec8eefea39d742ff523b872c1931ff4d509ab873041c5d6e237d5f0fc053f8.
Solidity: event SpecimenSessionQuorumChanged(uint256 newQuorumThreshold)
func (*ProofChainFilterer) ParseStakingManagerChanged ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) ParseStakingManagerChanged(log types.Log) (*ProofChainStakingManagerChanged, error)
ParseStakingManagerChanged is a log parse operation binding the contract event 0xf725afeae606c3f3c4c0ac3963e5c76a046bc4f386be98100c54e55bf5aeab36.
Solidity: event StakingManagerChanged(address newStakingManager)
func (*ProofChainFilterer) ParseValidatorDisabled ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) ParseValidatorDisabled(log types.Log) (*ProofChainValidatorDisabled, error)
ParseValidatorDisabled is a log parse operation binding the contract event 0xf97fbe9a37a2eae093c44e9bbcd9afde23ba64215e8fd80b9c49b1fbd4d58e54.
Solidity: event ValidatorDisabled(uint128 validatorId)
func (*ProofChainFilterer) ParseValidatorEnabled ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) ParseValidatorEnabled(log types.Log) (*ProofChainValidatorEnabled, error)
ParseValidatorEnabled is a log parse operation binding the contract event 0x553b029ba5c74688a5da732136d246f722502db24ed6b4aaf1cdc9f2f9ef23ef.
Solidity: event ValidatorEnabled(uint128 validatorId)
func (*ProofChainFilterer) WatchBlockHeightSubmissionThresholdChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) WatchBlockHeightSubmissionThresholdChanged(opts *bind.WatchOpts, sink chan<- *ProofChainBlockHeightSubmissionThresholdChanged, chainId []uint64) (event.Subscription, error)
WatchBlockHeightSubmissionThresholdChanged is a free log subscription operation binding the contract event 0x4e4c0afc3a2b327c2f061f8ff5190a491f1042ba8f292a887bab97840947b7a9.
Solidity: event BlockHeightSubmissionThresholdChanged(uint64 indexed chainId, uint64 threshold)
func (*ProofChainFilterer) WatchBlockSpecimenProductionProofSubmitted ¶
func (_ProofChain *ProofChainFilterer) WatchBlockSpecimenProductionProofSubmitted(opts *bind.WatchOpts, sink chan<- *ProofChainBlockSpecimenProductionProofSubmitted) (event.Subscription, error)
WatchBlockSpecimenProductionProofSubmitted is a free log subscription operation binding the contract event 0xd79027d5232050798063d67d05f9e1545ea5b954e2334b09db548e63823fa1b1.
Solidity: event BlockSpecimenProductionProofSubmitted(uint64 chainId, uint64 blockHeight, bytes32 blockHash, bytes32 specimenHash, string storageURL)
func (*ProofChainFilterer) WatchBlockSpecimenQuorum ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) WatchBlockSpecimenQuorum(opts *bind.WatchOpts, sink chan<- *ProofChainBlockSpecimenQuorum, chainId []uint64, blockHeight []uint64, blockHash [][32]byte) (event.Subscription, error)
WatchBlockSpecimenQuorum is a free log subscription operation binding the contract event 0x858deae9d885ee978c04934ceabf15ebe77ae274f3af6a05ecf3bd9880b08e1e.
Solidity: event BlockSpecimenQuorum(uint64 indexed chainId, uint64 indexed blockHeight, uint256 validatorBitMap, bytes32 indexed blockHash, bytes32 specimenHash)
func (*ProofChainFilterer) WatchBlockSpecimenRewardChanged ¶
func (_ProofChain *ProofChainFilterer) WatchBlockSpecimenRewardChanged(opts *bind.WatchOpts, sink chan<- *ProofChainBlockSpecimenRewardChanged) (event.Subscription, error)
WatchBlockSpecimenRewardChanged is a free log subscription operation binding the contract event 0x01eb821dd596243f2f8c5f6c7478e281b855ac12a9f4be2c486cb2778a0bb81e.
Solidity: event BlockSpecimenRewardChanged(uint128 newBlockSpecimenRewardAllocation)
func (*ProofChainFilterer) WatchChainSyncDataChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) WatchChainSyncDataChanged(opts *bind.WatchOpts, sink chan<- *ProofChainChainSyncDataChanged, chainId []uint64) (event.Subscription, error)
WatchChainSyncDataChanged is a free log subscription operation binding the contract event 0xfd97af399d19e6be9256c99c8e52b1809cdbc4dc96816739612b6fd4e6d940b0.
Solidity: event ChainSyncDataChanged(uint64 indexed chainId, uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain)
func (*ProofChainFilterer) WatchInitialized ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ProofChainInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*ProofChainFilterer) WatchMaxSubmissionsPerBlockHeightChanged ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) WatchMaxSubmissionsPerBlockHeightChanged(opts *bind.WatchOpts, sink chan<- *ProofChainMaxSubmissionsPerBlockHeightChanged) (event.Subscription, error)
WatchMaxSubmissionsPerBlockHeightChanged is a free log subscription operation binding the contract event 0x1bca1fb481202bb14258ce1030d54e9e7bafc8b696d96b9eb733826e58a3a030.
Solidity: event MaxSubmissionsPerBlockHeightChanged(uint256 maxSubmissions)
func (*ProofChainFilterer) WatchMinimumRequiredStakeChanged ¶
func (_ProofChain *ProofChainFilterer) WatchMinimumRequiredStakeChanged(opts *bind.WatchOpts, sink chan<- *ProofChainMinimumRequiredStakeChanged) (event.Subscription, error)
WatchMinimumRequiredStakeChanged is a free log subscription operation binding the contract event 0xb6c040bb0324b47cbf9a620cce03b311e24597626a57322173d5d5465f739d27.
Solidity: event MinimumRequiredStakeChanged(uint128 newStakeRequirement)
func (*ProofChainFilterer) WatchNthBlockChanged ¶
func (_ProofChain *ProofChainFilterer) WatchNthBlockChanged(opts *bind.WatchOpts, sink chan<- *ProofChainNthBlockChanged, chainId []uint64, nthBlock []uint64) (event.Subscription, error)
WatchNthBlockChanged is a free log subscription operation binding the contract event 0xbbfa9310306e8a8485d109f8be6b0a808473ce55d2e94b8ca3447c9ddb2854b4.
Solidity: event NthBlockChanged(uint64 indexed chainId, uint64 indexed nthBlock)
func (*ProofChainFilterer) WatchOperatorAdded ¶
func (_ProofChain *ProofChainFilterer) WatchOperatorAdded(opts *bind.WatchOpts, sink chan<- *ProofChainOperatorAdded) (event.Subscription, error)
WatchOperatorAdded is a free log subscription operation binding the contract event 0x797ca55fc7be0f65c71f10996f7a16f801094f8ae3811874afc5a39730772a42.
Solidity: event OperatorAdded(address operator, uint128 validatorId, bytes32 role)
func (*ProofChainFilterer) WatchOperatorRemoved ¶
func (_ProofChain *ProofChainFilterer) WatchOperatorRemoved(opts *bind.WatchOpts, sink chan<- *ProofChainOperatorRemoved) (event.Subscription, error)
WatchOperatorRemoved is a free log subscription operation binding the contract event 0xca6d116f31cc5d708ae73029e1d63d1be48afdfd99819a3405bfbaf229748d90.
Solidity: event OperatorRemoved(address operator, uint128 validatorId, uint128 activeOperatorCount, bytes32 role)
func (*ProofChainFilterer) WatchOwnershipTransferred ¶
func (_ProofChain *ProofChainFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProofChainOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ProofChainFilterer) WatchQuorumNotReached ¶
func (_ProofChain *ProofChainFilterer) WatchQuorumNotReached(opts *bind.WatchOpts, sink chan<- *ProofChainQuorumNotReached, chainId []uint64) (event.Subscription, error)
WatchQuorumNotReached is a free log subscription operation binding the contract event 0x398fd8f638a7242217f011fd0720a06747f7a85b7d28d7276684b841baea4021.
Solidity: event QuorumNotReached(uint64 indexed chainId, uint64 blockHeight)
func (*ProofChainFilterer) WatchSecondsPerBlockCurrentChainChanged ¶ added in v1.6.0
func (_ProofChain *ProofChainFilterer) WatchSecondsPerBlockCurrentChainChanged(opts *bind.WatchOpts, sink chan<- *ProofChainSecondsPerBlockCurrentChainChanged, secondsPerBlockCurrentChain []uint64) (event.Subscription, error)
WatchSecondsPerBlockCurrentChainChanged is a free log subscription operation binding the contract event 0x52eb144349cf62d6190a9e1cbb6a601848aa63df834dd2a2e75bb0be3fef86f4.
Solidity: event SecondsPerBlockCurrentChainChanged(uint64 indexed secondsPerBlockCurrentChain)
func (*ProofChainFilterer) WatchSessionStarted ¶ added in v1.4.7
func (_ProofChain *ProofChainFilterer) WatchSessionStarted(opts *bind.WatchOpts, sink chan<- *ProofChainSessionStarted, chainId []uint64, blockHeight []uint64) (event.Subscription, error)
WatchSessionStarted is a free log subscription operation binding the contract event 0x8b1f889addbfa41db5227bae3b091bd5c8b9a9122f874dfe54ba2f75aabe1f4c.
Solidity: event SessionStarted(uint64 indexed chainId, uint64 indexed blockHeight, uint64 deadline)
func (*ProofChainFilterer) WatchSpecimenSessionDurationChanged ¶
func (_ProofChain *ProofChainFilterer) WatchSpecimenSessionDurationChanged(opts *bind.WatchOpts, sink chan<- *ProofChainSpecimenSessionDurationChanged) (event.Subscription, error)
WatchSpecimenSessionDurationChanged is a free log subscription operation binding the contract event 0x94bc488f4d9a985dd5f9d11e8f0a614a62828888eb65b704a90fa852be937549.
Solidity: event SpecimenSessionDurationChanged(uint64 newSessionDuration)
func (*ProofChainFilterer) WatchSpecimenSessionMinSubmissionChanged ¶
func (_ProofChain *ProofChainFilterer) WatchSpecimenSessionMinSubmissionChanged(opts *bind.WatchOpts, sink chan<- *ProofChainSpecimenSessionMinSubmissionChanged) (event.Subscription, error)
WatchSpecimenSessionMinSubmissionChanged is a free log subscription operation binding the contract event 0x28312bbddd51eea4439db773218c441a4057f6ed285c642a569f1dcdba1cc047.
Solidity: event SpecimenSessionMinSubmissionChanged(uint64 minSubmissions)
func (*ProofChainFilterer) WatchSpecimenSessionQuorumChanged ¶
func (_ProofChain *ProofChainFilterer) WatchSpecimenSessionQuorumChanged(opts *bind.WatchOpts, sink chan<- *ProofChainSpecimenSessionQuorumChanged) (event.Subscription, error)
WatchSpecimenSessionQuorumChanged is a free log subscription operation binding the contract event 0x00ec8eefea39d742ff523b872c1931ff4d509ab873041c5d6e237d5f0fc053f8.
Solidity: event SpecimenSessionQuorumChanged(uint256 newQuorumThreshold)
func (*ProofChainFilterer) WatchStakingManagerChanged ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) WatchStakingManagerChanged(opts *bind.WatchOpts, sink chan<- *ProofChainStakingManagerChanged) (event.Subscription, error)
WatchStakingManagerChanged is a free log subscription operation binding the contract event 0xf725afeae606c3f3c4c0ac3963e5c76a046bc4f386be98100c54e55bf5aeab36.
Solidity: event StakingManagerChanged(address newStakingManager)
func (*ProofChainFilterer) WatchValidatorDisabled ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) WatchValidatorDisabled(opts *bind.WatchOpts, sink chan<- *ProofChainValidatorDisabled) (event.Subscription, error)
WatchValidatorDisabled is a free log subscription operation binding the contract event 0xf97fbe9a37a2eae093c44e9bbcd9afde23ba64215e8fd80b9c49b1fbd4d58e54.
Solidity: event ValidatorDisabled(uint128 validatorId)
func (*ProofChainFilterer) WatchValidatorEnabled ¶ added in v1.5.0
func (_ProofChain *ProofChainFilterer) WatchValidatorEnabled(opts *bind.WatchOpts, sink chan<- *ProofChainValidatorEnabled) (event.Subscription, error)
WatchValidatorEnabled is a free log subscription operation binding the contract event 0x553b029ba5c74688a5da732136d246f722502db24ed6b4aaf1cdc9f2f9ef23ef.
Solidity: event ValidatorEnabled(uint128 validatorId)
type ProofChainInitialized ¶ added in v1.4.7
type ProofChainInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
ProofChainInitialized represents a Initialized event raised by the ProofChain contract.
type ProofChainInitializedIterator ¶ added in v1.4.7
type ProofChainInitializedIterator struct { Event *ProofChainInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the ProofChain contract.
func (*ProofChainInitializedIterator) Close ¶ added in v1.4.7
func (it *ProofChainInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainInitializedIterator) Error ¶ added in v1.4.7
func (it *ProofChainInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainInitializedIterator) Next ¶ added in v1.4.7
func (it *ProofChainInitializedIterator) 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 ProofChainMaxSubmissionsPerBlockHeightChanged ¶ added in v1.4.7
type ProofChainMaxSubmissionsPerBlockHeightChanged struct { MaxSubmissions *big.Int Raw types.Log // Blockchain specific contextual infos }
ProofChainMaxSubmissionsPerBlockHeightChanged represents a MaxSubmissionsPerBlockHeightChanged event raised by the ProofChain contract.
type ProofChainMaxSubmissionsPerBlockHeightChangedIterator ¶ added in v1.4.7
type ProofChainMaxSubmissionsPerBlockHeightChangedIterator struct { Event *ProofChainMaxSubmissionsPerBlockHeightChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainMaxSubmissionsPerBlockHeightChangedIterator is returned from FilterMaxSubmissionsPerBlockHeightChanged and is used to iterate over the raw logs and unpacked data for MaxSubmissionsPerBlockHeightChanged events raised by the ProofChain contract.
func (*ProofChainMaxSubmissionsPerBlockHeightChangedIterator) Close ¶ added in v1.4.7
func (it *ProofChainMaxSubmissionsPerBlockHeightChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainMaxSubmissionsPerBlockHeightChangedIterator) Error ¶ added in v1.4.7
func (it *ProofChainMaxSubmissionsPerBlockHeightChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainMaxSubmissionsPerBlockHeightChangedIterator) Next ¶ added in v1.4.7
func (it *ProofChainMaxSubmissionsPerBlockHeightChangedIterator) 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 ProofChainMinimumRequiredStakeChanged ¶
type ProofChainMinimumRequiredStakeChanged struct { NewStakeRequirement *big.Int Raw types.Log // Blockchain specific contextual infos }
ProofChainMinimumRequiredStakeChanged represents a MinimumRequiredStakeChanged event raised by the ProofChain contract.
type ProofChainMinimumRequiredStakeChangedIterator ¶
type ProofChainMinimumRequiredStakeChangedIterator struct { Event *ProofChainMinimumRequiredStakeChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainMinimumRequiredStakeChangedIterator is returned from FilterMinimumRequiredStakeChanged and is used to iterate over the raw logs and unpacked data for MinimumRequiredStakeChanged events raised by the ProofChain contract.
func (*ProofChainMinimumRequiredStakeChangedIterator) Close ¶
func (it *ProofChainMinimumRequiredStakeChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainMinimumRequiredStakeChangedIterator) Error ¶
func (it *ProofChainMinimumRequiredStakeChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainMinimumRequiredStakeChangedIterator) Next ¶
func (it *ProofChainMinimumRequiredStakeChangedIterator) 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 ProofChainNthBlockChanged ¶
type ProofChainNthBlockChanged struct { ChainId uint64 NthBlock uint64 Raw types.Log // Blockchain specific contextual infos }
ProofChainNthBlockChanged represents a NthBlockChanged event raised by the ProofChain contract.
type ProofChainNthBlockChangedIterator ¶
type ProofChainNthBlockChangedIterator struct { Event *ProofChainNthBlockChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainNthBlockChangedIterator is returned from FilterNthBlockChanged and is used to iterate over the raw logs and unpacked data for NthBlockChanged events raised by the ProofChain contract.
func (*ProofChainNthBlockChangedIterator) Close ¶
func (it *ProofChainNthBlockChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainNthBlockChangedIterator) Error ¶
func (it *ProofChainNthBlockChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainNthBlockChangedIterator) Next ¶
func (it *ProofChainNthBlockChangedIterator) 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 ProofChainOperatorAdded ¶
type ProofChainOperatorAdded struct { Operator common.Address ValidatorId *big.Int Role [32]byte Raw types.Log // Blockchain specific contextual infos }
ProofChainOperatorAdded represents a OperatorAdded event raised by the ProofChain contract.
type ProofChainOperatorAddedIterator ¶
type ProofChainOperatorAddedIterator struct { Event *ProofChainOperatorAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainOperatorAddedIterator is returned from FilterOperatorAdded and is used to iterate over the raw logs and unpacked data for OperatorAdded events raised by the ProofChain contract.
func (*ProofChainOperatorAddedIterator) Close ¶
func (it *ProofChainOperatorAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainOperatorAddedIterator) Error ¶
func (it *ProofChainOperatorAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainOperatorAddedIterator) Next ¶
func (it *ProofChainOperatorAddedIterator) 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 ProofChainOperatorRemoved ¶
type ProofChainOperatorRemoved struct { Operator common.Address ValidatorId *big.Int ActiveOperatorCount *big.Int Role [32]byte Raw types.Log // Blockchain specific contextual infos }
ProofChainOperatorRemoved represents a OperatorRemoved event raised by the ProofChain contract.
type ProofChainOperatorRemovedIterator ¶
type ProofChainOperatorRemovedIterator struct { Event *ProofChainOperatorRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainOperatorRemovedIterator is returned from FilterOperatorRemoved and is used to iterate over the raw logs and unpacked data for OperatorRemoved events raised by the ProofChain contract.
func (*ProofChainOperatorRemovedIterator) Close ¶
func (it *ProofChainOperatorRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainOperatorRemovedIterator) Error ¶
func (it *ProofChainOperatorRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainOperatorRemovedIterator) Next ¶
func (it *ProofChainOperatorRemovedIterator) 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 ProofChainOwnershipTransferred ¶
type ProofChainOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
ProofChainOwnershipTransferred represents a OwnershipTransferred event raised by the ProofChain contract.
type ProofChainOwnershipTransferredIterator ¶
type ProofChainOwnershipTransferredIterator struct { Event *ProofChainOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ProofChain contract.
func (*ProofChainOwnershipTransferredIterator) Close ¶
func (it *ProofChainOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainOwnershipTransferredIterator) Error ¶
func (it *ProofChainOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainOwnershipTransferredIterator) Next ¶
func (it *ProofChainOwnershipTransferredIterator) 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 ProofChainQuorumNotReached ¶
type ProofChainQuorumNotReached struct { ChainId uint64 BlockHeight uint64 Raw types.Log // Blockchain specific contextual infos }
ProofChainQuorumNotReached represents a QuorumNotReached event raised by the ProofChain contract.
type ProofChainQuorumNotReachedIterator ¶
type ProofChainQuorumNotReachedIterator struct { Event *ProofChainQuorumNotReached // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainQuorumNotReachedIterator is returned from FilterQuorumNotReached and is used to iterate over the raw logs and unpacked data for QuorumNotReached events raised by the ProofChain contract.
func (*ProofChainQuorumNotReachedIterator) Close ¶
func (it *ProofChainQuorumNotReachedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainQuorumNotReachedIterator) Error ¶
func (it *ProofChainQuorumNotReachedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainQuorumNotReachedIterator) Next ¶
func (it *ProofChainQuorumNotReachedIterator) 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 ProofChainRaw ¶
type ProofChainRaw struct {
Contract *ProofChain // Generic contract binding to access the raw methods on
}
ProofChainRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ProofChainRaw) Call ¶
func (_ProofChain *ProofChainRaw) 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 (*ProofChainRaw) Transact ¶
func (_ProofChain *ProofChainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ProofChainRaw) Transfer ¶
func (_ProofChain *ProofChainRaw) 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 ProofChainSecondsPerBlockCurrentChainChanged ¶ added in v1.6.0
type ProofChainSecondsPerBlockCurrentChainChanged struct { SecondsPerBlockCurrentChain uint64 Raw types.Log // Blockchain specific contextual infos }
ProofChainSecondsPerBlockCurrentChainChanged represents a SecondsPerBlockCurrentChainChanged event raised by the ProofChain contract.
type ProofChainSecondsPerBlockCurrentChainChangedIterator ¶ added in v1.6.0
type ProofChainSecondsPerBlockCurrentChainChangedIterator struct { Event *ProofChainSecondsPerBlockCurrentChainChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainSecondsPerBlockCurrentChainChangedIterator is returned from FilterSecondsPerBlockCurrentChainChanged and is used to iterate over the raw logs and unpacked data for SecondsPerBlockCurrentChainChanged events raised by the ProofChain contract.
func (*ProofChainSecondsPerBlockCurrentChainChangedIterator) Close ¶ added in v1.6.0
func (it *ProofChainSecondsPerBlockCurrentChainChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainSecondsPerBlockCurrentChainChangedIterator) Error ¶ added in v1.6.0
func (it *ProofChainSecondsPerBlockCurrentChainChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainSecondsPerBlockCurrentChainChangedIterator) Next ¶ added in v1.6.0
func (it *ProofChainSecondsPerBlockCurrentChainChangedIterator) 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 ProofChainSession ¶
type ProofChainSession struct { Contract *ProofChain // 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 }
ProofChainSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ProofChainSession) AUDITORROLE ¶
func (_ProofChain *ProofChainSession) AUDITORROLE() ([32]byte, error)
AUDITORROLE is a free data retrieval call binding the contract method 0x6e1d616e.
Solidity: function AUDITOR_ROLE() view returns(bytes32)
func (*ProofChainSession) AddAuditor ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) AddAuditor(auditor common.Address) (*types.Transaction, error)
AddAuditor is a paid mutator transaction binding the contract method 0xe429cef1.
Solidity: function addAuditor(address auditor) returns()
func (*ProofChainSession) AddBSPOperator ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) AddBSPOperator(operator common.Address, validatorId *big.Int) (*types.Transaction, error)
AddBSPOperator is a paid mutator transaction binding the contract method 0xcc96e413.
Solidity: function addBSPOperator(address operator, uint128 validatorId) returns()
func (*ProofChainSession) AddGovernor ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) AddGovernor(governor common.Address) (*types.Transaction, error)
AddGovernor is a paid mutator transaction binding the contract method 0x3c4a25d0.
Solidity: function addGovernor(address governor) returns()
func (*ProofChainSession) BLOCKSPECIMENPRODUCERROLE ¶
func (_ProofChain *ProofChainSession) BLOCKSPECIMENPRODUCERROLE() ([32]byte, error)
BLOCKSPECIMENPRODUCERROLE is a free data retrieval call binding the contract method 0x9c49d8ee.
Solidity: function BLOCK_SPECIMEN_PRODUCER_ROLE() view returns(bytes32)
func (*ProofChainSession) DisableValidator ¶
func (_ProofChain *ProofChainSession) DisableValidator(validatorId *big.Int) (*types.Transaction, error)
DisableValidator is a paid mutator transaction binding the contract method 0x42e45079.
Solidity: function disableValidator(uint128 validatorId) returns()
func (*ProofChainSession) EnableValidator ¶ added in v1.5.0
func (_ProofChain *ProofChainSession) EnableValidator(validatorId *big.Int) (*types.Transaction, error)
EnableValidator is a paid mutator transaction binding the contract method 0xedff4b61.
Solidity: function enableValidator(uint128 validatorId) returns()
func (*ProofChainSession) FinalizeSpecimenSession ¶ added in v1.5.0
func (_ProofChain *ProofChainSession) FinalizeSpecimenSession(chainId uint64, blockHeight uint64) (*types.Transaction, error)
FinalizeSpecimenSession is a paid mutator transaction binding the contract method 0xd269550a.
Solidity: function finalizeSpecimenSession(uint64 chainId, uint64 blockHeight) returns()
func (*ProofChainSession) GOVERNANCEROLE ¶
func (_ProofChain *ProofChainSession) GOVERNANCEROLE() ([32]byte, error)
GOVERNANCEROLE is a free data retrieval call binding the contract method 0xf36c8f5c.
Solidity: function GOVERNANCE_ROLE() view returns(bytes32)
func (*ProofChainSession) GetAllOperators ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) GetAllOperators() (struct { Bsps []common.Address Governors []common.Address Auditors []common.Address }, error)
GetAllOperators is a free data retrieval call binding the contract method 0xd911c632.
Solidity: function getAllOperators() view returns(address[] _bsps, address[] __governors, address[] __auditors)
func (*ProofChainSession) GetBSPRoleData ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) GetBSPRoleData() (struct { RequiredStake *big.Int ActiveMembers []common.Address }, error)
GetBSPRoleData is a free data retrieval call binding the contract method 0x1fd55ae9.
Solidity: function getBSPRoleData() view returns(uint128 requiredStake, address[] activeMembers)
func (*ProofChainSession) GetChainData ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) GetChainData(chainId uint64) (struct { BlockOnTargetChain *big.Int BlockOnCurrentChain *big.Int SecondsPerBlockTargetChain *big.Int AllowedThreshold *big.Int MaxSubmissionsPerBlockHeight *big.Int NthBlock uint64 }, error)
GetChainData is a free data retrieval call binding the contract method 0x54cfa69f.
Solidity: function getChainData(uint64 chainId) view returns(uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain, uint128 allowedThreshold, uint128 maxSubmissionsPerBlockHeight, uint64 nthBlock)
func (*ProofChainSession) GetEnabledOperatorCount ¶ added in v1.5.0
func (_ProofChain *ProofChainSession) GetEnabledOperatorCount(validatorId *big.Int) (*big.Int, error)
GetEnabledOperatorCount is a free data retrieval call binding the contract method 0x43b845b5.
Solidity: function getEnabledOperatorCount(uint128 validatorId) view returns(uint128)
func (*ProofChainSession) GetMetadata ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) GetMetadata() (struct { StakingManager common.Address BlockSpecimenRewardAllocation *big.Int BlockSpecimenSessionDuration uint64 MinSubmissionsRequired uint64 BlockSpecimenQuorum *big.Int SecondsPerBlockCurrentChain *big.Int }, error)
GetMetadata is a free data retrieval call binding the contract method 0x7a5b4f59.
Solidity: function getMetadata() view returns(address stakingManager, uint128 blockSpecimenRewardAllocation, uint64 blockSpecimenSessionDuration, uint64 minSubmissionsRequired, uint256 blockSpecimenQuorum, uint256 secondsPerBlockCurrentChain)
func (*ProofChainSession) GetOperators ¶
GetOperators is a free data retrieval call binding the contract method 0xd3a8b2a8.
Solidity: function getOperators(uint128 validatorId) view returns(address[])
func (*ProofChainSession) GetURLS ¶ added in v1.5.0
func (_ProofChain *ProofChainSession) GetURLS(specimenhash [32]byte) ([]string, error)
GetURLS is a free data retrieval call binding the contract method 0xd5839da9.
Solidity: function getURLS(bytes32 specimenhash) view returns(string[])
func (*ProofChainSession) Initialize ¶
func (_ProofChain *ProofChainSession) Initialize(initialGovernor common.Address, stakingManager common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address initialGovernor, address stakingManager) returns()
func (*ProofChainSession) IsEnabled ¶
func (_ProofChain *ProofChainSession) IsEnabled(operator common.Address) (bool, error)
IsEnabled is a free data retrieval call binding the contract method 0x9015d371.
Solidity: function isEnabled(address operator) view returns(bool)
func (*ProofChainSession) IsSessionOpen ¶ added in v1.5.0
func (_ProofChain *ProofChainSession) IsSessionOpen(chainId uint64, blockHeight uint64, operator common.Address) (bool, error)
IsSessionOpen is a free data retrieval call binding the contract method 0xba75fd2f.
Solidity: function isSessionOpen(uint64 chainId, uint64 blockHeight, address operator) view returns(bool)
func (*ProofChainSession) IsValidatorEnabled ¶ added in v1.5.0
func (_ProofChain *ProofChainSession) IsValidatorEnabled(validatorId *big.Int) (bool, error)
IsValidatorEnabled is a free data retrieval call binding the contract method 0x429a481b.
Solidity: function isValidatorEnabled(uint128 validatorId) view returns(bool)
func (*ProofChainSession) OperatorRoles ¶
func (_ProofChain *ProofChainSession) OperatorRoles(arg0 common.Address) ([32]byte, error)
OperatorRoles is a free data retrieval call binding the contract method 0x6ab9d8e8.
Solidity: function operatorRoles(address ) view returns(bytes32)
func (*ProofChainSession) Owner ¶
func (_ProofChain *ProofChainSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*ProofChainSession) RemoveAuditor ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) RemoveAuditor(auditor common.Address) (*types.Transaction, error)
RemoveAuditor is a paid mutator transaction binding the contract method 0xe6116cfd.
Solidity: function removeAuditor(address auditor) returns()
func (*ProofChainSession) RemoveBSPOperator ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) RemoveBSPOperator(operator common.Address) (*types.Transaction, error)
RemoveBSPOperator is a paid mutator transaction binding the contract method 0xcf64a01d.
Solidity: function removeBSPOperator(address operator) returns()
func (*ProofChainSession) RemoveGovernor ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) RemoveGovernor(governor common.Address) (*types.Transaction, error)
RemoveGovernor is a paid mutator transaction binding the contract method 0xeecdac88.
Solidity: function removeGovernor(address governor) returns()
func (*ProofChainSession) RenounceOwnership ¶
func (_ProofChain *ProofChainSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*ProofChainSession) SetBlockHeightSubmissionsThreshold ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) SetBlockHeightSubmissionsThreshold(chainId uint64, threshold uint64) (*types.Transaction, error)
SetBlockHeightSubmissionsThreshold is a paid mutator transaction binding the contract method 0x2c58ed42.
Solidity: function setBlockHeightSubmissionsThreshold(uint64 chainId, uint64 threshold) returns()
func (*ProofChainSession) SetBlockSpecimenReward ¶
func (_ProofChain *ProofChainSession) SetBlockSpecimenReward(newBlockSpecimenReward *big.Int) (*types.Transaction, error)
SetBlockSpecimenReward is a paid mutator transaction binding the contract method 0x89587f05.
Solidity: function setBlockSpecimenReward(uint128 newBlockSpecimenReward) returns()
func (*ProofChainSession) SetBlockSpecimenSessionDuration ¶
func (_ProofChain *ProofChainSession) SetBlockSpecimenSessionDuration(newSessionDuration uint64) (*types.Transaction, error)
SetBlockSpecimenSessionDuration is a paid mutator transaction binding the contract method 0x67d07ad7.
Solidity: function setBlockSpecimenSessionDuration(uint64 newSessionDuration) returns()
func (*ProofChainSession) SetChainSyncData ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) SetChainSyncData(chainId uint64, blockOnTargetChain *big.Int, blockOnCurrentChain *big.Int, secondsPerBlockTargetChain *big.Int) (*types.Transaction, error)
SetChainSyncData is a paid mutator transaction binding the contract method 0x99146284.
Solidity: function setChainSyncData(uint64 chainId, uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain) returns()
func (*ProofChainSession) SetMaxSubmissionsPerBlockHeight ¶ added in v1.4.7
func (_ProofChain *ProofChainSession) SetMaxSubmissionsPerBlockHeight(chainId uint64, maxSubmissions uint64) (*types.Transaction, error)
SetMaxSubmissionsPerBlockHeight is a paid mutator transaction binding the contract method 0x67585e44.
Solidity: function setMaxSubmissionsPerBlockHeight(uint64 chainId, uint64 maxSubmissions) returns()
func (*ProofChainSession) SetMinSubmissionsRequired ¶
func (_ProofChain *ProofChainSession) SetMinSubmissionsRequired(minSubmissions uint64) (*types.Transaction, error)
SetMinSubmissionsRequired is a paid mutator transaction binding the contract method 0x93742b56.
Solidity: function setMinSubmissionsRequired(uint64 minSubmissions) returns()
func (*ProofChainSession) SetNthBlock ¶
func (_ProofChain *ProofChainSession) SetNthBlock(chainId uint64, n uint64) (*types.Transaction, error)
SetNthBlock is a paid mutator transaction binding the contract method 0xe3201409.
Solidity: function setNthBlock(uint64 chainId, uint64 n) returns()
func (*ProofChainSession) SetQuorumThreshold ¶
func (_ProofChain *ProofChainSession) SetQuorumThreshold(quorum *big.Int) (*types.Transaction, error)
SetQuorumThreshold is a paid mutator transaction binding the contract method 0x4524c7e1.
Solidity: function setQuorumThreshold(uint256 quorum) returns()
func (*ProofChainSession) SetSecondsPerBlockCurrentChain ¶ added in v1.6.0
func (_ProofChain *ProofChainSession) SetSecondsPerBlockCurrentChain(secondsPerBlockCurrentChain uint64) (*types.Transaction, error)
SetSecondsPerBlockCurrentChain is a paid mutator transaction binding the contract method 0x2ba719ad.
Solidity: function setSecondsPerBlockCurrentChain(uint64 secondsPerBlockCurrentChain) returns()
func (*ProofChainSession) SetStakingManagerAddress ¶ added in v1.5.0
func (_ProofChain *ProofChainSession) SetStakingManagerAddress(stakingManagerAddress common.Address) (*types.Transaction, error)
SetStakingManagerAddress is a paid mutator transaction binding the contract method 0x37e15bce.
Solidity: function setStakingManagerAddress(address stakingManagerAddress) returns()
func (*ProofChainSession) SubmitBlockSpecimenProof ¶
func (_ProofChain *ProofChainSession) SubmitBlockSpecimenProof(chainId uint64, blockHeight uint64, blockHash [32]byte, specimenHash [32]byte, storageURL string) (*types.Transaction, error)
SubmitBlockSpecimenProof is a paid mutator transaction binding the contract method 0x151fd8f3.
Solidity: function submitBlockSpecimenProof(uint64 chainId, uint64 blockHeight, bytes32 blockHash, bytes32 specimenHash, string storageURL) returns()
func (*ProofChainSession) TransferOwnership ¶
func (_ProofChain *ProofChainSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*ProofChainSession) ValidatorIDs ¶
ValidatorIDs is a free data retrieval call binding the contract method 0x0d92f4ed.
Solidity: function validatorIDs(address ) view returns(uint128)
type ProofChainSessionStarted ¶ added in v1.4.7
type ProofChainSessionStarted struct { ChainId uint64 BlockHeight uint64 Deadline uint64 Raw types.Log // Blockchain specific contextual infos }
ProofChainSessionStarted represents a SessionStarted event raised by the ProofChain contract.
type ProofChainSessionStartedIterator ¶ added in v1.4.7
type ProofChainSessionStartedIterator struct { Event *ProofChainSessionStarted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainSessionStartedIterator is returned from FilterSessionStarted and is used to iterate over the raw logs and unpacked data for SessionStarted events raised by the ProofChain contract.
func (*ProofChainSessionStartedIterator) Close ¶ added in v1.4.7
func (it *ProofChainSessionStartedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainSessionStartedIterator) Error ¶ added in v1.4.7
func (it *ProofChainSessionStartedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainSessionStartedIterator) Next ¶ added in v1.4.7
func (it *ProofChainSessionStartedIterator) 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 ProofChainSpecimenSessionDurationChanged ¶
type ProofChainSpecimenSessionDurationChanged struct { NewSessionDuration uint64 Raw types.Log // Blockchain specific contextual infos }
ProofChainSpecimenSessionDurationChanged represents a SpecimenSessionDurationChanged event raised by the ProofChain contract.
type ProofChainSpecimenSessionDurationChangedIterator ¶
type ProofChainSpecimenSessionDurationChangedIterator struct { Event *ProofChainSpecimenSessionDurationChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainSpecimenSessionDurationChangedIterator is returned from FilterSpecimenSessionDurationChanged and is used to iterate over the raw logs and unpacked data for SpecimenSessionDurationChanged events raised by the ProofChain contract.
func (*ProofChainSpecimenSessionDurationChangedIterator) Close ¶
func (it *ProofChainSpecimenSessionDurationChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainSpecimenSessionDurationChangedIterator) Error ¶
func (it *ProofChainSpecimenSessionDurationChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainSpecimenSessionDurationChangedIterator) Next ¶
func (it *ProofChainSpecimenSessionDurationChangedIterator) 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 ProofChainSpecimenSessionMinSubmissionChanged ¶
type ProofChainSpecimenSessionMinSubmissionChanged struct { MinSubmissions uint64 Raw types.Log // Blockchain specific contextual infos }
ProofChainSpecimenSessionMinSubmissionChanged represents a SpecimenSessionMinSubmissionChanged event raised by the ProofChain contract.
type ProofChainSpecimenSessionMinSubmissionChangedIterator ¶
type ProofChainSpecimenSessionMinSubmissionChangedIterator struct { Event *ProofChainSpecimenSessionMinSubmissionChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainSpecimenSessionMinSubmissionChangedIterator is returned from FilterSpecimenSessionMinSubmissionChanged and is used to iterate over the raw logs and unpacked data for SpecimenSessionMinSubmissionChanged events raised by the ProofChain contract.
func (*ProofChainSpecimenSessionMinSubmissionChangedIterator) Close ¶
func (it *ProofChainSpecimenSessionMinSubmissionChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainSpecimenSessionMinSubmissionChangedIterator) Error ¶
func (it *ProofChainSpecimenSessionMinSubmissionChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainSpecimenSessionMinSubmissionChangedIterator) Next ¶
func (it *ProofChainSpecimenSessionMinSubmissionChangedIterator) 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 ProofChainSpecimenSessionQuorumChanged ¶
type ProofChainSpecimenSessionQuorumChanged struct { NewQuorumThreshold *big.Int Raw types.Log // Blockchain specific contextual infos }
ProofChainSpecimenSessionQuorumChanged represents a SpecimenSessionQuorumChanged event raised by the ProofChain contract.
type ProofChainSpecimenSessionQuorumChangedIterator ¶
type ProofChainSpecimenSessionQuorumChangedIterator struct { Event *ProofChainSpecimenSessionQuorumChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainSpecimenSessionQuorumChangedIterator is returned from FilterSpecimenSessionQuorumChanged and is used to iterate over the raw logs and unpacked data for SpecimenSessionQuorumChanged events raised by the ProofChain contract.
func (*ProofChainSpecimenSessionQuorumChangedIterator) Close ¶
func (it *ProofChainSpecimenSessionQuorumChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainSpecimenSessionQuorumChangedIterator) Error ¶
func (it *ProofChainSpecimenSessionQuorumChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainSpecimenSessionQuorumChangedIterator) Next ¶
func (it *ProofChainSpecimenSessionQuorumChangedIterator) 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 ProofChainStakingManagerChanged ¶ added in v1.5.0
type ProofChainStakingManagerChanged struct { NewStakingManager common.Address Raw types.Log // Blockchain specific contextual infos }
ProofChainStakingManagerChanged represents a StakingManagerChanged event raised by the ProofChain contract.
type ProofChainStakingManagerChangedIterator ¶ added in v1.5.0
type ProofChainStakingManagerChangedIterator struct { Event *ProofChainStakingManagerChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainStakingManagerChangedIterator is returned from FilterStakingManagerChanged and is used to iterate over the raw logs and unpacked data for StakingManagerChanged events raised by the ProofChain contract.
func (*ProofChainStakingManagerChangedIterator) Close ¶ added in v1.5.0
func (it *ProofChainStakingManagerChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainStakingManagerChangedIterator) Error ¶ added in v1.5.0
func (it *ProofChainStakingManagerChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainStakingManagerChangedIterator) Next ¶ added in v1.5.0
func (it *ProofChainStakingManagerChangedIterator) 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 ProofChainTransactor ¶
type ProofChainTransactor struct {
// contains filtered or unexported fields
}
ProofChainTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewProofChainTransactor ¶
func NewProofChainTransactor(address common.Address, transactor bind.ContractTransactor) (*ProofChainTransactor, error)
NewProofChainTransactor creates a new write-only instance of ProofChain, bound to a specific deployed contract.
func (*ProofChainTransactor) AddAuditor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) AddAuditor(opts *bind.TransactOpts, auditor common.Address) (*types.Transaction, error)
AddAuditor is a paid mutator transaction binding the contract method 0xe429cef1.
Solidity: function addAuditor(address auditor) returns()
func (*ProofChainTransactor) AddBSPOperator ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) AddBSPOperator(opts *bind.TransactOpts, operator common.Address, validatorId *big.Int) (*types.Transaction, error)
AddBSPOperator is a paid mutator transaction binding the contract method 0xcc96e413.
Solidity: function addBSPOperator(address operator, uint128 validatorId) returns()
func (*ProofChainTransactor) AddGovernor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) AddGovernor(opts *bind.TransactOpts, governor common.Address) (*types.Transaction, error)
AddGovernor is a paid mutator transaction binding the contract method 0x3c4a25d0.
Solidity: function addGovernor(address governor) returns()
func (*ProofChainTransactor) DisableValidator ¶
func (_ProofChain *ProofChainTransactor) DisableValidator(opts *bind.TransactOpts, validatorId *big.Int) (*types.Transaction, error)
DisableValidator is a paid mutator transaction binding the contract method 0x42e45079.
Solidity: function disableValidator(uint128 validatorId) returns()
func (*ProofChainTransactor) EnableValidator ¶ added in v1.5.0
func (_ProofChain *ProofChainTransactor) EnableValidator(opts *bind.TransactOpts, validatorId *big.Int) (*types.Transaction, error)
EnableValidator is a paid mutator transaction binding the contract method 0xedff4b61.
Solidity: function enableValidator(uint128 validatorId) returns()
func (*ProofChainTransactor) FinalizeSpecimenSession ¶ added in v1.5.0
func (_ProofChain *ProofChainTransactor) FinalizeSpecimenSession(opts *bind.TransactOpts, chainId uint64, blockHeight uint64) (*types.Transaction, error)
FinalizeSpecimenSession is a paid mutator transaction binding the contract method 0xd269550a.
Solidity: function finalizeSpecimenSession(uint64 chainId, uint64 blockHeight) returns()
func (*ProofChainTransactor) Initialize ¶
func (_ProofChain *ProofChainTransactor) Initialize(opts *bind.TransactOpts, initialGovernor common.Address, stakingManager common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address initialGovernor, address stakingManager) returns()
func (*ProofChainTransactor) RemoveAuditor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) RemoveAuditor(opts *bind.TransactOpts, auditor common.Address) (*types.Transaction, error)
RemoveAuditor is a paid mutator transaction binding the contract method 0xe6116cfd.
Solidity: function removeAuditor(address auditor) returns()
func (*ProofChainTransactor) RemoveBSPOperator ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) RemoveBSPOperator(opts *bind.TransactOpts, operator common.Address) (*types.Transaction, error)
RemoveBSPOperator is a paid mutator transaction binding the contract method 0xcf64a01d.
Solidity: function removeBSPOperator(address operator) returns()
func (*ProofChainTransactor) RemoveGovernor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) RemoveGovernor(opts *bind.TransactOpts, governor common.Address) (*types.Transaction, error)
RemoveGovernor is a paid mutator transaction binding the contract method 0xeecdac88.
Solidity: function removeGovernor(address governor) returns()
func (*ProofChainTransactor) RenounceOwnership ¶
func (_ProofChain *ProofChainTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*ProofChainTransactor) SetBlockHeightSubmissionsThreshold ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) SetBlockHeightSubmissionsThreshold(opts *bind.TransactOpts, chainId uint64, threshold uint64) (*types.Transaction, error)
SetBlockHeightSubmissionsThreshold is a paid mutator transaction binding the contract method 0x2c58ed42.
Solidity: function setBlockHeightSubmissionsThreshold(uint64 chainId, uint64 threshold) returns()
func (*ProofChainTransactor) SetBlockSpecimenReward ¶
func (_ProofChain *ProofChainTransactor) SetBlockSpecimenReward(opts *bind.TransactOpts, newBlockSpecimenReward *big.Int) (*types.Transaction, error)
SetBlockSpecimenReward is a paid mutator transaction binding the contract method 0x89587f05.
Solidity: function setBlockSpecimenReward(uint128 newBlockSpecimenReward) returns()
func (*ProofChainTransactor) SetBlockSpecimenSessionDuration ¶
func (_ProofChain *ProofChainTransactor) SetBlockSpecimenSessionDuration(opts *bind.TransactOpts, newSessionDuration uint64) (*types.Transaction, error)
SetBlockSpecimenSessionDuration is a paid mutator transaction binding the contract method 0x67d07ad7.
Solidity: function setBlockSpecimenSessionDuration(uint64 newSessionDuration) returns()
func (*ProofChainTransactor) SetChainSyncData ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) SetChainSyncData(opts *bind.TransactOpts, chainId uint64, blockOnTargetChain *big.Int, blockOnCurrentChain *big.Int, secondsPerBlockTargetChain *big.Int) (*types.Transaction, error)
SetChainSyncData is a paid mutator transaction binding the contract method 0x99146284.
Solidity: function setChainSyncData(uint64 chainId, uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain) returns()
func (*ProofChainTransactor) SetMaxSubmissionsPerBlockHeight ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactor) SetMaxSubmissionsPerBlockHeight(opts *bind.TransactOpts, chainId uint64, maxSubmissions uint64) (*types.Transaction, error)
SetMaxSubmissionsPerBlockHeight is a paid mutator transaction binding the contract method 0x67585e44.
Solidity: function setMaxSubmissionsPerBlockHeight(uint64 chainId, uint64 maxSubmissions) returns()
func (*ProofChainTransactor) SetMinSubmissionsRequired ¶
func (_ProofChain *ProofChainTransactor) SetMinSubmissionsRequired(opts *bind.TransactOpts, minSubmissions uint64) (*types.Transaction, error)
SetMinSubmissionsRequired is a paid mutator transaction binding the contract method 0x93742b56.
Solidity: function setMinSubmissionsRequired(uint64 minSubmissions) returns()
func (*ProofChainTransactor) SetNthBlock ¶
func (_ProofChain *ProofChainTransactor) SetNthBlock(opts *bind.TransactOpts, chainId uint64, n uint64) (*types.Transaction, error)
SetNthBlock is a paid mutator transaction binding the contract method 0xe3201409.
Solidity: function setNthBlock(uint64 chainId, uint64 n) returns()
func (*ProofChainTransactor) SetQuorumThreshold ¶
func (_ProofChain *ProofChainTransactor) SetQuorumThreshold(opts *bind.TransactOpts, quorum *big.Int) (*types.Transaction, error)
SetQuorumThreshold is a paid mutator transaction binding the contract method 0x4524c7e1.
Solidity: function setQuorumThreshold(uint256 quorum) returns()
func (*ProofChainTransactor) SetSecondsPerBlockCurrentChain ¶ added in v1.6.0
func (_ProofChain *ProofChainTransactor) SetSecondsPerBlockCurrentChain(opts *bind.TransactOpts, secondsPerBlockCurrentChain uint64) (*types.Transaction, error)
SetSecondsPerBlockCurrentChain is a paid mutator transaction binding the contract method 0x2ba719ad.
Solidity: function setSecondsPerBlockCurrentChain(uint64 secondsPerBlockCurrentChain) returns()
func (*ProofChainTransactor) SetStakingManagerAddress ¶ added in v1.5.0
func (_ProofChain *ProofChainTransactor) SetStakingManagerAddress(opts *bind.TransactOpts, stakingManagerAddress common.Address) (*types.Transaction, error)
SetStakingManagerAddress is a paid mutator transaction binding the contract method 0x37e15bce.
Solidity: function setStakingManagerAddress(address stakingManagerAddress) returns()
func (*ProofChainTransactor) SubmitBlockSpecimenProof ¶
func (_ProofChain *ProofChainTransactor) SubmitBlockSpecimenProof(opts *bind.TransactOpts, chainId uint64, blockHeight uint64, blockHash [32]byte, specimenHash [32]byte, storageURL string) (*types.Transaction, error)
SubmitBlockSpecimenProof is a paid mutator transaction binding the contract method 0x151fd8f3.
Solidity: function submitBlockSpecimenProof(uint64 chainId, uint64 blockHeight, bytes32 blockHash, bytes32 specimenHash, string storageURL) returns()
func (*ProofChainTransactor) TransferOwnership ¶
func (_ProofChain *ProofChainTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type ProofChainTransactorRaw ¶
type ProofChainTransactorRaw struct {
Contract *ProofChainTransactor // Generic write-only contract binding to access the raw methods on
}
ProofChainTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ProofChainTransactorRaw) Transact ¶
func (_ProofChain *ProofChainTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ProofChainTransactorRaw) Transfer ¶
func (_ProofChain *ProofChainTransactorRaw) 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 ProofChainTransactorSession ¶
type ProofChainTransactorSession struct { Contract *ProofChainTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ProofChainTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ProofChainTransactorSession) AddAuditor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) AddAuditor(auditor common.Address) (*types.Transaction, error)
AddAuditor is a paid mutator transaction binding the contract method 0xe429cef1.
Solidity: function addAuditor(address auditor) returns()
func (*ProofChainTransactorSession) AddBSPOperator ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) AddBSPOperator(operator common.Address, validatorId *big.Int) (*types.Transaction, error)
AddBSPOperator is a paid mutator transaction binding the contract method 0xcc96e413.
Solidity: function addBSPOperator(address operator, uint128 validatorId) returns()
func (*ProofChainTransactorSession) AddGovernor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) AddGovernor(governor common.Address) (*types.Transaction, error)
AddGovernor is a paid mutator transaction binding the contract method 0x3c4a25d0.
Solidity: function addGovernor(address governor) returns()
func (*ProofChainTransactorSession) DisableValidator ¶
func (_ProofChain *ProofChainTransactorSession) DisableValidator(validatorId *big.Int) (*types.Transaction, error)
DisableValidator is a paid mutator transaction binding the contract method 0x42e45079.
Solidity: function disableValidator(uint128 validatorId) returns()
func (*ProofChainTransactorSession) EnableValidator ¶ added in v1.5.0
func (_ProofChain *ProofChainTransactorSession) EnableValidator(validatorId *big.Int) (*types.Transaction, error)
EnableValidator is a paid mutator transaction binding the contract method 0xedff4b61.
Solidity: function enableValidator(uint128 validatorId) returns()
func (*ProofChainTransactorSession) FinalizeSpecimenSession ¶ added in v1.5.0
func (_ProofChain *ProofChainTransactorSession) FinalizeSpecimenSession(chainId uint64, blockHeight uint64) (*types.Transaction, error)
FinalizeSpecimenSession is a paid mutator transaction binding the contract method 0xd269550a.
Solidity: function finalizeSpecimenSession(uint64 chainId, uint64 blockHeight) returns()
func (*ProofChainTransactorSession) Initialize ¶
func (_ProofChain *ProofChainTransactorSession) Initialize(initialGovernor common.Address, stakingManager common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address initialGovernor, address stakingManager) returns()
func (*ProofChainTransactorSession) RemoveAuditor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) RemoveAuditor(auditor common.Address) (*types.Transaction, error)
RemoveAuditor is a paid mutator transaction binding the contract method 0xe6116cfd.
Solidity: function removeAuditor(address auditor) returns()
func (*ProofChainTransactorSession) RemoveBSPOperator ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) RemoveBSPOperator(operator common.Address) (*types.Transaction, error)
RemoveBSPOperator is a paid mutator transaction binding the contract method 0xcf64a01d.
Solidity: function removeBSPOperator(address operator) returns()
func (*ProofChainTransactorSession) RemoveGovernor ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) RemoveGovernor(governor common.Address) (*types.Transaction, error)
RemoveGovernor is a paid mutator transaction binding the contract method 0xeecdac88.
Solidity: function removeGovernor(address governor) returns()
func (*ProofChainTransactorSession) RenounceOwnership ¶
func (_ProofChain *ProofChainTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*ProofChainTransactorSession) SetBlockHeightSubmissionsThreshold ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) SetBlockHeightSubmissionsThreshold(chainId uint64, threshold uint64) (*types.Transaction, error)
SetBlockHeightSubmissionsThreshold is a paid mutator transaction binding the contract method 0x2c58ed42.
Solidity: function setBlockHeightSubmissionsThreshold(uint64 chainId, uint64 threshold) returns()
func (*ProofChainTransactorSession) SetBlockSpecimenReward ¶
func (_ProofChain *ProofChainTransactorSession) SetBlockSpecimenReward(newBlockSpecimenReward *big.Int) (*types.Transaction, error)
SetBlockSpecimenReward is a paid mutator transaction binding the contract method 0x89587f05.
Solidity: function setBlockSpecimenReward(uint128 newBlockSpecimenReward) returns()
func (*ProofChainTransactorSession) SetBlockSpecimenSessionDuration ¶
func (_ProofChain *ProofChainTransactorSession) SetBlockSpecimenSessionDuration(newSessionDuration uint64) (*types.Transaction, error)
SetBlockSpecimenSessionDuration is a paid mutator transaction binding the contract method 0x67d07ad7.
Solidity: function setBlockSpecimenSessionDuration(uint64 newSessionDuration) returns()
func (*ProofChainTransactorSession) SetChainSyncData ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) SetChainSyncData(chainId uint64, blockOnTargetChain *big.Int, blockOnCurrentChain *big.Int, secondsPerBlockTargetChain *big.Int) (*types.Transaction, error)
SetChainSyncData is a paid mutator transaction binding the contract method 0x99146284.
Solidity: function setChainSyncData(uint64 chainId, uint256 blockOnTargetChain, uint256 blockOnCurrentChain, uint256 secondsPerBlockTargetChain) returns()
func (*ProofChainTransactorSession) SetMaxSubmissionsPerBlockHeight ¶ added in v1.4.7
func (_ProofChain *ProofChainTransactorSession) SetMaxSubmissionsPerBlockHeight(chainId uint64, maxSubmissions uint64) (*types.Transaction, error)
SetMaxSubmissionsPerBlockHeight is a paid mutator transaction binding the contract method 0x67585e44.
Solidity: function setMaxSubmissionsPerBlockHeight(uint64 chainId, uint64 maxSubmissions) returns()
func (*ProofChainTransactorSession) SetMinSubmissionsRequired ¶
func (_ProofChain *ProofChainTransactorSession) SetMinSubmissionsRequired(minSubmissions uint64) (*types.Transaction, error)
SetMinSubmissionsRequired is a paid mutator transaction binding the contract method 0x93742b56.
Solidity: function setMinSubmissionsRequired(uint64 minSubmissions) returns()
func (*ProofChainTransactorSession) SetNthBlock ¶
func (_ProofChain *ProofChainTransactorSession) SetNthBlock(chainId uint64, n uint64) (*types.Transaction, error)
SetNthBlock is a paid mutator transaction binding the contract method 0xe3201409.
Solidity: function setNthBlock(uint64 chainId, uint64 n) returns()
func (*ProofChainTransactorSession) SetQuorumThreshold ¶
func (_ProofChain *ProofChainTransactorSession) SetQuorumThreshold(quorum *big.Int) (*types.Transaction, error)
SetQuorumThreshold is a paid mutator transaction binding the contract method 0x4524c7e1.
Solidity: function setQuorumThreshold(uint256 quorum) returns()
func (*ProofChainTransactorSession) SetSecondsPerBlockCurrentChain ¶ added in v1.6.0
func (_ProofChain *ProofChainTransactorSession) SetSecondsPerBlockCurrentChain(secondsPerBlockCurrentChain uint64) (*types.Transaction, error)
SetSecondsPerBlockCurrentChain is a paid mutator transaction binding the contract method 0x2ba719ad.
Solidity: function setSecondsPerBlockCurrentChain(uint64 secondsPerBlockCurrentChain) returns()
func (*ProofChainTransactorSession) SetStakingManagerAddress ¶ added in v1.5.0
func (_ProofChain *ProofChainTransactorSession) SetStakingManagerAddress(stakingManagerAddress common.Address) (*types.Transaction, error)
SetStakingManagerAddress is a paid mutator transaction binding the contract method 0x37e15bce.
Solidity: function setStakingManagerAddress(address stakingManagerAddress) returns()
func (*ProofChainTransactorSession) SubmitBlockSpecimenProof ¶
func (_ProofChain *ProofChainTransactorSession) SubmitBlockSpecimenProof(chainId uint64, blockHeight uint64, blockHash [32]byte, specimenHash [32]byte, storageURL string) (*types.Transaction, error)
SubmitBlockSpecimenProof is a paid mutator transaction binding the contract method 0x151fd8f3.
Solidity: function submitBlockSpecimenProof(uint64 chainId, uint64 blockHeight, bytes32 blockHash, bytes32 specimenHash, string storageURL) returns()
func (*ProofChainTransactorSession) TransferOwnership ¶
func (_ProofChain *ProofChainTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type ProofChainValidatorDisabled ¶ added in v1.5.0
type ProofChainValidatorDisabled struct { ValidatorId *big.Int Raw types.Log // Blockchain specific contextual infos }
ProofChainValidatorDisabled represents a ValidatorDisabled event raised by the ProofChain contract.
type ProofChainValidatorDisabledIterator ¶ added in v1.5.0
type ProofChainValidatorDisabledIterator struct { Event *ProofChainValidatorDisabled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainValidatorDisabledIterator is returned from FilterValidatorDisabled and is used to iterate over the raw logs and unpacked data for ValidatorDisabled events raised by the ProofChain contract.
func (*ProofChainValidatorDisabledIterator) Close ¶ added in v1.5.0
func (it *ProofChainValidatorDisabledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainValidatorDisabledIterator) Error ¶ added in v1.5.0
func (it *ProofChainValidatorDisabledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainValidatorDisabledIterator) Next ¶ added in v1.5.0
func (it *ProofChainValidatorDisabledIterator) 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 ProofChainValidatorEnabled ¶ added in v1.5.0
type ProofChainValidatorEnabled struct { ValidatorId *big.Int Raw types.Log // Blockchain specific contextual infos }
ProofChainValidatorEnabled represents a ValidatorEnabled event raised by the ProofChain contract.
type ProofChainValidatorEnabledIterator ¶ added in v1.5.0
type ProofChainValidatorEnabledIterator struct { Event *ProofChainValidatorEnabled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProofChainValidatorEnabledIterator is returned from FilterValidatorEnabled and is used to iterate over the raw logs and unpacked data for ValidatorEnabled events raised by the ProofChain contract.
func (*ProofChainValidatorEnabledIterator) Close ¶ added in v1.5.0
func (it *ProofChainValidatorEnabledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProofChainValidatorEnabledIterator) Error ¶ added in v1.5.0
func (it *ProofChainValidatorEnabledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProofChainValidatorEnabledIterator) Next ¶ added in v1.5.0
func (it *ProofChainValidatorEnabledIterator) 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 ProofchainInteractor ¶ added in v1.1.6
type ProofchainInteractor struct {
// contains filtered or unexported fields
}
ProofchainInteractor a wrapper over proofchain contract to help clients interact with it
func NewProofchainInteractor ¶ added in v1.1.6
func NewProofchainInteractor(config *config.AgentConfig, ethClient *ethclient.Client) *ProofchainInteractor
NewProofchainInteractor sets up a new interactor for proof-chain
func (*ProofchainInteractor) SendBlockReplicaProofTx ¶ added in v1.1.6
func (interactor *ProofchainInteractor) SendBlockReplicaProofTx(ctx context.Context, chainHeight uint64, blockReplica *ty.BlockReplica, resultSegment []byte, replicaURL string, txHash chan string)
SendBlockReplicaProofTx makes a proof-chain tx for the block-replica that has been processed