contracts

package
v0.0.0-...-8ab0d56 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeefyClientABI = BeefyClientMetaData.ABI

BeefyClientABI is the input ABI used to generate the binding from. Deprecated: Use BeefyClientMetaData.ABI instead.

View Source
var BeefyClientMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_randaoCommitDelay\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_randaoCommitExpiration\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minNumRequiredSignatures\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_initialBeefyBlock\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"_initialValidatorSet\",\"type\":\"tuple\",\"internalType\":\"structBeefyClient.ValidatorSet\",\"components\":[{\"name\":\"id\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"length\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"_nextValidatorSet\",\"type\":\"tuple\",\"internalType\":\"structBeefyClient.ValidatorSet\",\"components\":[{\"name\":\"id\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"length\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"MMR_ROOT_ID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes2\",\"internalType\":\"bytes2\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"commitPrevRandao\",\"inputs\":[{\"name\":\"commitmentHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"createFinalBitfield\",\"inputs\":[{\"name\":\"commitmentHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"bitfield\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"createInitialBitfield\",\"inputs\":[{\"name\":\"bitsToSet\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"currentValidatorSet\",\"inputs\":[],\"outputs\":[{\"name\":\"id\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"length\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"usageCounters\",\"type\":\"tuple\",\"internalType\":\"structUint16Array\",\"components\":[{\"name\":\"data\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"latestBeefyBlock\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"latestMMRRoot\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minNumRequiredSignatures\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"nextValidatorSet\",\"inputs\":[],\"outputs\":[{\"name\":\"id\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"length\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"usageCounters\",\"type\":\"tuple\",\"internalType\":\"structUint16Array\",\"components\":[{\"name\":\"data\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"randaoCommitDelay\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"randaoCommitExpiration\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"submitFinal\",\"inputs\":[{\"name\":\"commitment\",\"type\":\"tuple\",\"internalType\":\"structBeefyClient.Commitment\",\"components\":[{\"name\":\"blockNumber\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"validatorSetID\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"payload\",\"type\":\"tuple[]\",\"internalType\":\"structBeefyClient.PayloadItem[]\",\"components\":[{\"name\":\"payloadID\",\"type\":\"bytes2\",\"internalType\":\"bytes2\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}]},{\"name\":\"bitfield\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"proofs\",\"type\":\"tuple[]\",\"internalType\":\"structBeefyClient.ValidatorProof[]\",\"components\":[{\"name\":\"v\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"r\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"s\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"index\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"proof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"}]},{\"name\":\"leaf\",\"type\":\"tuple\",\"internalType\":\"structBeefyClient.MMRLeaf\",\"components\":[{\"name\":\"version\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"parentNumber\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"parentHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"nextAuthoritySetID\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"nextAuthoritySetLen\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"nextAuthoritySetRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"parachainHeadsRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"leafProof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"leafProofOrder\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"submitInitial\",\"inputs\":[{\"name\":\"commitment\",\"type\":\"tuple\",\"internalType\":\"structBeefyClient.Commitment\",\"components\":[{\"name\":\"blockNumber\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"validatorSetID\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"payload\",\"type\":\"tuple[]\",\"internalType\":\"structBeefyClient.PayloadItem[]\",\"components\":[{\"name\":\"payloadID\",\"type\":\"bytes2\",\"internalType\":\"bytes2\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}]},{\"name\":\"bitfield\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structBeefyClient.ValidatorProof\",\"components\":[{\"name\":\"v\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"r\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"s\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"index\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"proof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"tickets\",\"inputs\":[{\"name\":\"ticketID\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"blockNumber\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"validatorSetLen\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"numRequiredSignatures\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"prevRandao\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"bitfieldHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyMMRLeafProof\",\"inputs\":[{\"name\":\"leafHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"proof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"proofOrder\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"NewMMRRoot\",\"inputs\":[{\"name\":\"mmrRoot\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"blockNumber\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"CommitmentNotRelevant\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"IndexOutOfBounds\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidBitfield\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidBitfieldLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidCommitment\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidMMRLeaf\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidMMRLeafProof\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidMMRRootLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidSignature\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidTicket\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidValidatorProof\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidValidatorProofLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotEnoughClaims\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"PrevRandaoAlreadyCaptured\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"PrevRandaoNotCaptured\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ProofSizeExceeded\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"StaleCommitment\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"TicketExpired\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedCompactEncoding\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"WaitPeriodNotOver\",\"inputs\":[]}]",
}

BeefyClientMetaData contains all meta data concerning the BeefyClient contract.

View Source
var GatewayABI = GatewayMetaData.ABI

GatewayABI is the input ABI used to generate the binding from. Deprecated: Use GatewayMetaData.ABI instead.

View Source
var GatewayMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"agentOf\",\"inputs\":[{\"name\":\"agentID\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"channelNoncesOf\",\"inputs\":[{\"name\":\"channelID\",\"type\":\"bytes32\",\"internalType\":\"ChannelID\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"channelOperatingModeOf\",\"inputs\":[{\"name\":\"channelID\",\"type\":\"bytes32\",\"internalType\":\"ChannelID\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumOperatingMode\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"implementation\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isTokenRegistered\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"operatingMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumOperatingMode\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pricingParameters\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"UD60x18\"},{\"name\":\"\",\"type\":\"uint128\",\"internalType\":\"uint128\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"quoteRegisterTokenFee\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"quoteSendTokenFee\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"destinationChain\",\"type\":\"uint32\",\"internalType\":\"ParaID\"},{\"name\":\"destinationFee\",\"type\":\"uint128\",\"internalType\":\"uint128\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"registerToken\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"sendToken\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"destinationChain\",\"type\":\"uint32\",\"internalType\":\"ParaID\"},{\"name\":\"destinationAddress\",\"type\":\"tuple\",\"internalType\":\"structMultiAddress\",\"components\":[{\"name\":\"kind\",\"type\":\"uint8\",\"internalType\":\"enumKind\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"destinationFee\",\"type\":\"uint128\",\"internalType\":\"uint128\"},{\"name\":\"amount\",\"type\":\"uint128\",\"internalType\":\"uint128\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"submitV1\",\"inputs\":[{\"name\":\"message\",\"type\":\"tuple\",\"internalType\":\"structInboundMessage\",\"components\":[{\"name\":\"channelID\",\"type\":\"bytes32\",\"internalType\":\"ChannelID\"},{\"name\":\"nonce\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"command\",\"type\":\"uint8\",\"internalType\":\"enumCommand\"},{\"name\":\"params\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"maxDispatchGas\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"maxFeePerGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"reward\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"id\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"leafProof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"headerProof\",\"type\":\"tuple\",\"internalType\":\"structVerification.Proof\",\"components\":[{\"name\":\"header\",\"type\":\"tuple\",\"internalType\":\"structVerification.ParachainHeader\",\"components\":[{\"name\":\"parentHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"number\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"stateRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"extrinsicsRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"digestItems\",\"type\":\"tuple[]\",\"internalType\":\"structVerification.DigestItem[]\",\"components\":[{\"name\":\"kind\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"consensusEngineID\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}]},{\"name\":\"headProof\",\"type\":\"tuple\",\"internalType\":\"structVerification.HeadProof\",\"components\":[{\"name\":\"pos\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"width\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"proof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"}]},{\"name\":\"leafPartial\",\"type\":\"tuple\",\"internalType\":\"structVerification.MMRLeafPartial\",\"components\":[{\"name\":\"version\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"parentNumber\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"parentHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"nextAuthoritySetID\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"nextAuthoritySetLen\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"nextAuthoritySetRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"leafProof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"leafProofOrder\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"AgentCreated\",\"inputs\":[{\"name\":\"agentID\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"agent\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"AgentFundsWithdrawn\",\"inputs\":[{\"name\":\"agentID\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"recipient\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ChannelCreated\",\"inputs\":[{\"name\":\"channelID\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"ChannelID\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ChannelUpdated\",\"inputs\":[{\"name\":\"channelID\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"ChannelID\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"InboundMessageDispatched\",\"inputs\":[{\"name\":\"channelID\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"ChannelID\"},{\"name\":\"nonce\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"messageID\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"success\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OperatingModeChanged\",\"inputs\":[{\"name\":\"mode\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"enumOperatingMode\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OutboundMessageAccepted\",\"inputs\":[{\"name\":\"channelID\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"ChannelID\"},{\"name\":\"nonce\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"messageID\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"payload\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PricingParametersChanged\",\"inputs\":[],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TokenRegistrationSent\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TokenSent\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"destinationChain\",\"type\":\"uint32\",\"indexed\":true,\"internalType\":\"ParaID\"},{\"name\":\"destinationAddress\",\"type\":\"tuple\",\"indexed\":false,\"internalType\":\"structMultiAddress\",\"components\":[{\"name\":\"kind\",\"type\":\"uint8\",\"internalType\":\"enumKind\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"amount\",\"type\":\"uint128\",\"indexed\":false,\"internalType\":\"uint128\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TokenTransferFeesChanged\",\"inputs\":[],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Upgraded\",\"inputs\":[{\"name\":\"implementation\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false}]",
}

GatewayMetaData contains all meta data concerning the Gateway contract.

Functions

This section is empty.

Types

type BeefyClient

type BeefyClient struct {
	BeefyClientCaller     // Read-only binding to the contract
	BeefyClientTransactor // Write-only binding to the contract
	BeefyClientFilterer   // Log filterer for contract events
}

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

