depositcontract

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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: "0x608060405234801561001057600080fd5b50610500806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632dfdf0b5146100515780633ae050471461006d5780633e19704314610075578063fb57083414610158575b600080fd5b61005a60535481565b6040519081526020015b60405180910390f35b61005a61017b565b61005a61008336600461036e565b6040517fff0000000000000000000000000000000000000000000000000000000000000060f889901b1660208201527fffffffff0000000000000000000000000000000000000000000000000000000060e088811b821660218401527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606089811b821660258601529188901b909216603984015285901b16603d8201526051810183905260718101829052600090609101604051602081830303815290604052805190602001209050979650505050505050565b61016b6101663660046103ee565b610258565b6040519015158152602001610064565b605354600090819081805b602081101561024f578083901c6001166001036101e357603381602081106101b0576101b061043c565b01546040805160208101929092528101859052606001604051602081830303815290604052805190602001209350610210565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b604080516020810184905290810183905260600160405160208183030381529060405280519060200120915080806102479061046b565b915050610186565b50919392505050565b600084815b602081101561032557600163ffffffff8616821c811690036102c85785816020811061028b5761028b61043c565b6020020135826040516020016102ab929190918252602082015260400190565b604051602081830303815290604052805190602001209150610313565b818682602081106102db576102db61043c565b60200201356040516020016102fa929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b8061031d8161046b565b91505061025d565b50909114949350505050565b803563ffffffff8116811461034557600080fd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461034557600080fd5b600080600080600080600060e0888a03121561038957600080fd5b873560ff8116811461039a57600080fd5b96506103a860208901610331565b95506103b66040890161034a565b94506103c460608901610331565b93506103d26080890161034a565b925060a0880135915060c0880135905092959891949750929550565b600080600080610460858703121561040557600080fd5b8435935061042085018681111561041b57600080fd5b60208601935061042a81610331565b94979396509394610440013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036104c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea2646970667358221220532c5ab1291ad947b8bd52fb2b9454c6df16b34daf39f766d8aca6af4256acec64736f6c63430008140033",
}

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