Versions in this module Expand all Collapse all v1 v1.0.1 Mar 16, 2023 Changes in this version + var StateABI = StateMetaData.ABI + var StateMetaData = &bind.MetaData + func CheckGenesisStateID(id, state *big.Int) (bool, error) + type ETHResolver struct + ContractAddress common.Address + RPCUrl string + func NewETHResolver(url, contract string) *ETHResolver + func (r ETHResolver) Resolve(ctx context.Context, id, state *big.Int) (*ResolvedState, error) + func (r ETHResolver) ResolveGlobalRoot(ctx context.Context, state *big.Int) (*ResolvedState, error) + type ExtendedVerificationsOptions struct + AcceptedStateTransitionDelay time.Duration + OnlyLatestStates bool + type GISTGetter interface + GetGISTRootInfo func(opts *bind.CallOpts, state *big.Int) (SmtRootInfo, error) + type ResolvedState struct + Genesis bool + Latest bool + State string + TransitionTimestamp int64 + func Resolve(ctx context.Context, getter StateGetter, id, state *big.Int) (*ResolvedState, error) + func ResolveGlobalRoot(ctx context.Context, getter GISTGetter, state *big.Int) (*ResolvedState, error) + type SmtProof struct + AuxExistence bool + AuxIndex *big.Int + AuxValue *big.Int + Existence bool + Index *big.Int + Root *big.Int + Siblings [64]*big.Int + Value *big.Int + type SmtRootInfo struct + CreatedAtBlock *big.Int + CreatedAtTimestamp *big.Int + ReplacedAtBlock *big.Int + ReplacedAtTimestamp *big.Int + ReplacedByRoot *big.Int + Root *big.Int + type State struct + func NewState(address common.Address, backend bind.ContractBackend) (*State, error) + type StateCaller struct + func NewStateCaller(address common.Address, caller bind.ContractCaller) (*StateCaller, error) + func (_State *StateCaller) GetGISTProof(opts *bind.CallOpts, id *big.Int) (SmtProof, error) + func (_State *StateCaller) GetGISTProofByBlock(opts *bind.CallOpts, id *big.Int, blockNumber *big.Int) (SmtProof, error) + func (_State *StateCaller) GetGISTProofByRoot(opts *bind.CallOpts, id *big.Int, root *big.Int) (SmtProof, error) + func (_State *StateCaller) GetGISTProofByTime(opts *bind.CallOpts, id *big.Int, timestamp *big.Int) (SmtProof, error) + func (_State *StateCaller) GetGISTRoot(opts *bind.CallOpts) (*big.Int, error) + func (_State *StateCaller) GetGISTRootHistory(opts *bind.CallOpts, start *big.Int, length *big.Int) ([]SmtRootInfo, error) + func (_State *StateCaller) GetGISTRootHistoryLength(opts *bind.CallOpts) (*big.Int, error) + func (_State *StateCaller) GetGISTRootInfo(opts *bind.CallOpts, root *big.Int) (SmtRootInfo, error) + func (_State *StateCaller) GetGISTRootInfoByBlock(opts *bind.CallOpts, blockNumber *big.Int) (SmtRootInfo, error) + func (_State *StateCaller) GetGISTRootInfoByTime(opts *bind.CallOpts, timestamp *big.Int) (SmtRootInfo, error) + func (_State *StateCaller) GetStateInfoById(opts *bind.CallOpts, id *big.Int) (StateV2StateInfo, error) + func (_State *StateCaller) GetStateInfoByState(opts *bind.CallOpts, state *big.Int) (StateV2StateInfo, error) + func (_State *StateCaller) GetStateInfoHistoryById(opts *bind.CallOpts, id *big.Int, startIndex *big.Int, length *big.Int) ([]StateV2StateInfo, error) + func (_State *StateCaller) GetStateInfoHistoryLengthById(opts *bind.CallOpts, id *big.Int) (*big.Int, error) + func (_State *StateCaller) GetVerifier(opts *bind.CallOpts) (common.Address, error) + func (_State *StateCaller) IDHISTORYRETURNLIMIT(opts *bind.CallOpts) (*big.Int, error) + func (_State *StateCaller) IdExists(opts *bind.CallOpts, id *big.Int) (bool, error) + func (_State *StateCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_State *StateCaller) StateExists(opts *bind.CallOpts, state *big.Int) (bool, error) + type StateCallerRaw struct + Contract *StateCaller + func (_State *StateCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type StateCallerSession struct + CallOpts bind.CallOpts + Contract *StateCaller + func (_State *StateCallerSession) GetGISTProof(id *big.Int) (SmtProof, error) + func (_State *StateCallerSession) GetGISTProofByBlock(id *big.Int, blockNumber *big.Int) (SmtProof, error) + func (_State *StateCallerSession) GetGISTProofByRoot(id *big.Int, root *big.Int) (SmtProof, error) + func (_State *StateCallerSession) GetGISTProofByTime(id *big.Int, timestamp *big.Int) (SmtProof, error) + func (_State *StateCallerSession) GetGISTRoot() (*big.Int, error) + func (_State *StateCallerSession) GetGISTRootHistory(start *big.Int, length *big.Int) ([]SmtRootInfo, error) + func (_State *StateCallerSession) GetGISTRootHistoryLength() (*big.Int, error) + func (_State *StateCallerSession) GetGISTRootInfo(root *big.Int) (SmtRootInfo, error) + func (_State *StateCallerSession) GetGISTRootInfoByBlock(blockNumber *big.Int) (SmtRootInfo, error) + func (_State *StateCallerSession) GetGISTRootInfoByTime(timestamp *big.Int) (SmtRootInfo, error) + func (_State *StateCallerSession) GetStateInfoById(id *big.Int) (StateV2StateInfo, error) + func (_State *StateCallerSession) GetStateInfoByState(state *big.Int) (StateV2StateInfo, error) + func (_State *StateCallerSession) GetStateInfoHistoryById(id *big.Int, startIndex *big.Int, length *big.Int) ([]StateV2StateInfo, error) + func (_State *StateCallerSession) GetStateInfoHistoryLengthById(id *big.Int) (*big.Int, error) + func (_State *StateCallerSession) GetVerifier() (common.Address, error) + func (_State *StateCallerSession) IDHISTORYRETURNLIMIT() (*big.Int, error) + func (_State *StateCallerSession) IdExists(id *big.Int) (bool, error) + func (_State *StateCallerSession) Owner() (common.Address, error) + func (_State *StateCallerSession) StateExists(state *big.Int) (bool, error) + type StateFilterer struct + func NewStateFilterer(address common.Address, filterer bind.ContractFilterer) (*StateFilterer, error) + func (_State *StateFilterer) FilterInitialized(opts *bind.FilterOpts) (*StateInitializedIterator, error) + func (_State *StateFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*StateOwnershipTransferredIterator, error) + func (_State *StateFilterer) FilterStateUpdated(opts *bind.FilterOpts) (*StateStateUpdatedIterator, error) + func (_State *StateFilterer) ParseInitialized(log types.Log) (*StateInitialized, error) + func (_State *StateFilterer) ParseOwnershipTransferred(log types.Log) (*StateOwnershipTransferred, error) + func (_State *StateFilterer) ParseStateUpdated(log types.Log) (*StateStateUpdated, error) + func (_State *StateFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StateInitialized) (event.Subscription, error) + func (_State *StateFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StateOwnershipTransferred, ...) (event.Subscription, error) + func (_State *StateFilterer) WatchStateUpdated(opts *bind.WatchOpts, sink chan<- *StateStateUpdated) (event.Subscription, error) + type StateGetter interface + GetStateInfoByState func(opts *bind.CallOpts, state *big.Int) (StateV2StateInfo, error) + type StateInitialized struct + Raw types.Log + Version uint8 + type StateInitializedIterator struct + Event *StateInitialized + func (it *StateInitializedIterator) Close() error + func (it *StateInitializedIterator) Error() error + func (it *StateInitializedIterator) Next() bool + type StateOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type StateOwnershipTransferredIterator struct + Event *StateOwnershipTransferred + func (it *StateOwnershipTransferredIterator) Close() error + func (it *StateOwnershipTransferredIterator) Error() error + func (it *StateOwnershipTransferredIterator) Next() bool + type StateRaw struct + Contract *State + func (_State *StateRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_State *StateRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_State *StateRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type StateSession struct + CallOpts bind.CallOpts + Contract *State + TransactOpts bind.TransactOpts + func (_State *StateSession) GetGISTProof(id *big.Int) (SmtProof, error) + func (_State *StateSession) GetGISTProofByBlock(id *big.Int, blockNumber *big.Int) (SmtProof, error) + func (_State *StateSession) GetGISTProofByRoot(id *big.Int, root *big.Int) (SmtProof, error) + func (_State *StateSession) GetGISTProofByTime(id *big.Int, timestamp *big.Int) (SmtProof, error) + func (_State *StateSession) GetGISTRoot() (*big.Int, error) + func (_State *StateSession) GetGISTRootHistory(start *big.Int, length *big.Int) ([]SmtRootInfo, error) + func (_State *StateSession) GetGISTRootHistoryLength() (*big.Int, error) + func (_State *StateSession) GetGISTRootInfo(root *big.Int) (SmtRootInfo, error) + func (_State *StateSession) GetGISTRootInfoByBlock(blockNumber *big.Int) (SmtRootInfo, error) + func (_State *StateSession) GetGISTRootInfoByTime(timestamp *big.Int) (SmtRootInfo, error) + func (_State *StateSession) GetStateInfoById(id *big.Int) (StateV2StateInfo, error) + func (_State *StateSession) GetStateInfoByState(state *big.Int) (StateV2StateInfo, error) + func (_State *StateSession) GetStateInfoHistoryById(id *big.Int, startIndex *big.Int, length *big.Int) ([]StateV2StateInfo, error) + func (_State *StateSession) GetStateInfoHistoryLengthById(id *big.Int) (*big.Int, error) + func (_State *StateSession) GetVerifier() (common.Address, error) + func (_State *StateSession) IDHISTORYRETURNLIMIT() (*big.Int, error) + func (_State *StateSession) IdExists(id *big.Int) (bool, error) + func (_State *StateSession) Initialize(verifierContractAddr common.Address) (*types.Transaction, error) + func (_State *StateSession) Owner() (common.Address, error) + func (_State *StateSession) RenounceOwnership() (*types.Transaction, error) + func (_State *StateSession) SetVerifier(newVerifierAddr common.Address) (*types.Transaction, error) + func (_State *StateSession) StateExists(state *big.Int) (bool, error) + func (_State *StateSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_State *StateSession) TransitState(id *big.Int, oldState *big.Int, newState *big.Int, isOldStateGenesis bool, ...) (*types.Transaction, error) + type StateStateUpdated struct + BlockN *big.Int + Id *big.Int + Raw types.Log + State *big.Int + Timestamp *big.Int + type StateStateUpdatedIterator struct + Event *StateStateUpdated + func (it *StateStateUpdatedIterator) Close() error + func (it *StateStateUpdatedIterator) Error() error + func (it *StateStateUpdatedIterator) Next() bool + type StateTransactor struct + func NewStateTransactor(address common.Address, transactor bind.ContractTransactor) (*StateTransactor, error) + func (_State *StateTransactor) Initialize(opts *bind.TransactOpts, verifierContractAddr common.Address) (*types.Transaction, error) + func (_State *StateTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_State *StateTransactor) SetVerifier(opts *bind.TransactOpts, newVerifierAddr common.Address) (*types.Transaction, error) + func (_State *StateTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + func (_State *StateTransactor) TransitState(opts *bind.TransactOpts, id *big.Int, oldState *big.Int, newState *big.Int, ...) (*types.Transaction, error) + type StateTransactorRaw struct + Contract *StateTransactor + func (_State *StateTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_State *StateTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type StateTransactorSession struct + Contract *StateTransactor + TransactOpts bind.TransactOpts + func (_State *StateTransactorSession) Initialize(verifierContractAddr common.Address) (*types.Transaction, error) + func (_State *StateTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_State *StateTransactorSession) SetVerifier(newVerifierAddr common.Address) (*types.Transaction, error) + func (_State *StateTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_State *StateTransactorSession) TransitState(id *big.Int, oldState *big.Int, newState *big.Int, isOldStateGenesis bool, ...) (*types.Transaction, error) + type StateV2StateInfo struct + CreatedAtBlock *big.Int + CreatedAtTimestamp *big.Int + Id *big.Int + ReplacedAtBlock *big.Int + ReplacedAtTimestamp *big.Int + ReplacedByState *big.Int + State *big.Int + type VerificationOptions struct + Contract string + RPCUrl string