func NewBeefyClient

func NewBeefyClient(address common.Address, backend bind.ContractBackend) (*BeefyClient, error)

NewBeefyClient creates a new instance of BeefyClient, bound to a specific deployed contract.

type BeefyClientCaller

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

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

func NewBeefyClientCaller

func NewBeefyClientCaller(address common.Address, caller bind.ContractCaller) (*BeefyClientCaller, error)

NewBeefyClientCaller creates a new read-only instance of BeefyClient, bound to a specific deployed contract.

func (*BeefyClientCaller) CreateFinalBitfield

func (_BeefyClient *BeefyClientCaller) CreateFinalBitfield(opts *bind.CallOpts, commitmentHash [32]byte, bitfield []*big.Int) ([]*big.Int, error)

CreateFinalBitfield is a free data retrieval call binding the contract method 0x8ab81d13.

Solidity: function createFinalBitfield(bytes32 commitmentHash, uint256[] bitfield) view returns(uint256[])

func (*BeefyClientCaller) CreateInitialBitfield

func (_BeefyClient *BeefyClientCaller) CreateInitialBitfield(opts *bind.CallOpts, bitsToSet []*big.Int, length *big.Int) ([]*big.Int, error)

CreateInitialBitfield is a free data retrieval call binding the contract method 0x5da57fe9.

Solidity: function createInitialBitfield(uint256[] bitsToSet, uint256 length) pure returns(uint256[])

func (*BeefyClientCaller) CurrentValidatorSet

func (_BeefyClient *BeefyClientCaller) CurrentValidatorSet(opts *bind.CallOpts) (struct {
	Id            *big.Int
	Length        *big.Int
	Root          [32]byte
	UsageCounters Uint16Array
}, error)

CurrentValidatorSet is a free data retrieval call binding the contract method 0x2cdea717.

Solidity: function currentValidatorSet() view returns(uint128 id, uint128 length, bytes32 root, (uint256[],uint256) usageCounters)

func (*BeefyClientCaller) LatestBeefyBlock

func (_BeefyClient *BeefyClientCaller) LatestBeefyBlock(opts *bind.CallOpts) (uint64, error)

LatestBeefyBlock is a free data retrieval call binding the contract method 0x66ae69a0.

Solidity: function latestBeefyBlock() view returns(uint64)

func (*BeefyClientCaller) LatestMMRRoot

func (_BeefyClient *BeefyClientCaller) LatestMMRRoot(opts *bind.CallOpts) ([32]byte, error)

LatestMMRRoot is a free data retrieval call binding the contract method 0x41c9634e.

Solidity: function latestMMRRoot() view returns(bytes32)

func (*BeefyClientCaller) MMRROOTID

func (_BeefyClient *BeefyClientCaller) MMRROOTID(opts *bind.CallOpts) ([2]byte, error)

MMRROOTID is a free data retrieval call binding the contract method 0x0a7c8faa.

Solidity: function MMR_ROOT_ID() view returns(bytes2)

func (*BeefyClientCaller) MinNumRequiredSignatures

func (_BeefyClient *BeefyClientCaller) MinNumRequiredSignatures(opts *bind.CallOpts) (*big.Int, error)

MinNumRequiredSignatures is a free data retrieval call binding the contract method 0x6f55bd32.

Solidity: function minNumRequiredSignatures() view returns(uint256)

func (*BeefyClientCaller) NextValidatorSet

func (_BeefyClient *BeefyClientCaller) NextValidatorSet(opts *bind.CallOpts) (struct {
	Id            *big.Int
	Length        *big.Int
	Root          [32]byte
	UsageCounters Uint16Array
}, error)

NextValidatorSet is a free data retrieval call binding the contract method 0x36667513.

Solidity: function nextValidatorSet() view returns(uint128 id, uint128 length, bytes32 root, (uint256[],uint256) usageCounters)

func (*BeefyClientCaller) RandaoCommitDelay

func (_BeefyClient *BeefyClientCaller) RandaoCommitDelay(opts *bind.CallOpts) (*big.Int, error)

RandaoCommitDelay is a free data retrieval call binding the contract method 0x591d99ee.

Solidity: function randaoCommitDelay() view returns(uint256)

func (*BeefyClientCaller) RandaoCommitExpiration

func (_BeefyClient *BeefyClientCaller) RandaoCommitExpiration(opts *bind.CallOpts) (*big.Int, error)

RandaoCommitExpiration is a free data retrieval call binding the contract method 0xad209a9b.

Solidity: function randaoCommitExpiration() view returns(uint256)

func (*BeefyClientCaller) Tickets

func (_BeefyClient *BeefyClientCaller) Tickets(opts *bind.CallOpts, ticketID [32]byte) (struct {
	BlockNumber           uint64
	ValidatorSetLen       uint32
	NumRequiredSignatures uint32
	PrevRandao            *big.Int
	BitfieldHash          [32]byte
}, error)

Tickets is a free data retrieval call binding the contract method 0xdf0dd0d5.

Solidity: function tickets(bytes32 ticketID) view returns(uint64 blockNumber, uint32 validatorSetLen, uint32 numRequiredSignatures, uint256 prevRandao, bytes32 bitfieldHash)

func (*BeefyClientCaller) VerifyMMRLeafProof

func (_BeefyClient *BeefyClientCaller) VerifyMMRLeafProof(opts *bind.CallOpts, leafHash [32]byte, proof [][32]byte, proofOrder *big.Int) (bool, error)

VerifyMMRLeafProof is a free data retrieval call binding the contract method 0xa401662b.

Solidity: function verifyMMRLeafProof(bytes32 leafHash, bytes32[] proof, uint256 proofOrder) view returns(bool)

type BeefyClientCallerRaw

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

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

func (*BeefyClientCallerRaw) Call

func (_BeefyClient *BeefyClientCallerRaw) 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 BeefyClientCallerSession

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

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

func (*BeefyClientCallerSession) CreateFinalBitfield

func (_BeefyClient *BeefyClientCallerSession) CreateFinalBitfield(commitmentHash [32]byte, bitfield []*big.Int) ([]*big.Int, error)

CreateFinalBitfield is a free data retrieval call binding the contract method 0x8ab81d13.

Solidity: function createFinalBitfield(bytes32 commitmentHash, uint256[] bitfield) view returns(uint256[])

func (*BeefyClientCallerSession) CreateInitialBitfield

func (_BeefyClient *BeefyClientCallerSession) CreateInitialBitfield(bitsToSet []*big.Int, length *big.Int) ([]*big.Int, error)

CreateInitialBitfield is a free data retrieval call binding the contract method 0x5da57fe9.

Solidity: function createInitialBitfield(uint256[] bitsToSet, uint256 length) pure returns(uint256[])

func (*BeefyClientCallerSession) CurrentValidatorSet

func (_BeefyClient *BeefyClientCallerSession) CurrentValidatorSet() (struct {
	Id            *big.Int
	Length        *big.Int
	Root          [32]byte
	UsageCounters Uint16Array
}, error)

CurrentValidatorSet is a free data retrieval call binding the contract method 0x2cdea717.

Solidity: function currentValidatorSet() view returns(uint128 id, uint128 length, bytes32 root, (uint256[],uint256) usageCounters)

func (*BeefyClientCallerSession) LatestBeefyBlock

func (_BeefyClient *BeefyClientCallerSession) LatestBeefyBlock() (uint64, error)

LatestBeefyBlock is a free data retrieval call binding the contract method 0x66ae69a0.

Solidity: function latestBeefyBlock() view returns(uint64)

func (*BeefyClientCallerSession) LatestMMRRoot

func (_BeefyClient *BeefyClientCallerSession) LatestMMRRoot() ([32]byte, error)

LatestMMRRoot is a free data retrieval call binding the contract method 0x41c9634e.

Solidity: function latestMMRRoot() view returns(bytes32)

func (*BeefyClientCallerSession) MMRROOTID

func (_BeefyClient *BeefyClientCallerSession) MMRROOTID() ([2]byte, error)

MMRROOTID is a free data retrieval call binding the contract method 0x0a7c8faa.

Solidity: function MMR_ROOT_ID() view returns(bytes2)

func (*BeefyClientCallerSession) MinNumRequiredSignatures

func (_BeefyClient *BeefyClientCallerSession) MinNumRequiredSignatures() (*big.Int, error)

MinNumRequiredSignatures is a free data retrieval call binding the contract method 0x6f55bd32.

Solidity: function minNumRequiredSignatures() view returns(uint256)

func (*BeefyClientCallerSession) NextValidatorSet

func (_BeefyClient *BeefyClientCallerSession) NextValidatorSet() (struct {
	Id            *big.Int
	Length        *big.Int
	Root          [32]byte
	UsageCounters Uint16Array
}, error)

NextValidatorSet is a free data retrieval call binding the contract method 0x36667513.

Solidity: function nextValidatorSet() view returns(uint128 id, uint128 length, bytes32 root, (uint256[],uint256) usageCounters)

func (*BeefyClientCallerSession) RandaoCommitDelay

func (_BeefyClient *BeefyClientCallerSession) RandaoCommitDelay() (*big.Int, error)

RandaoCommitDelay is a free data retrieval call binding the contract method 0x591d99ee.

Solidity: function randaoCommitDelay() view returns(uint256)

func (*BeefyClientCallerSession) RandaoCommitExpiration

