ethereum

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 48 Imported by: 6

Documentation

Index

Constants

View Source
const (
	PACKET_RECEIPT_NONE       uint8 = 0
	PACKET_RECEIPT_SUCCESSFUL uint8 = 1
)
View Source
const (
	BlocksPerEventQueryDefault = 1000
)
View Source
const ModuleName = "ethereum.chain"
View Source
const TxTypeAuto = "auto"
View Source
const TxTypeDynamic = "dynamic"
View Source
const TxTypeLegacy = "legacy"

Variables

View Source
var (
	ErrInvalidLengthConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConfig = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgid        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgid          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgid = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetModuleLogger added in v0.2.5

func GetModuleLogger() *log.RelayLogger

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register the module interfaces to protobuf Any.

Types

type AllowLCFunctions added in v0.2.13

type AllowLCFunctions struct {
	LCAddress common.Address
	AllowALL  bool
	Selectors [][4]byte
}

func (AllowLCFunctions) IsAllowed added in v0.2.13

func (lcf AllowLCFunctions) IsAllowed(address common.Address, selector [4]byte) bool

type AllowLCFunctionsConfig added in v0.2.13

type AllowLCFunctionsConfig struct {
	LcAddress string   `protobuf:"bytes,1,opt,name=lc_address,json=lcAddress,proto3" json:"lc_address,omitempty"`
	AllowAll  bool     `protobuf:"varint,2,opt,name=allow_all,json=allowAll,proto3" json:"allow_all,omitempty"`
	Selectors []string `protobuf:"bytes,3,rep,name=selectors,proto3" json:"selectors,omitempty"`
}

func (*AllowLCFunctionsConfig) Descriptor added in v0.2.13

func (*AllowLCFunctionsConfig) Descriptor() ([]byte, []int)

func (*AllowLCFunctionsConfig) Marshal added in v0.2.13

func (m *AllowLCFunctionsConfig) Marshal() (dAtA []byte, err error)

func (*AllowLCFunctionsConfig) MarshalTo added in v0.2.13

func (m *AllowLCFunctionsConfig) MarshalTo(dAtA []byte) (int, error)

func (*AllowLCFunctionsConfig) MarshalToSizedBuffer added in v0.2.13

func (m *AllowLCFunctionsConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllowLCFunctionsConfig) ProtoMessage added in v0.2.13

func (*AllowLCFunctionsConfig) ProtoMessage()

func (*AllowLCFunctionsConfig) Reset added in v0.2.13

func (m *AllowLCFunctionsConfig) Reset()

func (*AllowLCFunctionsConfig) Size added in v0.2.13

func (m *AllowLCFunctionsConfig) Size() (n int)

func (*AllowLCFunctionsConfig) String added in v0.2.13

func (m *AllowLCFunctionsConfig) String() string

func (AllowLCFunctionsConfig) ToAllowLCFunctions added in v0.2.13

func (alf AllowLCFunctionsConfig) ToAllowLCFunctions() (*AllowLCFunctions, error)

CONTRACT: alf.ValidateBasic() must be called before calling this method.

func (*AllowLCFunctionsConfig) Unmarshal added in v0.2.13

func (m *AllowLCFunctionsConfig) Unmarshal(dAtA []byte) error

func (AllowLCFunctionsConfig) ValidateBasic added in v0.2.13

func (alf AllowLCFunctionsConfig) ValidateBasic() error

func (*AllowLCFunctionsConfig) XXX_DiscardUnknown added in v0.2.13

func (m *AllowLCFunctionsConfig) XXX_DiscardUnknown()

func (*AllowLCFunctionsConfig) XXX_Marshal added in v0.2.13

func (m *AllowLCFunctionsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllowLCFunctionsConfig) XXX_Merge added in v0.2.13

func (m *AllowLCFunctionsConfig) XXX_Merge(src proto.Message)

func (*AllowLCFunctionsConfig) XXX_Size added in v0.2.13

func (m *AllowLCFunctionsConfig) XXX_Size() int

func (*AllowLCFunctionsConfig) XXX_Unmarshal added in v0.2.13

func (m *AllowLCFunctionsConfig) XXX_Unmarshal(b []byte) error

type CallIter added in v0.3.7

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

func NewCallIter added in v0.3.7

func NewCallIter(msgs []sdk.Msg, skipUpdateClientCommitment bool) CallIter

func (*CallIter) BuildTx added in v0.3.8

func (iter *CallIter) BuildTx(ctx context.Context, c *Chain) (*CallIterBuildResult, error)

func (*CallIter) Current added in v0.3.7

func (iter *CallIter) Current() sdk.Msg

func (*CallIter) Cursor added in v0.3.7

func (iter *CallIter) Cursor() int

func (*CallIter) End added in v0.3.7

func (iter *CallIter) End() bool

func (*CallIter) Next added in v0.3.7

func (iter *CallIter) Next(n int)

type CallIterBuildResult added in v0.3.8

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

type Chain

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

func NewChain

func NewChain(config ChainConfig) (*Chain, error)

func (*Chain) AllowTransitionToFlushComplete added in v0.3.10

func (c *Chain) AllowTransitionToFlushComplete(
	ctx context.Context,
	portID string,
	channelID string,
	upgradeSequence uint64,
) error

func (*Chain) AverageBlockTime added in v0.2.4

func (c *Chain) AverageBlockTime() time.Duration

func (*Chain) BuildMessageTx added in v0.3.8

func (c *Chain) BuildMessageTx(opts *bind.TransactOpts, msg sdk.Msg, skipUpdateClientCommitment bool) (*gethtypes.Transaction, error)

func (*Chain) CallOpts

func (chain *Chain) CallOpts(ctx context.Context, height int64) *bind.CallOpts

func (*Chain) ChainID

func (c *Chain) ChainID() string

ChainID returns ID of the chain

func (*Chain) Client

func (c *Chain) Client() *client.ETHClient

Client returns the RPC client for ethereum

func (*Chain) Codec

func (c *Chain) Codec() codec.ProtoCodecMarshaler

Marshaler returns the marshaler

func (*Chain) Config

func (c *Chain) Config() ChainConfig

Config returns ChainConfig

func (*Chain) GetAddress

func (c *Chain) GetAddress() (sdk.AccAddress, error)

GetAddress returns the address of relayer

func (*Chain) GetChainLogger added in v0.2.5

func (c *Chain) GetChainLogger() *log.RelayLogger

func (*Chain) GetChannelLogger added in v0.2.5

func (chain *Chain) GetChannelLogger() *log.RelayLogger

func (*Chain) GetMsgResult added in v0.2.4

func (c *Chain) GetMsgResult(id core.MsgID) (core.MsgResult, error)

func (*Chain) Init

func (c *Chain) Init(homePath string, timeout time.Duration, codec codec.ProtoCodecMarshaler, debug bool) error

Init ...

func (*Chain) LatestHeight

func (c *Chain) LatestHeight() (ibcexported.Height, error)

GetLatestHeight gets the chain for the latest height and returns it

func (*Chain) Path

func (c *Chain) Path() *core.PathEnd

func (*Chain) ProposeAppVersion added in v0.3.10

func (c *Chain) ProposeAppVersion(
	ctx context.Context,
	portID string,
	version string,
	implementation common.Address,
	initialCalldata []byte,
) error

func (*Chain) ProposeUpgrade added in v0.3.10

func (c *Chain) ProposeUpgrade(
	ctx context.Context,
	portID string,
	channelID string,
	upgradeFields iibcchannelupgradablemodule.UpgradeFieldsData,
	timeout iibcchannelupgradablemodule.TimeoutData,
) error

func (*Chain) QueryBalance

func (c *Chain) QueryBalance(ctx core.QueryContext, address sdk.AccAddress) (sdk.Coins, error)

QueryBalance returns the amount of coins in the relayer account

func (*Chain) QueryCanTransitionToFlushComplete added in v0.3.10

func (c *Chain) QueryCanTransitionToFlushComplete(ctx core.QueryContext) (bool, error)

QueryCanTransitionToFlushComplete returns the channel can transition to FLUSHCOMPLETE state. Basically it requires that there remains no inflight packets. Maybe additional condition for transition is required by the IBC/APP module.

func (*Chain) QueryChannel

func (c *Chain) QueryChannel(ctx core.QueryContext) (chanRes *chantypes.QueryChannelResponse, err error)

QueryChannel returns the channel associated with a channelID

func (*Chain) QueryChannelUpgrade added in v0.3.10

func (c *Chain) QueryChannelUpgrade(ctx core.QueryContext) (*chantypes.QueryUpgradeResponse, error)

QueryChannelUpgrade returns the channel upgrade associated with a channelID

func (*Chain) QueryChannelUpgradeError added in v0.3.10

func (c *Chain) QueryChannelUpgradeError(ctx core.QueryContext) (*chantypes.QueryUpgradeErrorResponse, error)

QueryChannelUpgradeError returns the channel upgrade error receipt associated with a channelID at the height of `ctx`. WARN: This error receipt may not be used to cancel upgrade in FLUSHCOMPLETE state because of upgrade sequence mismatch.

func (*Chain) QueryClientConsensusState

func (c *Chain) QueryClientConsensusState(ctx core.QueryContext, dstClientConsHeight ibcexported.Height) (*clienttypes.QueryConsensusStateResponse, error)

QueryClientConsensusState retrevies the latest consensus state for a client in state at a given height

func (*Chain) QueryClientState

func (c *Chain) QueryClientState(ctx core.QueryContext) (*clienttypes.QueryClientStateResponse, error)

QueryClientState returns the client state of dst chain height represents the height of dst chain

func (*Chain) QueryConnection

func (c *Chain) QueryConnection(ctx core.QueryContext, connectionID string) (*conntypes.QueryConnectionResponse, error)

QueryConnection returns the remote end of a given connection

func (*Chain) QueryDenomTraces

func (c *Chain) QueryDenomTraces(ctx core.QueryContext, offset uint64, limit uint64) (*transfertypes.QueryDenomTracesResponse, error)

QueryDenomTraces returns all the denom traces from a given chain

func (*Chain) QueryUnfinalizedRelayAcknowledgements added in v0.2.1

func (c *Chain) QueryUnfinalizedRelayAcknowledgements(ctx core.QueryContext, counterparty core.LightClientICS04Querier) (core.PacketInfoList, error)

QueryUnfinalizedRelayedAcknowledgements returns acks and heights that are sent but not received at the latest finalized block on the counterpartychain

func (*Chain) QueryUnfinalizedRelayPackets added in v0.2.1

func (c *Chain) QueryUnfinalizedRelayPackets(ctx core.QueryContext, counterparty core.LightClientICS04Querier) (core.PacketInfoList, error)

QueryUnfinalizedRelayedPackets returns packets and heights that are sent but not received at the latest finalized block on the counterparty chain

func (*Chain) QueryUnreceivedAcknowledgements added in v0.2.1

func (c *Chain) QueryUnreceivedAcknowledgements(ctx core.QueryContext, seqs []uint64) ([]uint64, error)

QueryUnreceivedAcknowledgements returns a list of unrelayed packet acks

func (*Chain) QueryUnreceivedPackets added in v0.2.1

func (c *Chain) QueryUnreceivedPackets(ctx core.QueryContext, seqs []uint64) ([]uint64, error)

QueryUnreceivedPackets returns a list of unrelayed packet commitments

func (*Chain) RegisterMsgEventListener

func (c *Chain) RegisterMsgEventListener(listener core.MsgEventListener)

RegisterMsgEventListener registers a given EventListener to the chain

func (*Chain) SendMsgs

func (c *Chain) SendMsgs(msgs []sdk.Msg) ([]core.MsgID, error)

SendMsgs sends msgs to the chain

func (*Chain) SetRelayInfo

func (c *Chain) SetRelayInfo(p *core.PathEnd, _ *core.ProvableChain, _ *core.PathEnd) error

SetRelayInfo sets source's path and counterparty's info to the chain

func (*Chain) SetupForRelay

func (c *Chain) SetupForRelay(ctx context.Context) error

SetupForRelay ...

func (*Chain) Timestamp added in v0.2.3

func (c *Chain) Timestamp(height ibcexported.Height) (time.Time, error)

func (*Chain) TxAcknowledgement

func (c *Chain) TxAcknowledgement(opts *bind.TransactOpts, msg *chantypes.MsgAcknowledgement) (*gethtypes.Transaction, error)

func (*Chain) TxChannelOpenAck

func (c *Chain) TxChannelOpenAck(opts *bind.TransactOpts, msg *chantypes.MsgChannelOpenAck) (*gethtypes.Transaction, error)

func (*Chain) TxChannelOpenConfirm

func (c *Chain) TxChannelOpenConfirm(opts *bind.TransactOpts, msg *chantypes.MsgChannelOpenConfirm) (*gethtypes.Transaction, error)

func (*Chain) TxChannelOpenInit

func (c *Chain) TxChannelOpenInit(opts *bind.TransactOpts, msg *chantypes.MsgChannelOpenInit) (*gethtypes.Transaction, error)

func (*Chain) TxChannelOpenTry

func (c *Chain) TxChannelOpenTry(opts *bind.TransactOpts, msg *chantypes.MsgChannelOpenTry) (*gethtypes.Transaction, error)

func (*Chain) TxChannelUpgradeAck added in v0.3.10

func (c *Chain) TxChannelUpgradeAck(opts *bind.TransactOpts, msg *chantypes.MsgChannelUpgradeAck) (*gethtypes.Transaction, error)

func (*Chain) TxChannelUpgradeCancel added in v0.3.10

func (c *Chain) TxChannelUpgradeCancel(opts *bind.TransactOpts, msg *chantypes.MsgChannelUpgradeCancel) (*gethtypes.Transaction, error)

func (*Chain) TxChannelUpgradeConfirm added in v0.3.10

func (c *Chain) TxChannelUpgradeConfirm(opts *bind.TransactOpts, msg *chantypes.MsgChannelUpgradeConfirm) (*gethtypes.Transaction, error)

func (*Chain) TxChannelUpgradeInit added in v0.3.10

func (c *Chain) TxChannelUpgradeInit(opts *bind.TransactOpts, msg *chantypes.MsgChannelUpgradeInit) (*gethtypes.Transaction, error)

func (*Chain) TxChannelUpgradeOpen added in v0.3.10

func (c *Chain) TxChannelUpgradeOpen(opts *bind.TransactOpts, msg *chantypes.MsgChannelUpgradeOpen) (*gethtypes.Transaction, error)

func (*Chain) TxChannelUpgradeTimeout added in v0.3.10

func (c *Chain) TxChannelUpgradeTimeout(opts *bind.TransactOpts, msg *chantypes.MsgChannelUpgradeTimeout) (*gethtypes.Transaction, error)

func (*Chain) TxChannelUpgradeTry added in v0.3.10

func (c *Chain) TxChannelUpgradeTry(opts *bind.TransactOpts, msg *chantypes.MsgChannelUpgradeTry) (*gethtypes.Transaction, error)

func (*Chain) TxConnectionOpenAck

func (c *Chain) TxConnectionOpenAck(opts *bind.TransactOpts, msg *conntypes.MsgConnectionOpenAck) (*gethtypes.Transaction, error)

func (*Chain) TxConnectionOpenConfirm

func (c *Chain) TxConnectionOpenConfirm(opts *bind.TransactOpts, msg *conntypes.MsgConnectionOpenConfirm) (*gethtypes.Transaction, error)

func (*Chain) TxConnectionOpenInit

func (c *Chain) TxConnectionOpenInit(opts *bind.TransactOpts, msg *conntypes.MsgConnectionOpenInit) (*gethtypes.Transaction, error)

func (*Chain) TxConnectionOpenTry

func (c *Chain) TxConnectionOpenTry(opts *bind.TransactOpts, msg *conntypes.MsgConnectionOpenTry) (*gethtypes.Transaction, error)

func (*Chain) TxCreateClient

func (c *Chain) TxCreateClient(opts *bind.TransactOpts, msg *clienttypes.MsgCreateClient) (*gethtypes.Transaction, error)

func (*Chain) TxOpts

func (chain *Chain) TxOpts(ctx context.Context, useLatestNonce bool) (*bind.TransactOpts, error)

func (*Chain) TxRecvPacket

func (c *Chain) TxRecvPacket(opts *bind.TransactOpts, msg *chantypes.MsgRecvPacket) (*gethtypes.Transaction, error)

func (*Chain) TxUpdateClient

func (c *Chain) TxUpdateClient(opts *bind.TransactOpts, msg *clienttypes.MsgUpdateClient, skipUpdateClientCommitment bool) (*gethtypes.Transaction, error)

type ChainConfig

type ChainConfig struct {
	ChainId               string     `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	EthChainId            uint64     `protobuf:"varint,2,opt,name=eth_chain_id,json=ethChainId,proto3" json:"eth_chain_id,omitempty"`
	RpcAddr               string     `protobuf:"bytes,3,opt,name=rpc_addr,json=rpcAddr,proto3" json:"rpc_addr,omitempty"`
	Signer                *types.Any `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
	IbcAddress            string     `protobuf:"bytes,5,opt,name=ibc_address,json=ibcAddress,proto3" json:"ibc_address,omitempty"`
	InitialSendCheckpoint uint64     `` /* 127-byte string literal not displayed */
	InitialRecvCheckpoint uint64     `` /* 127-byte string literal not displayed */
	EnableDebugTrace      bool       `protobuf:"varint,8,opt,name=enable_debug_trace,json=enableDebugTrace,proto3" json:"enable_debug_trace,omitempty"`
	AverageBlockTimeMsec  uint64     `` /* 126-byte string literal not displayed */
	MaxRetryForInclusion  uint64     `` /* 127-byte string literal not displayed */
	// option for ibc-solidity ADR-001
	// if set, the relayer updates a LC contract directly if possible
	// if null, the relayer updates a LC contract via the handler
	AllowLcFunctions    *AllowLCFunctionsConfig `protobuf:"bytes,11,opt,name=allow_lc_functions,json=allowLcFunctions,proto3" json:"allow_lc_functions,omitempty"`
	GasEstimateRate     *Fraction               `protobuf:"bytes,12,opt,name=gas_estimate_rate,json=gasEstimateRate,proto3" json:"gas_estimate_rate,omitempty"`
	MaxGasLimit         uint64                  `protobuf:"varint,13,opt,name=max_gas_limit,json=maxGasLimit,proto3" json:"max_gas_limit,omitempty"`
	TxType              string                  `protobuf:"bytes,14,opt,name=tx_type,json=txType,proto3" json:"tx_type,omitempty"`
	DynamicTxGasConfig  *DynamicTxGasConfig     `protobuf:"bytes,15,opt,name=dynamic_tx_gas_config,json=dynamicTxGasConfig,proto3" json:"dynamic_tx_gas_config,omitempty"`
	BlocksPerEventQuery uint64                  `protobuf:"varint,16,opt,name=blocks_per_event_query,json=blocksPerEventQuery,proto3" json:"blocks_per_event_query,omitempty"`
	AbiPaths            []string                `protobuf:"bytes,17,rep,name=abi_paths,json=abiPaths,proto3" json:"abi_paths,omitempty"`
	Multicall3Address   string                  `protobuf:"bytes,18,opt,name=multicall3_address,json=multicall3Address,proto3" json:"multicall3_address,omitempty"`
	// Types that are valid to be assigned to XTxMaxSize:
	//	*ChainConfig_TxMaxSize
	XTxMaxSize isChainConfig_XTxMaxSize `protobuf_oneof:"_tx_max_size"`
}

func (ChainConfig) Build

func (c ChainConfig) Build() (core.Chain, error)

func (*ChainConfig) Descriptor

func (*ChainConfig) Descriptor() ([]byte, []int)

func (*ChainConfig) GetTxMaxSize added in v0.3.11

func (m *ChainConfig) GetTxMaxSize() uint64

func (*ChainConfig) GetXTxMaxSize added in v0.3.11

func (m *ChainConfig) GetXTxMaxSize() isChainConfig_XTxMaxSize

func (ChainConfig) IBCAddress

func (c ChainConfig) IBCAddress() common.Address

func (*ChainConfig) Marshal

func (m *ChainConfig) Marshal() (dAtA []byte, err error)

func (*ChainConfig) MarshalTo

func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)

