GenericHandler

package
v0.0.0-...-7e7a532 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GenericHandlerABI = "" /* 4369-byte string literal not displayed */

GenericHandlerABI is the input ABI used to generate the binding from.

Variables

View Source
var GenericHandlerBin = "" /* 16910-byte string literal not displayed */

GenericHandlerBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type GenericHandler

type GenericHandler struct {
	GenericHandlerCaller     // Read-only binding to the contract
	GenericHandlerTransactor // Write-only binding to the contract
	GenericHandlerFilterer   // Log filterer for contract events
}

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

func DeployGenericHandler

func DeployGenericHandler(auth *bind.TransactOpts, backend bind.ContractBackend, bridgeAddress common.Address, initialResourceIDs [][32]byte, initialContractAddresses []common.Address, initialDepositFunctionSignatures [][4]byte, initialExecuteFunctionSignatures [][4]byte) (common.Address, *types.Transaction, *GenericHandler, error)

DeployGenericHandler deploys a new Ethereum contract, binding an instance of GenericHandler to it.

func NewGenericHandler

func NewGenericHandler(address common.Address, backend bind.ContractBackend) (*GenericHandler, error)

NewGenericHandler creates a new instance of GenericHandler, bound to a specific deployed contract.

type GenericHandlerCaller

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

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

func NewGenericHandlerCaller

func NewGenericHandlerCaller(address common.Address, caller bind.ContractCaller) (*GenericHandlerCaller, error)

NewGenericHandlerCaller creates a new read-only instance of GenericHandler, bound to a specific deployed contract.

func (*GenericHandlerCaller) BridgeAddress