func (_BeefyClient *BeefyClientCallerSession) RandaoCommitExpiration() (*big.Int, error)

RandaoCommitExpiration is a free data retrieval call binding the contract method 0xad209a9b.

Solidity: function randaoCommitExpiration() view returns(uint256)

func (*BeefyClientCallerSession) Tickets

func (_BeefyClient *BeefyClientCallerSession) Tickets(ticketID [32]byte) (struct {
	BlockNumber           uint64
	ValidatorSetLen       uint32
	NumRequiredSignatures uint32
	PrevRandao            *big.Int
	BitfieldHash          [32]byte
}, error)

Tickets is a free data retrieval call binding the contract method 0xdf0dd0d5.

Solidity: function tickets(bytes32 ticketID) view returns(uint64 blockNumber, uint32 validatorSetLen, uint32 numRequiredSignatures, uint256 prevRandao, bytes32 bitfieldHash)

func (*BeefyClientCallerSession) VerifyMMRLeafProof

func (_BeefyClient *BeefyClientCallerSession) VerifyMMRLeafProof(leafHash [32]byte, proof [][32]byte, proofOrder *big.Int) (bool, error)

VerifyMMRLeafProof is a free data retrieval call binding the contract method 0xa401662b.

Solidity: function verifyMMRLeafProof(bytes32 leafHash, bytes32[] proof, uint256 proofOrder) view returns(bool)

type BeefyClientCommitment

type BeefyClientCommitment struct {
	BlockNumber    uint32
	ValidatorSetID uint64
	Payload        []BeefyClientPayloadItem
}

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

type BeefyClientFilterer

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

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

func NewBeefyClientFilterer

func NewBeefyClientFilterer(address common.Address, filterer bind.ContractFilterer) (*BeefyClientFilterer, error)

NewBeefyClientFilterer creates a new log filterer instance of BeefyClient, bound to a specific deployed contract.

func (*BeefyClientFilterer) FilterNewMMRRoot

func (_BeefyClient *BeefyClientFilterer) FilterNewMMRRoot(opts *bind.FilterOpts) (*BeefyClientNewMMRRootIterator, error)

FilterNewMMRRoot is a free log retrieval operation binding the contract event 0xd95fe1258d152dc91c81b09380498adc76ed36a6079bcb2ed31eff622ae2d0f1.

Solidity: event NewMMRRoot(bytes32 mmrRoot, uint64 blockNumber)

func (*BeefyClientFilterer) ParseNewMMRRoot

func (_BeefyClient *BeefyClientFilterer) ParseNewMMRRoot(log types.Log) (*BeefyClientNewMMRRoot, error)

ParseNewMMRRoot is a log parse operation binding the contract event 0xd95fe1258d152dc91c81b09380498adc76ed36a6079bcb2ed31eff622ae2d0f1.

Solidity: event NewMMRRoot(bytes32 mmrRoot, uint64 blockNumber)

func (*BeefyClientFilterer) WatchNewMMRRoot

func (_BeefyClient *BeefyClientFilterer) WatchNewMMRRoot(opts *bind.WatchOpts, sink chan<- *BeefyClientNewMMRRoot) (event.Subscription, error)

WatchNewMMRRoot is a free log subscription operation binding the contract event 0xd95fe1258d152dc91c81b09380498adc76ed36a6079bcb2ed31eff622ae2d0f1.

Solidity: event NewMMRRoot(bytes32 mmrRoot, uint64 blockNumber)

type BeefyClientMMRLeaf

type BeefyClientMMRLeaf struct {
	Version              uint8
	ParentNumber         uint32
	ParentHash           [32]byte
	NextAuthoritySetID   uint64
	NextAuthoritySetLen  uint32
	NextAuthoritySetRoot [32]byte
	ParachainHeadsRoot   [32]byte
}

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

type BeefyClientNewMMRRoot

type BeefyClientNewMMRRoot struct {
	MmrRoot     [32]byte
	BlockNumber uint64
	Raw         types.Log // Blockchain specific contextual infos
}

BeefyClientNewMMRRoot represents a NewMMRRoot event raised by the BeefyClient contract.

type BeefyClientNewMMRRootIterator

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

BeefyClientNewMMRRootIterator is returned from FilterNewMMRRoot and is used to iterate over the raw logs and unpacked data for NewMMRRoot events raised by the BeefyClient contract.

func (*BeefyClientNewMMRRootIterator) Close

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

func (*BeefyClientNewMMRRootIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BeefyClientNewMMRRootIterator) 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 BeefyClientPayloadItem

type BeefyClientPayloadItem struct {
	PayloadID [2]byte
	Data      []byte
}

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

type BeefyClientRaw

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

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

func (*BeefyClientRaw) Call

func (_BeefyClient *BeefyClientRaw) 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 (*BeefyClientRaw) Transact

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

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

func (*BeefyClientRaw) Transfer

func (_BeefyClient *BeefyClientRaw) 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 BeefyClientSession

type BeefyClientSession struct {
	Contract     *BeefyClient      // 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
}

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

func (*BeefyClientSession) CommitPrevRandao

func (_BeefyClient *BeefyClientSession) CommitPrevRandao(commitmentHash [32]byte) (*types.Transaction, error)

CommitPrevRandao is a paid mutator transaction binding the contract method 0xa77cf3d2.

Solidity: function commitPrevRandao(bytes32 commitmentHash) returns()

func (*BeefyClientSession) CreateFinalBitfield

func (_BeefyClient *BeefyClientSession) CreateFinalBitfield(commitmentHash [32]byte, bitfield []*big.Int) ([]*big.Int, error)

CreateFinalBitfield is a free data retrieval call binding the contract method 0x8ab81d13.

Solidity: function createFinalBitfield(bytes32 commitmentHash, uint256[] bitfield) view returns(uint256[])

func (*BeefyClientSession) CreateInitialBitfield

func (_BeefyClient *BeefyClientSession) CreateInitialBitfield(bitsToSet []*big.Int, length *big.Int) ([]*big.Int, error)

CreateInitialBitfield is a free data retrieval call binding the contract method 0x5da57fe9.

Solidity: function createInitialBitfield(uint256[] bitsToSet, uint256 length) pure returns(uint256[])

func (*BeefyClientSession) CurrentValidatorSet

func (_BeefyClient *BeefyClientSession) CurrentValidatorSet() (struct {
	Id            *big.Int
	Length        *big.Int
	Root          [32]byte
	UsageCounters Uint16Array
}, error)

CurrentValidatorSet is a free data retrieval call binding the contract method 0x2cdea717.

Solidity: function currentValidatorSet() view returns(uint128 id, uint128 length, bytes32 root, (uint256[],uint256) usageCounters)

func (*BeefyClientSession) LatestBeefyBlock

func (_BeefyClient *BeefyClientSession) LatestBeefyBlock() (uint64, error)

LatestBeefyBlock is a free data retrieval call binding the contract method 0x66ae69a0.

Solidity: function latestBeefyBlock() view returns(uint64)

func (*BeefyClientSession) LatestMMRRoot

func (_BeefyClient *BeefyClientSession) LatestMMRRoot() ([32]byte, error)

LatestMMRRoot is a free data retrieval call binding the contract method 0x41c9634e.

Solidity: function latestMMRRoot() view returns(bytes32)

func (*BeefyClientSession) MMRROOTID

func (_BeefyClient *BeefyClientSession) MMRROOTID() ([2]byte, error)

MMRROOTID is a free data retrieval call binding the contract method 0x0a7c8faa.

Solidity: function MMR_ROOT_ID() view returns(bytes2)

func (*BeefyClientSession) MinNumRequiredSignatures

func (_BeefyClient *BeefyClientSession) MinNumRequiredSignatures() (*big.Int, error)

MinNumRequiredSignatures is a free data retrieval call binding the contract method 0x6f55bd32.

Solidity: function minNumRequiredSignatures() view returns(uint256)

func (*BeefyClientSession) NextValidatorSet

func (_BeefyClient *BeefyClientSession) NextValidatorSet() (struct {
	Id            *big.Int
	Length        *big.Int
	Root          [32]byte
	UsageCounters Uint16Array
}, error)

NextValidatorSet is a free data retrieval call binding the contract method 0x36667513.

Solidity: function nextValidatorSet() view returns(uint128 id, uint128 length, bytes32 root, (uint256[],uint256) usageCounters)

func (*BeefyClientSession) RandaoCommitDelay

func (_BeefyClient *BeefyClientSession) RandaoCommitDelay() (*big.Int, error)

RandaoCommitDelay is a free data retrieval call binding the contract method 0x591d99ee.

Solidity: function randaoCommitDelay() view returns(uint256)

func (*BeefyClientSession) RandaoCommitExpiration

func (_BeefyClient *BeefyClientSession) RandaoCommitExpiration() (*big.Int, error)

RandaoCommitExpiration is a free data retrieval call binding the contract method 0xad209a9b.

Solidity: function randaoCommitExpiration() view returns(uint256)

func (*BeefyClientSession) SubmitFinal

func (_BeefyClient *BeefyClientSession) SubmitFinal(commitment BeefyClientCommitment, bitfield []*big.Int, proofs []BeefyClientValidatorProof, leaf BeefyClientMMRLeaf, leafProof [][32]byte, leafProofOrder *big.Int) (*types.Transaction, error)

SubmitFinal is a paid mutator transaction binding the contract method 0x623b223d.