func (*ChainConfig) MarshalToSizedBuffer

func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (ChainConfig) Multicall3AddressAsAddress added in v0.3.7

func (c ChainConfig) Multicall3AddressAsAddress() common.Address

func (*ChainConfig) ProtoMessage

func (*ChainConfig) ProtoMessage()

func (*ChainConfig) Reset

func (m *ChainConfig) Reset()

func (*ChainConfig) Size

func (m *ChainConfig) Size() (n int)

func (*ChainConfig) String

func (m *ChainConfig) String() string

func (*ChainConfig) Unmarshal

func (m *ChainConfig) Unmarshal(dAtA []byte) error

func (ChainConfig) UnpackInterfaces added in v0.2.8

func (c ChainConfig) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (ChainConfig) Validate added in v0.2.5

func (c ChainConfig) Validate() error

func (*ChainConfig) XXX_DiscardUnknown

func (m *ChainConfig) XXX_DiscardUnknown()

func (*ChainConfig) XXX_Marshal

func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainConfig) XXX_Merge

func (m *ChainConfig) XXX_Merge(src proto.Message)

func (*ChainConfig) XXX_OneofWrappers added in v0.3.11

func (*ChainConfig) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ChainConfig) XXX_Size

func (m *ChainConfig) XXX_Size() int

