hcontract

package
v0.0.0-...-4c6f18b Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HContractABI = HContractMetaData.ABI

HContractABI is the input ABI used to generate the binding from. Deprecated: Use HContractMetaData.ABI instead.

View Source
var HContractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structhContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"hrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"onCrossChainCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

HContractMetaData contains all meta data concerning the HContract contract.

Functions

This section is empty.

Types

type HContext

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

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

type HContract

type HContract struct {
	HContractCaller     // Read-only binding to the contract
	HContractTransactor // Write-only binding to the contract
	HContractFilterer   // Log filterer for contract events
}

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

func NewHContract

func NewHContract(address common.Address, backend bind.ContractBackend) (*HContract, error)

NewHContract creates a new instance of HContract, bound to a specific deployed contract.

type HContractCaller

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

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

func NewHContractCaller

func NewHContractCaller(address common.Address, caller bind.ContractCaller) (*HContractCaller, error)

NewHContractCaller creates a new read-only instance of HContract, bound to a specific deployed contract.

type HContractCallerRaw

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

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

func (*HContractCallerRaw) Call

func (_HContract *HContractCallerRaw) 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 HContractCallerSession

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

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

type HContractFilterer

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

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

func NewHContractFilterer

func NewHContractFilterer(address common.Address, filterer bind.ContractFilterer) (*HContractFilterer, error)

NewHContractFilterer creates a new log filterer instance of HContract, bound to a specific deployed contract.

type HContractRaw

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

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

func (*HContractRaw) Call

func (_HContract *HContractRaw) 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 (*HContractRaw) Transact

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

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

func (*HContractRaw) Transfer

func (_HContract *HContractRaw) 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 HContractSession

type HContractSession struct {
	Contract     *HContract        // 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
}

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

func (*HContractSession) OnCrossChainCall

func (_HContract *HContractSession) OnCrossChainCall(context HContext, hrc20 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 hrc20, uint256 amount, bytes message) returns()

type HContractTransactor

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

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

func NewHContractTransactor

func NewHContractTransactor(address common.Address, transactor bind.ContractTransactor) (*HContractTransactor, error)

NewHContractTransactor creates a new write-only instance of HContract, bound to a specific deployed contract.

func (*HContractTransactor) OnCrossChainCall

func (_HContract *HContractTransactor) OnCrossChainCall(opts *bind.TransactOpts, context HContext, hrc20 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 hrc20, uint256 amount, bytes message) returns()

type HContractTransactorRaw

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

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

func (*HContractTransactorRaw) Transact

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

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

func (*HContractTransactorRaw) Transfer

func (_HContract *HContractTransactorRaw) 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 HContractTransactorSession

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

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

func (*HContractTransactorSession) OnCrossChainCall

func (_HContract *HContractTransactorSession) OnCrossChainCall(context HContext, hrc20 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 hrc20, uint256 amount, bytes message) returns()

Jump to

Keyboard shortcuts

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