Solidity: function submitFinal((uint32,uint64,(bytes2,bytes)[]) commitment, uint256[] bitfield, (uint8,bytes32,bytes32,uint256,address,bytes32[])[] proofs, (uint8,uint32,bytes32,uint64,uint32,bytes32,bytes32) leaf, bytes32[] leafProof, uint256 leafProofOrder) returns()

func (*BeefyClientSession) SubmitInitial

func (_BeefyClient *BeefyClientSession) SubmitInitial(commitment BeefyClientCommitment, bitfield []*big.Int, proof BeefyClientValidatorProof) (*types.Transaction, error)

SubmitInitial is a paid mutator transaction binding the contract method 0xbb51f1eb.

Solidity: function submitInitial((uint32,uint64,(bytes2,bytes)[]) commitment, uint256[] bitfield, (uint8,bytes32,bytes32,uint256,address,bytes32[]) proof) returns()

func (*BeefyClientSession) Tickets

func (_BeefyClient *BeefyClientSession) Tickets(ticketID [32]byte) (struct {
	BlockNumber           uint64
	ValidatorSetLen       uint32
	NumRequiredSignatures uint32
	PrevRandao            *big.Int
	BitfieldHash          [32]byte
}, error)

Tickets is a free data retrieval call binding the contract method 0xdf0dd0d5.

Solidity: function tickets(bytes32 ticketID) view returns(uint64 blockNumber, uint32 validatorSetLen, uint32 numRequiredSignatures, uint256 prevRandao, bytes32 bitfieldHash)

func (*BeefyClientSession) VerifyMMRLeafProof

func (_BeefyClient *BeefyClientSession) VerifyMMRLeafProof(leafHash [32]byte, proof [][32]byte, proofOrder *big.Int) (bool, error)

VerifyMMRLeafProof is a free data retrieval call binding the contract method 0xa401662b.

Solidity: function verifyMMRLeafProof(bytes32 leafHash, bytes32[] proof, uint256 proofOrder) view returns(bool)

type BeefyClientTransactor

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

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

func NewBeefyClientTransactor

func NewBeefyClientTransactor(address common.Address, transactor bind.ContractTransactor) (*BeefyClientTransactor, error)

NewBeefyClientTransactor creates a new write-only instance of BeefyClient, bound to a specific deployed contract.

func (*BeefyClientTransactor) CommitPrevRandao

func (_BeefyClient *BeefyClientTransactor) CommitPrevRandao(opts *bind.TransactOpts, commitmentHash [32]byte) (*types.Transaction, error)

CommitPrevRandao is a paid mutator transaction binding the contract method 0xa77cf3d2.

Solidity: function commitPrevRandao(bytes32 commitmentHash) returns()

func (*BeefyClientTransactor) SubmitFinal

func (_BeefyClient *BeefyClientTransactor) SubmitFinal(opts *bind.TransactOpts, commitment BeefyClientCommitment, bitfield []*big.Int, proofs []BeefyClientValidatorProof, leaf BeefyClientMMRLeaf, leafProof [][32]byte, leafProofOrder *big.Int) (*types.Transaction, error)

SubmitFinal is a paid mutator transaction binding the contract method 0x623b223d.

Solidity: function submitFinal((uint32,uint64,(bytes2,bytes)[]) commitment, uint256[] bitfield, (uint8,bytes32,bytes32,uint256,address,bytes32[])[] proofs, (uint8,uint32,bytes32,uint64,uint32,bytes32,bytes32) leaf, bytes32[] leafProof, uint256 leafProofOrder) returns()

func (*BeefyClientTransactor) SubmitInitial

func (_BeefyClient *BeefyClientTransactor) SubmitInitial(opts *bind.TransactOpts, commitment BeefyClientCommitment, bitfield []*big.Int, proof BeefyClientValidatorProof) (*types.Transaction, error)

SubmitInitial is a paid mutator transaction binding the contract method 0xbb51f1eb.

Solidity: function submitInitial((uint32,uint64,(bytes2,bytes)[]) commitment, uint256[] bitfield, (uint8,bytes32,bytes32,uint256,address,bytes32[]) proof) returns()

type BeefyClientTransactorRaw

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

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

func (*BeefyClientTransactorRaw) Transact

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

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

func (*BeefyClientTransactorRaw) Transfer

func (_BeefyClient *BeefyClientTransactorRaw) 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 BeefyClientTransactorSession

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

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

func (*BeefyClientTransactorSession) CommitPrevRandao

func (_BeefyClient *BeefyClientTransactorSession) CommitPrevRandao(commitmentHash [32]byte) (*types.Transaction, error)

CommitPrevRandao is a paid mutator transaction binding the contract method 0xa77cf3d2.

Solidity: function commitPrevRandao(bytes32 commitmentHash) returns()

func (*BeefyClientTransactorSession) SubmitFinal

func (_BeefyClient *BeefyClientTransactorSession) SubmitFinal(commitment BeefyClientCommitment, bitfield []*big.Int, proofs []BeefyClientValidatorProof, leaf BeefyClientMMRLeaf, leafProof [][32]byte, leafProofOrder *big.Int) (*types.Transaction, error)

SubmitFinal is a paid mutator transaction binding the contract method 0x623b223d.

Solidity: function submitFinal((uint32,uint64,(bytes2,bytes)[]) commitment, uint256[] bitfield, (uint8,bytes32,bytes32,uint256,address,bytes32[])[] proofs, (uint8,uint32,bytes32,uint64,uint32,bytes32,bytes32) leaf, bytes32[] leafProof, uint256 leafProofOrder) returns()

func (*BeefyClientTransactorSession) SubmitInitial

func (_BeefyClient *BeefyClientTransactorSession) SubmitInitial(commitment BeefyClientCommitment, bitfield []*big.Int, proof BeefyClientValidatorProof) (*types.Transaction, error)

SubmitInitial is a paid mutator transaction binding the contract method 0xbb51f1eb.

Solidity: function submitInitial((uint32,uint64,(bytes2,bytes)[]) commitment, uint256[] bitfield, (uint8,bytes32,bytes32,uint256,address,bytes32[]) proof) returns()

type BeefyClientValidatorProof

type BeefyClientValidatorProof struct {
	V       uint8
	R       [32]byte
	S       [32]byte
	Index   *big.Int
	Account common.Address
	Proof   [][32]byte
}

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

type BeefyClientValidatorSet

type BeefyClientValidatorSet struct {
	Id     *big.Int
	Length *big.Int
	Root   [32]byte
}

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

type Gateway

type Gateway struct {
	GatewayCaller     // Read-only binding to the contract
	GatewayTransactor // Write-only binding to the contract
	GatewayFilterer   // Log filterer for contract events
}

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

func NewGateway

func NewGateway(address common.Address, backend bind.ContractBackend) (*Gateway, error)

NewGateway creates a new instance of Gateway, bound to a specific deployed contract.

type GatewayAgentCreated