func (*ChainConfig) XXX_Unmarshal

func (m *ChainConfig) XXX_Unmarshal(b []byte) error

type ChainConfig_TxMaxSize added in v0.3.11

type ChainConfig_TxMaxSize struct {
	TxMaxSize uint64 `protobuf:"varint,19,opt,name=tx_max_size,json=txMaxSize,proto3,oneof" json:"tx_max_size,omitempty"`
}

func (*ChainConfig_TxMaxSize) MarshalTo added in v0.3.11

func (m *ChainConfig_TxMaxSize) MarshalTo(dAtA []byte) (int, error)

func (*ChainConfig_TxMaxSize) MarshalToSizedBuffer added in v0.3.11

func (m *ChainConfig_TxMaxSize) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainConfig_TxMaxSize) Size added in v0.3.11

func (m *ChainConfig_TxMaxSize) Size() (n int)

type DynamicTxGasConfig added in v0.2.15

type DynamicTxGasConfig struct {
	LimitPriorityFeePerGas     string    `` /* 133-byte string literal not displayed */
	PriorityFeeRate            *Fraction `protobuf:"bytes,2,opt,name=priority_fee_rate,json=priorityFeeRate,proto3" json:"priority_fee_rate,omitempty"`
	LimitFeePerGas             string    `protobuf:"bytes,3,opt,name=limit_fee_per_gas,json=limitFeePerGas,proto3" json:"limit_fee_per_gas,omitempty"`
	BaseFeeRate                *Fraction `protobuf:"bytes,4,opt,name=base_fee_rate,json=baseFeeRate,proto3" json:"base_fee_rate,omitempty"`
	FeeHistoryRewardPercentile uint32    `` /* 144-byte string literal not displayed */
	MaxRetryForFeeHistory      uint32    `` /* 131-byte string literal not displayed */
}