func (_GenericHandler *GenericHandlerCaller) BridgeAddress(opts *bind.CallOpts) (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.

Solidity: function _bridgeAddress() view returns(address)

func (*GenericHandlerCaller) ContractAddressToDepositFunctionSignature

func (_GenericHandler *GenericHandlerCaller) ContractAddressToDepositFunctionSignature(opts *bind.CallOpts, arg0 common.Address) ([4]byte, error)

ContractAddressToDepositFunctionSignature is a free data retrieval call binding the contract method 0xcb624463.

Solidity: function _contractAddressToDepositFunctionSignature(address ) view returns(bytes4)

func (*GenericHandlerCaller) ContractAddressToExecuteFunctionSignature

func (_GenericHandler *GenericHandlerCaller) ContractAddressToExecuteFunctionSignature(opts *bind.CallOpts, arg0 common.Address) ([4]byte, error)

ContractAddressToExecuteFunctionSignature is a free data retrieval call binding the contract method 0xa5c3a985.

Solidity: function _contractAddressToExecuteFunctionSignature(address ) view returns(bytes4)

func (*GenericHandlerCaller) ContractAddressToResourceID

func (_GenericHandler *GenericHandlerCaller) ContractAddressToResourceID(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error)

ContractAddressToResourceID is a free data retrieval call binding the contract method 0xec97d3b4.

Solidity: function _contractAddressToResourceID(address ) view returns(bytes32)

func (*GenericHandlerCaller) ContractWhitelist

func (_GenericHandler *GenericHandlerCaller) ContractWhitelist(opts *bind.CallOpts, arg0 common.Address) (bool, error)

ContractWhitelist is a free data retrieval call binding the contract method 0x7f79bea8.

Solidity: function _contractWhitelist(address ) view returns(bool)

func (*GenericHandlerCaller) DepositRecords

func (_GenericHandler *GenericHandlerCaller) DepositRecords(opts *bind.CallOpts, arg0 uint8, arg1 uint64) (struct {
	DestinationChainID uint8
	Depositer          common.Address
	ResourceID         [32]byte
	MetaData           []byte
}, error)

DepositRecords is a free data retrieval call binding the contract method 0x4402027f.

Solidity: function _depositRecords(uint8 , uint64 ) view returns(uint8 _destinationChainID, address _depositer, bytes32 _resourceID, bytes _metaData)

func (*GenericHandlerCaller) GetDepositRecord

func (_GenericHandler *GenericHandlerCaller) GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (GenericHandlerDepositRecord, error)

GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.

Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((uint8,address,bytes32,bytes))

func (*GenericHandlerCaller) ResourceIDToContractAddress

func (_GenericHandler *GenericHandlerCaller) ResourceIDToContractAddress(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

ResourceIDToContractAddress is a free data retrieval call binding the contract method 0xc54c2a11.

Solidity: function _resourceIDToContractAddress(bytes32 ) view returns(address)

type GenericHandlerCallerRaw

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

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

func (*GenericHandlerCallerRaw) Call

func (_GenericHandler *GenericHandlerCallerRaw) 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 GenericHandlerCallerSession

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

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

func (*GenericHandlerCallerSession) BridgeAddress

func (_GenericHandler *GenericHandlerCallerSession) BridgeAddress() (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.

Solidity: function _bridgeAddress() view returns(address)

func (*GenericHandlerCallerSession) ContractAddressToDepositFunctionSignature

func (_GenericHandler *GenericHandlerCallerSession) ContractAddressToDepositFunctionSignature(arg0 common.Address) ([4]byte, error)

ContractAddressToDepositFunctionSignature is a free data retrieval call binding the contract method 0xcb624463.

Solidity: function _contractAddressToDepositFunctionSignature(address ) view returns(bytes4)

func (*GenericHandlerCallerSession) ContractAddressToExecuteFunctionSignature

func (_GenericHandler *GenericHandlerCallerSession) ContractAddressToExecuteFunctionSignature(arg0 common.Address) ([4]byte, error)

ContractAddressToExecuteFunctionSignature is a free data retrieval call binding the contract method 0xa5c3a985.

Solidity: function _contractAddressToExecuteFunctionSignature(address ) view returns(bytes4)

func (*GenericHandlerCallerSession) ContractAddressToResourceID

func (_GenericHandler *GenericHandlerCallerSession) ContractAddressToResourceID(arg0 common.Address) ([32]byte, error)

ContractAddressToResourceID is a free data retrieval call binding the contract method 0xec97d3b4.

Solidity: function _contractAddressToResourceID(address ) view returns(bytes32)

func (*GenericHandlerCallerSession) ContractWhitelist

func (_GenericHandler *GenericHandlerCallerSession) ContractWhitelist(arg0 common.Address) (bool, error)

ContractWhitelist is a free data retrieval call binding the contract method 0x7f79bea8.

Solidity: function _contractWhitelist(address ) view returns(bool)

func (*GenericHandlerCallerSession) DepositRecords

func (_GenericHandler *GenericHandlerCallerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct {
	DestinationChainID uint8
	Depositer          common.Address
	ResourceID         [32]byte
	MetaData           []byte
}, error)

DepositRecords is a free data retrieval call binding the contract method 0x4402027f.

Solidity: function _depositRecords(uint8 , uint64 ) view returns(uint8 _destinationChainID, address _depositer, bytes32 _resourceID, bytes _metaData)

func (*GenericHandlerCallerSession) GetDepositRecord

func (_GenericHandler *GenericHandlerCallerSession) GetDepositRecord(depositNonce uint64, destId uint8) (GenericHandlerDepositRecord, error)

GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.

Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((uint8,address,bytes32,bytes))

func (*GenericHandlerCallerSession) ResourceIDToContractAddress

func (_GenericHandler *GenericHandlerCallerSession) ResourceIDToContractAddress(arg0 [32]byte) (common.Address, error)

ResourceIDToContractAddress is a free data retrieval call binding the contract method 0xc54c2a11.

Solidity: function _resourceIDToContractAddress(bytes32 ) view returns(address)

type GenericHandlerDepositRecord

type GenericHandlerDepositRecord struct {
	DestinationChainID uint8
	Depositer          common.Address
	ResourceID         [32]byte
	MetaData           []byte
}

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

type GenericHandlerFilterer

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

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

func NewGenericHandlerFilterer

func NewGenericHandlerFilterer(address common.Address, filterer bind.ContractFilterer) (*GenericHandlerFilterer, error)

NewGenericHandlerFilterer creates a new log filterer instance of GenericHandler, bound to a specific deployed contract.

type GenericHandlerRaw

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

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

func (*GenericHandlerRaw) Call

func (_GenericHandler *GenericHandlerRaw) 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 (*GenericHandlerRaw) Transact

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

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

func (*GenericHandlerRaw) Transfer

func (_GenericHandler *GenericHandlerRaw) 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 GenericHandlerSession

type GenericHandlerSession struct {
	Contract     *GenericHandler   // 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
}

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

func (*GenericHandlerSession) BridgeAddress

func (_GenericHandler *GenericHandlerSession) BridgeAddress() (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.

Solidity: function _bridgeAddress() view returns(address)

func (*GenericHandlerSession) ContractAddressToDepositFunctionSignature

func (_GenericHandler *GenericHandlerSession) ContractAddressToDepositFunctionSignature(arg0 common.Address) ([4]byte, error)

ContractAddressToDepositFunctionSignature is a free data retrieval call binding the contract method 0xcb624463.

Solidity: function _contractAddressToDepositFunctionSignature(address ) view returns(bytes4)

func (*GenericHandlerSession) ContractAddressToExecuteFunctionSignature

func (_GenericHandler *GenericHandlerSession) ContractAddressToExecuteFunctionSignature(arg0 common.Address) ([4]byte, error)

ContractAddressToExecuteFunctionSignature is a free data retrieval call binding the contract method 0xa5c3a985.

Solidity: function _contractAddressToExecuteFunctionSignature(address ) view returns(bytes4)

func (*GenericHandlerSession) ContractAddressToResourceID

func (_GenericHandler *GenericHandlerSession) ContractAddressToResourceID(arg0 common.Address) ([32]byte, error)

ContractAddressToResourceID is a free data retrieval call binding the contract method 0xec97d3b4.

Solidity: function _contractAddressToResourceID(address ) view returns(bytes32)

func (*GenericHandlerSession) ContractWhitelist

func (_GenericHandler *GenericHandlerSession) ContractWhitelist(arg0 common.Address) (bool, error)

ContractWhitelist is a free data retrieval call binding the contract method 0x7f79bea8.

Solidity: function _contractWhitelist(address ) view returns(bool)

func (*GenericHandlerSession) Deposit

func (_GenericHandler *GenericHandlerSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, data []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x38995da9.

Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes data) returns()

func (*GenericHandlerSession) DepositRecords

func (_GenericHandler *GenericHandlerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct {
	DestinationChainID uint8
	Depositer          common.Address
	ResourceID         [32]byte
	MetaData           []byte
}, error)

DepositRecords is a free data retrieval call binding the contract method 0x4402027f.

Solidity: function _depositRecords(uint8 , uint64 ) view returns(uint8 _destinationChainID, address _depositer, bytes32 _resourceID, bytes _metaData)

func (*GenericHandlerSession) ExecuteProposal

func (_GenericHandler *GenericHandlerSession) ExecuteProposal(resourceID [32]byte, data []byte) (*types.Transaction, error)

ExecuteProposal is a paid mutator transaction binding the contract method 0xe248cff2.

Solidity: function executeProposal(bytes32 resourceID, bytes data) returns()

func (*GenericHandlerSession) GetDepositRecord

func (_GenericHandler *GenericHandlerSession) GetDepositRecord(depositNonce uint64, destId uint8) (GenericHandlerDepositRecord, error)

GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.

Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((uint8,address,bytes32,bytes))

func (*GenericHandlerSession) ResourceIDToContractAddress

func (_GenericHandler *GenericHandlerSession) ResourceIDToContractAddress(arg0 [32]byte) (common.Address, error)

ResourceIDToContractAddress is a free data retrieval call binding the contract method 0xc54c2a11.

Solidity: function _resourceIDToContractAddress(bytes32 ) view returns(address)

func (*GenericHandlerSession) SetResource

func (_GenericHandler *GenericHandlerSession) SetResource(resourceID [32]byte, contractAddress common.Address, depositFunctionSig [4]byte, executeFunctionSig [4]byte) (*types.Transaction, error)

SetResource is a paid mutator transaction binding the contract method 0xbba8185a.

Solidity: function setResource(bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, bytes4 executeFunctionSig) returns()

type GenericHandlerTransactor

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

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

func NewGenericHandlerTransactor

func NewGenericHandlerTransactor(address common.Address, transactor bind.ContractTransactor) (*GenericHandlerTransactor, error)

NewGenericHandlerTransactor creates a new write-only instance of GenericHandler, bound to a specific deployed contract.

func (*GenericHandlerTransactor) Deposit

func (_GenericHandler *GenericHandlerTransactor) Deposit(opts *bind.TransactOpts, resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, data []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x38995da9.

Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes data) returns()

func (*GenericHandlerTransactor) ExecuteProposal

func (_GenericHandler *GenericHandlerTransactor) ExecuteProposal(opts *bind.TransactOpts, resourceID [32]byte, data []byte) (*types.Transaction, error)

ExecuteProposal is a paid mutator transaction binding the contract method 0xe248cff2.

Solidity: function executeProposal(bytes32 resourceID, bytes data) returns()

func (*GenericHandlerTransactor) SetResource

func (_GenericHandler *GenericHandlerTransactor) SetResource(opts *bind.TransactOpts, resourceID [32]byte, contractAddress common.Address, depositFunctionSig [4]byte, executeFunctionSig [4]byte) (*types.Transaction, error)

SetResource is a paid mutator transaction binding the contract method 0xbba8185a.

Solidity: function setResource(bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, bytes4 executeFunctionSig) returns()

type GenericHandlerTransactorRaw

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

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

func (*GenericHandlerTransactorRaw) Transact

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

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

func (*GenericHandlerTransactorRaw) Transfer

func (_GenericHandler *GenericHandlerTransactorRaw) 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 GenericHandlerTransactorSession

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

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

func (*GenericHandlerTransactorSession) Deposit

func (_GenericHandler *GenericHandlerTransactorSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, data []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x38995da9.

Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes data) returns()

func (*GenericHandlerTransactorSession) ExecuteProposal

func (_GenericHandler *GenericHandlerTransactorSession) ExecuteProposal(resourceID [32]byte, data []byte) (*types.Transaction, error)

ExecuteProposal is a paid mutator transaction binding the contract method 0xe248cff2.

Solidity: function executeProposal(bytes32 resourceID, bytes data) returns()

func (*GenericHandlerTransactorSession) SetResource

func (_GenericHandler *GenericHandlerTransactorSession) SetResource(resourceID [32]byte, contractAddress common.Address, depositFunctionSig [4]byte, executeFunctionSig [4]byte) (*types.Transaction, error)

SetResource is a paid mutator transaction binding the contract method 0xbba8185a.

Solidity: function setResource(bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, bytes4 executeFunctionSig) returns()

Jump to

Keyboard shortcuts

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