Documentation
¶
Index ¶
- Variables
- type Depositcontract
- type DepositcontractCaller
- func (_Depositcontract *DepositcontractCaller) DepositCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Depositcontract *DepositcontractCaller) GetDepositRoot(opts *bind.CallOpts) ([32]byte, error)
- func (_Depositcontract *DepositcontractCaller) GetLeafValue(opts *bind.CallOpts, leafType uint8, originNetwork uint32, ...) ([32]byte, error)
- func (_Depositcontract *DepositcontractCaller) VerifyMerkleProof(opts *bind.CallOpts, leafHash [32]byte, smtProof [32][32]byte, index uint32, ...) (bool, error)
- type DepositcontractCallerRaw
- type DepositcontractCallerSession
- func (_Depositcontract *DepositcontractCallerSession) DepositCount() (*big.Int, error)
- func (_Depositcontract *DepositcontractCallerSession) GetDepositRoot() ([32]byte, error)
- func (_Depositcontract *DepositcontractCallerSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, ...) ([32]byte, error)
- func (_Depositcontract *DepositcontractCallerSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)
- type DepositcontractFilterer
- func (_Depositcontract *DepositcontractFilterer) FilterInitialized(opts *bind.FilterOpts) (*DepositcontractInitializedIterator, error)
- func (_Depositcontract *DepositcontractFilterer) ParseInitialized(log types.Log) (*DepositcontractInitialized, error)
- func (_Depositcontract *DepositcontractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *DepositcontractInitialized) (event.Subscription, error)
- type DepositcontractInitialized
- type DepositcontractInitializedIterator
- type DepositcontractRaw
- func (_Depositcontract *DepositcontractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Depositcontract *DepositcontractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Depositcontract *DepositcontractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DepositcontractSession
- func (_Depositcontract *DepositcontractSession) DepositCount() (*big.Int, error)
- func (_Depositcontract *DepositcontractSession) GetDepositRoot() ([32]byte, error)
- func (_Depositcontract *DepositcontractSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, ...) ([32]byte, error)
- func (_Depositcontract *DepositcontractSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)
- type DepositcontractTransactor
- type DepositcontractTransactorRaw
- type DepositcontractTransactorSession
Constants ¶
This section is empty.
Variables ¶
var DepositcontractABI = DepositcontractMetaData.ABI
DepositcontractABI is the input ABI used to generate the binding from. Deprecated: Use DepositcontractMetaData.ABI instead.
var DepositcontractBin = DepositcontractMetaData.Bin
DepositcontractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use DepositcontractMetaData.Bin instead.
var DepositcontractMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"MerkleTreeFull\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"depositCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDepositRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"leafType\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"metadataHash\",\"type\":\"bytes32\"}],\"name\":\"getLeafValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"leafHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"verifyMerkleProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
Bin: "0x6080604052348015600e575f5ffd5b506104998061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80632dfdf0b51461004e5780633ae050471461006a5780633e19704314610072578063fb57083414610154575b5f5ffd5b61005760535481565b6040519081526020015b60405180910390f35b610057610177565b610057610080366004610371565b6040517fff0000000000000000000000000000000000000000000000000000000000000060f889901b1660208201527fffffffff0000000000000000000000000000000000000000000000000000000060e088811b821660218401527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606089811b821660258601529188901b909216603984015285901b16603d82015260518101839052607181018290525f90609101604051602081830303815290604052805190602001209050979650505050505050565b6101676101623660046103ec565b610268565b6040519015158152602001610061565b6053545f90819081805b602081101561025f578083901c6001166001036101de57603381602081106101ab576101ab610436565b0154604080516020810192909252810185905260600160405160208183030381529060405280519060200120935061020b565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b6040805160208101849052908101839052606001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209150600101610181565b50919392505050565b5f84815b602081101561032a57600163ffffffff8616821c811690036102d75785816020811061029a5761029a610436565b6020020135826040516020016102ba929190918252602082015260400190565b604051602081830303815290604052805190602001209150610322565b818682602081106102ea576102ea610436565b6020020135604051602001610309929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b60010161026c565b50909114949350505050565b803563ffffffff81168114610349575f5ffd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610349575f5ffd5b5f5f5f5f5f5f5f60e0888a031215610387575f5ffd5b873560ff81168114610397575f5ffd5b96506103a560208901610336565b95506103b36040890161034e565b94506103c160608901610336565b93506103cf6080890161034e565b9699959850939692959460a0840135945060c09093013592915050565b5f5f5f5f6104608587031215610400575f5ffd5b84359350610420850186811115610415575f5ffd5b60208601935061042481610336565b94979396509394610440013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffdfea2646970667358221220a231b21afb9cc48d1e8b5f6aac8785f72f300605004a632c78763b803608994164736f6c634300081c0033",
}
DepositcontractMetaData contains all meta data concerning the Depositcontract contract.
Functions ¶
This section is empty.
Types ¶
type Depositcontract ¶
type Depositcontract struct { DepositcontractCaller // Read-only binding to the contract DepositcontractTransactor // Write-only binding to the contract DepositcontractFilterer // Log filterer for contract events }
Depositcontract is an auto generated Go binding around an Ethereum contract.
func DeployDepositcontract ¶
func DeployDepositcontract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Depositcontract, error)
DeployDepositcontract deploys a new Ethereum contract, binding an instance of Depositcontract to it.
func NewDepositcontract ¶
func NewDepositcontract(address common.Address, backend bind.ContractBackend) (*Depositcontract, error)
NewDepositcontract creates a new instance of Depositcontract, bound to a specific deployed contract.
type DepositcontractCaller ¶
type DepositcontractCaller struct {
// contains filtered or unexported fields
}
DepositcontractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDepositcontractCaller ¶
func NewDepositcontractCaller(address common.Address, caller bind.ContractCaller) (*DepositcontractCaller, error)
NewDepositcontractCaller creates a new read-only instance of Depositcontract, bound to a specific deployed contract.
func (*DepositcontractCaller) DepositCount ¶
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint256)
func (*DepositcontractCaller) GetDepositRoot ¶
func (_Depositcontract *DepositcontractCaller) GetDepositRoot(opts *bind.CallOpts) ([32]byte, error)
GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.
Solidity: function getDepositRoot() view returns(bytes32)
func (*DepositcontractCaller) GetLeafValue ¶
func (_Depositcontract *DepositcontractCaller) GetLeafValue(opts *bind.CallOpts, leafType uint8, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) ([32]byte, error)
GetLeafValue is a free data retrieval call binding the contract method 0x3e197043.
Solidity: function getLeafValue(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) pure returns(bytes32)
func (*DepositcontractCaller) VerifyMerkleProof ¶
func (_Depositcontract *DepositcontractCaller) VerifyMerkleProof(opts *bind.CallOpts, leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)
VerifyMerkleProof is a free data retrieval call binding the contract method 0xfb570834.
Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[32] smtProof, uint32 index, bytes32 root) pure returns(bool)
type DepositcontractCallerRaw ¶
type DepositcontractCallerRaw struct {
Contract *DepositcontractCaller // Generic read-only contract binding to access the raw methods on
}
DepositcontractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DepositcontractCallerRaw) Call ¶
func (_Depositcontract *DepositcontractCallerRaw) 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 DepositcontractCallerSession ¶
type DepositcontractCallerSession struct { Contract *DepositcontractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DepositcontractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DepositcontractCallerSession) DepositCount ¶
func (_Depositcontract *DepositcontractCallerSession) DepositCount() (*big.Int, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint256)
func (*DepositcontractCallerSession) GetDepositRoot ¶
func (_Depositcontract *DepositcontractCallerSession) GetDepositRoot() ([32]byte, error)
GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.
Solidity: function getDepositRoot() view returns(bytes32)
func (*DepositcontractCallerSession) GetLeafValue ¶
func (_Depositcontract *DepositcontractCallerSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) ([32]byte, error)
GetLeafValue is a free data retrieval call binding the contract method 0x3e197043.
Solidity: function getLeafValue(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) pure returns(bytes32)
func (*DepositcontractCallerSession) VerifyMerkleProof ¶
func (_Depositcontract *DepositcontractCallerSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)
VerifyMerkleProof is a free data retrieval call binding the contract method 0xfb570834.
Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[32] smtProof, uint32 index, bytes32 root) pure returns(bool)
type DepositcontractFilterer ¶
type DepositcontractFilterer struct {
// contains filtered or unexported fields
}
DepositcontractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDepositcontractFilterer ¶
func NewDepositcontractFilterer(address common.Address, filterer bind.ContractFilterer) (*DepositcontractFilterer, error)
NewDepositcontractFilterer creates a new log filterer instance of Depositcontract, bound to a specific deployed contract.
func (*DepositcontractFilterer) FilterInitialized ¶
func (_Depositcontract *DepositcontractFilterer) FilterInitialized(opts *bind.FilterOpts) (*DepositcontractInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*DepositcontractFilterer) ParseInitialized ¶
func (_Depositcontract *DepositcontractFilterer) ParseInitialized(log types.Log) (*DepositcontractInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*DepositcontractFilterer) WatchInitialized ¶
func (_Depositcontract *DepositcontractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *DepositcontractInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
type DepositcontractInitialized ¶
type DepositcontractInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
DepositcontractInitialized represents a Initialized event raised by the Depositcontract contract.
type DepositcontractInitializedIterator ¶
type DepositcontractInitializedIterator struct { Event *DepositcontractInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DepositcontractInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Depositcontract contract.
func (*DepositcontractInitializedIterator) Close ¶
func (it *DepositcontractInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DepositcontractInitializedIterator) Error ¶
func (it *DepositcontractInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DepositcontractInitializedIterator) Next ¶
func (it *DepositcontractInitializedIterator) 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 DepositcontractRaw ¶
type DepositcontractRaw struct {
Contract *Depositcontract // Generic contract binding to access the raw methods on
}
DepositcontractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DepositcontractRaw) Call ¶
func (_Depositcontract *DepositcontractRaw) 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 (*DepositcontractRaw) Transact ¶
func (_Depositcontract *DepositcontractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DepositcontractRaw) Transfer ¶
func (_Depositcontract *DepositcontractRaw) 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 DepositcontractSession ¶
type DepositcontractSession struct { Contract *Depositcontract // 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 }
DepositcontractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DepositcontractSession) DepositCount ¶
func (_Depositcontract *DepositcontractSession) DepositCount() (*big.Int, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint256)
func (*DepositcontractSession) GetDepositRoot ¶
func (_Depositcontract *DepositcontractSession) GetDepositRoot() ([32]byte, error)
GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.
Solidity: function getDepositRoot() view returns(bytes32)
func (*DepositcontractSession) GetLeafValue ¶
func (_Depositcontract *DepositcontractSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) ([32]byte, error)
GetLeafValue is a free data retrieval call binding the contract method 0x3e197043.
Solidity: function getLeafValue(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) pure returns(bytes32)
func (*DepositcontractSession) VerifyMerkleProof ¶
func (_Depositcontract *DepositcontractSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)
VerifyMerkleProof is a free data retrieval call binding the contract method 0xfb570834.
Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[32] smtProof, uint32 index, bytes32 root) pure returns(bool)
type DepositcontractTransactor ¶
type DepositcontractTransactor struct {
// contains filtered or unexported fields
}
DepositcontractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDepositcontractTransactor ¶
func NewDepositcontractTransactor(address common.Address, transactor bind.ContractTransactor) (*DepositcontractTransactor, error)
NewDepositcontractTransactor creates a new write-only instance of Depositcontract, bound to a specific deployed contract.
type DepositcontractTransactorRaw ¶
type DepositcontractTransactorRaw struct {
Contract *DepositcontractTransactor // Generic write-only contract binding to access the raw methods on
}
DepositcontractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DepositcontractTransactorRaw) Transact ¶
func (_Depositcontract *DepositcontractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DepositcontractTransactorRaw) Transfer ¶
func (_Depositcontract *DepositcontractTransactorRaw) 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 DepositcontractTransactorSession ¶
type DepositcontractTransactorSession struct { Contract *DepositcontractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DepositcontractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.