func (*DynamicTxGasConfig) Descriptor added in v0.2.15

func (*DynamicTxGasConfig) Descriptor() ([]byte, []int)

func (*DynamicTxGasConfig) GetLimitFeePerGas added in v0.2.15

func (c *DynamicTxGasConfig) GetLimitFeePerGas() *big.Int

func (*DynamicTxGasConfig) GetLimitPriorityFeePerGas added in v0.2.15

func (c *DynamicTxGasConfig) GetLimitPriorityFeePerGas() *big.Int

func (*DynamicTxGasConfig) Marshal added in v0.2.15

func (m *DynamicTxGasConfig) Marshal() (dAtA []byte, err error)

func (*DynamicTxGasConfig) MarshalTo added in v0.2.15

func (m *DynamicTxGasConfig) MarshalTo(dAtA []byte) (int, error)

func (*DynamicTxGasConfig) MarshalToSizedBuffer added in v0.2.15

func (m *DynamicTxGasConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DynamicTxGasConfig) ProtoMessage added in v0.2.15

func (*DynamicTxGasConfig) ProtoMessage()

func (*DynamicTxGasConfig) Reset added in v0.2.15

func (m *DynamicTxGasConfig) Reset()

func (*DynamicTxGasConfig) Size added in v0.2.15

