depositcontract

package
v0.0.0-...-f6182d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DepositcontractABI = DepositcontractMetaData.ABI

DepositcontractABI is the input ABI used to generate the binding from. Deprecated: Use DepositcontractMetaData.ABI instead.

View Source
var DepositcontractBin = DepositcontractMetaData.Bin

DepositcontractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use DepositcontractMetaData.Bin instead.

View Source
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: "0x608060405234801561000f575f80fd5b506104e98061001d5f395ff3fe608060405234801561000f575f80fd5b506004361061004a575f3560e01c80632dfdf0b51461004e5780633ae050471461006a5780633e19704314610072578063fb57083414610154575b5f80fd5b61005760535481565b6040519081526020015b60405180910390f35b610057610177565b610057610080366004610366565b6040517fff0000000000000000000000000000000000000000000000000000000000000060f889901b1660208201527fffffffff0000000000000000000000000000000000000000000000000000000060e088811b821660218401527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606089811b821660258601529188901b909216603984015285901b16603d82015260518101839052607181018290525f90609101604051602081830303815290604052805190602001209050979650505050505050565b6101676101623660046103e0565b610253565b6040519015158152602001610061565b6053545f90819081805b602081101561024a578083901c6001166001036101de57603381602081106101ab576101ab61042a565b0154604080516020810192909252810185905260600160405160208183030381529060405280519060200120935061020b565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b6040805160208101849052908101839052606001604051602081830303815290604052805190602001209150808061024290610457565b915050610181565b50919392505050565b5f84815b602081101561031f57600163ffffffff8616821c811690036102c2578581602081106102855761028561042a565b6020020135826040516020016102a5929190918252602082015260400190565b60405160208183030381529060405280519060200120915061030d565b818682602081106102d5576102d561042a565b60200201356040516020016102f4929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b8061031781610457565b915050610257565b50909114949350505050565b803563ffffffff8116811461033e575f80fd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461033e575f80fd5b5f805f805f805f60e0888a03121561037c575f80fd5b873560ff8116811461038c575f80fd5b965061039a6020890161032b565b95506103a860408901610343565b94506103b66060890161032b565b93506103c460808901610343565b925060a0880135915060c0880135905092959891949750929550565b5f805f8061046085870312156103f4575f80fd5b84359350610420850186811115610409575f80fd5b6020860193506104188161032b565b94979396509394610440013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036104ac577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b506001019056fea2646970667358221220a8468befd07def626e3a28eee96af5110437c1c00beed0dd70fc08220cf051f564736f6c63430008140033",
}

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

func (_Depositcontract *DepositcontractCaller) 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 (*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

Close terminates the iteration process, releasing any pending underlying resources.

func (*DepositcontractInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DepositcontractInitializedIterator) Next

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL