Documentation ¶
Index ¶
- Variables
- type PoseidonSMT
- type PoseidonSMTAdminChanged
- type PoseidonSMTAdminChangedIterator
- type PoseidonSMTBeaconUpgraded
- type PoseidonSMTBeaconUpgradedIterator
- type PoseidonSMTCaller
- func (_PoseidonSMT *PoseidonSMTCaller) ChainName(opts *bind.CallOpts) (string, error)
- func (_PoseidonSMT *PoseidonSMTCaller) GetNodeByKey(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeNode, error)
- func (_PoseidonSMT *PoseidonSMTCaller) GetNonce(opts *bind.CallOpts, methodId_ uint8) (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTCaller) GetProof(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeProof, error)
- func (_PoseidonSMT *PoseidonSMTCaller) GetRoot(opts *bind.CallOpts) ([32]byte, error)
- func (_PoseidonSMT *PoseidonSMTCaller) Implementation(opts *bind.CallOpts) (common.Address, error)
- func (_PoseidonSMT *PoseidonSMTCaller) IsRootLatest(opts *bind.CallOpts, root_ [32]byte) (bool, error)
- func (_PoseidonSMT *PoseidonSMTCaller) IsRootValid(opts *bind.CallOpts, root_ [32]byte) (bool, error)
- func (_PoseidonSMT *PoseidonSMTCaller) MAGICID(opts *bind.CallOpts) (uint8, error)
- func (_PoseidonSMT *PoseidonSMTCaller) P(opts *bind.CallOpts) (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
- func (_PoseidonSMT *PoseidonSMTCaller) ROOTVALIDITY(opts *bind.CallOpts) (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTCaller) Signer(opts *bind.CallOpts) (common.Address, error)
- func (_PoseidonSMT *PoseidonSMTCaller) StateKeeper(opts *bind.CallOpts) (common.Address, error)
- type PoseidonSMTCallerRaw
- type PoseidonSMTCallerSession
- func (_PoseidonSMT *PoseidonSMTCallerSession) ChainName() (string, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) GetNonce(methodId_ uint8) (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) GetRoot() ([32]byte, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) Implementation() (common.Address, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) IsRootLatest(root_ [32]byte) (bool, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) IsRootValid(root_ [32]byte) (bool, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) MAGICID() (uint8, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) P() (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) ProxiableUUID() ([32]byte, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) ROOTVALIDITY() (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) Signer() (common.Address, error)
- func (_PoseidonSMT *PoseidonSMTCallerSession) StateKeeper() (common.Address, error)
- type PoseidonSMTFilterer
- func (_PoseidonSMT *PoseidonSMTFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*PoseidonSMTAdminChangedIterator, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*PoseidonSMTBeaconUpgradedIterator, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) FilterInitialized(opts *bind.FilterOpts) (*PoseidonSMTInitializedIterator, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) FilterRootUpdated(opts *bind.FilterOpts) (*PoseidonSMTRootUpdatedIterator, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*PoseidonSMTUpgradedIterator, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) ParseAdminChanged(log types.Log) (*PoseidonSMTAdminChanged, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) ParseBeaconUpgraded(log types.Log) (*PoseidonSMTBeaconUpgraded, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) ParseInitialized(log types.Log) (*PoseidonSMTInitialized, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) ParseRootUpdated(log types.Log) (*PoseidonSMTRootUpdated, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) ParseUpgraded(log types.Log) (*PoseidonSMTUpgraded, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *PoseidonSMTAdminChanged) (event.Subscription, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *PoseidonSMTBeaconUpgraded, ...) (event.Subscription, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *PoseidonSMTInitialized) (event.Subscription, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *PoseidonSMTRootUpdated) (event.Subscription, error)
- func (_PoseidonSMT *PoseidonSMTFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *PoseidonSMTUpgraded, ...) (event.Subscription, error)
- type PoseidonSMTInitialized
- type PoseidonSMTInitializedIterator
- type PoseidonSMTRaw
- func (_PoseidonSMT *PoseidonSMTRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_PoseidonSMT *PoseidonSMTRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PoseidonSMTRootUpdated
- type PoseidonSMTRootUpdatedIterator
- type PoseidonSMTSession
- func (_PoseidonSMT *PoseidonSMTSession) Add(keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) ChainName() (string, error)
- func (_PoseidonSMT *PoseidonSMTSession) ChangeSigner(newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
- func (_PoseidonSMT *PoseidonSMTSession) GetNonce(methodId_ uint8) (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
- func (_PoseidonSMT *PoseidonSMTSession) GetRoot() ([32]byte, error)
- func (_PoseidonSMT *PoseidonSMTSession) Implementation() (common.Address, error)
- func (_PoseidonSMT *PoseidonSMTSession) IsRootLatest(root_ [32]byte) (bool, error)
- func (_PoseidonSMT *PoseidonSMTSession) IsRootValid(root_ [32]byte) (bool, error)
- func (_PoseidonSMT *PoseidonSMTSession) MAGICID() (uint8, error)
- func (_PoseidonSMT *PoseidonSMTSession) P() (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTSession) PoseidonSMTInit(signer_ common.Address, chainName_ string, stateKeeper_ common.Address, ...) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) ProxiableUUID() ([32]byte, error)
- func (_PoseidonSMT *PoseidonSMTSession) ROOTVALIDITY() (*big.Int, error)
- func (_PoseidonSMT *PoseidonSMTSession) Remove(keyOfElement_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) Signer() (common.Address, error)
- func (_PoseidonSMT *PoseidonSMTSession) StateKeeper() (common.Address, error)
- func (_PoseidonSMT *PoseidonSMTSession) Update(keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) UpgradeToAndCallWithProof(newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTSession) UpgradeToWithProof(newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)
- type PoseidonSMTTransactor
- func (_PoseidonSMT *PoseidonSMTTransactor) Add(opts *bind.TransactOpts, keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) ChangeSigner(opts *bind.TransactOpts, newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) PoseidonSMTInit(opts *bind.TransactOpts, signer_ common.Address, chainName_ string, ...) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) Remove(opts *bind.TransactOpts, keyOfElement_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) Update(opts *bind.TransactOpts, keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeToAndCallWithProof(opts *bind.TransactOpts, newImplementation_ common.Address, proof_ []byte, ...) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeToWithProof(opts *bind.TransactOpts, newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)
- type PoseidonSMTTransactorRaw
- type PoseidonSMTTransactorSession
- func (_PoseidonSMT *PoseidonSMTTransactorSession) Add(keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) ChangeSigner(newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) PoseidonSMTInit(signer_ common.Address, chainName_ string, stateKeeper_ common.Address, ...) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) Remove(keyOfElement_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) Update(keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeToAndCallWithProof(newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)
- func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeToWithProof(newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)
- type PoseidonSMTUpgraded
- type PoseidonSMTUpgradedIterator
- type SparseMerkleTreeNode
- type SparseMerkleTreeProof
Constants ¶
This section is empty.
Variables ¶
var PoseidonSMTABI = PoseidonSMTMetaData.ABI
PoseidonSMTABI is the input ABI used to generate the binding from. Deprecated: Use PoseidonSMTMetaData.ABI instead.
var PoseidonSMTMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"RootUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAGIC_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"P\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ROOT_VALIDITY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"chainName_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"stateKeeper_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"treeHeight_\",\"type\":\"uint256\"}],\"name\":\"__PoseidonSMT_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keyOfElement_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"element_\",\"type\":\"bytes32\"}],\"name\":\"add\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"chainName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"newSignerPubKey_\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"changeSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key_\",\"type\":\"bytes32\"}],\"name\":\"getNodeByKey\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSparseMerkleTree.NodeType\",\"name\":\"nodeType\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"childLeft\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"childRight\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"nodeHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"}],\"internalType\":\"structSparseMerkleTree.Node\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"methodId_\",\"type\":\"uint8\"}],\"name\":\"getNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key_\",\"type\":\"bytes32\"}],\"name\":\"getProof\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"siblings\",\"type\":\"bytes32[]\"},{\"internalType\":\"bool\",\"name\":\"existence\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"auxExistence\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"auxKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"auxValue\",\"type\":\"bytes32\"}],\"internalType\":\"structSparseMerkleTree.Proof\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"implementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root_\",\"type\":\"bytes32\"}],\"name\":\"isRootLatest\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root_\",\"type\":\"bytes32\"}],\"name\":\"isRootValid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keyOfElement_\",\"type\":\"bytes32\"}],\"name\":\"remove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stateKeeper\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keyOfElement_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"newElement_\",\"type\":\"bytes32\"}],\"name\":\"update\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"proof_\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data_\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCallWithProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation_\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"proof_\",\"type\":\"bytes\"}],\"name\":\"upgradeToWithProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
PoseidonSMTMetaData contains all meta data concerning the PoseidonSMT contract.
Functions ¶
This section is empty.
Types ¶
type PoseidonSMT ¶
type PoseidonSMT struct { PoseidonSMTCaller // Read-only binding to the contract PoseidonSMTTransactor // Write-only binding to the contract PoseidonSMTFilterer // Log filterer for contract events }
PoseidonSMT is an auto generated Go binding around an Ethereum contract.
func NewPoseidonSMT ¶
func NewPoseidonSMT(address common.Address, backend bind.ContractBackend) (*PoseidonSMT, error)
NewPoseidonSMT creates a new instance of PoseidonSMT, bound to a specific deployed contract.
type PoseidonSMTAdminChanged ¶
type PoseidonSMTAdminChanged struct { PreviousAdmin common.Address NewAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
PoseidonSMTAdminChanged represents a AdminChanged event raised by the PoseidonSMT contract.
type PoseidonSMTAdminChangedIterator ¶
type PoseidonSMTAdminChangedIterator struct { Event *PoseidonSMTAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoseidonSMTAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the PoseidonSMT contract.
func (*PoseidonSMTAdminChangedIterator) Close ¶
func (it *PoseidonSMTAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoseidonSMTAdminChangedIterator) Error ¶
func (it *PoseidonSMTAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoseidonSMTAdminChangedIterator) Next ¶
func (it *PoseidonSMTAdminChangedIterator) 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 PoseidonSMTBeaconUpgraded ¶
type PoseidonSMTBeaconUpgraded struct { Beacon common.Address Raw types.Log // Blockchain specific contextual infos }
PoseidonSMTBeaconUpgraded represents a BeaconUpgraded event raised by the PoseidonSMT contract.
type PoseidonSMTBeaconUpgradedIterator ¶
type PoseidonSMTBeaconUpgradedIterator struct { Event *PoseidonSMTBeaconUpgraded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoseidonSMTBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the PoseidonSMT contract.
func (*PoseidonSMTBeaconUpgradedIterator) Close ¶
func (it *PoseidonSMTBeaconUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoseidonSMTBeaconUpgradedIterator) Error ¶
func (it *PoseidonSMTBeaconUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoseidonSMTBeaconUpgradedIterator) Next ¶
func (it *PoseidonSMTBeaconUpgradedIterator) 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 PoseidonSMTCaller ¶
type PoseidonSMTCaller struct {
// contains filtered or unexported fields
}
PoseidonSMTCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPoseidonSMTCaller ¶
func NewPoseidonSMTCaller(address common.Address, caller bind.ContractCaller) (*PoseidonSMTCaller, error)
NewPoseidonSMTCaller creates a new read-only instance of PoseidonSMT, bound to a specific deployed contract.
func (*PoseidonSMTCaller) ChainName ¶
func (_PoseidonSMT *PoseidonSMTCaller) ChainName(opts *bind.CallOpts) (string, error)
ChainName is a free data retrieval call binding the contract method 0x1c93b03a.
Solidity: function chainName() view returns(string)
func (*PoseidonSMTCaller) GetNodeByKey ¶
func (_PoseidonSMT *PoseidonSMTCaller) GetNodeByKey(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeNode, error)
GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.
Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))
func (*PoseidonSMTCaller) GetNonce ¶
func (_PoseidonSMT *PoseidonSMTCaller) GetNonce(opts *bind.CallOpts, methodId_ uint8) (*big.Int, error)
GetNonce is a free data retrieval call binding the contract method 0xf4fc6341.
Solidity: function getNonce(uint8 methodId_) view returns(uint256)
func (*PoseidonSMTCaller) GetProof ¶
func (_PoseidonSMT *PoseidonSMTCaller) GetProof(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeProof, error)
GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.
Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))
func (*PoseidonSMTCaller) GetRoot ¶
func (_PoseidonSMT *PoseidonSMTCaller) GetRoot(opts *bind.CallOpts) ([32]byte, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(bytes32)
func (*PoseidonSMTCaller) Implementation ¶
Implementation is a free data retrieval call binding the contract method 0x5c60da1b.
Solidity: function implementation() view returns(address)
func (*PoseidonSMTCaller) IsRootLatest ¶
func (_PoseidonSMT *PoseidonSMTCaller) IsRootLatest(opts *bind.CallOpts, root_ [32]byte) (bool, error)
IsRootLatest is a free data retrieval call binding the contract method 0x8492307f.
Solidity: function isRootLatest(bytes32 root_) view returns(bool)
func (*PoseidonSMTCaller) IsRootValid ¶
func (_PoseidonSMT *PoseidonSMTCaller) IsRootValid(opts *bind.CallOpts, root_ [32]byte) (bool, error)
IsRootValid is a free data retrieval call binding the contract method 0x30ef41b4.
Solidity: function isRootValid(bytes32 root_) view returns(bool)
func (*PoseidonSMTCaller) MAGICID ¶
func (_PoseidonSMT *PoseidonSMTCaller) MAGICID(opts *bind.CallOpts) (uint8, error)
MAGICID is a free data retrieval call binding the contract method 0xdf95574a.
Solidity: function MAGIC_ID() view returns(uint8)
func (*PoseidonSMTCaller) P ¶
P is a free data retrieval call binding the contract method 0x8b8fbd92.
Solidity: function P() view returns(uint256)
func (*PoseidonSMTCaller) ProxiableUUID ¶
func (_PoseidonSMT *PoseidonSMTCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*PoseidonSMTCaller) ROOTVALIDITY ¶
ROOTVALIDITY is a free data retrieval call binding the contract method 0xcffe9676.
Solidity: function ROOT_VALIDITY() view returns(uint256)
func (*PoseidonSMTCaller) Signer ¶
Signer is a free data retrieval call binding the contract method 0x238ac933.
Solidity: function signer() view returns(address)
func (*PoseidonSMTCaller) StateKeeper ¶
StateKeeper is a free data retrieval call binding the contract method 0xc3e6f8f9.
Solidity: function stateKeeper() view returns(address)
type PoseidonSMTCallerRaw ¶
type PoseidonSMTCallerRaw struct {
Contract *PoseidonSMTCaller // Generic read-only contract binding to access the raw methods on
}
PoseidonSMTCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PoseidonSMTCallerRaw) Call ¶
func (_PoseidonSMT *PoseidonSMTCallerRaw) 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 PoseidonSMTCallerSession ¶
type PoseidonSMTCallerSession struct { Contract *PoseidonSMTCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PoseidonSMTCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PoseidonSMTCallerSession) ChainName ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) ChainName() (string, error)
ChainName is a free data retrieval call binding the contract method 0x1c93b03a.
Solidity: function chainName() view returns(string)
func (*PoseidonSMTCallerSession) GetNodeByKey ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.
Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))
func (*PoseidonSMTCallerSession) GetNonce ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) GetNonce(methodId_ uint8) (*big.Int, error)
GetNonce is a free data retrieval call binding the contract method 0xf4fc6341.
Solidity: function getNonce(uint8 methodId_) view returns(uint256)
func (*PoseidonSMTCallerSession) GetProof ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.
Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))
func (*PoseidonSMTCallerSession) GetRoot ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) GetRoot() ([32]byte, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(bytes32)
func (*PoseidonSMTCallerSession) Implementation ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) Implementation() (common.Address, error)
Implementation is a free data retrieval call binding the contract method 0x5c60da1b.
Solidity: function implementation() view returns(address)
func (*PoseidonSMTCallerSession) IsRootLatest ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) IsRootLatest(root_ [32]byte) (bool, error)
IsRootLatest is a free data retrieval call binding the contract method 0x8492307f.
Solidity: function isRootLatest(bytes32 root_) view returns(bool)
func (*PoseidonSMTCallerSession) IsRootValid ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) IsRootValid(root_ [32]byte) (bool, error)
IsRootValid is a free data retrieval call binding the contract method 0x30ef41b4.
Solidity: function isRootValid(bytes32 root_) view returns(bool)
func (*PoseidonSMTCallerSession) MAGICID ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) MAGICID() (uint8, error)
MAGICID is a free data retrieval call binding the contract method 0xdf95574a.
Solidity: function MAGIC_ID() view returns(uint8)
func (*PoseidonSMTCallerSession) P ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) P() (*big.Int, error)
P is a free data retrieval call binding the contract method 0x8b8fbd92.
Solidity: function P() view returns(uint256)
func (*PoseidonSMTCallerSession) ProxiableUUID ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*PoseidonSMTCallerSession) ROOTVALIDITY ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) ROOTVALIDITY() (*big.Int, error)
ROOTVALIDITY is a free data retrieval call binding the contract method 0xcffe9676.
Solidity: function ROOT_VALIDITY() view returns(uint256)
func (*PoseidonSMTCallerSession) Signer ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) Signer() (common.Address, error)
Signer is a free data retrieval call binding the contract method 0x238ac933.
Solidity: function signer() view returns(address)
func (*PoseidonSMTCallerSession) StateKeeper ¶
func (_PoseidonSMT *PoseidonSMTCallerSession) StateKeeper() (common.Address, error)
StateKeeper is a free data retrieval call binding the contract method 0xc3e6f8f9.
Solidity: function stateKeeper() view returns(address)
type PoseidonSMTFilterer ¶
type PoseidonSMTFilterer struct {
// contains filtered or unexported fields
}
PoseidonSMTFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPoseidonSMTFilterer ¶
func NewPoseidonSMTFilterer(address common.Address, filterer bind.ContractFilterer) (*PoseidonSMTFilterer, error)
NewPoseidonSMTFilterer creates a new log filterer instance of PoseidonSMT, bound to a specific deployed contract.
func (*PoseidonSMTFilterer) FilterAdminChanged ¶
func (_PoseidonSMT *PoseidonSMTFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*PoseidonSMTAdminChangedIterator, error)
FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*PoseidonSMTFilterer) FilterBeaconUpgraded ¶
func (_PoseidonSMT *PoseidonSMTFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*PoseidonSMTBeaconUpgradedIterator, error)
FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*PoseidonSMTFilterer) FilterInitialized ¶
func (_PoseidonSMT *PoseidonSMTFilterer) FilterInitialized(opts *bind.FilterOpts) (*PoseidonSMTInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*PoseidonSMTFilterer) FilterRootUpdated ¶
func (_PoseidonSMT *PoseidonSMTFilterer) FilterRootUpdated(opts *bind.FilterOpts) (*PoseidonSMTRootUpdatedIterator, error)
FilterRootUpdated is a free log retrieval operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4.
Solidity: event RootUpdated(bytes32 root)
func (*PoseidonSMTFilterer) FilterUpgraded ¶
func (_PoseidonSMT *PoseidonSMTFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*PoseidonSMTUpgradedIterator, error)
FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*PoseidonSMTFilterer) ParseAdminChanged ¶
func (_PoseidonSMT *PoseidonSMTFilterer) ParseAdminChanged(log types.Log) (*PoseidonSMTAdminChanged, error)
ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*PoseidonSMTFilterer) ParseBeaconUpgraded ¶
func (_PoseidonSMT *PoseidonSMTFilterer) ParseBeaconUpgraded(log types.Log) (*PoseidonSMTBeaconUpgraded, error)
ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*PoseidonSMTFilterer) ParseInitialized ¶
func (_PoseidonSMT *PoseidonSMTFilterer) ParseInitialized(log types.Log) (*PoseidonSMTInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*PoseidonSMTFilterer) ParseRootUpdated ¶
func (_PoseidonSMT *PoseidonSMTFilterer) ParseRootUpdated(log types.Log) (*PoseidonSMTRootUpdated, error)
ParseRootUpdated is a log parse operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4.
Solidity: event RootUpdated(bytes32 root)
func (*PoseidonSMTFilterer) ParseUpgraded ¶
func (_PoseidonSMT *PoseidonSMTFilterer) ParseUpgraded(log types.Log) (*PoseidonSMTUpgraded, error)
ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*PoseidonSMTFilterer) WatchAdminChanged ¶
func (_PoseidonSMT *PoseidonSMTFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *PoseidonSMTAdminChanged) (event.Subscription, error)
WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*PoseidonSMTFilterer) WatchBeaconUpgraded ¶
func (_PoseidonSMT *PoseidonSMTFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *PoseidonSMTBeaconUpgraded, beacon []common.Address) (event.Subscription, error)
WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*PoseidonSMTFilterer) WatchInitialized ¶
func (_PoseidonSMT *PoseidonSMTFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *PoseidonSMTInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*PoseidonSMTFilterer) WatchRootUpdated ¶
func (_PoseidonSMT *PoseidonSMTFilterer) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *PoseidonSMTRootUpdated) (event.Subscription, error)
WatchRootUpdated is a free log subscription operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4.
Solidity: event RootUpdated(bytes32 root)
func (*PoseidonSMTFilterer) WatchUpgraded ¶
func (_PoseidonSMT *PoseidonSMTFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *PoseidonSMTUpgraded, implementation []common.Address) (event.Subscription, error)
WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
type PoseidonSMTInitialized ¶
type PoseidonSMTInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
PoseidonSMTInitialized represents a Initialized event raised by the PoseidonSMT contract.
type PoseidonSMTInitializedIterator ¶
type PoseidonSMTInitializedIterator struct { Event *PoseidonSMTInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoseidonSMTInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the PoseidonSMT contract.
func (*PoseidonSMTInitializedIterator) Close ¶
func (it *PoseidonSMTInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoseidonSMTInitializedIterator) Error ¶
func (it *PoseidonSMTInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoseidonSMTInitializedIterator) Next ¶
func (it *PoseidonSMTInitializedIterator) 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 PoseidonSMTRaw ¶
type PoseidonSMTRaw struct {
Contract *PoseidonSMT // Generic contract binding to access the raw methods on
}
PoseidonSMTRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PoseidonSMTRaw) Call ¶
func (_PoseidonSMT *PoseidonSMTRaw) 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 (*PoseidonSMTRaw) Transact ¶
func (_PoseidonSMT *PoseidonSMTRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PoseidonSMTRaw) Transfer ¶
func (_PoseidonSMT *PoseidonSMTRaw) 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 PoseidonSMTRootUpdated ¶
type PoseidonSMTRootUpdated struct { Root [32]byte Raw types.Log // Blockchain specific contextual infos }
PoseidonSMTRootUpdated represents a RootUpdated event raised by the PoseidonSMT contract.
type PoseidonSMTRootUpdatedIterator ¶
type PoseidonSMTRootUpdatedIterator struct { Event *PoseidonSMTRootUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoseidonSMTRootUpdatedIterator is returned from FilterRootUpdated and is used to iterate over the raw logs and unpacked data for RootUpdated events raised by the PoseidonSMT contract.
func (*PoseidonSMTRootUpdatedIterator) Close ¶
func (it *PoseidonSMTRootUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoseidonSMTRootUpdatedIterator) Error ¶
func (it *PoseidonSMTRootUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoseidonSMTRootUpdatedIterator) Next ¶
func (it *PoseidonSMTRootUpdatedIterator) 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 PoseidonSMTSession ¶
type PoseidonSMTSession struct { Contract *PoseidonSMT // 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 }
PoseidonSMTSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PoseidonSMTSession) Add ¶
func (_PoseidonSMT *PoseidonSMTSession) Add(keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0xd1de592a.
Solidity: function add(bytes32 keyOfElement_, bytes32 element_) returns()
func (*PoseidonSMTSession) ChainName ¶
func (_PoseidonSMT *PoseidonSMTSession) ChainName() (string, error)
ChainName is a free data retrieval call binding the contract method 0x1c93b03a.
Solidity: function chainName() view returns(string)
func (*PoseidonSMTSession) ChangeSigner ¶
func (_PoseidonSMT *PoseidonSMTSession) ChangeSigner(newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)
ChangeSigner is a paid mutator transaction binding the contract method 0x497f6959.
Solidity: function changeSigner(bytes newSignerPubKey_, bytes signature_) returns()
func (*PoseidonSMTSession) GetNodeByKey ¶
func (_PoseidonSMT *PoseidonSMTSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)
GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.
Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))
func (*PoseidonSMTSession) GetNonce ¶
func (_PoseidonSMT *PoseidonSMTSession) GetNonce(methodId_ uint8) (*big.Int, error)
GetNonce is a free data retrieval call binding the contract method 0xf4fc6341.
Solidity: function getNonce(uint8 methodId_) view returns(uint256)
func (*PoseidonSMTSession) GetProof ¶
func (_PoseidonSMT *PoseidonSMTSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)
GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.
Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))
func (*PoseidonSMTSession) GetRoot ¶
func (_PoseidonSMT *PoseidonSMTSession) GetRoot() ([32]byte, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(bytes32)
func (*PoseidonSMTSession) Implementation ¶
func (_PoseidonSMT *PoseidonSMTSession) Implementation() (common.Address, error)
Implementation is a free data retrieval call binding the contract method 0x5c60da1b.
Solidity: function implementation() view returns(address)
func (*PoseidonSMTSession) IsRootLatest ¶
func (_PoseidonSMT *PoseidonSMTSession) IsRootLatest(root_ [32]byte) (bool, error)
IsRootLatest is a free data retrieval call binding the contract method 0x8492307f.
Solidity: function isRootLatest(bytes32 root_) view returns(bool)
func (*PoseidonSMTSession) IsRootValid ¶
func (_PoseidonSMT *PoseidonSMTSession) IsRootValid(root_ [32]byte) (bool, error)
IsRootValid is a free data retrieval call binding the contract method 0x30ef41b4.
Solidity: function isRootValid(bytes32 root_) view returns(bool)
func (*PoseidonSMTSession) MAGICID ¶
func (_PoseidonSMT *PoseidonSMTSession) MAGICID() (uint8, error)
MAGICID is a free data retrieval call binding the contract method 0xdf95574a.
Solidity: function MAGIC_ID() view returns(uint8)
func (*PoseidonSMTSession) P ¶
func (_PoseidonSMT *PoseidonSMTSession) P() (*big.Int, error)
P is a free data retrieval call binding the contract method 0x8b8fbd92.
Solidity: function P() view returns(uint256)
func (*PoseidonSMTSession) PoseidonSMTInit ¶
func (_PoseidonSMT *PoseidonSMTSession) PoseidonSMTInit(signer_ common.Address, chainName_ string, stateKeeper_ common.Address, treeHeight_ *big.Int) (*types.Transaction, error)
PoseidonSMTInit is a paid mutator transaction binding the contract method 0x897f0f79.
Solidity: function __PoseidonSMT_init(address signer_, string chainName_, address stateKeeper_, uint256 treeHeight_) returns()
func (*PoseidonSMTSession) ProxiableUUID ¶
func (_PoseidonSMT *PoseidonSMTSession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*PoseidonSMTSession) ROOTVALIDITY ¶
func (_PoseidonSMT *PoseidonSMTSession) ROOTVALIDITY() (*big.Int, error)
ROOTVALIDITY is a free data retrieval call binding the contract method 0xcffe9676.
Solidity: function ROOT_VALIDITY() view returns(uint256)
func (*PoseidonSMTSession) Remove ¶
func (_PoseidonSMT *PoseidonSMTSession) Remove(keyOfElement_ [32]byte) (*types.Transaction, error)
Remove is a paid mutator transaction binding the contract method 0x95bc2673.
Solidity: function remove(bytes32 keyOfElement_) returns()
func (*PoseidonSMTSession) Signer ¶
func (_PoseidonSMT *PoseidonSMTSession) Signer() (common.Address, error)
Signer is a free data retrieval call binding the contract method 0x238ac933.
Solidity: function signer() view returns(address)
func (*PoseidonSMTSession) StateKeeper ¶
func (_PoseidonSMT *PoseidonSMTSession) StateKeeper() (common.Address, error)
StateKeeper is a free data retrieval call binding the contract method 0xc3e6f8f9.
Solidity: function stateKeeper() view returns(address)
func (*PoseidonSMTSession) Update ¶
func (_PoseidonSMT *PoseidonSMTSession) Update(keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)
Update is a paid mutator transaction binding the contract method 0x13f57c3e.
Solidity: function update(bytes32 keyOfElement_, bytes32 newElement_) returns()
func (*PoseidonSMTSession) UpgradeTo ¶
func (_PoseidonSMT *PoseidonSMTSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*PoseidonSMTSession) UpgradeToAndCall ¶
func (_PoseidonSMT *PoseidonSMTSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*PoseidonSMTSession) UpgradeToAndCallWithProof ¶
func (_PoseidonSMT *PoseidonSMTSession) UpgradeToAndCallWithProof(newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)
UpgradeToAndCallWithProof is a paid mutator transaction binding the contract method 0xbf2c6db7.
Solidity: function upgradeToAndCallWithProof(address newImplementation_, bytes proof_, bytes data_) returns()
func (*PoseidonSMTSession) UpgradeToWithProof ¶
func (_PoseidonSMT *PoseidonSMTSession) UpgradeToWithProof(newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)
UpgradeToWithProof is a paid mutator transaction binding the contract method 0x628543ab.
Solidity: function upgradeToWithProof(address newImplementation_, bytes proof_) returns()
type PoseidonSMTTransactor ¶
type PoseidonSMTTransactor struct {
// contains filtered or unexported fields
}
PoseidonSMTTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPoseidonSMTTransactor ¶
func NewPoseidonSMTTransactor(address common.Address, transactor bind.ContractTransactor) (*PoseidonSMTTransactor, error)
NewPoseidonSMTTransactor creates a new write-only instance of PoseidonSMT, bound to a specific deployed contract.
func (*PoseidonSMTTransactor) Add ¶
func (_PoseidonSMT *PoseidonSMTTransactor) Add(opts *bind.TransactOpts, keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0xd1de592a.
Solidity: function add(bytes32 keyOfElement_, bytes32 element_) returns()
func (*PoseidonSMTTransactor) ChangeSigner ¶
func (_PoseidonSMT *PoseidonSMTTransactor) ChangeSigner(opts *bind.TransactOpts, newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)
ChangeSigner is a paid mutator transaction binding the contract method 0x497f6959.
Solidity: function changeSigner(bytes newSignerPubKey_, bytes signature_) returns()
func (*PoseidonSMTTransactor) PoseidonSMTInit ¶
func (_PoseidonSMT *PoseidonSMTTransactor) PoseidonSMTInit(opts *bind.TransactOpts, signer_ common.Address, chainName_ string, stateKeeper_ common.Address, treeHeight_ *big.Int) (*types.Transaction, error)
PoseidonSMTInit is a paid mutator transaction binding the contract method 0x897f0f79.
Solidity: function __PoseidonSMT_init(address signer_, string chainName_, address stateKeeper_, uint256 treeHeight_) returns()
func (*PoseidonSMTTransactor) Remove ¶
func (_PoseidonSMT *PoseidonSMTTransactor) Remove(opts *bind.TransactOpts, keyOfElement_ [32]byte) (*types.Transaction, error)
Remove is a paid mutator transaction binding the contract method 0x95bc2673.
Solidity: function remove(bytes32 keyOfElement_) returns()
func (*PoseidonSMTTransactor) Update ¶
func (_PoseidonSMT *PoseidonSMTTransactor) Update(opts *bind.TransactOpts, keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)
Update is a paid mutator transaction binding the contract method 0x13f57c3e.
Solidity: function update(bytes32 keyOfElement_, bytes32 newElement_) returns()
func (*PoseidonSMTTransactor) UpgradeTo ¶
func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*PoseidonSMTTransactor) UpgradeToAndCall ¶
func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*PoseidonSMTTransactor) UpgradeToAndCallWithProof ¶
func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeToAndCallWithProof(opts *bind.TransactOpts, newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)
UpgradeToAndCallWithProof is a paid mutator transaction binding the contract method 0xbf2c6db7.
Solidity: function upgradeToAndCallWithProof(address newImplementation_, bytes proof_, bytes data_) returns()
func (*PoseidonSMTTransactor) UpgradeToWithProof ¶
func (_PoseidonSMT *PoseidonSMTTransactor) UpgradeToWithProof(opts *bind.TransactOpts, newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)
UpgradeToWithProof is a paid mutator transaction binding the contract method 0x628543ab.
Solidity: function upgradeToWithProof(address newImplementation_, bytes proof_) returns()
type PoseidonSMTTransactorRaw ¶
type PoseidonSMTTransactorRaw struct {
Contract *PoseidonSMTTransactor // Generic write-only contract binding to access the raw methods on
}
PoseidonSMTTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PoseidonSMTTransactorRaw) Transact ¶
func (_PoseidonSMT *PoseidonSMTTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PoseidonSMTTransactorRaw) Transfer ¶
func (_PoseidonSMT *PoseidonSMTTransactorRaw) 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 PoseidonSMTTransactorSession ¶
type PoseidonSMTTransactorSession struct { Contract *PoseidonSMTTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PoseidonSMTTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PoseidonSMTTransactorSession) Add ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) Add(keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0xd1de592a.
Solidity: function add(bytes32 keyOfElement_, bytes32 element_) returns()
func (*PoseidonSMTTransactorSession) ChangeSigner ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) ChangeSigner(newSignerPubKey_ []byte, signature_ []byte) (*types.Transaction, error)
ChangeSigner is a paid mutator transaction binding the contract method 0x497f6959.
Solidity: function changeSigner(bytes newSignerPubKey_, bytes signature_) returns()
func (*PoseidonSMTTransactorSession) PoseidonSMTInit ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) PoseidonSMTInit(signer_ common.Address, chainName_ string, stateKeeper_ common.Address, treeHeight_ *big.Int) (*types.Transaction, error)
PoseidonSMTInit is a paid mutator transaction binding the contract method 0x897f0f79.
Solidity: function __PoseidonSMT_init(address signer_, string chainName_, address stateKeeper_, uint256 treeHeight_) returns()
func (*PoseidonSMTTransactorSession) Remove ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) Remove(keyOfElement_ [32]byte) (*types.Transaction, error)
Remove is a paid mutator transaction binding the contract method 0x95bc2673.
Solidity: function remove(bytes32 keyOfElement_) returns()
func (*PoseidonSMTTransactorSession) Update ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) Update(keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)
Update is a paid mutator transaction binding the contract method 0x13f57c3e.
Solidity: function update(bytes32 keyOfElement_, bytes32 newElement_) returns()
func (*PoseidonSMTTransactorSession) UpgradeTo ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*PoseidonSMTTransactorSession) UpgradeToAndCall ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*PoseidonSMTTransactorSession) UpgradeToAndCallWithProof ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeToAndCallWithProof(newImplementation_ common.Address, proof_ []byte, data_ []byte) (*types.Transaction, error)
UpgradeToAndCallWithProof is a paid mutator transaction binding the contract method 0xbf2c6db7.
Solidity: function upgradeToAndCallWithProof(address newImplementation_, bytes proof_, bytes data_) returns()
func (*PoseidonSMTTransactorSession) UpgradeToWithProof ¶
func (_PoseidonSMT *PoseidonSMTTransactorSession) UpgradeToWithProof(newImplementation_ common.Address, proof_ []byte) (*types.Transaction, error)
UpgradeToWithProof is a paid mutator transaction binding the contract method 0x628543ab.
Solidity: function upgradeToWithProof(address newImplementation_, bytes proof_) returns()
type PoseidonSMTUpgraded ¶
type PoseidonSMTUpgraded struct { Implementation common.Address Raw types.Log // Blockchain specific contextual infos }
PoseidonSMTUpgraded represents a Upgraded event raised by the PoseidonSMT contract.
type PoseidonSMTUpgradedIterator ¶
type PoseidonSMTUpgradedIterator struct { Event *PoseidonSMTUpgraded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoseidonSMTUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the PoseidonSMT contract.
func (*PoseidonSMTUpgradedIterator) Close ¶
func (it *PoseidonSMTUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoseidonSMTUpgradedIterator) Error ¶
func (it *PoseidonSMTUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoseidonSMTUpgradedIterator) Next ¶
func (it *PoseidonSMTUpgradedIterator) 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.