func (m *DynamicTxGasConfig) Size() (n int)

func (*DynamicTxGasConfig) String added in v0.2.15

func (m *DynamicTxGasConfig) String() string

func (*DynamicTxGasConfig) Unmarshal added in v0.2.15

func (m *DynamicTxGasConfig) Unmarshal(dAtA []byte) error

func (*DynamicTxGasConfig) ValidateBasic added in v0.2.15

func (gsc *DynamicTxGasConfig) ValidateBasic() error

func (*DynamicTxGasConfig) XXX_DiscardUnknown added in v0.2.15

func (m *DynamicTxGasConfig) XXX_DiscardUnknown()

func (*DynamicTxGasConfig) XXX_Marshal added in v0.2.15

func (m *DynamicTxGasConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DynamicTxGasConfig) XXX_Merge added in v0.2.15

func (m *DynamicTxGasConfig) XXX_Merge(src proto.Message)

func (*DynamicTxGasConfig) XXX_Size added in v0.2.15

func (m *DynamicTxGasConfig) XXX_Size() int

func (*DynamicTxGasConfig) XXX_Unmarshal added in v0.2.15

func (m *DynamicTxGasConfig) XXX_Unmarshal(b []byte) error

type ErrorRepository added in v0.2.18

type ErrorRepository map[[4]byte]abi.Error

