contextapp

package
v0.0.0-...-2da98db Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextAppABI = ContextAppMetaData.ABI

ContextAppABI is the input ABI used to generate the binding from. Deprecated: Use ContextAppMetaData.ABI instead.

View Source
var ContextAppBin = ContextAppMetaData.Bin

ContextAppBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ContextAppMetaData.Bin instead.

View Source
var ContextAppMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"msgSender\",\"type\":\"address\"}],\"name\":\"ContextData\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"onCrossChainCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50610420806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063de43156e14610030575b600080fd5b61004a60048036038101906100459190610182565b61004c565b005b7fcde88c82509f7dbeaae2782de64879ac731556f65d4474e9afc4ea01cca4498885806000019061007d91906102bf565b8760200160208101906100909190610155565b8860400135336040516100a7959493929190610271565b60405180910390a15050505050565b6000813590506100c5816103bc565b92915050565b60008083601f8401126100e1576100e0610383565b5b8235905067ffffffffffffffff8111156100fe576100fd61037e565b5b60208301915083600182028301111561011a57610119610397565b5b9250929050565b6000606082840312156101375761013661038d565b5b81905092915050565b60008135905061014f816103d3565b92915050565b60006020828403121561016b5761016a6103a6565b5b6000610179848285016100b6565b91505092915050565b60008060008060006080868803121561019e5761019d6103a6565b5b600086013567ffffffffffffffff8111156101bc576101bb6103a1565b5b6101c888828901610121565b95505060206101d9888289016100b6565b94505060406101ea88828901610140565b935050606086013567ffffffffffffffff81111561020b5761020a6103a1565b5b610217888289016100cb565b92509250509295509295909350565b61022f81610333565b82525050565b60006102418385610322565b935061024e83858461036f565b610257836103ab565b840190509392505050565b61026b81610365565b82525050565b6000608082019050818103600083015261028c818789610235565b905061029b6020830186610226565b6102a86040830185610262565b6102b56060830184610226565b9695505050505050565b600080833560016020038436030381126102dc576102db610392565b5b80840192508235915067ffffffffffffffff8211156102fe576102fd610388565b5b60208301925060018202360383131561031a5761031961039c565b5b509250929050565b600082825260208201905092915050565b600061033e82610345565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6103c581610333565b81146103d057600080fd5b50565b6103dc81610365565b81146103e757600080fd5b5056fea26469706673582212203bf8ff0cc81cde452b74dd59e10fc546b8344cb0b268971059b45bc40191115d64736f6c63430008070033",
}

ContextAppMetaData contains all meta data concerning the ContextApp contract.

Functions

This section is empty.

Types

type CompiledContract

type CompiledContract struct {
	ABI abi.ABI
	Bin evmtypes.HexString
}
var (
	//go:embed ContextApp.json
	ContextAppJSON []byte // nolint: golint

	ContextAppContract CompiledContract
)

type Context

type Context struct {
	Origin  []byte
	Sender  common.Address
	ChainID *big.Int
}

Context is an auto generated low-level Go binding around an user-defined struct.

type ContextApp

type ContextApp struct {
	ContextAppCaller     // Read-only binding to the contract
	ContextAppTransactor // Write-only binding to the contract
	ContextAppFilterer   // Log filterer for contract events
}

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

func DeployContextApp

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

DeployContextApp deploys a new Ethereum contract, binding an instance of ContextApp to it.

func NewContextApp

func NewContextApp(address common.Address, backend bind.ContractBackend) (*ContextApp, error)

NewContextApp creates a new instance of ContextApp, bound to a specific deployed contract.

type ContextAppCaller

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

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

func NewContextAppCaller

func NewContextAppCaller(address common.Address, caller bind.ContractCaller) (*ContextAppCaller, error)

NewContextAppCaller creates a new read-only instance of ContextApp, bound to a specific deployed contract.

type ContextAppCallerRaw

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

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

func (*ContextAppCallerRaw) Call

func (_ContextApp *ContextAppCallerRaw) 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 ContextAppCallerSession

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

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

type ContextAppContextData

type ContextAppContextData struct {
	Origin    []byte
	Sender    common.Address
	ChainID   *big.Int
	MsgSender common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

ContextAppContextData represents a ContextData event raised by the ContextApp contract.

type ContextAppContextDataIterator

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

ContextAppContextDataIterator is returned from FilterContextData and is used to iterate over the raw logs and unpacked data for ContextData events raised by the ContextApp contract.

func (*ContextAppContextDataIterator) Close

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

func (*ContextAppContextDataIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContextAppContextDataIterator) 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 ContextAppFilterer

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

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

func NewContextAppFilterer

func NewContextAppFilterer(address common.Address, filterer bind.ContractFilterer) (*ContextAppFilterer, error)

NewContextAppFilterer creates a new log filterer instance of ContextApp, bound to a specific deployed contract.

func (*ContextAppFilterer) FilterContextData

func (_ContextApp *ContextAppFilterer) FilterContextData(opts *bind.FilterOpts) (*ContextAppContextDataIterator, error)

FilterContextData is a free log retrieval operation binding the contract event 0xcde88c82509f7dbeaae2782de64879ac731556f65d4474e9afc4ea01cca44988.

Solidity: event ContextData(bytes origin, address sender, uint256 chainID, address msgSender)

func (*ContextAppFilterer) ParseContextData

func (_ContextApp *ContextAppFilterer) ParseContextData(log types.Log) (*ContextAppContextData, error)

ParseContextData is a log parse operation binding the contract event 0xcde88c82509f7dbeaae2782de64879ac731556f65d4474e9afc4ea01cca44988.

Solidity: event ContextData(bytes origin, address sender, uint256 chainID, address msgSender)

func (*ContextAppFilterer) WatchContextData

func (_ContextApp *ContextAppFilterer) WatchContextData(opts *bind.WatchOpts, sink chan<- *ContextAppContextData) (event.Subscription, error)

WatchContextData is a free log subscription operation binding the contract event 0xcde88c82509f7dbeaae2782de64879ac731556f65d4474e9afc4ea01cca44988.

Solidity: event ContextData(bytes origin, address sender, uint256 chainID, address msgSender)

type ContextAppRaw

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

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

func (*ContextAppRaw) Call

func (_ContextApp *ContextAppRaw) 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 (*ContextAppRaw) Transact

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

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

func (*ContextAppRaw) Transfer

func (_ContextApp *ContextAppRaw) 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 ContextAppSession

type ContextAppSession struct {
	Contract     *ContextApp       // 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
}

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

func (*ContextAppSession) OnCrossChainCall

func (_ContextApp *ContextAppSession) OnCrossChainCall(context Context, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error)

OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e.

Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns()

type ContextAppTransactor

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

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

func NewContextAppTransactor

func NewContextAppTransactor(address common.Address, transactor bind.ContractTransactor) (*ContextAppTransactor, error)

NewContextAppTransactor creates a new write-only instance of ContextApp, bound to a specific deployed contract.

func (*ContextAppTransactor) OnCrossChainCall

func (_ContextApp *ContextAppTransactor) OnCrossChainCall(opts *bind.TransactOpts, context Context, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error)

OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e.

Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns()

type ContextAppTransactorRaw

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

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

func (*ContextAppTransactorRaw) Transact

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

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

func (*ContextAppTransactorRaw) Transfer

func (_ContextApp *ContextAppTransactorRaw) 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 ContextAppTransactorSession

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

ContextAppTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ContextAppTransactorSession) OnCrossChainCall

func (_ContextApp *ContextAppTransactorSession) OnCrossChainCall(context Context, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error)

OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e.

Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns()

Jump to

Keyboard shortcuts

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