depositcontractv2

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 Depositcontractv2ABI = Depositcontractv2MetaData.ABI

Depositcontractv2ABI is the input ABI used to generate the binding from. Deprecated: Use Depositcontractv2MetaData.ABI instead.

View Source
var Depositcontractv2Bin = Depositcontractv2MetaData.Bin

Depositcontractv2Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use Depositcontractv2MetaData.Bin instead.

View Source
var Depositcontractv2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"MerkleTreeFull\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"leafHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"name\":\"calculateRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"getRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"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: "0x608060405234801561000f575f80fd5b506105788061001d5f395ff3fe608060405234801561000f575f80fd5b5060043610610064575f3560e01c80635ca1e1651161004d5780635ca1e1651461016657806383f244031461016e578063fb57083414610181575f80fd5b80632dfdf0b5146100685780633e19704314610084575b5f80fd5b61007160535481565b6040519081526020015b60405180910390f35b6100716100923660046103a7565b6040517fff0000000000000000000000000000000000000000000000000000000000000060f889901b1660208201527fffffffff0000000000000000000000000000000000000000000000000000000060e088811b821660218401527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606089811b821660258601529188901b909216603984015285901b16603d82015260518101839052607181018290525f90609101604051602081830303815290604052805190602001209050979650505050505050565b6100716101a4565b61007161017c366004610438565b610280565b61019461018f366004610474565b610355565b604051901515815260200161007b565b6053545f90819081805b6020811015610277578083901c60011660010361020b57603381602081106101d8576101d86104b9565b01546040805160208101929092528101859052606001604051602081830303815290604052805190602001209350610238565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b6040805160208101849052908101839052606001604051602081830303815290604052805190602001209150808061026f906104e6565b9150506101ae565b50919392505050565b5f83815b602081101561034c57600163ffffffff8516821c811690036102ef578481602081106102b2576102b26104b9565b6020020135826040516020016102d2929190918252602082015260400190565b60405160208183030381529060405280519060200120915061033a565b81858260208110610302576103026104b9565b6020020135604051602001610321929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b80610344816104e6565b915050610284565b50949350505050565b5f81610362868686610280565b1495945050505050565b803563ffffffff8116811461037f575f80fd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461037f575f80fd5b5f805f805f805f60e0888a0312156103bd575f80fd5b873560ff811681146103cd575f80fd5b96506103db6020890161036c565b95506103e960408901610384565b94506103f76060890161036c565b935061040560808901610384565b925060a0880135915060c0880135905092959891949750929550565b806104008101831015610432575f80fd5b92915050565b5f805f610440848603121561044b575f80fd5b8335925061045c8560208601610421565b915061046b610420850161036c565b90509250925092565b5f805f806104608587031215610488575f80fd5b843593506104998660208701610421565b92506104a8610420860161036c565b939692955092936104400135925050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361053b577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b506001019056fea264697066735822122098065f5983fb587f865faec1f0aca6126e46744c4b7fdab3ff42bf5c2900372d64736f6c63430008140033",
}

Depositcontractv2MetaData contains all meta data concerning the Depositcontractv2 contract.

Functions

This section is empty.

Types

type Depositcontractv2

type Depositcontractv2 struct {
	Depositcontractv2Caller     // Read-only binding to the contract
	Depositcontractv2Transactor // Write-only binding to the contract
	Depositcontractv2Filterer   // Log filterer for contract events
}

Depositcontractv2 is an auto generated Go binding around an Ethereum contract.

func DeployDepositcontractv2

func DeployDepositcontractv2(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Depositcontractv2, error)

DeployDepositcontractv2 deploys a new Ethereum contract, binding an instance of Depositcontractv2 to it.

func NewDepositcontractv2

func NewDepositcontractv2(address common.Address, backend bind.ContractBackend) (*Depositcontractv2, error)

NewDepositcontractv2 creates a new instance of Depositcontractv2, bound to a specific deployed contract.

type Depositcontractv2Caller

type Depositcontractv2Caller struct {
	// contains filtered or unexported fields
}

Depositcontractv2Caller is an auto generated read-only Go binding around an Ethereum contract.

func NewDepositcontractv2Caller

func NewDepositcontractv2Caller(address common.Address, caller bind.ContractCaller) (*Depositcontractv2Caller, error)

NewDepositcontractv2Caller creates a new read-only instance of Depositcontractv2, bound to a specific deployed contract.

func (*Depositcontractv2Caller) CalculateRoot

func (_Depositcontractv2 *Depositcontractv2Caller) CalculateRoot(opts *bind.CallOpts, leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*Depositcontractv2Caller) DepositCount

func (_Depositcontractv2 *Depositcontractv2Caller) 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 (*Depositcontractv2Caller) GetLeafValue

func (_Depositcontractv2 *Depositcontractv2Caller) 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 (*Depositcontractv2Caller) GetRoot

func (_Depositcontractv2 *Depositcontractv2Caller) 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 (*Depositcontractv2Caller) VerifyMerkleProof

func (_Depositcontractv2 *Depositcontractv2Caller) 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 Depositcontractv2CallerRaw