func CreateErrorRepository added in v0.2.18

func CreateErrorRepository(abiPaths []string) (ErrorRepository, error)

func NewErrorRepository added in v0.2.18

func NewErrorRepository(errABIs []abi.Error) (ErrorRepository, error)

func (ErrorRepository) Add added in v0.2.18

func (r ErrorRepository) Add(errABI abi.Error) error

func (ErrorRepository) Get added in v0.2.18

func (r ErrorRepository) Get(errorData []byte) (abi.Error, error)

func (ErrorRepository) ParseError added in v0.2.18

func (r ErrorRepository) ParseError(errorData []byte) (string, error)

type EthereumSigner added in v0.3.5

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

func NewEthereumSigner added in v0.3.5

func NewEthereumSigner(bytesSigner signer.Signer, chainID *big.Int) (*EthereumSigner, error)

func (*EthereumSigner) Address added in v0.3.5

func (s *EthereumSigner) Address() common.Address

func (*EthereumSigner) GetLogger added in v0.3.5

func (s *EthereumSigner) GetLogger() *log.RelayLogger

func (*EthereumSigner) SetLogger added in v0.3.5

func (s *EthereumSigner) SetLogger(logger *log.RelayLogger)

func (*EthereumSigner) Sign added in v0.3.5

type Fraction added in v0.2.14

