Documentation ¶
Index ¶
- Variables
- type Depositcontractmock
- type DepositcontractmockCaller
- func (_Depositcontractmock *DepositcontractmockCaller) DepositCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Depositcontractmock *DepositcontractmockCaller) GetDepositRoot(opts *bind.CallOpts) ([32]byte, error)
- func (_Depositcontractmock *DepositcontractmockCaller) GetLeafValue(opts *bind.CallOpts, leafType uint8, originNetwork uint32, ...) ([32]byte, error)
- func (_Depositcontractmock *DepositcontractmockCaller) VerifyMerkleProof(opts *bind.CallOpts, leafHash [32]byte, smtProof [32][32]byte, index uint32, ...) (bool, error)
- type DepositcontractmockCallerRaw
- type DepositcontractmockCallerSession
- func (_Depositcontractmock *DepositcontractmockCallerSession) DepositCount() (*big.Int, error)
- func (_Depositcontractmock *DepositcontractmockCallerSession) GetDepositRoot() ([32]byte, error)
- func (_Depositcontractmock *DepositcontractmockCallerSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, ...) ([32]byte, error)
- func (_Depositcontractmock *DepositcontractmockCallerSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)
- type DepositcontractmockFilterer
- func (_Depositcontractmock *DepositcontractmockFilterer) FilterInitialized(opts *bind.FilterOpts) (*DepositcontractmockInitializedIterator, error)
- func (_Depositcontractmock *DepositcontractmockFilterer) ParseInitialized(log types.Log) (*DepositcontractmockInitialized, error)
- func (_Depositcontractmock *DepositcontractmockFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *DepositcontractmockInitialized) (event.Subscription, error)
- type DepositcontractmockInitialized
- type DepositcontractmockInitializedIterator
- type DepositcontractmockRaw
- func (_Depositcontractmock *DepositcontractmockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Depositcontractmock *DepositcontractmockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Depositcontractmock *DepositcontractmockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DepositcontractmockSession
- func (_Depositcontractmock *DepositcontractmockSession) Deposit(leafType uint8, originNetwork uint32, originTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Depositcontractmock *DepositcontractmockSession) DepositCount() (*big.Int, error)
- func (_Depositcontractmock *DepositcontractmockSession) GetDepositRoot() ([32]byte, error)
- func (_Depositcontractmock *DepositcontractmockSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, ...) ([32]byte, error)
- func (_Depositcontractmock *DepositcontractmockSession) Initialize() (*types.Transaction, error)
- func (_Depositcontractmock *DepositcontractmockSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)
- type DepositcontractmockTransactor
- type DepositcontractmockTransactorRaw
- type DepositcontractmockTransactorSession
Constants ¶
This section is empty.
Variables ¶
var DepositcontractmockABI = DepositcontractmockMetaData.ABI
DepositcontractmockABI is the input ABI used to generate the binding from. Deprecated: Use DepositcontractmockMetaData.ABI instead.
var DepositcontractmockBin = DepositcontractmockMetaData.Bin
DepositcontractmockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use DepositcontractmockMetaData.Bin instead.
var DepositcontractmockMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"MerkleTreeFull\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"leafType\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"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\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"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\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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: "0x608060405234801561001057600080fd5b5061001961001e565b61012b565b600054610100900460ff161580801561003e5750600054600160ff909116105b806100585750303b158015610058575060005460ff166001145b6100bf5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff1916600117905580156100e2576000805461ff0019166101001790555b8015610128576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b610a2e8061013a6000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80638129fc1c116100505780638129fc1c1461017e57806382c0190214610188578063fb5708341461019b57600080fd5b80632dfdf0b5146100775780633ae05047146100935780633e1970431461009b575b600080fd5b61008060535481565b6040519081526020015b60405180910390f35b6100806101be565b6100806100a936600461071d565b6040517fff0000000000000000000000000000000000000000000000000000000000000060f889901b1660208201527fffffffff0000000000000000000000000000000000000000000000000000000060e088811b821660218401527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606089811b821660258601529188901b909216603984015285901b16603d8201526051810183905260718101829052600090609101604051602081830303815290604052805190602001209050979650505050505050565b61018661029b565b005b61018661019636600461071d565b610429565b6101ae6101a936600461079d565b610504565b604051901515815260200161008a565b605354600090819081805b6020811015610292578083901c60011660010361022657603381602081106101f3576101f36107eb565b01546040805160208101929092528101859052606001604051602081830303815290604052805190602001209350610253565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b6040805160208101849052908101839052606001604051602081830303815290604052805190602001209150808061028a90610849565b9150506101c9565b50919392505050565b600054610100900460ff16158080156102bb5750600054600160ff909116105b806102d55750303b1580156102d5575060005460ff166001145b610365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840160405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905580156103c357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b801561042657600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b604080517fff0000000000000000000000000000000000000000000000000000000000000060f88a901b166020808301919091527fffffffff0000000000000000000000000000000000000000000000000000000060e08a811b821660218501527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608b811b82166025870152918a901b909216603985015287901b16603d83015260518201859052607180830185905283518084039091018152609190920190925280519101206104fb906105dd565b50505050505050565b600084815b60208110156105d157600163ffffffff8616821c8116900361057457858160208110610537576105376107eb565b602002013582604051602001610557929190918252602082015260400190565b6040516020818303038152906040528051906020012091506105bf565b81868260208110610587576105876107eb565b60200201356040516020016105a6929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b806105c981610849565b915050610509565b50909114949350505050565b8060016105ec602060026109a3565b6105f691906109b6565b60535410610630576040517fef5ccf6600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060536000815461064190610849565b9182905550905060005b60208110156106d2578082901c60011660010361067e578260338260208110610676576106766107eb565b015550505050565b60338160208110610691576106916107eb565b0154604080516020810192909252810184905260600160405160208183030381529060405280519060200120925080806106ca90610849565b91505061064b565b506106db6109c9565b505050565b803563ffffffff811681146106f457600080fd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146106f457600080fd5b600080600080600080600060e0888a03121561073857600080fd5b873560ff8116811461074957600080fd5b9650610757602089016106e0565b9550610765604089016106f9565b9450610773606089016106e0565b9350610781608089016106f9565b925060a0880135915060c0880135905092959891949750929550565b60008060008061046085870312156107b457600080fd5b843593506104208501868111156107ca57600080fd5b6020860193506107d9816106e0565b94979396509394610440013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361087a5761087a61081a565b5060010190565b600181815b808511156108da57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156108c0576108c061081a565b808516156108cd57918102915b93841c9390800290610886565b509250929050565b6000826108f15750600161099d565b816108fe5750600061099d565b8160018114610914576002811461091e5761093a565b600191505061099d565b60ff84111561092f5761092f61081a565b50506001821b61099d565b5060208310610133831016604e8410600b841016171561095d575081810a61099d565b6109678383610881565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156109995761099961081a565b0290505b92915050565b60006109af83836108e2565b9392505050565b8181038181111561099d5761099d61081a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fdfea2646970667358221220360f261765aedc2f5224ab5fb0945284dd4be667a3fa24a3ebb873c0ef28354464736f6c63430008140033",
}
DepositcontractmockMetaData contains all meta data concerning the Depositcontractmock contract.
Functions ¶
This section is empty.
Types ¶
type Depositcontractmock ¶
type Depositcontractmock struct { DepositcontractmockCaller // Read-only binding to the contract DepositcontractmockTransactor // Write-only binding to the contract DepositcontractmockFilterer // Log filterer for contract events }
Depositcontractmock is an auto generated Go binding around an Ethereum contract.
func DeployDepositcontractmock ¶
func DeployDepositcontractmock(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Depositcontractmock, error)
DeployDepositcontractmock deploys a new Ethereum contract, binding an instance of Depositcontractmock to it.
func NewDepositcontractmock ¶
func NewDepositcontractmock(address common.Address, backend bind.ContractBackend) (*Depositcontractmock, error)
NewDepositcontractmock creates a new instance of Depositcontractmock, bound to a specific deployed contract.
type DepositcontractmockCaller ¶
type DepositcontractmockCaller struct {
// contains filtered or unexported fields
}
DepositcontractmockCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDepositcontractmockCaller ¶
func NewDepositcontractmockCaller(address common.Address, caller bind.ContractCaller) (*DepositcontractmockCaller, error)
NewDepositcontractmockCaller creates a new read-only instance of Depositcontractmock, bound to a specific deployed contract.
func (*DepositcontractmockCaller) DepositCount ¶
func (_Depositcontractmock *DepositcontractmockCaller) DepositCount(opts *bind.CallOpts) (*big.Int, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint256)
func (*DepositcontractmockCaller) GetDepositRoot ¶
func (_Depositcontractmock *DepositcontractmockCaller) 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 (*DepositcontractmockCaller) GetLeafValue ¶
func (_Depositcontractmock *DepositcontractmockCaller) 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 (*DepositcontractmockCaller) VerifyMerkleProof ¶
func (_Depositcontractmock *DepositcontractmockCaller) 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 DepositcontractmockCallerRaw ¶
type DepositcontractmockCallerRaw struct {
Contract *DepositcontractmockCaller // Generic read-only contract binding to access the raw methods on
}
DepositcontractmockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DepositcontractmockCallerRaw) Call ¶
func (_Depositcontractmock *DepositcontractmockCallerRaw) 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 DepositcontractmockCallerSession ¶
type DepositcontractmockCallerSession struct { Contract *DepositcontractmockCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DepositcontractmockCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DepositcontractmockCallerSession) DepositCount ¶
func (_Depositcontractmock *DepositcontractmockCallerSession) DepositCount() (*big.Int, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint256)
func (*DepositcontractmockCallerSession) GetDepositRoot ¶
func (_Depositcontractmock *DepositcontractmockCallerSession) GetDepositRoot() ([32]byte, error)
GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.
Solidity: function getDepositRoot() view returns(bytes32)
func (*DepositcontractmockCallerSession) GetLeafValue ¶
func (_Depositcontractmock *DepositcontractmockCallerSession) 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 (*DepositcontractmockCallerSession) VerifyMerkleProof ¶
func (_Depositcontractmock *DepositcontractmockCallerSession) 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 DepositcontractmockFilterer ¶
type DepositcontractmockFilterer struct {
// contains filtered or unexported fields
}
DepositcontractmockFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDepositcontractmockFilterer ¶
func NewDepositcontractmockFilterer(address common.Address, filterer bind.ContractFilterer) (*DepositcontractmockFilterer, error)
NewDepositcontractmockFilterer creates a new log filterer instance of Depositcontractmock, bound to a specific deployed contract.
func (*DepositcontractmockFilterer) FilterInitialized ¶
func (_Depositcontractmock *DepositcontractmockFilterer) FilterInitialized(opts *bind.FilterOpts) (*DepositcontractmockInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*DepositcontractmockFilterer) ParseInitialized ¶
func (_Depositcontractmock *DepositcontractmockFilterer) ParseInitialized(log types.Log) (*DepositcontractmockInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*DepositcontractmockFilterer) WatchInitialized ¶
func (_Depositcontractmock *DepositcontractmockFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *DepositcontractmockInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
type DepositcontractmockInitialized ¶
type DepositcontractmockInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
DepositcontractmockInitialized represents a Initialized event raised by the Depositcontractmock contract.
type DepositcontractmockInitializedIterator ¶
type DepositcontractmockInitializedIterator struct { Event *DepositcontractmockInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DepositcontractmockInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Depositcontractmock contract.
func (*DepositcontractmockInitializedIterator) Close ¶
func (it *DepositcontractmockInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DepositcontractmockInitializedIterator) Error ¶
func (it *DepositcontractmockInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DepositcontractmockInitializedIterator) Next ¶
func (it *DepositcontractmockInitializedIterator) 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 DepositcontractmockRaw ¶
type DepositcontractmockRaw struct {
Contract *Depositcontractmock // Generic contract binding to access the raw methods on
}
DepositcontractmockRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DepositcontractmockRaw) Call ¶
func (_Depositcontractmock *DepositcontractmockRaw) 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 (*DepositcontractmockRaw) Transact ¶
func (_Depositcontractmock *DepositcontractmockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DepositcontractmockRaw) Transfer ¶
func (_Depositcontractmock *DepositcontractmockRaw) 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 DepositcontractmockSession ¶
type DepositcontractmockSession struct { Contract *Depositcontractmock // 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 }
DepositcontractmockSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DepositcontractmockSession) Deposit ¶
func (_Depositcontractmock *DepositcontractmockSession) Deposit(leafType uint8, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x82c01902.
Solidity: function deposit(uint8 leafType, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) returns()
func (*DepositcontractmockSession) DepositCount ¶
func (_Depositcontractmock *DepositcontractmockSession) DepositCount() (*big.Int, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint256)
func (*DepositcontractmockSession) GetDepositRoot ¶
func (_Depositcontractmock *DepositcontractmockSession) GetDepositRoot() ([32]byte, error)
GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.
Solidity: function getDepositRoot() view returns(bytes32)
func (*DepositcontractmockSession) GetLeafValue ¶
func (_Depositcontractmock *DepositcontractmockSession) 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 (*DepositcontractmockSession) Initialize ¶
func (_Depositcontractmock *DepositcontractmockSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*DepositcontractmockSession) VerifyMerkleProof ¶
func (_Depositcontractmock *DepositcontractmockSession) 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 DepositcontractmockTransactor ¶
type DepositcontractmockTransactor struct {
// contains filtered or unexported fields
}
DepositcontractmockTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDepositcontractmockTransactor ¶
func NewDepositcontractmockTransactor(address common.Address, transactor bind.ContractTransactor) (*DepositcontractmockTransactor, error)
NewDepositcontractmockTransactor creates a new write-only instance of Depositcontractmock, bound to a specific deployed contract.
func (*DepositcontractmockTransactor) Deposit ¶
func (_Depositcontractmock *DepositcontractmockTransactor) Deposit(opts *bind.TransactOpts, leafType uint8, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x82c01902.
Solidity: function deposit(uint8 leafType, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) returns()
func (*DepositcontractmockTransactor) Initialize ¶
func (_Depositcontractmock *DepositcontractmockTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
type DepositcontractmockTransactorRaw ¶
type DepositcontractmockTransactorRaw struct {
Contract *DepositcontractmockTransactor // Generic write-only contract binding to access the raw methods on
}
DepositcontractmockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DepositcontractmockTransactorRaw) Transact ¶
func (_Depositcontractmock *DepositcontractmockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DepositcontractmockTransactorRaw) Transfer ¶
func (_Depositcontractmock *DepositcontractmockTransactorRaw) 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 DepositcontractmockTransactorSession ¶
type DepositcontractmockTransactorSession struct { Contract *DepositcontractmockTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DepositcontractmockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DepositcontractmockTransactorSession) Deposit ¶
func (_Depositcontractmock *DepositcontractmockTransactorSession) Deposit(leafType uint8, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x82c01902.
Solidity: function deposit(uint8 leafType, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) returns()
func (*DepositcontractmockTransactorSession) Initialize ¶
func (_Depositcontractmock *DepositcontractmockTransactorSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()