Documentation ¶
Index ¶
- Variables
- type IStateGistProof
- type IStateGistRootInfo
- type IStateStateInfo
- type State
- type StateCaller
- func (_State *StateCaller) GetGISTProof(opts *bind.CallOpts, id_ *big.Int) (IStateGistProof, error)
- func (_State *StateCaller) GetGISTProofByBlock(opts *bind.CallOpts, id_ *big.Int, blockNumber_ *big.Int) (IStateGistProof, error)
- func (_State *StateCaller) GetGISTProofByRoot(opts *bind.CallOpts, id_ *big.Int, root_ *big.Int) (IStateGistProof, error)
- func (_State *StateCaller) GetGISTProofByTime(opts *bind.CallOpts, id_ *big.Int, timestamp_ *big.Int) (IStateGistProof, error)
- func (_State *StateCaller) GetGISTRoot(opts *bind.CallOpts) (*big.Int, error)
- func (_State *StateCaller) GetGISTRootHistory(opts *bind.CallOpts, start_ *big.Int, length_ *big.Int) ([]IStateGistRootInfo, error)
- func (_State *StateCaller) GetGISTRootHistoryLength(opts *bind.CallOpts) (*big.Int, error)
- func (_State *StateCaller) GetGISTRootInfo(opts *bind.CallOpts, root_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateCaller) GetGISTRootInfoByBlock(opts *bind.CallOpts, blockNumber_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateCaller) GetGISTRootInfoByTime(opts *bind.CallOpts, timestamp_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateCaller) GetStateInfoById(opts *bind.CallOpts, id_ *big.Int) (IStateStateInfo, error)
- func (_State *StateCaller) GetStateInfoByIdAndState(opts *bind.CallOpts, id_ *big.Int, state_ *big.Int) (IStateStateInfo, error)
- func (_State *StateCaller) GetStateInfoHistoryById(opts *bind.CallOpts, id_ *big.Int, startIndex_ *big.Int, length_ *big.Int) ([]IStateStateInfo, 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) IdExists(opts *bind.CallOpts, id_ *big.Int) (bool, error)
- func (_State *StateCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_State *StateCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error)
- func (_State *StateCaller) StateExists(opts *bind.CallOpts, id_ *big.Int, state_ *big.Int) (bool, error)
- func (_State *StateCaller) VERSION(opts *bind.CallOpts) (string, error)
- type StateCallerRaw
- type StateCallerSession
- func (_State *StateCallerSession) GetGISTProof(id_ *big.Int) (IStateGistProof, error)
- func (_State *StateCallerSession) GetGISTProofByBlock(id_ *big.Int, blockNumber_ *big.Int) (IStateGistProof, error)
- func (_State *StateCallerSession) GetGISTProofByRoot(id_ *big.Int, root_ *big.Int) (IStateGistProof, error)
- func (_State *StateCallerSession) GetGISTProofByTime(id_ *big.Int, timestamp_ *big.Int) (IStateGistProof, error)
- func (_State *StateCallerSession) GetGISTRoot() (*big.Int, error)
- func (_State *StateCallerSession) GetGISTRootHistory(start_ *big.Int, length_ *big.Int) ([]IStateGistRootInfo, error)
- func (_State *StateCallerSession) GetGISTRootHistoryLength() (*big.Int, error)
- func (_State *StateCallerSession) GetGISTRootInfo(root_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateCallerSession) GetGISTRootInfoByBlock(blockNumber_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateCallerSession) GetGISTRootInfoByTime(timestamp_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateCallerSession) GetStateInfoById(id_ *big.Int) (IStateStateInfo, error)
- func (_State *StateCallerSession) GetStateInfoByIdAndState(id_ *big.Int, state_ *big.Int) (IStateStateInfo, error)
- func (_State *StateCallerSession) GetStateInfoHistoryById(id_ *big.Int, startIndex_ *big.Int, length_ *big.Int) ([]IStateStateInfo, error)
- func (_State *StateCallerSession) GetStateInfoHistoryLengthById(id_ *big.Int) (*big.Int, error)
- func (_State *StateCallerSession) GetVerifier() (common.Address, error)
- func (_State *StateCallerSession) IdExists(id_ *big.Int) (bool, error)
- func (_State *StateCallerSession) Owner() (common.Address, error)
- func (_State *StateCallerSession) PendingOwner() (common.Address, error)
- func (_State *StateCallerSession) StateExists(id_ *big.Int, state_ *big.Int) (bool, error)
- func (_State *StateCallerSession) VERSION() (string, error)
- type StateFilterer
- func (_State *StateFilterer) FilterInitialized(opts *bind.FilterOpts) (*StateInitializedIterator, error)
- func (_State *StateFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*StateOwnershipTransferStartedIterator, error)
- func (_State *StateFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*StateOwnershipTransferredIterator, error)
- func (_State *StateFilterer) FilterStateTransited(opts *bind.FilterOpts, id []*big.Int) (*StateStateTransitedIterator, error)
- func (_State *StateFilterer) ParseInitialized(log types.Log) (*StateInitialized, error)
- func (_State *StateFilterer) ParseOwnershipTransferStarted(log types.Log) (*StateOwnershipTransferStarted, error)
- func (_State *StateFilterer) ParseOwnershipTransferred(log types.Log) (*StateOwnershipTransferred, error)
- func (_State *StateFilterer) ParseStateTransited(log types.Log) (*StateStateTransited, error)
- func (_State *StateFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StateInitialized) (event.Subscription, error)
- func (_State *StateFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *StateOwnershipTransferStarted, ...) (event.Subscription, error)
- func (_State *StateFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StateOwnershipTransferred, ...) (event.Subscription, error)
- func (_State *StateFilterer) WatchStateTransited(opts *bind.WatchOpts, sink chan<- *StateStateTransited, id []*big.Int) (event.Subscription, error)
- type StateInitialized
- type StateInitializedIterator
- type StateOwnershipTransferStarted
- type StateOwnershipTransferStartedIterator
- type StateOwnershipTransferred
- type StateOwnershipTransferredIterator
- type StateRaw
- 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
- func (_State *StateSession) AcceptOwnership() (*types.Transaction, error)
- func (_State *StateSession) GetGISTProof(id_ *big.Int) (IStateGistProof, error)
- func (_State *StateSession) GetGISTProofByBlock(id_ *big.Int, blockNumber_ *big.Int) (IStateGistProof, error)
- func (_State *StateSession) GetGISTProofByRoot(id_ *big.Int, root_ *big.Int) (IStateGistProof, error)
- func (_State *StateSession) GetGISTProofByTime(id_ *big.Int, timestamp_ *big.Int) (IStateGistProof, error)
- func (_State *StateSession) GetGISTRoot() (*big.Int, error)
- func (_State *StateSession) GetGISTRootHistory(start_ *big.Int, length_ *big.Int) ([]IStateGistRootInfo, error)
- func (_State *StateSession) GetGISTRootHistoryLength() (*big.Int, error)
- func (_State *StateSession) GetGISTRootInfo(root_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateSession) GetGISTRootInfoByBlock(blockNumber_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateSession) GetGISTRootInfoByTime(timestamp_ *big.Int) (IStateGistRootInfo, error)
- func (_State *StateSession) GetStateInfoById(id_ *big.Int) (IStateStateInfo, error)
- func (_State *StateSession) GetStateInfoByIdAndState(id_ *big.Int, state_ *big.Int) (IStateStateInfo, error)
- func (_State *StateSession) GetStateInfoHistoryById(id_ *big.Int, startIndex_ *big.Int, length_ *big.Int) ([]IStateStateInfo, error)
- func (_State *StateSession) GetStateInfoHistoryLengthById(id_ *big.Int) (*big.Int, error)
- func (_State *StateSession) GetVerifier() (common.Address, error)
- func (_State *StateSession) IdExists(id_ *big.Int) (bool, error)
- func (_State *StateSession) Owner() (common.Address, error)
- func (_State *StateSession) PendingOwner() (common.Address, error)
- func (_State *StateSession) RenounceOwnership() (*types.Transaction, error)
- func (_State *StateSession) SetVerifier(newVerifierAddr_ common.Address) (*types.Transaction, error)
- func (_State *StateSession) StateExists(id_ *big.Int, state_ *big.Int) (bool, error)
- func (_State *StateSession) StateInit(verifierContractAddr_ common.Address) (*types.Transaction, 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)
- func (_State *StateSession) VERSION() (string, error)
- type StateStateTransited
- type StateStateTransitedIterator
- type StateTransactor
- func (_State *StateTransactor) AcceptOwnership(opts *bind.TransactOpts) (*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) StateInit(opts *bind.TransactOpts, verifierContractAddr_ 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
- type StateTransactorSession
- func (_State *StateTransactorSession) AcceptOwnership() (*types.Transaction, error)
- func (_State *StateTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_State *StateTransactorSession) SetVerifier(newVerifierAddr_ common.Address) (*types.Transaction, error)
- func (_State *StateTransactorSession) StateInit(verifierContractAddr_ 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)
Constants ¶
This section is empty.
Variables ¶
var StateABI = StateMetaData.ABI
StateABI is the input ABI used to generate the binding from. Deprecated: Use StateMetaData.ABI instead.
var StateMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"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\":false,\"internalType\":\"uint256\",\"name\":\"gistRoot\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"state\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"StateTransited\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIStateTransitionVerifier\",\"name\":\"verifierContractAddr_\",\"type\":\"address\"}],\"name\":\"__State_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"}],\"name\":\"getGISTProof\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"existence\",\"type\":\"bool\"},{\"internalType\":\"uint256[64]\",\"name\":\"siblings\",\"type\":\"uint256[64]\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"auxExistence\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"auxIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"auxValue\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistProof\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockNumber_\",\"type\":\"uint256\"}],\"name\":\"getGISTProofByBlock\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"existence\",\"type\":\"bool\"},{\"internalType\":\"uint256[64]\",\"name\":\"siblings\",\"type\":\"uint256[64]\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"auxExistence\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"auxIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"auxValue\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistProof\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"root_\",\"type\":\"uint256\"}],\"name\":\"getGISTProofByRoot\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"existence\",\"type\":\"bool\"},{\"internalType\":\"uint256[64]\",\"name\":\"siblings\",\"type\":\"uint256[64]\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"auxExistence\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"auxIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"auxValue\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistProof\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp_\",\"type\":\"uint256\"}],\"name\":\"getGISTProofByTime\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"existence\",\"type\":\"bool\"},{\"internalType\":\"uint256[64]\",\"name\":\"siblings\",\"type\":\"uint256[64]\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"auxExistence\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"auxIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"auxValue\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistProof\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGISTRoot\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"start_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length_\",\"type\":\"uint256\"}],\"name\":\"getGISTRootHistory\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedByRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistRootInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGISTRootHistoryLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"root_\",\"type\":\"uint256\"}],\"name\":\"getGISTRootInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedByRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistRootInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber_\",\"type\":\"uint256\"}],\"name\":\"getGISTRootInfoByBlock\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedByRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistRootInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp_\",\"type\":\"uint256\"}],\"name\":\"getGISTRootInfoByTime\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedByRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIState.GistRootInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"}],\"name\":\"getStateInfoById\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"state\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedByState\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIState.StateInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"state_\",\"type\":\"uint256\"}],\"name\":\"getStateInfoByIdAndState\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"state\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedByState\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIState.StateInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startIndex_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length_\",\"type\":\"uint256\"}],\"name\":\"getStateInfoHistoryById\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"state\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedByState\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"replacedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIState.StateInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"}],\"name\":\"getStateInfoHistoryLengthById\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVerifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"}],\"name\":\"idExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newVerifierAddr_\",\"type\":\"address\"}],\"name\":\"setVerifier\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"state_\",\"type\":\"uint256\"}],\"name\":\"stateExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldState_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newState_\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isOldStateGenesis_\",\"type\":\"bool\"},{\"internalType\":\"uint256[2]\",\"name\":\"a_\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"b_\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"c_\",\"type\":\"uint256[2]\"}],\"name\":\"transitState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
StateMetaData contains all meta data concerning the State contract.
Functions ¶
This section is empty.
Types ¶
type IStateGistProof ¶
type IStateGistProof struct { Root *big.Int Existence bool Siblings [64]*big.Int Index *big.Int Value *big.Int AuxExistence bool AuxIndex *big.Int AuxValue *big.Int }
IStateGistProof is an auto generated low-level Go binding around an user-defined struct.
type IStateGistRootInfo ¶
type IStateGistRootInfo struct { Root *big.Int ReplacedByRoot *big.Int CreatedAtTimestamp *big.Int ReplacedAtTimestamp *big.Int CreatedAtBlock *big.Int ReplacedAtBlock *big.Int }
IStateGistRootInfo is an auto generated low-level Go binding around an user-defined struct.
type IStateStateInfo ¶
type IStateStateInfo struct { Id *big.Int State *big.Int ReplacedByState *big.Int CreatedAtTimestamp *big.Int ReplacedAtTimestamp *big.Int CreatedAtBlock *big.Int ReplacedAtBlock *big.Int }
IStateStateInfo is an auto generated low-level Go binding around an user-defined struct.
type State ¶
type State struct { StateCaller // Read-only binding to the contract StateTransactor // Write-only binding to the contract StateFilterer // Log filterer for contract events }
State is an auto generated Go binding around an Ethereum contract.
type StateCaller ¶
type StateCaller struct {
// contains filtered or unexported fields
}
StateCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStateCaller ¶
func NewStateCaller(address common.Address, caller bind.ContractCaller) (*StateCaller, error)
NewStateCaller creates a new read-only instance of State, bound to a specific deployed contract.
func (*StateCaller) GetGISTProof ¶
func (_State *StateCaller) GetGISTProof(opts *bind.CallOpts, id_ *big.Int) (IStateGistProof, error)
GetGISTProof is a free data retrieval call binding the contract method 0x3025bb8c.
Solidity: function getGISTProof(uint256 id_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCaller) GetGISTProofByBlock ¶
func (_State *StateCaller) GetGISTProofByBlock(opts *bind.CallOpts, id_ *big.Int, blockNumber_ *big.Int) (IStateGistProof, error)
GetGISTProofByBlock is a free data retrieval call binding the contract method 0x046ff140.
Solidity: function getGISTProofByBlock(uint256 id_, uint256 blockNumber_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCaller) GetGISTProofByRoot ¶
func (_State *StateCaller) GetGISTProofByRoot(opts *bind.CallOpts, id_ *big.Int, root_ *big.Int) (IStateGistProof, error)
GetGISTProofByRoot is a free data retrieval call binding the contract method 0xe12a36c0.
Solidity: function getGISTProofByRoot(uint256 id_, uint256 root_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCaller) GetGISTProofByTime ¶
func (_State *StateCaller) GetGISTProofByTime(opts *bind.CallOpts, id_ *big.Int, timestamp_ *big.Int) (IStateGistProof, error)
GetGISTProofByTime is a free data retrieval call binding the contract method 0xd51afebf.
Solidity: function getGISTProofByTime(uint256 id_, uint256 timestamp_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCaller) GetGISTRoot ¶
GetGISTRoot is a free data retrieval call binding the contract method 0x2439e3a6.
Solidity: function getGISTRoot() view returns(uint256)
func (*StateCaller) GetGISTRootHistory ¶
func (_State *StateCaller) GetGISTRootHistory(opts *bind.CallOpts, start_ *big.Int, length_ *big.Int) ([]IStateGistRootInfo, error)
GetGISTRootHistory is a free data retrieval call binding the contract method 0x2f7670e4.
Solidity: function getGISTRootHistory(uint256 start_, uint256 length_) view returns((uint256,uint256,uint256,uint256,uint256,uint256)[])
func (*StateCaller) GetGISTRootHistoryLength ¶
GetGISTRootHistoryLength is a free data retrieval call binding the contract method 0xdccbd57a.
Solidity: function getGISTRootHistoryLength() view returns(uint256)
func (*StateCaller) GetGISTRootInfo ¶
func (_State *StateCaller) GetGISTRootInfo(opts *bind.CallOpts, root_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfo is a free data retrieval call binding the contract method 0x7c1a66de.
Solidity: function getGISTRootInfo(uint256 root_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCaller) GetGISTRootInfoByBlock ¶
func (_State *StateCaller) GetGISTRootInfoByBlock(opts *bind.CallOpts, blockNumber_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfoByBlock is a free data retrieval call binding the contract method 0x5845e530.
Solidity: function getGISTRootInfoByBlock(uint256 blockNumber_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCaller) GetGISTRootInfoByTime ¶
func (_State *StateCaller) GetGISTRootInfoByTime(opts *bind.CallOpts, timestamp_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfoByTime is a free data retrieval call binding the contract method 0x0ef6e65b.
Solidity: function getGISTRootInfoByTime(uint256 timestamp_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCaller) GetStateInfoById ¶
func (_State *StateCaller) GetStateInfoById(opts *bind.CallOpts, id_ *big.Int) (IStateStateInfo, error)
GetStateInfoById is a free data retrieval call binding the contract method 0xb4bdea55.
Solidity: function getStateInfoById(uint256 id_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCaller) GetStateInfoByIdAndState ¶
func (_State *StateCaller) GetStateInfoByIdAndState(opts *bind.CallOpts, id_ *big.Int, state_ *big.Int) (IStateStateInfo, error)
GetStateInfoByIdAndState is a free data retrieval call binding the contract method 0x53c87312.
Solidity: function getStateInfoByIdAndState(uint256 id_, uint256 state_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCaller) GetStateInfoHistoryById ¶
func (_State *StateCaller) GetStateInfoHistoryById(opts *bind.CallOpts, id_ *big.Int, startIndex_ *big.Int, length_ *big.Int) ([]IStateStateInfo, error)
GetStateInfoHistoryById is a free data retrieval call binding the contract method 0xe99858fe.
Solidity: function getStateInfoHistoryById(uint256 id_, uint256 startIndex_, uint256 length_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[])
func (*StateCaller) GetStateInfoHistoryLengthById ¶
func (_State *StateCaller) GetStateInfoHistoryLengthById(opts *bind.CallOpts, id_ *big.Int) (*big.Int, error)
GetStateInfoHistoryLengthById is a free data retrieval call binding the contract method 0x676d5b5a.
Solidity: function getStateInfoHistoryLengthById(uint256 id_) view returns(uint256)
func (*StateCaller) GetVerifier ¶
GetVerifier is a free data retrieval call binding the contract method 0x46657fe9.
Solidity: function getVerifier() view returns(address)
func (*StateCaller) IdExists ¶
IdExists is a free data retrieval call binding the contract method 0x0b8a295a.
Solidity: function idExists(uint256 id_) view returns(bool)
func (*StateCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StateCaller) PendingOwner ¶
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
type StateCallerRaw ¶
type StateCallerRaw struct {
Contract *StateCaller // Generic read-only contract binding to access the raw methods on
}
StateCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StateCallerRaw) Call ¶
func (_State *StateCallerRaw) 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 StateCallerSession ¶
type StateCallerSession struct { Contract *StateCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StateCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StateCallerSession) GetGISTProof ¶
func (_State *StateCallerSession) GetGISTProof(id_ *big.Int) (IStateGistProof, error)
GetGISTProof is a free data retrieval call binding the contract method 0x3025bb8c.
Solidity: function getGISTProof(uint256 id_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCallerSession) GetGISTProofByBlock ¶
func (_State *StateCallerSession) GetGISTProofByBlock(id_ *big.Int, blockNumber_ *big.Int) (IStateGistProof, error)
GetGISTProofByBlock is a free data retrieval call binding the contract method 0x046ff140.
Solidity: function getGISTProofByBlock(uint256 id_, uint256 blockNumber_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCallerSession) GetGISTProofByRoot ¶
func (_State *StateCallerSession) GetGISTProofByRoot(id_ *big.Int, root_ *big.Int) (IStateGistProof, error)
GetGISTProofByRoot is a free data retrieval call binding the contract method 0xe12a36c0.
Solidity: function getGISTProofByRoot(uint256 id_, uint256 root_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCallerSession) GetGISTProofByTime ¶
func (_State *StateCallerSession) GetGISTProofByTime(id_ *big.Int, timestamp_ *big.Int) (IStateGistProof, error)
GetGISTProofByTime is a free data retrieval call binding the contract method 0xd51afebf.
Solidity: function getGISTProofByTime(uint256 id_, uint256 timestamp_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateCallerSession) GetGISTRoot ¶
func (_State *StateCallerSession) GetGISTRoot() (*big.Int, error)
GetGISTRoot is a free data retrieval call binding the contract method 0x2439e3a6.
Solidity: function getGISTRoot() view returns(uint256)
func (*StateCallerSession) GetGISTRootHistory ¶
func (_State *StateCallerSession) GetGISTRootHistory(start_ *big.Int, length_ *big.Int) ([]IStateGistRootInfo, error)
GetGISTRootHistory is a free data retrieval call binding the contract method 0x2f7670e4.
Solidity: function getGISTRootHistory(uint256 start_, uint256 length_) view returns((uint256,uint256,uint256,uint256,uint256,uint256)[])
func (*StateCallerSession) GetGISTRootHistoryLength ¶
func (_State *StateCallerSession) GetGISTRootHistoryLength() (*big.Int, error)
GetGISTRootHistoryLength is a free data retrieval call binding the contract method 0xdccbd57a.
Solidity: function getGISTRootHistoryLength() view returns(uint256)
func (*StateCallerSession) GetGISTRootInfo ¶
func (_State *StateCallerSession) GetGISTRootInfo(root_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfo is a free data retrieval call binding the contract method 0x7c1a66de.
Solidity: function getGISTRootInfo(uint256 root_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCallerSession) GetGISTRootInfoByBlock ¶
func (_State *StateCallerSession) GetGISTRootInfoByBlock(blockNumber_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfoByBlock is a free data retrieval call binding the contract method 0x5845e530.
Solidity: function getGISTRootInfoByBlock(uint256 blockNumber_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCallerSession) GetGISTRootInfoByTime ¶
func (_State *StateCallerSession) GetGISTRootInfoByTime(timestamp_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfoByTime is a free data retrieval call binding the contract method 0x0ef6e65b.
Solidity: function getGISTRootInfoByTime(uint256 timestamp_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCallerSession) GetStateInfoById ¶
func (_State *StateCallerSession) GetStateInfoById(id_ *big.Int) (IStateStateInfo, error)
GetStateInfoById is a free data retrieval call binding the contract method 0xb4bdea55.
Solidity: function getStateInfoById(uint256 id_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCallerSession) GetStateInfoByIdAndState ¶
func (_State *StateCallerSession) GetStateInfoByIdAndState(id_ *big.Int, state_ *big.Int) (IStateStateInfo, error)
GetStateInfoByIdAndState is a free data retrieval call binding the contract method 0x53c87312.
Solidity: function getStateInfoByIdAndState(uint256 id_, uint256 state_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateCallerSession) GetStateInfoHistoryById ¶
func (_State *StateCallerSession) GetStateInfoHistoryById(id_ *big.Int, startIndex_ *big.Int, length_ *big.Int) ([]IStateStateInfo, error)
GetStateInfoHistoryById is a free data retrieval call binding the contract method 0xe99858fe.
Solidity: function getStateInfoHistoryById(uint256 id_, uint256 startIndex_, uint256 length_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[])
func (*StateCallerSession) GetStateInfoHistoryLengthById ¶
GetStateInfoHistoryLengthById is a free data retrieval call binding the contract method 0x676d5b5a.
Solidity: function getStateInfoHistoryLengthById(uint256 id_) view returns(uint256)
func (*StateCallerSession) GetVerifier ¶
func (_State *StateCallerSession) GetVerifier() (common.Address, error)
GetVerifier is a free data retrieval call binding the contract method 0x46657fe9.
Solidity: function getVerifier() view returns(address)
func (*StateCallerSession) IdExists ¶
func (_State *StateCallerSession) IdExists(id_ *big.Int) (bool, error)
IdExists is a free data retrieval call binding the contract method 0x0b8a295a.
Solidity: function idExists(uint256 id_) view returns(bool)
func (*StateCallerSession) Owner ¶
func (_State *StateCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StateCallerSession) PendingOwner ¶
func (_State *StateCallerSession) PendingOwner() (common.Address, error)
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*StateCallerSession) StateExists ¶
StateExists is a free data retrieval call binding the contract method 0x233a4d23.
Solidity: function stateExists(uint256 id_, uint256 state_) view returns(bool)
func (*StateCallerSession) VERSION ¶
func (_State *StateCallerSession) VERSION() (string, error)
VERSION is a free data retrieval call binding the contract method 0xffa1ad74.
Solidity: function VERSION() view returns(string)
type StateFilterer ¶
type StateFilterer struct {
// contains filtered or unexported fields
}
StateFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStateFilterer ¶
func NewStateFilterer(address common.Address, filterer bind.ContractFilterer) (*StateFilterer, error)
NewStateFilterer creates a new log filterer instance of State, bound to a specific deployed contract.
func (*StateFilterer) FilterInitialized ¶
func (_State *StateFilterer) FilterInitialized(opts *bind.FilterOpts) (*StateInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*StateFilterer) FilterOwnershipTransferStarted ¶
func (_State *StateFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*StateOwnershipTransferStartedIterator, error)
FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.
Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
func (*StateFilterer) FilterOwnershipTransferred ¶
func (_State *StateFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*StateOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*StateFilterer) FilterStateTransited ¶
func (_State *StateFilterer) FilterStateTransited(opts *bind.FilterOpts, id []*big.Int) (*StateStateTransitedIterator, error)
FilterStateTransited is a free log retrieval operation binding the contract event 0x819388a8ff4f5591c6f06c7c9e4cc1d5d7faf9e97e7faede4d1db8932b48be63.
Solidity: event StateTransited(uint256 gistRoot, uint256 indexed id, uint256 state, uint256 timestamp, uint256 blockNumber)
func (*StateFilterer) ParseInitialized ¶
func (_State *StateFilterer) ParseInitialized(log types.Log) (*StateInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*StateFilterer) ParseOwnershipTransferStarted ¶
func (_State *StateFilterer) ParseOwnershipTransferStarted(log types.Log) (*StateOwnershipTransferStarted, error)
ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.
Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
func (*StateFilterer) ParseOwnershipTransferred ¶
func (_State *StateFilterer) ParseOwnershipTransferred(log types.Log) (*StateOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*StateFilterer) ParseStateTransited ¶
func (_State *StateFilterer) ParseStateTransited(log types.Log) (*StateStateTransited, error)
ParseStateTransited is a log parse operation binding the contract event 0x819388a8ff4f5591c6f06c7c9e4cc1d5d7faf9e97e7faede4d1db8932b48be63.
Solidity: event StateTransited(uint256 gistRoot, uint256 indexed id, uint256 state, uint256 timestamp, uint256 blockNumber)
func (*StateFilterer) WatchInitialized ¶
func (_State *StateFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StateInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*StateFilterer) WatchOwnershipTransferStarted ¶
func (_State *StateFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *StateOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.
Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
func (*StateFilterer) WatchOwnershipTransferred ¶
func (_State *StateFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StateOwnershipTransferred, 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 (*StateFilterer) WatchStateTransited ¶
func (_State *StateFilterer) WatchStateTransited(opts *bind.WatchOpts, sink chan<- *StateStateTransited, id []*big.Int) (event.Subscription, error)
WatchStateTransited is a free log subscription operation binding the contract event 0x819388a8ff4f5591c6f06c7c9e4cc1d5d7faf9e97e7faede4d1db8932b48be63.
Solidity: event StateTransited(uint256 gistRoot, uint256 indexed id, uint256 state, uint256 timestamp, uint256 blockNumber)
type StateInitialized ¶
type StateInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
StateInitialized represents a Initialized event raised by the State contract.
type StateInitializedIterator ¶
type StateInitializedIterator struct { Event *StateInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the State contract.
func (*StateInitializedIterator) Close ¶
func (it *StateInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateInitializedIterator) Error ¶
func (it *StateInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateInitializedIterator) Next ¶
func (it *StateInitializedIterator) 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 StateOwnershipTransferStarted ¶
type StateOwnershipTransferStarted struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
StateOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the State contract.
type StateOwnershipTransferStartedIterator ¶
type StateOwnershipTransferStartedIterator struct { Event *StateOwnershipTransferStarted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the State contract.
func (*StateOwnershipTransferStartedIterator) Close ¶
func (it *StateOwnershipTransferStartedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateOwnershipTransferStartedIterator) Error ¶
func (it *StateOwnershipTransferStartedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateOwnershipTransferStartedIterator) Next ¶
func (it *StateOwnershipTransferStartedIterator) 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 StateOwnershipTransferred ¶
type StateOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
StateOwnershipTransferred represents a OwnershipTransferred event raised by the State contract.
type StateOwnershipTransferredIterator ¶
type StateOwnershipTransferredIterator struct { Event *StateOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the State contract.
func (*StateOwnershipTransferredIterator) Close ¶
func (it *StateOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateOwnershipTransferredIterator) Error ¶
func (it *StateOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateOwnershipTransferredIterator) Next ¶
func (it *StateOwnershipTransferredIterator) 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 StateRaw ¶
type StateRaw struct {
Contract *State // Generic contract binding to access the raw methods on
}
StateRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StateRaw) Call ¶
func (_State *StateRaw) 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 (*StateRaw) Transact ¶
func (_State *StateRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StateRaw) Transfer ¶
func (_State *StateRaw) 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 StateSession ¶
type StateSession struct { Contract *State // 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 }
StateSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StateSession) AcceptOwnership ¶
func (_State *StateSession) AcceptOwnership() (*types.Transaction, error)
AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
Solidity: function acceptOwnership() returns()
func (*StateSession) GetGISTProof ¶
func (_State *StateSession) GetGISTProof(id_ *big.Int) (IStateGistProof, error)
GetGISTProof is a free data retrieval call binding the contract method 0x3025bb8c.
Solidity: function getGISTProof(uint256 id_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateSession) GetGISTProofByBlock ¶
func (_State *StateSession) GetGISTProofByBlock(id_ *big.Int, blockNumber_ *big.Int) (IStateGistProof, error)
GetGISTProofByBlock is a free data retrieval call binding the contract method 0x046ff140.
Solidity: function getGISTProofByBlock(uint256 id_, uint256 blockNumber_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateSession) GetGISTProofByRoot ¶
func (_State *StateSession) GetGISTProofByRoot(id_ *big.Int, root_ *big.Int) (IStateGistProof, error)
GetGISTProofByRoot is a free data retrieval call binding the contract method 0xe12a36c0.
Solidity: function getGISTProofByRoot(uint256 id_, uint256 root_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateSession) GetGISTProofByTime ¶
func (_State *StateSession) GetGISTProofByTime(id_ *big.Int, timestamp_ *big.Int) (IStateGistProof, error)
GetGISTProofByTime is a free data retrieval call binding the contract method 0xd51afebf.
Solidity: function getGISTProofByTime(uint256 id_, uint256 timestamp_) view returns((uint256,bool,uint256[64],uint256,uint256,bool,uint256,uint256))
func (*StateSession) GetGISTRoot ¶
func (_State *StateSession) GetGISTRoot() (*big.Int, error)
GetGISTRoot is a free data retrieval call binding the contract method 0x2439e3a6.
Solidity: function getGISTRoot() view returns(uint256)
func (*StateSession) GetGISTRootHistory ¶
func (_State *StateSession) GetGISTRootHistory(start_ *big.Int, length_ *big.Int) ([]IStateGistRootInfo, error)
GetGISTRootHistory is a free data retrieval call binding the contract method 0x2f7670e4.
Solidity: function getGISTRootHistory(uint256 start_, uint256 length_) view returns((uint256,uint256,uint256,uint256,uint256,uint256)[])
func (*StateSession) GetGISTRootHistoryLength ¶
func (_State *StateSession) GetGISTRootHistoryLength() (*big.Int, error)
GetGISTRootHistoryLength is a free data retrieval call binding the contract method 0xdccbd57a.
Solidity: function getGISTRootHistoryLength() view returns(uint256)
func (*StateSession) GetGISTRootInfo ¶
func (_State *StateSession) GetGISTRootInfo(root_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfo is a free data retrieval call binding the contract method 0x7c1a66de.
Solidity: function getGISTRootInfo(uint256 root_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateSession) GetGISTRootInfoByBlock ¶
func (_State *StateSession) GetGISTRootInfoByBlock(blockNumber_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfoByBlock is a free data retrieval call binding the contract method 0x5845e530.
Solidity: function getGISTRootInfoByBlock(uint256 blockNumber_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateSession) GetGISTRootInfoByTime ¶
func (_State *StateSession) GetGISTRootInfoByTime(timestamp_ *big.Int) (IStateGistRootInfo, error)
GetGISTRootInfoByTime is a free data retrieval call binding the contract method 0x0ef6e65b.
Solidity: function getGISTRootInfoByTime(uint256 timestamp_) view returns((uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateSession) GetStateInfoById ¶
func (_State *StateSession) GetStateInfoById(id_ *big.Int) (IStateStateInfo, error)
GetStateInfoById is a free data retrieval call binding the contract method 0xb4bdea55.
Solidity: function getStateInfoById(uint256 id_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateSession) GetStateInfoByIdAndState ¶
func (_State *StateSession) GetStateInfoByIdAndState(id_ *big.Int, state_ *big.Int) (IStateStateInfo, error)
GetStateInfoByIdAndState is a free data retrieval call binding the contract method 0x53c87312.
Solidity: function getStateInfoByIdAndState(uint256 id_, uint256 state_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*StateSession) GetStateInfoHistoryById ¶
func (_State *StateSession) GetStateInfoHistoryById(id_ *big.Int, startIndex_ *big.Int, length_ *big.Int) ([]IStateStateInfo, error)
GetStateInfoHistoryById is a free data retrieval call binding the contract method 0xe99858fe.
Solidity: function getStateInfoHistoryById(uint256 id_, uint256 startIndex_, uint256 length_) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[])
func (*StateSession) GetStateInfoHistoryLengthById ¶
GetStateInfoHistoryLengthById is a free data retrieval call binding the contract method 0x676d5b5a.
Solidity: function getStateInfoHistoryLengthById(uint256 id_) view returns(uint256)
func (*StateSession) GetVerifier ¶
func (_State *StateSession) GetVerifier() (common.Address, error)
GetVerifier is a free data retrieval call binding the contract method 0x46657fe9.
Solidity: function getVerifier() view returns(address)
func (*StateSession) IdExists ¶
func (_State *StateSession) IdExists(id_ *big.Int) (bool, error)
IdExists is a free data retrieval call binding the contract method 0x0b8a295a.
Solidity: function idExists(uint256 id_) view returns(bool)
func (*StateSession) Owner ¶
func (_State *StateSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StateSession) PendingOwner ¶
func (_State *StateSession) PendingOwner() (common.Address, error)
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*StateSession) RenounceOwnership ¶
func (_State *StateSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StateSession) SetVerifier ¶
func (_State *StateSession) SetVerifier(newVerifierAddr_ common.Address) (*types.Transaction, error)
SetVerifier is a paid mutator transaction binding the contract method 0x5437988d.
Solidity: function setVerifier(address newVerifierAddr_) returns()
func (*StateSession) StateExists ¶
StateExists is a free data retrieval call binding the contract method 0x233a4d23.
Solidity: function stateExists(uint256 id_, uint256 state_) view returns(bool)
func (*StateSession) StateInit ¶
func (_State *StateSession) StateInit(verifierContractAddr_ common.Address) (*types.Transaction, error)
StateInit is a paid mutator transaction binding the contract method 0x3ed5b500.
Solidity: function __State_init(address verifierContractAddr_) returns()
func (*StateSession) TransferOwnership ¶
func (_State *StateSession) 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 (*StateSession) TransitState ¶
func (_State *StateSession) TransitState(id_ *big.Int, oldState_ *big.Int, newState_ *big.Int, isOldStateGenesis_ bool, a_ [2]*big.Int, b_ [2][2]*big.Int, c_ [2]*big.Int) (*types.Transaction, error)
TransitState is a paid mutator transaction binding the contract method 0x28f88a65.
Solidity: function transitState(uint256 id_, uint256 oldState_, uint256 newState_, bool isOldStateGenesis_, uint256[2] a_, uint256[2][2] b_, uint256[2] c_) returns()
func (*StateSession) VERSION ¶
func (_State *StateSession) VERSION() (string, error)
VERSION is a free data retrieval call binding the contract method 0xffa1ad74.
Solidity: function VERSION() view returns(string)
type StateStateTransited ¶
type StateStateTransited struct { GistRoot *big.Int Id *big.Int State *big.Int Timestamp *big.Int BlockNumber *big.Int Raw types.Log // Blockchain specific contextual infos }
StateStateTransited represents a StateTransited event raised by the State contract.
type StateStateTransitedIterator ¶
type StateStateTransitedIterator struct { Event *StateStateTransited // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateStateTransitedIterator is returned from FilterStateTransited and is used to iterate over the raw logs and unpacked data for StateTransited events raised by the State contract.
func (*StateStateTransitedIterator) Close ¶
func (it *StateStateTransitedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateStateTransitedIterator) Error ¶
func (it *StateStateTransitedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateStateTransitedIterator) Next ¶
func (it *StateStateTransitedIterator) 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 StateTransactor ¶
type StateTransactor struct {
// contains filtered or unexported fields
}
StateTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStateTransactor ¶
func NewStateTransactor(address common.Address, transactor bind.ContractTransactor) (*StateTransactor, error)
NewStateTransactor creates a new write-only instance of State, bound to a specific deployed contract.
func (*StateTransactor) AcceptOwnership ¶
func (_State *StateTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
Solidity: function acceptOwnership() returns()
func (*StateTransactor) RenounceOwnership ¶
func (_State *StateTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StateTransactor) SetVerifier ¶
func (_State *StateTransactor) SetVerifier(opts *bind.TransactOpts, newVerifierAddr_ common.Address) (*types.Transaction, error)
SetVerifier is a paid mutator transaction binding the contract method 0x5437988d.
Solidity: function setVerifier(address newVerifierAddr_) returns()
func (*StateTransactor) StateInit ¶
func (_State *StateTransactor) StateInit(opts *bind.TransactOpts, verifierContractAddr_ common.Address) (*types.Transaction, error)
StateInit is a paid mutator transaction binding the contract method 0x3ed5b500.
Solidity: function __State_init(address verifierContractAddr_) returns()
func (*StateTransactor) TransferOwnership ¶
func (_State *StateTransactor) 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()
func (*StateTransactor) TransitState ¶
func (_State *StateTransactor) TransitState(opts *bind.TransactOpts, id_ *big.Int, oldState_ *big.Int, newState_ *big.Int, isOldStateGenesis_ bool, a_ [2]*big.Int, b_ [2][2]*big.Int, c_ [2]*big.Int) (*types.Transaction, error)
TransitState is a paid mutator transaction binding the contract method 0x28f88a65.
Solidity: function transitState(uint256 id_, uint256 oldState_, uint256 newState_, bool isOldStateGenesis_, uint256[2] a_, uint256[2][2] b_, uint256[2] c_) returns()
type StateTransactorRaw ¶
type StateTransactorRaw struct {
Contract *StateTransactor // Generic write-only contract binding to access the raw methods on
}
StateTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StateTransactorRaw) Transact ¶
func (_State *StateTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StateTransactorRaw) Transfer ¶
func (_State *StateTransactorRaw) 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 StateTransactorSession ¶
type StateTransactorSession struct { Contract *StateTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StateTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StateTransactorSession) AcceptOwnership ¶
func (_State *StateTransactorSession) AcceptOwnership() (*types.Transaction, error)
AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
Solidity: function acceptOwnership() returns()
func (*StateTransactorSession) RenounceOwnership ¶
func (_State *StateTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StateTransactorSession) SetVerifier ¶
func (_State *StateTransactorSession) SetVerifier(newVerifierAddr_ common.Address) (*types.Transaction, error)
SetVerifier is a paid mutator transaction binding the contract method 0x5437988d.
Solidity: function setVerifier(address newVerifierAddr_) returns()
func (*StateTransactorSession) StateInit ¶
func (_State *StateTransactorSession) StateInit(verifierContractAddr_ common.Address) (*types.Transaction, error)
StateInit is a paid mutator transaction binding the contract method 0x3ed5b500.
Solidity: function __State_init(address verifierContractAddr_) returns()
func (*StateTransactorSession) TransferOwnership ¶
func (_State *StateTransactorSession) 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 (*StateTransactorSession) TransitState ¶
func (_State *StateTransactorSession) TransitState(id_ *big.Int, oldState_ *big.Int, newState_ *big.Int, isOldStateGenesis_ bool, a_ [2]*big.Int, b_ [2][2]*big.Int, c_ [2]*big.Int) (*types.Transaction, error)
TransitState is a paid mutator transaction binding the contract method 0x28f88a65.
Solidity: function transitState(uint256 id_, uint256 oldState_, uint256 newState_, bool isOldStateGenesis_, uint256[2] a_, uint256[2][2] b_, uint256[2] c_) returns()