type Fraction struct {
	Numerator   uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
	Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"`
}

func (*Fraction) Descriptor added in v0.2.14

func (*Fraction) Descriptor() ([]byte, []int)

func (*Fraction) Marshal added in v0.2.14

func (m *Fraction) Marshal() (dAtA []byte, err error)

func (*Fraction) MarshalTo added in v0.2.14

func (m *Fraction) MarshalTo(dAtA []byte) (int, error)

func (*Fraction) MarshalToSizedBuffer added in v0.2.14

func (m *Fraction) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (Fraction) Mul added in v0.2.15

func (f Fraction) Mul(n *big.Int)

Mul multiplies `n` by `f` (this function mutates `n`)

func (*Fraction) ProtoMessage added in v0.2.14

func (*Fraction) ProtoMessage()

func (*Fraction) Reset added in v0.2.14

func (m *Fraction) Reset()

func (*Fraction) Size added in v0.2.14

func (m *Fraction) Size() (n int)

func (*Fraction) String added in v0.2.14

func (m *Fraction) String() string

func (*Fraction) Unmarshal added in v0.2.14

func (m *Fraction) Unmarshal(dAtA []byte) error

func (Fraction) Validate added in v0.2.15

func (f Fraction) Validate() error

func (*Fraction) XXX_DiscardUnknown added in v0.2.14

