Documentation ¶
Index ¶
- Variables
- type Claimmock
- type ClaimmockCaller
- type ClaimmockCallerRaw
- type ClaimmockCallerSession
- type ClaimmockClaimEvent
- type ClaimmockClaimEventIterator
- type ClaimmockFilterer
- func (_Claimmock *ClaimmockFilterer) FilterClaimEvent(opts *bind.FilterOpts) (*ClaimmockClaimEventIterator, error)
- func (_Claimmock *ClaimmockFilterer) ParseClaimEvent(log types.Log) (*ClaimmockClaimEvent, error)
- func (_Claimmock *ClaimmockFilterer) WatchClaimEvent(opts *bind.WatchOpts, sink chan<- *ClaimmockClaimEvent) (event.Subscription, error)
- type ClaimmockRaw
- func (_Claimmock *ClaimmockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Claimmock *ClaimmockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Claimmock *ClaimmockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ClaimmockSession
- func (_Claimmock *ClaimmockSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Claimmock *ClaimmockSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- type ClaimmockTransactor
- type ClaimmockTransactorRaw
- type ClaimmockTransactorSession
- func (_Claimmock *ClaimmockTransactorSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Claimmock *ClaimmockTransactorSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var ClaimmockABI = ClaimmockMetaData.ABI
ClaimmockABI is the input ABI used to generate the binding from. Deprecated: Use ClaimmockMetaData.ABI instead.
var ClaimmockBin = ClaimmockMetaData.Bin
ClaimmockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ClaimmockMetaData.Bin instead.
var ClaimmockMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ClaimEvent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofLocalExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofRollupExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"},{\"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\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"claimAsset\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofLocalExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofRollupExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"},{\"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\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"claimMessage\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
Bin: "0x6080806040523461001657610227908161001c8239f35b600080fdfe608080604052600436101561001357600080fd5b600090813560e01c908163ccaa2d11146100b5575063f5efcd791461003757600080fd5b6100403661012f565b5050945097505092509350600134146100b1576040805193845263ffffffff9490941660208401526001600160a01b039182169383019390935292909216606083015260808201527f1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d9060a090a180f35b8580fd5b7f1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d91508061011e6100e53661012f565b5050968b5263ffffffff90931660208b0152506001600160a01b0390811660408a015216606088015250506080850152505060a0820190565b0390a16001341461012c5780f35b80fd5b906109206003198301126101ec57610404908282116101ec57600492610804928184116101ec579235916108243591610844359163ffffffff906108643582811681036101ec57926001600160a01b03916108843583811681036101ec57936108a43590811681036101ec57926108c43590811681036101ec57916108e435916109043567ffffffffffffffff928382116101ec57806023830112156101ec57818e01359384116101ec57602484830101116101ec576024019190565b600080fdfea2646970667358221220360ea7019315ab59618e13d469f48b1816436744772ab76ff89153af49fb746a64736f6c63430008120033",
}
ClaimmockMetaData contains all meta data concerning the Claimmock contract.
Functions ¶
This section is empty.
Types ¶
type Claimmock ¶
type Claimmock struct { ClaimmockCaller // Read-only binding to the contract ClaimmockTransactor // Write-only binding to the contract ClaimmockFilterer // Log filterer for contract events }
Claimmock is an auto generated Go binding around an Ethereum contract.
func DeployClaimmock ¶
func DeployClaimmock(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Claimmock, error)
DeployClaimmock deploys a new Ethereum contract, binding an instance of Claimmock to it.
func NewClaimmock ¶
NewClaimmock creates a new instance of Claimmock, bound to a specific deployed contract.
type ClaimmockCaller ¶
type ClaimmockCaller struct {
// contains filtered or unexported fields
}
ClaimmockCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewClaimmockCaller ¶
func NewClaimmockCaller(address common.Address, caller bind.ContractCaller) (*ClaimmockCaller, error)
NewClaimmockCaller creates a new read-only instance of Claimmock, bound to a specific deployed contract.
type ClaimmockCallerRaw ¶
type ClaimmockCallerRaw struct {
Contract *ClaimmockCaller // Generic read-only contract binding to access the raw methods on
}
ClaimmockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ClaimmockCallerRaw) Call ¶
func (_Claimmock *ClaimmockCallerRaw) 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 ClaimmockCallerSession ¶
type ClaimmockCallerSession struct { Contract *ClaimmockCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ClaimmockCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type ClaimmockClaimEvent ¶
type ClaimmockClaimEvent struct { GlobalIndex *big.Int OriginNetwork uint32 OriginAddress common.Address DestinationAddress common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
ClaimmockClaimEvent represents a ClaimEvent event raised by the Claimmock contract.
type ClaimmockClaimEventIterator ¶
type ClaimmockClaimEventIterator struct { Event *ClaimmockClaimEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClaimmockClaimEventIterator is returned from FilterClaimEvent and is used to iterate over the raw logs and unpacked data for ClaimEvent events raised by the Claimmock contract.
func (*ClaimmockClaimEventIterator) Close ¶
func (it *ClaimmockClaimEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClaimmockClaimEventIterator) Error ¶
func (it *ClaimmockClaimEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClaimmockClaimEventIterator) Next ¶
func (it *ClaimmockClaimEventIterator) 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 ClaimmockFilterer ¶
type ClaimmockFilterer struct {
// contains filtered or unexported fields
}
ClaimmockFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewClaimmockFilterer ¶
func NewClaimmockFilterer(address common.Address, filterer bind.ContractFilterer) (*ClaimmockFilterer, error)
NewClaimmockFilterer creates a new log filterer instance of Claimmock, bound to a specific deployed contract.
func (*ClaimmockFilterer) FilterClaimEvent ¶
func (_Claimmock *ClaimmockFilterer) FilterClaimEvent(opts *bind.FilterOpts) (*ClaimmockClaimEventIterator, error)
FilterClaimEvent is a free log retrieval operation binding the contract event 0x1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d.
Solidity: event ClaimEvent(uint256 globalIndex, uint32 originNetwork, address originAddress, address destinationAddress, uint256 amount)
func (*ClaimmockFilterer) ParseClaimEvent ¶
func (_Claimmock *ClaimmockFilterer) ParseClaimEvent(log types.Log) (*ClaimmockClaimEvent, error)
ParseClaimEvent is a log parse operation binding the contract event 0x1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d.
Solidity: event ClaimEvent(uint256 globalIndex, uint32 originNetwork, address originAddress, address destinationAddress, uint256 amount)
func (*ClaimmockFilterer) WatchClaimEvent ¶
func (_Claimmock *ClaimmockFilterer) WatchClaimEvent(opts *bind.WatchOpts, sink chan<- *ClaimmockClaimEvent) (event.Subscription, error)
WatchClaimEvent is a free log subscription operation binding the contract event 0x1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d.
Solidity: event ClaimEvent(uint256 globalIndex, uint32 originNetwork, address originAddress, address destinationAddress, uint256 amount)
type ClaimmockRaw ¶
type ClaimmockRaw struct {
Contract *Claimmock // Generic contract binding to access the raw methods on
}
ClaimmockRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ClaimmockRaw) Call ¶
func (_Claimmock *ClaimmockRaw) 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 (*ClaimmockRaw) Transact ¶
func (_Claimmock *ClaimmockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClaimmockRaw) Transfer ¶
func (_Claimmock *ClaimmockRaw) 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 ClaimmockSession ¶
type ClaimmockSession struct { Contract *Claimmock // 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 }
ClaimmockSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ClaimmockSession) ClaimAsset ¶
func (_Claimmock *ClaimmockSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimAsset is a paid mutator transaction binding the contract method 0xccaa2d11.
Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) payable returns()
func (*ClaimmockSession) ClaimMessage ¶
func (_Claimmock *ClaimmockSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimMessage is a paid mutator transaction binding the contract method 0xf5efcd79.
Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) payable returns()
type ClaimmockTransactor ¶
type ClaimmockTransactor struct {
// contains filtered or unexported fields
}
ClaimmockTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewClaimmockTransactor ¶
func NewClaimmockTransactor(address common.Address, transactor bind.ContractTransactor) (*ClaimmockTransactor, error)
NewClaimmockTransactor creates a new write-only instance of Claimmock, bound to a specific deployed contract.
func (*ClaimmockTransactor) ClaimAsset ¶
func (_Claimmock *ClaimmockTransactor) ClaimAsset(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimAsset is a paid mutator transaction binding the contract method 0xccaa2d11.
Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) payable returns()
func (*ClaimmockTransactor) ClaimMessage ¶
func (_Claimmock *ClaimmockTransactor) ClaimMessage(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimMessage is a paid mutator transaction binding the contract method 0xf5efcd79.
Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) payable returns()
type ClaimmockTransactorRaw ¶
type ClaimmockTransactorRaw struct {
Contract *ClaimmockTransactor // Generic write-only contract binding to access the raw methods on
}
ClaimmockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ClaimmockTransactorRaw) Transact ¶
func (_Claimmock *ClaimmockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClaimmockTransactorRaw) Transfer ¶
func (_Claimmock *ClaimmockTransactorRaw) 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 ClaimmockTransactorSession ¶
type ClaimmockTransactorSession struct { Contract *ClaimmockTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ClaimmockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ClaimmockTransactorSession) ClaimAsset ¶
func (_Claimmock *ClaimmockTransactorSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimAsset is a paid mutator transaction binding the contract method 0xccaa2d11.
Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) payable returns()
func (*ClaimmockTransactorSession) ClaimMessage ¶
func (_Claimmock *ClaimmockTransactorSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimMessage is a paid mutator transaction binding the contract method 0xf5efcd79.
Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) payable returns()