type Depositcontractv2CallerRaw struct {
	Contract *Depositcontractv2Caller // Generic read-only contract binding to access the raw methods on
}

Depositcontractv2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*Depositcontractv2CallerRaw) Call

func (_Depositcontractv2 *Depositcontractv2CallerRaw) 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 Depositcontractv2CallerSession

type Depositcontractv2CallerSession struct {
	Contract *Depositcontractv2Caller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts            // Call options to use throughout this session
}

Depositcontractv2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*Depositcontractv2CallerSession) CalculateRoot

func (_Depositcontractv2 *Depositcontractv2CallerSession) CalculateRoot(leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*Depositcontractv2CallerSession) DepositCount

func (_Depositcontractv2 *Depositcontractv2CallerSession) DepositCount() (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*Depositcontractv2CallerSession) GetLeafValue

func (_Depositcontractv2 *Depositcontractv2CallerSession) 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 (*Depositcontractv2CallerSession) GetRoot

func (_Depositcontractv2 *Depositcontractv2CallerSession) GetRoot() ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*Depositcontractv2CallerSession) VerifyMerkleProof

func (_Depositcontractv2 *Depositcontractv2CallerSession) 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 Depositcontractv2Filterer

type Depositcontractv2Filterer struct {
	// contains filtered or unexported fields
}

Depositcontractv2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewDepositcontractv2Filterer

func NewDepositcontractv2Filterer(address common.Address, filterer bind.ContractFilterer) (*Depositcontractv2Filterer, error)

NewDepositcontractv2Filterer creates a new log filterer instance of Depositcontractv2, bound to a specific deployed contract.

func (*Depositcontractv2Filterer) FilterInitialized

func (_Depositcontractv2 *Depositcontractv2Filterer) FilterInitialized(opts *bind.FilterOpts) (*Depositcontractv2InitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*Depositcontractv2Filterer) ParseInitialized

func (_Depositcontractv2 *Depositcontractv2Filterer) ParseInitialized(log types.Log) (*Depositcontractv2Initialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*Depositcontractv2Filterer) WatchInitialized

func (_Depositcontractv2 *Depositcontractv2Filterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *Depositcontractv2Initialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

type Depositcontractv2Initialized

type Depositcontractv2Initialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

Depositcontractv2Initialized represents a Initialized event raised by the Depositcontractv2 contract.

type Depositcontractv2InitializedIterator

type Depositcontractv2InitializedIterator struct {
	Event *Depositcontractv2Initialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Depositcontractv2InitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Depositcontractv2 contract.

func (*Depositcontractv2InitializedIterator) Close

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

func (*Depositcontractv2InitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Depositcontractv2InitializedIterator) 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 Depositcontractv2Raw

type Depositcontractv2Raw struct {
	Contract *Depositcontractv2 // Generic contract binding to access the raw methods on
}

Depositcontractv2Raw is an auto generated low-level Go binding around an Ethereum contract.

func (*Depositcontractv2Raw) Call

func (_Depositcontractv2 *Depositcontractv2Raw) 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 (*Depositcontractv2Raw) Transact

func (_Depositcontractv2 *Depositcontractv2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Depositcontractv2Raw) Transfer

func (_Depositcontractv2 *Depositcontractv2Raw) 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 Depositcontractv2Session

type Depositcontractv2Session struct {
	Contract     *Depositcontractv2 // 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
}

Depositcontractv2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*Depositcontractv2Session) CalculateRoot

func (_Depositcontractv2 *Depositcontractv2Session) CalculateRoot(leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*Depositcontractv2Session) DepositCount

func (_Depositcontractv2 *Depositcontractv2Session) DepositCount() (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*Depositcontractv2Session) GetLeafValue

func (_Depositcontractv2 *Depositcontractv2Session) 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 (*Depositcontractv2Session) GetRoot

func (_Depositcontractv2 *Depositcontractv2Session) GetRoot() ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*Depositcontractv2Session) VerifyMerkleProof

func (_Depositcontractv2 *Depositcontractv2Session) 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 Depositcontractv2Transactor

type Depositcontractv2Transactor struct {
	// contains filtered or unexported fields
}

Depositcontractv2Transactor is an auto generated write-only Go binding around an Ethereum contract.

func NewDepositcontractv2Transactor

func NewDepositcontractv2Transactor(address common.Address, transactor bind.ContractTransactor) (*Depositcontractv2Transactor, error)

NewDepositcontractv2Transactor creates a new write-only instance of Depositcontractv2, bound to a specific deployed contract.

type Depositcontractv2TransactorRaw

type Depositcontractv2TransactorRaw struct {
	Contract *Depositcontractv2Transactor // Generic write-only contract binding to access the raw methods on
}

Depositcontractv2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*Depositcontractv2TransactorRaw) Transact

func (_Depositcontractv2 *Depositcontractv2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Depositcontractv2TransactorRaw) Transfer

func (_Depositcontractv2 *Depositcontractv2TransactorRaw) 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 Depositcontractv2TransactorSession

type Depositcontractv2TransactorSession struct {
	Contract     *Depositcontractv2Transactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts            // Transaction auth options to use throughout this session
}

Depositcontractv2TransactorSession 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