func (m *Fraction) XXX_DiscardUnknown()

func (*Fraction) XXX_Marshal added in v0.2.14

func (m *Fraction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Fraction) XXX_Merge added in v0.2.14

func (m *Fraction) XXX_Merge(src proto.Message)

func (*Fraction) XXX_Size added in v0.2.14

func (m *Fraction) XXX_Size() int

func (*Fraction) XXX_Unmarshal added in v0.2.14

func (m *Fraction) XXX_Unmarshal(b []byte) error

type GasFeeCalculator added in v0.2.15

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

func NewGasFeeCalculator added in v0.2.15

func NewGasFeeCalculator(client *client.ETHClient, config *ChainConfig) *GasFeeCalculator

func (*GasFeeCalculator) Apply added in v0.2.15

func (m *GasFeeCalculator) Apply(ctx context.Context, txOpts *bind.TransactOpts) error

type Module

type Module struct{}

func (Module) GetCmd

func (Module) GetCmd(ctx *config.Context) *cobra.Command

GetCmd returns the command

func (Module) Name

func (Module) Name() string

Name returns the name of the module

func (Module) RegisterInterfaces

func (Module) RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register the module interfaces to protobuf Any.

type MsgID added in v0.2.4

type MsgID struct {
	TxHashHex string `protobuf:"bytes,1,opt,name=tx_hash_hex,json=txHashHex,proto3" json:"tx_hash_hex,omitempty"`
}

func NewMsgID added in v0.2.6

func NewMsgID(txHash common.Hash) *MsgID

func (*MsgID) Descriptor added in v0.2.6

func (*MsgID) Descriptor() ([]byte, []int)

func (*MsgID) Is_MsgID added in v0.2.6

func (*MsgID) Is_MsgID()

func (*MsgID) Marshal added in v0.2.6

func (m *MsgID) Marshal() (dAtA []byte, err error)

func (*MsgID) MarshalTo added in v0.2.6

func (m *MsgID) MarshalTo(dAtA []byte) (int, error)

func (*MsgID) MarshalToSizedBuffer added in v0.2.6

func (m *MsgID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgID) ProtoMessage added in v0.2.6

func (*MsgID) ProtoMessage()

func (*MsgID) Reset added in v0.2.6

func (m *MsgID) Reset()

func (*MsgID) Size added in v0.2.6

func (m *MsgID) Size() (n int)

func (*MsgID) String added in v0.2.4

func (m *MsgID) String() string

func (*MsgID) TxHash added in v0.2.6

func (id *MsgID) TxHash() common.Hash

func (*MsgID) Unmarshal added in v0.2.6

func (m *MsgID) Unmarshal(dAtA []byte) error

func (*MsgID) XXX_DiscardUnknown added in v0.2.6

func (m *MsgID) XXX_DiscardUnknown()

func (*MsgID) XXX_Marshal added in v0.2.6

func (m *MsgID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgID) XXX_Merge added in v0.2.6

func (m *MsgID) XXX_Merge(src proto.Message)

func (*MsgID) XXX_Size added in v0.2.6

func (m *MsgID) XXX_Size() int

func (*MsgID) XXX_Unmarshal added in v0.2.6

func (m *MsgID) XXX_Unmarshal(b []byte) error

type MsgResult added in v0.2.4

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

func (*MsgResult) BlockHeight added in v0.2.4

func (r *MsgResult) BlockHeight() clienttypes.Height

func (*MsgResult) Events added in v0.2.4

func (r *MsgResult) Events() []core.MsgEventLog

func (*MsgResult) Status added in v0.2.4

func (r *MsgResult) Status() (bool, string)

Jump to

Keyboard shortcuts

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