type GatewayAgentCreated struct {
	AgentID [32]byte
	Agent   common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

GatewayAgentCreated represents a AgentCreated event raised by the Gateway contract.

type GatewayAgentCreatedIterator

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

GatewayAgentCreatedIterator is returned from FilterAgentCreated and is used to iterate over the raw logs and unpacked data for AgentCreated events raised by the Gateway contract.

func (*GatewayAgentCreatedIterator) Close

func (it *GatewayAgentCreatedIterator) Close() error

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

func (*GatewayAgentCreatedIterator) Error

func (it *GatewayAgentCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayAgentCreatedIterator) Next

func (it *GatewayAgentCreatedIterator) 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 GatewayAgentFundsWithdrawn

type GatewayAgentFundsWithdrawn struct {
	AgentID   [32]byte
	Recipient common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

GatewayAgentFundsWithdrawn represents a AgentFundsWithdrawn event raised by the Gateway contract.

type GatewayAgentFundsWithdrawnIterator

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

GatewayAgentFundsWithdrawnIterator is returned from FilterAgentFundsWithdrawn and is used to iterate over the raw logs and unpacked data for AgentFundsWithdrawn events raised by the Gateway contract.

func (*GatewayAgentFundsWithdrawnIterator) Close

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

func (*GatewayAgentFundsWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayAgentFundsWithdrawnIterator) 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 GatewayCaller

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

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

func NewGatewayCaller

func NewGatewayCaller(address common.Address, caller bind.ContractCaller) (*GatewayCaller, error)

NewGatewayCaller creates a new read-only instance of Gateway, bound to a specific deployed contract.

func (*GatewayCaller) AgentOf

func (_Gateway *GatewayCaller) AgentOf(opts *bind.CallOpts, agentID [32]byte) (common.Address, error)

AgentOf is a free data retrieval call binding the contract method 0x5e6dae26.

Solidity: function agentOf(bytes32 agentID) view returns(address)

func (*GatewayCaller) ChannelNoncesOf

func (_Gateway *GatewayCaller) ChannelNoncesOf(opts *bind.CallOpts, channelID [32]byte) (uint64, uint64, error)

ChannelNoncesOf is a free data retrieval call binding the contract method 0x2a6c3229.

Solidity: function channelNoncesOf(bytes32 channelID) view returns(uint64, uint64)

func (*GatewayCaller) ChannelOperatingModeOf

func (_Gateway *GatewayCaller) ChannelOperatingModeOf(opts *bind.CallOpts, channelID [32]byte) (uint8, error)

ChannelOperatingModeOf is a free data retrieval call binding the contract method 0x0705f465.

Solidity: function channelOperatingModeOf(bytes32 channelID) view returns(uint8)

func (*GatewayCaller) Implementation

func (_Gateway *GatewayCaller) Implementation(opts *bind.CallOpts) (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*GatewayCaller) IsTokenRegistered

func (_Gateway *GatewayCaller) IsTokenRegistered(opts *bind.CallOpts, token common.Address) (bool, error)

IsTokenRegistered is a free data retrieval call binding the contract method 0x26aa101f.

Solidity: function isTokenRegistered(address token) view returns(bool)

func (*GatewayCaller) OperatingMode

func (_Gateway *GatewayCaller) OperatingMode(opts *bind.CallOpts) (uint8, error)

OperatingMode is a free data retrieval call binding the contract method 0x38004f69.

Solidity: function operatingMode() view returns(uint8)

func (*GatewayCaller) PricingParameters

func (_Gateway *GatewayCaller) PricingParameters(opts *bind.CallOpts) (*big.Int, *big.Int, error)

PricingParameters is a free data retrieval call binding the contract method 0x0b617646.

Solidity: function pricingParameters() view returns(uint256, uint128)

func (*GatewayCaller) QuoteRegisterTokenFee

func (_Gateway *GatewayCaller) QuoteRegisterTokenFee(opts *bind.CallOpts) (*big.Int, error)

QuoteRegisterTokenFee is a free data retrieval call binding the contract method 0x805ce31d.

Solidity: function quoteRegisterTokenFee() view returns(uint256)

func (*GatewayCaller) QuoteSendTokenFee

func (_Gateway *GatewayCaller) QuoteSendTokenFee(opts *bind.CallOpts, token common.Address, destinationChain uint32, destinationFee *big.Int) (*big.Int, error)

QuoteSendTokenFee is a free data retrieval call binding the contract method 0x928bc49d.

Solidity: function quoteSendTokenFee(address token, uint32 destinationChain, uint128 destinationFee) view returns(uint256)

type GatewayCallerRaw

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

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

func (*GatewayCallerRaw) Call

func (_Gateway *GatewayCallerRaw) 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 GatewayCallerSession

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

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

func (*GatewayCallerSession) AgentOf

func (_Gateway *GatewayCallerSession) AgentOf(agentID [32]byte) (common.Address, error)

AgentOf is a free data retrieval call binding the contract method 0x5e6dae26.

Solidity: function agentOf(bytes32 agentID) view returns(address)

func (*GatewayCallerSession) ChannelNoncesOf

func (_Gateway *GatewayCallerSession) ChannelNoncesOf(channelID [32]byte) (uint64, uint64, error)

ChannelNoncesOf is a free data retrieval call binding the contract method 0x2a6c3229.

Solidity: function channelNoncesOf(bytes32 channelID) view returns(uint64, uint64)

func (*GatewayCallerSession) ChannelOperatingModeOf

func (_Gateway *GatewayCallerSession) ChannelOperatingModeOf(channelID [32]byte) (uint8, error)

ChannelOperatingModeOf is a free data retrieval call binding the contract method 0x0705f465.

Solidity: function channelOperatingModeOf(bytes32 channelID) view returns(uint8)

func (*GatewayCallerSession) Implementation

func (_Gateway *GatewayCallerSession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*GatewayCallerSession) IsTokenRegistered

func (_Gateway *GatewayCallerSession) IsTokenRegistered(token common.Address) (bool, error)

IsTokenRegistered is a free data retrieval call binding the contract method 0x26aa101f.

Solidity: function isTokenRegistered(address token) view returns(bool)

func (*GatewayCallerSession) OperatingMode

func (_Gateway *GatewayCallerSession) OperatingMode() (uint8, error)

OperatingMode is a free data retrieval call binding the contract method 0x38004f69.

Solidity: function operatingMode() view returns(uint8)

func (*GatewayCallerSession) PricingParameters

func (_Gateway *GatewayCallerSession) PricingParameters() (*big.Int, *big.Int, error)

PricingParameters is a free data retrieval call binding the contract method 0x0b617646.

Solidity: function pricingParameters() view returns(uint256, uint128)

func (*GatewayCallerSession) QuoteRegisterTokenFee

func (_Gateway *GatewayCallerSession) QuoteRegisterTokenFee() (*big.Int, error)

QuoteRegisterTokenFee is a free data retrieval call binding the contract method 0x805ce31d.

Solidity: function quoteRegisterTokenFee() view returns(uint256)

func (*GatewayCallerSession) QuoteSendTokenFee

func (_Gateway *GatewayCallerSession) QuoteSendTokenFee(token common.Address, destinationChain uint32, destinationFee *big.Int) (*big.Int, error)

QuoteSendTokenFee is a free data retrieval call binding the contract method 0x928bc49d.

Solidity: function quoteSendTokenFee(address token, uint32 destinationChain, uint128 destinationFee) view returns(uint256)

type GatewayChannelCreated

type GatewayChannelCreated struct {
	ChannelID [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

GatewayChannelCreated represents a ChannelCreated event raised by the Gateway contract.

type GatewayChannelCreatedIterator

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

GatewayChannelCreatedIterator is returned from FilterChannelCreated and is used to iterate over the raw logs and unpacked data for ChannelCreated events raised by the Gateway contract.

func (*GatewayChannelCreatedIterator) Close

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

func (*GatewayChannelCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayChannelCreatedIterator) 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 GatewayChannelUpdated

type GatewayChannelUpdated struct {
	ChannelID [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

GatewayChannelUpdated represents a ChannelUpdated event raised by the Gateway contract.

type GatewayChannelUpdatedIterator

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

GatewayChannelUpdatedIterator is returned from FilterChannelUpdated and is used to iterate over the raw logs and unpacked data for ChannelUpdated events raised by the Gateway contract.

func (*GatewayChannelUpdatedIterator) Close

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

func (*GatewayChannelUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayChannelUpdatedIterator) 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 GatewayFilterer

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

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

func NewGatewayFilterer

func NewGatewayFilterer(address common.Address, filterer bind.ContractFilterer) (*GatewayFilterer, error)

NewGatewayFilterer creates a new log filterer instance of Gateway, bound to a specific deployed contract.

func (*GatewayFilterer) FilterAgentCreated

func (_Gateway *GatewayFilterer) FilterAgentCreated(opts *bind.FilterOpts) (*GatewayAgentCreatedIterator, error)

FilterAgentCreated is a free log retrieval operation binding the contract event 0x7c96960a1ebd8cc753b10836ea25bd7c9c4f8cd43590db1e8b3648cb0ec4cc89.

Solidity: event AgentCreated(bytes32 agentID, address agent)

func (*GatewayFilterer) FilterAgentFundsWithdrawn

func (_Gateway *GatewayFilterer) FilterAgentFundsWithdrawn(opts *bind.FilterOpts, agentID [][32]byte, recipient []common.Address) (*GatewayAgentFundsWithdrawnIterator, error)

FilterAgentFundsWithdrawn is a free log retrieval operation binding the contract event 0xf953871855f78d5ccdd6268f2d9d69fc67f26542a35d2bba1c615521aed57054.

Solidity: event AgentFundsWithdrawn(bytes32 indexed agentID, address indexed recipient, uint256 amount)

func (*GatewayFilterer) FilterChannelCreated

func (_Gateway *GatewayFilterer) FilterChannelCreated(opts *bind.FilterOpts, channelID [][32]byte) (*GatewayChannelCreatedIterator, error)

FilterChannelCreated is a free log retrieval operation binding the contract event 0xe7e6b36c9bc4c7817d3879c45d6ce1edd3c61b1966c488f1817697bb0b704525.

Solidity: event ChannelCreated(bytes32 indexed channelID)

func (*GatewayFilterer) FilterChannelUpdated

func (_Gateway *GatewayFilterer) FilterChannelUpdated(opts *bind.FilterOpts, channelID [][32]byte) (*GatewayChannelUpdatedIterator, error)

FilterChannelUpdated is a free log retrieval operation binding the contract event 0x66e174b5e03ba247add8660a34e70bdd484239fe794c2567772e8e93a5c1696b.

Solidity: event ChannelUpdated(bytes32 indexed channelID)

func (*GatewayFilterer) FilterInboundMessageDispatched

func (_Gateway *GatewayFilterer) FilterInboundMessageDispatched(opts *bind.FilterOpts, channelID [][32]byte, messageID [][32]byte) (*GatewayInboundMessageDispatchedIterator, error)

FilterInboundMessageDispatched is a free log retrieval operation binding the contract event 0x617fdb0cb78f01551a192a3673208ec5eb09f20a90acf673c63a0dcb11745a7a.

Solidity: event InboundMessageDispatched(bytes32 indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success)

func (*GatewayFilterer) FilterOperatingModeChanged

func (_Gateway *GatewayFilterer) FilterOperatingModeChanged(opts *bind.FilterOpts) (*GatewayOperatingModeChangedIterator, error)

FilterOperatingModeChanged is a free log retrieval operation binding the contract event 0x4016a1377b8961c4aa6f3a2d3de830a685ddbfe0f228ffc0208eb96304c4cf1a.

Solidity: event OperatingModeChanged(uint8 mode)

func (*GatewayFilterer) FilterOutboundMessageAccepted

func (_Gateway *GatewayFilterer) FilterOutboundMessageAccepted(opts *bind.FilterOpts, channelID [][32]byte, messageID [][32]byte) (*GatewayOutboundMessageAcceptedIterator, error)

FilterOutboundMessageAccepted is a free log retrieval operation binding the contract event 0x7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f.

Solidity: event OutboundMessageAccepted(bytes32 indexed channelID, uint64 nonce, bytes32 indexed messageID, bytes payload)

func (*GatewayFilterer) FilterPricingParametersChanged

func (_Gateway *GatewayFilterer) FilterPricingParametersChanged(opts *bind.FilterOpts) (*GatewayPricingParametersChangedIterator, error)

FilterPricingParametersChanged is a free log retrieval operation binding the contract event 0x5e3c25378b5946068b94aa2ea10c4c1e215cc975f994322b159ddc9237a973d4.

Solidity: event PricingParametersChanged()

func (*GatewayFilterer) FilterTokenRegistrationSent

func (_Gateway *GatewayFilterer) FilterTokenRegistrationSent(opts *bind.FilterOpts) (*GatewayTokenRegistrationSentIterator, error)

FilterTokenRegistrationSent is a free log retrieval operation binding the contract event 0xf78bb28d4b1d7da699e5c0bc2be29c2b04b5aab6aacf6298fe5304f9db9c6d7e.

Solidity: event TokenRegistrationSent(address token)

func (*GatewayFilterer) FilterTokenSent

func (_Gateway *GatewayFilterer) FilterTokenSent(opts *bind.FilterOpts, token []common.Address, sender []common.Address, destinationChain []uint32) (*GatewayTokenSentIterator, error)

FilterTokenSent is a free log retrieval operation binding the contract event 0x24c5d2de620c6e25186ae16f6919eba93b6e2c1a33857cc419d9f3a00d6967e9.

Solidity: event TokenSent(address indexed token, address indexed sender, uint32 indexed destinationChain, (uint8,bytes) destinationAddress, uint128 amount)

func (*GatewayFilterer) FilterTokenTransferFeesChanged

func (_Gateway *GatewayFilterer) FilterTokenTransferFeesChanged(opts *bind.FilterOpts) (*GatewayTokenTransferFeesChangedIterator, error)

FilterTokenTransferFeesChanged is a free log retrieval operation binding the contract event 0x4793c0cb5bef4b1fdbbfbcf17e06991844eb881088b012442af17a12ff38d5cd.

Solidity: event TokenTransferFeesChanged()

func (*GatewayFilterer) FilterUpgraded

func (_Gateway *GatewayFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*GatewayUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*GatewayFilterer) ParseAgentCreated

func (_Gateway *GatewayFilterer) ParseAgentCreated(log types.Log) (*GatewayAgentCreated, error)

ParseAgentCreated is a log parse operation binding the contract event 0x7c96960a1ebd8cc753b10836ea25bd7c9c4f8cd43590db1e8b3648cb0ec4cc89.

Solidity: event AgentCreated(bytes32 agentID, address agent)

func (*GatewayFilterer) ParseAgentFundsWithdrawn

func (_Gateway *GatewayFilterer) ParseAgentFundsWithdrawn(log types.Log) (*GatewayAgentFundsWithdrawn, error)

ParseAgentFundsWithdrawn is a log parse operation binding the contract event 0xf953871855f78d5ccdd6268f2d9d69fc67f26542a35d2bba1c615521aed57054.

Solidity: event AgentFundsWithdrawn(bytes32 indexed agentID, address indexed recipient, uint256 amount)

func (*GatewayFilterer) ParseChannelCreated

func (_Gateway *GatewayFilterer) ParseChannelCreated(log types.Log) (*GatewayChannelCreated, error)

ParseChannelCreated is a log parse operation binding the contract event 0xe7e6b36c9bc4c7817d3879c45d6ce1edd3c61b1966c488f1817697bb0b704525.

Solidity: event ChannelCreated(bytes32 indexed channelID)

func (*GatewayFilterer) ParseChannelUpdated

func (_Gateway *GatewayFilterer) ParseChannelUpdated(log types.Log) (*GatewayChannelUpdated, error)

ParseChannelUpdated is a log parse operation binding the contract event 0x66e174b5e03ba247add8660a34e70bdd484239fe794c2567772e8e93a5c1696b.

Solidity: event ChannelUpdated(bytes32 indexed channelID)

func (*GatewayFilterer) ParseInboundMessageDispatched

func (_Gateway *GatewayFilterer) ParseInboundMessageDispatched(log types.Log) (*GatewayInboundMessageDispatched, error)

ParseInboundMessageDispatched is a log parse operation binding the contract event 0x617fdb0cb78f01551a192a3673208ec5eb09f20a90acf673c63a0dcb11745a7a.

Solidity: event InboundMessageDispatched(bytes32 indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success)

func (*GatewayFilterer) ParseOperatingModeChanged

func (_Gateway *GatewayFilterer) ParseOperatingModeChanged(log types.Log) (*GatewayOperatingModeChanged, error)

ParseOperatingModeChanged is a log parse operation binding the contract event 0x4016a1377b8961c4aa6f3a2d3de830a685ddbfe0f228ffc0208eb96304c4cf1a.

Solidity: event OperatingModeChanged(uint8 mode)

func (*GatewayFilterer) ParseOutboundMessageAccepted

func (_Gateway *GatewayFilterer) ParseOutboundMessageAccepted(log types.Log) (*GatewayOutboundMessageAccepted, error)

ParseOutboundMessageAccepted is a log parse operation binding the contract event 0x7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f.

Solidity: event OutboundMessageAccepted(bytes32 indexed channelID, uint64 nonce, bytes32 indexed messageID, bytes payload)

func (*GatewayFilterer) ParsePricingParametersChanged

func (_Gateway *GatewayFilterer) ParsePricingParametersChanged(log types.Log) (*GatewayPricingParametersChanged, error)

ParsePricingParametersChanged is a log parse operation binding the contract event 0x5e3c25378b5946068b94aa2ea10c4c1e215cc975f994322b159ddc9237a973d4.

Solidity: event PricingParametersChanged()

func (*GatewayFilterer) ParseTokenRegistrationSent

func (_Gateway *GatewayFilterer) ParseTokenRegistrationSent(log types.Log) (*GatewayTokenRegistrationSent, error)

ParseTokenRegistrationSent is a log parse operation binding the contract event 0xf78bb28d4b1d7da699e5c0bc2be29c2b04b5aab6aacf6298fe5304f9db9c6d7e.

Solidity: event TokenRegistrationSent(address token)

func (*GatewayFilterer) ParseTokenSent

func (_Gateway *GatewayFilterer) ParseTokenSent(log types.Log) (*GatewayTokenSent, error)

ParseTokenSent is a log parse operation binding the contract event 0x24c5d2de620c6e25186ae16f6919eba93b6e2c1a33857cc419d9f3a00d6967e9.

Solidity: event TokenSent(address indexed token, address indexed sender, uint32 indexed destinationChain, (uint8,bytes) destinationAddress, uint128 amount)

func (*GatewayFilterer) ParseTokenTransferFeesChanged

func (_Gateway *GatewayFilterer) ParseTokenTransferFeesChanged(log types.Log) (*GatewayTokenTransferFeesChanged, error)

ParseTokenTransferFeesChanged is a log parse operation binding the contract event 0x4793c0cb5bef4b1fdbbfbcf17e06991844eb881088b012442af17a12ff38d5cd.

Solidity: event TokenTransferFeesChanged()

func (*GatewayFilterer) ParseUpgraded

func (_Gateway *GatewayFilterer) ParseUpgraded(log types.Log) (*GatewayUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*GatewayFilterer) WatchAgentCreated

func (_Gateway *GatewayFilterer) WatchAgentCreated(opts *bind.WatchOpts, sink chan<- *GatewayAgentCreated) (event.Subscription, error)

WatchAgentCreated is a free log subscription operation binding the contract event 0x7c96960a1ebd8cc753b10836ea25bd7c9c4f8cd43590db1e8b3648cb0ec4cc89.

Solidity: event AgentCreated(bytes32 agentID, address agent)

func (*GatewayFilterer) WatchAgentFundsWithdrawn

func (_Gateway *GatewayFilterer) WatchAgentFundsWithdrawn(opts *bind.WatchOpts, sink chan<- *GatewayAgentFundsWithdrawn, agentID [][32]byte, recipient []common.Address) (event.Subscription, error)

WatchAgentFundsWithdrawn is a free log subscription operation binding the contract event 0xf953871855f78d5ccdd6268f2d9d69fc67f26542a35d2bba1c615521aed57054.

Solidity: event AgentFundsWithdrawn(bytes32 indexed agentID, address indexed recipient, uint256 amount)

func (*GatewayFilterer) WatchChannelCreated

func (_Gateway *GatewayFilterer) WatchChannelCreated(opts *bind.WatchOpts, sink chan<- *GatewayChannelCreated, channelID [][32]byte) (event.Subscription, error)

WatchChannelCreated is a free log subscription operation binding the contract event 0xe7e6b36c9bc4c7817d3879c45d6ce1edd3c61b1966c488f1817697bb0b704525.

Solidity: event ChannelCreated(bytes32 indexed channelID)

func (*GatewayFilterer) WatchChannelUpdated

func (_Gateway *GatewayFilterer) WatchChannelUpdated(opts *bind.WatchOpts, sink chan<- *GatewayChannelUpdated, channelID [][32]byte) (event.Subscription, error)

WatchChannelUpdated is a free log subscription operation binding the contract event 0x66e174b5e03ba247add8660a34e70bdd484239fe794c2567772e8e93a5c1696b.

Solidity: event ChannelUpdated(bytes32 indexed channelID)

func (*GatewayFilterer) WatchInboundMessageDispatched

func (_Gateway *GatewayFilterer) WatchInboundMessageDispatched(opts *bind.WatchOpts, sink chan<- *GatewayInboundMessageDispatched, channelID [][32]byte, messageID [][32]byte) (event.Subscription, error)

WatchInboundMessageDispatched is a free log subscription operation binding the contract event 0x617fdb0cb78f01551a192a3673208ec5eb09f20a90acf673c63a0dcb11745a7a.

Solidity: event InboundMessageDispatched(bytes32 indexed channelID, uint64 nonce, bytes32 indexed messageID, bool success)

func (*GatewayFilterer) WatchOperatingModeChanged

func (_Gateway *GatewayFilterer) WatchOperatingModeChanged(opts *bind.WatchOpts, sink chan<- *GatewayOperatingModeChanged) (event.Subscription, error)

WatchOperatingModeChanged is a free log subscription operation binding the contract event 0x4016a1377b8961c4aa6f3a2d3de830a685ddbfe0f228ffc0208eb96304c4cf1a.

Solidity: event OperatingModeChanged(uint8 mode)

func (*GatewayFilterer) WatchOutboundMessageAccepted

func (_Gateway *GatewayFilterer) WatchOutboundMessageAccepted(opts *bind.WatchOpts, sink chan<- *GatewayOutboundMessageAccepted, channelID [][32]byte, messageID [][32]byte) (event.Subscription, error)

WatchOutboundMessageAccepted is a free log subscription operation binding the contract event 0x7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f.

Solidity: event OutboundMessageAccepted(bytes32 indexed channelID, uint64 nonce, bytes32 indexed messageID, bytes payload)

func (*GatewayFilterer) WatchPricingParametersChanged

func (_Gateway *GatewayFilterer) WatchPricingParametersChanged(opts *bind.WatchOpts, sink chan<- *GatewayPricingParametersChanged) (event.Subscription, error)

WatchPricingParametersChanged is a free log subscription operation binding the contract event 0x5e3c25378b5946068b94aa2ea10c4c1e215cc975f994322b159ddc9237a973d4.

Solidity: event PricingParametersChanged()

func (*GatewayFilterer) WatchTokenRegistrationSent

func (_Gateway *GatewayFilterer) WatchTokenRegistrationSent(opts *bind.WatchOpts, sink chan<- *GatewayTokenRegistrationSent) (event.Subscription, error)

WatchTokenRegistrationSent is a free log subscription operation binding the contract event 0xf78bb28d4b1d7da699e5c0bc2be29c2b04b5aab6aacf6298fe5304f9db9c6d7e.

Solidity: event TokenRegistrationSent(address token)

func (*GatewayFilterer) WatchTokenSent

func (_Gateway *GatewayFilterer) WatchTokenSent(opts *bind.WatchOpts, sink chan<- *GatewayTokenSent, token []common.Address, sender []common.Address, destinationChain []uint32) (event.Subscription, error)

WatchTokenSent is a free log subscription operation binding the contract event 0x24c5d2de620c6e25186ae16f6919eba93b6e2c1a33857cc419d9f3a00d6967e9.

Solidity: event TokenSent(address indexed token, address indexed sender, uint32 indexed destinationChain, (uint8,bytes) destinationAddress, uint128 amount)

func (*GatewayFilterer) WatchTokenTransferFeesChanged

func (_Gateway *GatewayFilterer) WatchTokenTransferFeesChanged(opts *bind.WatchOpts, sink chan<- *GatewayTokenTransferFeesChanged) (event.Subscription, error)

WatchTokenTransferFeesChanged is a free log subscription operation binding the contract event 0x4793c0cb5bef4b1fdbbfbcf17e06991844eb881088b012442af17a12ff38d5cd.

Solidity: event TokenTransferFeesChanged()

func (*GatewayFilterer) WatchUpgraded

func (_Gateway *GatewayFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *GatewayUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

type GatewayInboundMessageDispatched

type GatewayInboundMessageDispatched struct {
	ChannelID [32]byte
	Nonce     uint64
	MessageID [32]byte
	Success   bool
	Raw       types.Log // Blockchain specific contextual infos
}

GatewayInboundMessageDispatched represents a InboundMessageDispatched event raised by the Gateway contract.

type GatewayInboundMessageDispatchedIterator

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

GatewayInboundMessageDispatchedIterator is returned from FilterInboundMessageDispatched and is used to iterate over the raw logs and unpacked data for InboundMessageDispatched events raised by the Gateway contract.

func (*GatewayInboundMessageDispatchedIterator) Close

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

func (*GatewayInboundMessageDispatchedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayInboundMessageDispatchedIterator) 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 GatewayOperatingModeChanged

type GatewayOperatingModeChanged struct {
	Mode uint8
	Raw  types.Log // Blockchain specific contextual infos
}

GatewayOperatingModeChanged represents a OperatingModeChanged event raised by the Gateway contract.

type GatewayOperatingModeChangedIterator

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

GatewayOperatingModeChangedIterator is returned from FilterOperatingModeChanged and is used to iterate over the raw logs and unpacked data for OperatingModeChanged events raised by the Gateway contract.

func (*GatewayOperatingModeChangedIterator) Close

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

func (*GatewayOperatingModeChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayOperatingModeChangedIterator) 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 GatewayOutboundMessageAccepted

type GatewayOutboundMessageAccepted struct {
	ChannelID [32]byte
	Nonce     uint64
	MessageID [32]byte
	Payload   []byte
	Raw       types.Log // Blockchain specific contextual infos
}

GatewayOutboundMessageAccepted represents a OutboundMessageAccepted event raised by the Gateway contract.

type GatewayOutboundMessageAcceptedIterator

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

GatewayOutboundMessageAcceptedIterator is returned from FilterOutboundMessageAccepted and is used to iterate over the raw logs and unpacked data for OutboundMessageAccepted events raised by the Gateway contract.

func (*GatewayOutboundMessageAcceptedIterator) Close

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

func (*GatewayOutboundMessageAcceptedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayOutboundMessageAcceptedIterator) 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 GatewayPricingParametersChanged

type GatewayPricingParametersChanged struct {
	Raw types.Log // Blockchain specific contextual infos
}

GatewayPricingParametersChanged represents a PricingParametersChanged event raised by the Gateway contract.

type GatewayPricingParametersChangedIterator

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

GatewayPricingParametersChangedIterator is returned from FilterPricingParametersChanged and is used to iterate over the raw logs and unpacked data for PricingParametersChanged events raised by the Gateway contract.

func (*GatewayPricingParametersChangedIterator) Close

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

func (*GatewayPricingParametersChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayPricingParametersChangedIterator) 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 GatewayRaw

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

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

func (*GatewayRaw) Call

func (_Gateway *GatewayRaw) 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 (*GatewayRaw) Transact

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

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

func (*GatewayRaw) Transfer

func (_Gateway *GatewayRaw) 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 GatewaySession

type GatewaySession struct {
	Contract     *Gateway          // 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
}

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

func (*GatewaySession) AgentOf

func (_Gateway *GatewaySession) AgentOf(agentID [32]byte) (common.Address, error)

AgentOf is a free data retrieval call binding the contract method 0x5e6dae26.

Solidity: function agentOf(bytes32 agentID) view returns(address)

func (*GatewaySession) ChannelNoncesOf

func (_Gateway *GatewaySession) ChannelNoncesOf(channelID [32]byte) (uint64, uint64, error)

ChannelNoncesOf is a free data retrieval call binding the contract method 0x2a6c3229.

Solidity: function channelNoncesOf(bytes32 channelID) view returns(uint64, uint64)

func (*GatewaySession) ChannelOperatingModeOf

func (_Gateway *GatewaySession) ChannelOperatingModeOf(channelID [32]byte) (uint8, error)

ChannelOperatingModeOf is a free data retrieval call binding the contract method 0x0705f465.

Solidity: function channelOperatingModeOf(bytes32 channelID) view returns(uint8)

func (*GatewaySession) Implementation

func (_Gateway *GatewaySession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*GatewaySession) IsTokenRegistered

func (_Gateway *GatewaySession) IsTokenRegistered(token common.Address) (bool, error)

IsTokenRegistered is a free data retrieval call binding the contract method 0x26aa101f.

Solidity: function isTokenRegistered(address token) view returns(bool)

func (*GatewaySession) OperatingMode

func (_Gateway *GatewaySession) OperatingMode() (uint8, error)

OperatingMode is a free data retrieval call binding the contract method 0x38004f69.

Solidity: function operatingMode() view returns(uint8)

func (*GatewaySession) PricingParameters

func (_Gateway *GatewaySession) PricingParameters() (*big.Int, *big.Int, error)

PricingParameters is a free data retrieval call binding the contract method 0x0b617646.

Solidity: function pricingParameters() view returns(uint256, uint128)

func (*GatewaySession) QuoteRegisterTokenFee

func (_Gateway *GatewaySession) QuoteRegisterTokenFee() (*big.Int, error)

QuoteRegisterTokenFee is a free data retrieval call binding the contract method 0x805ce31d.

Solidity: function quoteRegisterTokenFee() view returns(uint256)

func (*GatewaySession) QuoteSendTokenFee

func (_Gateway *GatewaySession) QuoteSendTokenFee(token common.Address, destinationChain uint32, destinationFee *big.Int) (*big.Int, error)

QuoteSendTokenFee is a free data retrieval call binding the contract method 0x928bc49d.

Solidity: function quoteSendTokenFee(address token, uint32 destinationChain, uint128 destinationFee) view returns(uint256)

func (*GatewaySession) RegisterToken

func (_Gateway *GatewaySession) RegisterToken(token common.Address) (*types.Transaction, error)

RegisterToken is a paid mutator transaction binding the contract method 0x09824a80.

Solidity: function registerToken(address token) payable returns()

func (*GatewaySession) SendToken

func (_Gateway *GatewaySession) SendToken(token common.Address, destinationChain uint32, destinationAddress MultiAddress, destinationFee *big.Int, amount *big.Int) (*types.Transaction, error)

SendToken is a paid mutator transaction binding the contract method 0x52054834.

Solidity: function sendToken(address token, uint32 destinationChain, (uint8,bytes) destinationAddress, uint128 destinationFee, uint128 amount) payable returns()

func (*GatewaySession) SubmitV1

func (_Gateway *GatewaySession) SubmitV1(message InboundMessage, leafProof [][32]byte, headerProof VerificationProof) (*types.Transaction, error)

SubmitV1 is a paid mutator transaction binding the contract method 0xdf4ed829.

Solidity: function submitV1((bytes32,uint64,uint8,bytes,uint64,uint256,uint256,bytes32) message, bytes32[] leafProof, ((bytes32,uint256,bytes32,bytes32,(uint256,bytes4,bytes)[]),(uint256,uint256,bytes32[]),(uint8,uint32,bytes32,uint64,uint32,bytes32),bytes32[],uint256) headerProof) returns()

type GatewayTokenRegistrationSent

type GatewayTokenRegistrationSent struct {
	Token common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

GatewayTokenRegistrationSent represents a TokenRegistrationSent event raised by the Gateway contract.

type GatewayTokenRegistrationSentIterator

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

GatewayTokenRegistrationSentIterator is returned from FilterTokenRegistrationSent and is used to iterate over the raw logs and unpacked data for TokenRegistrationSent events raised by the Gateway contract.

func (*GatewayTokenRegistrationSentIterator) Close

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

func (*GatewayTokenRegistrationSentIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayTokenRegistrationSentIterator) 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 GatewayTokenSent

type GatewayTokenSent struct {
	Token              common.Address
	Sender             common.Address
	DestinationChain   uint32
	DestinationAddress MultiAddress
	Amount             *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

GatewayTokenSent represents a TokenSent event raised by the Gateway contract.

type GatewayTokenSentIterator

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

GatewayTokenSentIterator is returned from FilterTokenSent and is used to iterate over the raw logs and unpacked data for TokenSent events raised by the Gateway contract.

func (*GatewayTokenSentIterator) Close

func (it *GatewayTokenSentIterator) Close() error

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

func (*GatewayTokenSentIterator) Error

func (it *GatewayTokenSentIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayTokenSentIterator) Next

func (it *GatewayTokenSentIterator) 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 GatewayTokenTransferFeesChanged

type GatewayTokenTransferFeesChanged struct {
	Raw types.Log // Blockchain specific contextual infos
}

GatewayTokenTransferFeesChanged represents a TokenTransferFeesChanged event raised by the Gateway contract.

type GatewayTokenTransferFeesChangedIterator

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

GatewayTokenTransferFeesChangedIterator is returned from FilterTokenTransferFeesChanged and is used to iterate over the raw logs and unpacked data for TokenTransferFeesChanged events raised by the Gateway contract.

func (*GatewayTokenTransferFeesChangedIterator) Close

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

func (*GatewayTokenTransferFeesChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayTokenTransferFeesChangedIterator) 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 GatewayTransactor

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

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

func NewGatewayTransactor

func NewGatewayTransactor(address common.Address, transactor bind.ContractTransactor) (*GatewayTransactor, error)

NewGatewayTransactor creates a new write-only instance of Gateway, bound to a specific deployed contract.

func (*GatewayTransactor) RegisterToken

func (_Gateway *GatewayTransactor) RegisterToken(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

RegisterToken is a paid mutator transaction binding the contract method 0x09824a80.

Solidity: function registerToken(address token) payable returns()

func (*GatewayTransactor) SendToken

func (_Gateway *GatewayTransactor) SendToken(opts *bind.TransactOpts, token common.Address, destinationChain uint32, destinationAddress MultiAddress, destinationFee *big.Int, amount *big.Int) (*types.Transaction, error)

SendToken is a paid mutator transaction binding the contract method 0x52054834.

Solidity: function sendToken(address token, uint32 destinationChain, (uint8,bytes) destinationAddress, uint128 destinationFee, uint128 amount) payable returns()

func (*GatewayTransactor) SubmitV1

func (_Gateway *GatewayTransactor) SubmitV1(opts *bind.TransactOpts, message InboundMessage, leafProof [][32]byte, headerProof VerificationProof) (*types.Transaction, error)

SubmitV1 is a paid mutator transaction binding the contract method 0xdf4ed829.

Solidity: function submitV1((bytes32,uint64,uint8,bytes,uint64,uint256,uint256,bytes32) message, bytes32[] leafProof, ((bytes32,uint256,bytes32,bytes32,(uint256,bytes4,bytes)[]),(uint256,uint256,bytes32[]),(uint8,uint32,bytes32,uint64,uint32,bytes32),bytes32[],uint256) headerProof) returns()

type GatewayTransactorRaw

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

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

func (*GatewayTransactorRaw) Transact

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

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

func (*GatewayTransactorRaw) Transfer

func (_Gateway *GatewayTransactorRaw) 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 GatewayTransactorSession

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

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

func (*GatewayTransactorSession) RegisterToken

func (_Gateway *GatewayTransactorSession) RegisterToken(token common.Address) (*types.Transaction, error)

RegisterToken is a paid mutator transaction binding the contract method 0x09824a80.

Solidity: function registerToken(address token) payable returns()

func (*GatewayTransactorSession) SendToken

func (_Gateway *GatewayTransactorSession) SendToken(token common.Address, destinationChain uint32, destinationAddress MultiAddress, destinationFee *big.Int, amount *big.Int) (*types.Transaction, error)

SendToken is a paid mutator transaction binding the contract method 0x52054834.

Solidity: function sendToken(address token, uint32 destinationChain, (uint8,bytes) destinationAddress, uint128 destinationFee, uint128 amount) payable returns()

func (*GatewayTransactorSession) SubmitV1

func (_Gateway *GatewayTransactorSession) SubmitV1(message InboundMessage, leafProof [][32]byte, headerProof VerificationProof) (*types.Transaction, error)

SubmitV1 is a paid mutator transaction binding the contract method 0xdf4ed829.

Solidity: function submitV1((bytes32,uint64,uint8,bytes,uint64,uint256,uint256,bytes32) message, bytes32[] leafProof, ((bytes32,uint256,bytes32,bytes32,(uint256,bytes4,bytes)[]),(uint256,uint256,bytes32[]),(uint8,uint32,bytes32,uint64,uint32,bytes32),bytes32[],uint256) headerProof) returns()

type GatewayUpgraded

type GatewayUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

GatewayUpgraded represents a Upgraded event raised by the Gateway contract.

type GatewayUpgradedIterator

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

GatewayUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Gateway contract.

func (*GatewayUpgradedIterator) Close

func (it *GatewayUpgradedIterator) Close() error

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

func (*GatewayUpgradedIterator) Error

func (it *GatewayUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GatewayUpgradedIterator) Next

func (it *GatewayUpgradedIterator) 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 InboundMessage

type InboundMessage struct {
	ChannelID      [32]byte
	Nonce          uint64
	Command        uint8
	Params         []byte
	MaxDispatchGas uint64
	MaxFeePerGas   *big.Int
	Reward         *big.Int
	Id             [32]byte
}

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

type MultiAddress

type MultiAddress struct {
	Kind uint8
	Data []byte
}

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

type Uint16Array

type Uint16Array struct {
	Data   []*big.Int
	Length *big.Int
}

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

type VerificationDigestItem

type VerificationDigestItem struct {
	Kind              *big.Int
	ConsensusEngineID [4]byte
	Data              []byte
}

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

type VerificationHeadProof

type VerificationHeadProof struct {
	Pos   *big.Int
	Width *big.Int
	Proof [][32]byte
}

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

type VerificationMMRLeafPartial

type VerificationMMRLeafPartial struct {
	Version              uint8
	ParentNumber         uint32
	ParentHash           [32]byte
	NextAuthoritySetID   uint64
	NextAuthoritySetLen  uint32
	NextAuthoritySetRoot [32]byte
}

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

type VerificationParachainHeader

type VerificationParachainHeader struct {
	ParentHash     [32]byte
	Number         *big.Int
	StateRoot      [32]byte
	ExtrinsicsRoot [32]byte
	DigestItems    []VerificationDigestItem
}

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

type VerificationProof

type VerificationProof struct {
	Header         VerificationParachainHeader
	HeadProof      VerificationHeadProof
	LeafPartial    VerificationMMRLeafPartial
	LeafProof      [][32]byte
	LeafProofOrder *big.Int
}

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

Jump to

Keyboard shortcuts

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