types

package
v0.0.0-...-0195030 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 36 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// BatchTxCheckpointABIJSON checks the ETH ABI for compatability of the OutgoingBatchTx message
	BatchTxCheckpointABIJSON = `` /* 839-byte string literal not displayed */

	// SignerSetTxCheckpointABIJSON checks the ETH ABI for compatability of the signer set update message
	SignerSetTxCheckpointABIJSON = `` /* 589-byte string literal not displayed */

	// ContractCallTxABIJSON checks the ETH ABI for compatability of the logic call message
	ContractCallTxABIJSON = `` /* 1153-byte string literal not displayed */

)
View Source
const (
	// GravityDenomPrefix indicates the prefix for all assests minted by this module
	GravityDenomPrefix = ModuleName

	// GravityDenomSeparator is the separator for gravity denoms
	GravityDenomSeparator = ""

	// EthereumContractAddressLen is the length of contract address strings
	EthereumContractAddressLen = 42

	// GravityDenomLen is the length of the denoms generated by the gravity module
	GravityDenomLen = len(GravityDenomPrefix) + len(GravityDenomSeparator) + EthereumContractAddressLen
)
View Source
const (
	EventTypeObservation              = "observation"
	EventTypeOutgoingBatch            = "outgoing_batch"
	EventTypeMultisigUpdateRequest    = "multisig_update_request"
	EventTypeOutgoingBatchCanceled    = "outgoing_batch_canceled"
	EventTypeContractCallTxCanceled   = "outgoing_logic_call_canceled"
	EventTypeBridgeWithdrawalReceived = "withdrawal_received"
	EventTypeBridgeDepositReceived    = "deposit_received"
	EventTypeBridgeWithdrawCanceled   = "withdraw_canceled"

	AttributeKeyEthereumEventVoteRecordID     = "ethereum_event_vote_record_id"
	AttributeKeyBatchConfirmKey               = "batch_confirm_key"
	AttributeKeyEthereumSignatureKey          = "ethereum_signature_key"
	AttributeKeyOutgoingBatchID               = "batch_id"
	AttributeKeyOutgoingTXID                  = "outgoing_tx_id"
	AttributeKeyEthereumEventType             = "ethereum_event_type"
	AttributeKeyContract                      = "bridge_contract"
	AttributeKeyNonce                         = "nonce"
	AttributeKeySignerSetNonce                = "signerset_nonce"
	AttributeKeyBatchNonce                    = "batch_nonce"
	AttributeKeyBridgeChainID                 = "bridge_chain_id"
	AttributeKeySetOrchestratorAddr           = "set_orchestrator_address"
	AttributeKeySetEthereumAddr               = "set_ethereum_address"
	AttributeKeyValidatorAddr                 = "validator_address"
	AttributeKeyContractCallInvalidationScope = "contract_call_invalidation_scope"
	AttributeKeyContractCallInvalidationNonce = "contract_call_invalidation_nonce"
	AttributeKeyContractCallPayload           = "contract_call_payload"
	AttributeKeyContractCallTokens            = "contract_call_tokens"
	AttributeKeyContractCallFees              = "contract_call_fees"
	AttributeKeyEthTxTimeout                  = "eth_tx_timeout"
)
View Source
const (
	// todo: implement oracle constants as params
	DefaultParamspace     = ModuleName
	EventVoteRecordPeriod = 24 * time.Hour // TODO: value????
)

DefaultParamspace defines the default auth module parameter subspace

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "gravity"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey is the module name router key
	RouterKey = ModuleName

	// QuerierRoute to be used for querierer msgs
	QuerierRoute = ModuleName
)
View Source
const (

	// Key Delegation
	ValidatorEthereumAddressKey
	OrchestratorValidatorAddressKey
	EthereumOrchestratorAddressKey

	// Core types
	EthereumSignatureKey
	EthereumEventVoteRecordKey
	OutgoingTxKey
	SendToEthereumKey

	// Latest nonce indexes
	LastEventNonceByValidatorKey
	LastObservedEventNonceKey
	LatestSignerSetTxNonceKey
	LastSlashedOutgoingTxBlockKey
	LastSlashedSignerSetTxNonceKey
	LastOutgoingBatchNonceKey

	// LastSendToEthereumIDKey indexes the lastTxPoolID
	LastSendToEthereumIDKey

	// LastEthereumBlockHeightKey indexes the latest Ethereum block height
	LastEthereumBlockHeightKey

	// DenomToERC20Key prefixes the index of Cosmos originated asset denoms to ERC20s
	DenomToERC20Key

	// ERC20ToDenomKey prefixes the index of Cosmos originated assets ERC20s to denoms
	ERC20ToDenomKey

	// LastUnBondingBlockHeightKey indexes the last validator unbonding block height
	LastUnBondingBlockHeightKey

	LastObservedSignerSetKey
)
View Source
const (
	SignerSetTxPrefixByte
	BatchTxPrefixByte
	ContractCallTxPrefixByte
)

Variables

View Source
var (
	ErrInvalid           = sdkerrors.Register(ModuleName, 3, "invalid")
	ErrSupplyOverflow    = sdkerrors.Register(ModuleName, 4, "malicious ERC20 with invalid supply sent over bridge")
	ErrDelegateKeys      = sdkerrors.Register(ModuleName, 5, "failed to delegate keys")
	ErrEmptyEthSig       = sdkerrors.Register(ModuleName, 6, "empty Ethereum signature")
	ErrInvalidERC20Event = sdkerrors.Register(ModuleName, 7, "invalid ERC20 deployed event")
)
View Source
var (
	// ParamsStoreKeyGravityID stores the gravity id
	ParamsStoreKeyGravityID = []byte("GravityID")

	// ParamsStoreKeyContractHash stores the contract hash
	ParamsStoreKeyContractHash = []byte("ContractHash")

	// ParamsStoreKeyBridgeContractAddress stores the contract address
	ParamsStoreKeyBridgeContractAddress = []byte("BridgeContractAddress")

	// ParamsStoreKeyBridgeContractChainID stores the bridge chain id
	ParamsStoreKeyBridgeContractChainID = []byte("BridgeChainID")

	// ParamsStoreKeySignedSignerSetTxsWindow stores the signed blocks window
	ParamsStoreKeySignedSignerSetTxsWindow = []byte("SignedSignerSetTxWindow")

	// ParamsStoreKeySignedBatchesWindow stores the signed blocks window
	ParamsStoreKeySignedBatchesWindow = []byte("SignedBatchesWindow")

	// ParamsStoreKeyEthereumSignaturesWindow stores the signed blocks window
	ParamsStoreKeyEthereumSignaturesWindow = []byte("EthereumSignaturesWindow")

	// ParamsStoreKeyTargetEthTxTimeout stores the target ethereum transaction timeout
	ParamsStoreKeyTargetEthTxTimeout = []byte("TargetEthTxTimeout")

	// ParamsStoreKeyAverageBlockTime stores the signed blocks window
	ParamsStoreKeyAverageBlockTime = []byte("AverageBlockTime")

	// ParamsStoreKeyAverageEthereumBlockTime stores the signed blocks window
	ParamsStoreKeyAverageEthereumBlockTime = []byte("AverageEthereumBlockTime")

	// ParamsStoreSlashFractionSignerSetTx stores the slash fraction valset
	ParamsStoreSlashFractionSignerSetTx = []byte("SlashFractionSignerSetTx")

	// ParamsStoreSlashFractionBatch stores the slash fraction Batch
	ParamsStoreSlashFractionBatch = []byte("SlashFractionBatch")

	// ParamsStoreSlashFractionEthereumSignature stores the slash fraction ethereum siganture
	ParamsStoreSlashFractionEthereumSignature = []byte("SlashFractionEthereumSignature")

	// ParamsStoreSlashFractionConflictingEthereumSignature stores the slash fraction ConflictingEthereumSignature
	ParamsStoreSlashFractionConflictingEthereumSignature = []byte("SlashFractionConflictingEthereumSignature")

	//  ParamStoreUnbondSlashingSignerSetTxsWindow stores unbond slashing valset window
	ParamStoreUnbondSlashingSignerSetTxsWindow = []byte("UnbondSlashingSignerSetTxsWindow")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGravity        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGravity          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGravity = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// ModuleCdc references the global x/bank module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/staking and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func EthereumAddrLessThan

func EthereumAddrLessThan(e, o string) bool

EthereumAddrLessThan migrates the Ethereum address less than function

func EventVoteRecordPowerThreshold

func EventVoteRecordPowerThreshold(totalPower sdk.Int) sdk.Int

func GravityDenomToERC20

func GravityDenomToERC20(denom string) (string, error)

func MakeBatchTxKey

func MakeBatchTxKey(addr common.Address, nonce uint64) []byte

func MakeContractCallTxKey

func MakeContractCallTxKey(invalscope []byte, invalnonce uint64) []byte

func MakeDenomToERC20Key

func MakeDenomToERC20Key(denom string) []byte

func MakeERC20ToDenomKey

func MakeERC20ToDenomKey(erc20 string) []byte

func MakeEthereumEventVoteRecordKey

func MakeEthereumEventVoteRecordKey(eventNonce uint64, claimHash []byte) []byte

MakeEthereumEventVoteRecordKey returns the following key format prefix nonce claim-details-hash [0x5][0 0 0 0 0 0 0 1][fd1af8cec6c67fcf156f1b61fdf91ebc04d05484d007436e75342fc05bbff35a]

func MakeEthereumOrchestratorAddressKey

func MakeEthereumOrchestratorAddressKey(eth common.Address) []byte

MakeEthereumOrchestratorAddressKey returns the following key format prefix cosmos-validator [0x0][cosmosvaloper1ahx7f8wyertuus9r20284ej0asrs085case3kn]

func MakeEthereumSignatureKey

func MakeEthereumSignatureKey(storeIndex []byte, validator sdk.ValAddress) []byte

MakeEthereumSignatureKey returns the following key format prefix nonce validator-address [0x0][0 0 0 0 0 0 0 1][cosmos1ahx7f8wyertuus9r20284ej0asrs085case3kn]

func MakeLastEventNonceByValidatorKey

func MakeLastEventNonceByValidatorKey(validator sdk.ValAddress) []byte

MakeLastEventNonceByValidatorKey indexes lateset event nonce by validator MakeLastEventNonceByValidatorKey returns the following key format prefix cosmos-validator [0x0][cosmos1ahx7f8wyertuus9r20284ej0asrs085case3kn]

func MakeOrchestratorValidatorAddressKey

func MakeOrchestratorValidatorAddressKey(orc sdk.AccAddress) []byte

MakeOrchestratorValidatorAddressKey returns the following key format prefix [0xe8][cosmos1ahx7f8wyertuus9r20284ej0asrs085case3kn]

func MakeOutgoingTxKey

func MakeOutgoingTxKey(storeIndex []byte) []byte

MakeOutgoingTxKey returns the store index passed with a prefix

func MakeSendToEthereumKey

func MakeSendToEthereumKey(id uint64, fee ERC20Token) []byte

MakeSendToEthereumKey returns the following key format prefix eth-contract-address fee_amount id [0x9][0xc783df8a850f42e7F7e57013759C285caa701eB6][1000000000][0 0 0 0 0 0 0 1]

func MakeSignerSetTxKey

func MakeSignerSetTxKey(nonce uint64) []byte

func MakeValidatorEthereumAddressKey

func MakeValidatorEthereumAddressKey(validator sdk.ValAddress) []byte

MakeValidatorEthereumAddressKey returns the following key format prefix cosmos-validator [0x0][cosmosvaloper1ahx7f8wyertuus9r20284ej0asrs085case3kn]

func NewEthereumSignature

func NewEthereumSignature(hash []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)

NewEthereumSignature creates a new signuature over a given byte array

func PackConfirmation

func PackConfirmation(confirmation EthereumTxConfirmation) (*types.Any, error)

func PackEvent

func PackEvent(event EthereumEvent) (*types.Any, error)

func PackOutgoingTx

func PackOutgoingTx(outgoing OutgoingTx) (*types.Any, error)

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for auth module

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the interfaces for the proto stuff

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the vesting interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateEthereumSignature

func ValidateEthereumSignature(hash []byte, signature []byte, ethAddress common.Address) error

ValidateEthereumSignature takes a message, an associated signature and public key and returns an error if the signature isn't valid

Types

type AccountKeeper

type AccountKeeper interface {
	GetSequence(ctx sdk.Context, addr sdk.AccAddress) (uint64, error)
}

AccountKeeper defines the interface contract required for account functionality.

type BankKeeper

type BankKeeper interface {
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetDenomMetaData(ctx sdk.Context, denom string) (bank.Metadata, bool)
}

BankKeeper defines the expected bank keeper methods

type BatchExecutedEvent

type BatchExecutedEvent struct {
	TokenContract  string `protobuf:"bytes,1,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
	EventNonce     uint64 `protobuf:"varint,2,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"`
	EthereumHeight uint64 `protobuf:"varint,3,opt,name=ethereum_height,json=ethereumHeight,proto3" json:"ethereum_height,omitempty"`
	BatchNonce     uint64 `protobuf:"varint,4,opt,name=batch_nonce,json=batchNonce,proto3" json:"batch_nonce,omitempty"`
}

BatchExecutedEvent claims that a batch of BatchTxExecutedal operations on the bridge contract was executed successfully on ETH

func (*BatchExecutedEvent) Descriptor

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

func (*BatchExecutedEvent) GetBatchNonce

func (m *BatchExecutedEvent) GetBatchNonce() uint64

func (*BatchExecutedEvent) GetEthereumHeight

func (m *BatchExecutedEvent) GetEthereumHeight() uint64

func (*BatchExecutedEvent) GetEventNonce

func (m *BatchExecutedEvent) GetEventNonce() uint64

func (*BatchExecutedEvent) GetTokenContract

func (m *BatchExecutedEvent) GetTokenContract() string

func (*BatchExecutedEvent) Hash

func (bee *BatchExecutedEvent) Hash() tmbytes.HexBytes

func (*BatchExecutedEvent) Marshal

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

func (*BatchExecutedEvent) MarshalTo

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

func (*BatchExecutedEvent) MarshalToSizedBuffer

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

func (*BatchExecutedEvent) ProtoMessage

func (*BatchExecutedEvent) ProtoMessage()

func (*BatchExecutedEvent) Reset

func (m *BatchExecutedEvent) Reset()

func (*BatchExecutedEvent) Size

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

func (*BatchExecutedEvent) String

func (m *BatchExecutedEvent) String() string

func (*BatchExecutedEvent) Unmarshal

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

func (*BatchExecutedEvent) Validate

func (bee *BatchExecutedEvent) Validate() error

func (*BatchExecutedEvent) XXX_DiscardUnknown

func (m *BatchExecutedEvent) XXX_DiscardUnknown()

func (*BatchExecutedEvent) XXX_Marshal

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

func (*BatchExecutedEvent) XXX_Merge

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

func (*BatchExecutedEvent) XXX_Size

func (m *BatchExecutedEvent) XXX_Size() int

func (*BatchExecutedEvent) XXX_Unmarshal

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

type BatchTx

type BatchTx struct {
	BatchNonce    uint64            `protobuf:"varint,1,opt,name=batch_nonce,json=batchNonce,proto3" json:"batch_nonce,omitempty"`
	Timeout       uint64            `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Transactions  []*SendToEthereum `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"`
	TokenContract string            `protobuf:"bytes,4,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
	Height        uint64            `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
}

BatchTx represents a batch of transactions going from Cosmos to Ethereum. Batch txs are are identified by a unique hash and the token contract that is shared by all the SendToEthereum

func (*BatchTx) Descriptor

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

func (*BatchTx) GetBatchNonce

func (m *BatchTx) GetBatchNonce() uint64

func (BatchTx) GetCheckpoint

func (b BatchTx) GetCheckpoint(gravityID []byte) []byte

GetCheckpoint gets the checkpoint signature from the given outgoing tx batch

func (*BatchTx) GetCosmosHeight

func (btx *BatchTx) GetCosmosHeight() uint64

func (BatchTx) GetFees

func (b BatchTx) GetFees() sdk.Int

GetFees returns the total fees contained within a given batch

func (*BatchTx) GetHeight

func (m *BatchTx) GetHeight() uint64

func (*BatchTx) GetStoreIndex

func (btx *BatchTx) GetStoreIndex() []byte

func (*BatchTx) GetTimeout

func (m *BatchTx) GetTimeout() uint64

func (*BatchTx) GetTokenContract

func (m *BatchTx) GetTokenContract() string

func (*BatchTx) GetTransactions

func (m *BatchTx) GetTransactions() []*SendToEthereum

func (*BatchTx) Marshal

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

func (*BatchTx) MarshalTo

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

func (*BatchTx) MarshalToSizedBuffer

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

func (*BatchTx) ProtoMessage

func (*BatchTx) ProtoMessage()

func (*BatchTx) Reset

func (m *BatchTx) Reset()

func (*BatchTx) Size

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

func (*BatchTx) String

func (m *BatchTx) String() string

func (*BatchTx) Unmarshal

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

func (*BatchTx) XXX_DiscardUnknown

func (m *BatchTx) XXX_DiscardUnknown()

func (*BatchTx) XXX_Marshal

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

func (*BatchTx) XXX_Merge

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

func (*BatchTx) XXX_Size

func (m *BatchTx) XXX_Size() int

func (*BatchTx) XXX_Unmarshal

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

type BatchTxConfirmation

type BatchTxConfirmation struct {
	TokenContract  string `protobuf:"bytes,1,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
	BatchNonce     uint64 `protobuf:"varint,2,opt,name=batch_nonce,json=batchNonce,proto3" json:"batch_nonce,omitempty"`
	EthereumSigner string `protobuf:"bytes,3,opt,name=ethereum_signer,json=ethereumSigner,proto3" json:"ethereum_signer,omitempty"`
	Signature      []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
}

BatchTxConfirmation is a signature on behalf of a validator for a BatchTx.

func (*BatchTxConfirmation) Descriptor

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

func (*BatchTxConfirmation) GetBatchNonce

func (m *BatchTxConfirmation) GetBatchNonce() uint64

func (*BatchTxConfirmation) GetEthereumSigner

func (m *BatchTxConfirmation) GetEthereumSigner() string

func (*BatchTxConfirmation) GetSignature

func (m *BatchTxConfirmation) GetSignature() []byte

func (*BatchTxConfirmation) GetSigner

func (u *BatchTxConfirmation) GetSigner() common.Address

func (*BatchTxConfirmation) GetStoreIndex

func (btx *BatchTxConfirmation) GetStoreIndex() []byte

func (*BatchTxConfirmation) GetTokenContract

func (m *BatchTxConfirmation) GetTokenContract() string

func (*BatchTxConfirmation) Marshal

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

func (*BatchTxConfirmation) MarshalTo

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

func (*BatchTxConfirmation) MarshalToSizedBuffer

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

func (*BatchTxConfirmation) ProtoMessage

func (*BatchTxConfirmation) ProtoMessage()

func (*BatchTxConfirmation) Reset

func (m *BatchTxConfirmation) Reset()

func (*BatchTxConfirmation) Size

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

func (*BatchTxConfirmation) String

func (m *BatchTxConfirmation) String() string

func (*BatchTxConfirmation) Unmarshal

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

func (*BatchTxConfirmation) Validate

func (u *BatchTxConfirmation) Validate() error

func (*BatchTxConfirmation) XXX_DiscardUnknown

func (m *BatchTxConfirmation) XXX_DiscardUnknown()

func (*BatchTxConfirmation) XXX_Marshal

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

func (*BatchTxConfirmation) XXX_Merge

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

func (*BatchTxConfirmation) XXX_Size

func (m *BatchTxConfirmation) XXX_Size() int

func (*BatchTxConfirmation) XXX_Unmarshal

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

type BatchTxConfirmationsRequest

type BatchTxConfirmationsRequest struct {
	BatchNonce    uint64 `protobuf:"varint,1,opt,name=batch_nonce,json=batchNonce,proto3" json:"batch_nonce,omitempty"`
	TokenContract string `protobuf:"bytes,2,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
}

func (*BatchTxConfirmationsRequest) Descriptor

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

func (*BatchTxConfirmationsRequest) GetBatchNonce

func (m *BatchTxConfirmationsRequest) GetBatchNonce() uint64

func (*BatchTxConfirmationsRequest) GetTokenContract

func (m *BatchTxConfirmationsRequest) GetTokenContract() string

func (*BatchTxConfirmationsRequest) Marshal

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

func (*BatchTxConfirmationsRequest) MarshalTo

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

func (*BatchTxConfirmationsRequest) MarshalToSizedBuffer

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

func (*BatchTxConfirmationsRequest) ProtoMessage

func (*BatchTxConfirmationsRequest) ProtoMessage()

func (*BatchTxConfirmationsRequest) Reset

func (m *BatchTxConfirmationsRequest) Reset()

func (*BatchTxConfirmationsRequest) Size

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

func (*BatchTxConfirmationsRequest) String

func (m *BatchTxConfirmationsRequest) String() string

func (*BatchTxConfirmationsRequest) Unmarshal

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

func (*BatchTxConfirmationsRequest) XXX_DiscardUnknown

func (m *BatchTxConfirmationsRequest) XXX_DiscardUnknown()

func (*BatchTxConfirmationsRequest) XXX_Marshal

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

func (*BatchTxConfirmationsRequest) XXX_Merge

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

func (*BatchTxConfirmationsRequest) XXX_Size

func (m *BatchTxConfirmationsRequest) XXX_Size() int

func (*BatchTxConfirmationsRequest) XXX_Unmarshal

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

type BatchTxConfirmationsResponse

type BatchTxConfirmationsResponse struct {
	Signatures []*BatchTxConfirmation `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

func (*BatchTxConfirmationsResponse) Descriptor

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

func (*BatchTxConfirmationsResponse) GetSignatures

func (m *BatchTxConfirmationsResponse) GetSignatures() []*BatchTxConfirmation

func (*BatchTxConfirmationsResponse) Marshal

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

func (*BatchTxConfirmationsResponse) MarshalTo

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

func (*BatchTxConfirmationsResponse) MarshalToSizedBuffer

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

func (*BatchTxConfirmationsResponse) ProtoMessage

func (*BatchTxConfirmationsResponse) ProtoMessage()

func (*BatchTxConfirmationsResponse) Reset

func (m *BatchTxConfirmationsResponse) Reset()

func (*BatchTxConfirmationsResponse) Size

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

func (*BatchTxConfirmationsResponse) String

func (*BatchTxConfirmationsResponse) Unmarshal

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

func (*BatchTxConfirmationsResponse) XXX_DiscardUnknown

func (m *BatchTxConfirmationsResponse) XXX_DiscardUnknown()

func (*BatchTxConfirmationsResponse) XXX_Marshal

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

func (*BatchTxConfirmationsResponse) XXX_Merge

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

func (*BatchTxConfirmationsResponse) XXX_Size

func (m *BatchTxConfirmationsResponse) XXX_Size() int

func (*BatchTxConfirmationsResponse) XXX_Unmarshal

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

type BatchTxFeesRequest

type BatchTxFeesRequest struct {
}

func (*BatchTxFeesRequest) Descriptor

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

func (*BatchTxFeesRequest) Marshal

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

func (*BatchTxFeesRequest) MarshalTo

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

func (*BatchTxFeesRequest) MarshalToSizedBuffer

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

func (*BatchTxFeesRequest) ProtoMessage

func (*BatchTxFeesRequest) ProtoMessage()

func (*BatchTxFeesRequest) Reset

func (m *BatchTxFeesRequest) Reset()

func (*BatchTxFeesRequest) Size

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

func (*BatchTxFeesRequest) String

func (m *BatchTxFeesRequest) String() string

func (*BatchTxFeesRequest) Unmarshal

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

func (*BatchTxFeesRequest) XXX_DiscardUnknown

func (m *BatchTxFeesRequest) XXX_DiscardUnknown()

func (*BatchTxFeesRequest) XXX_Marshal

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

func (*BatchTxFeesRequest) XXX_Merge

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

func (*BatchTxFeesRequest) XXX_Size

func (m *BatchTxFeesRequest) XXX_Size() int

func (*BatchTxFeesRequest) XXX_Unmarshal

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

type BatchTxFeesResponse

type BatchTxFeesResponse struct {
	Fees github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=fees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fees"`
}

func (*BatchTxFeesResponse) Descriptor

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

func (*BatchTxFeesResponse) GetFees

func (*BatchTxFeesResponse) Marshal

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

func (*BatchTxFeesResponse) MarshalTo

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

func (*BatchTxFeesResponse) MarshalToSizedBuffer

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

func (*BatchTxFeesResponse) ProtoMessage

func (*BatchTxFeesResponse) ProtoMessage()

func (*BatchTxFeesResponse) Reset

func (m *BatchTxFeesResponse) Reset()

func (*BatchTxFeesResponse) Size

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

func (*BatchTxFeesResponse) String

func (m *BatchTxFeesResponse) String() string

func (*BatchTxFeesResponse) Unmarshal

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

func (*BatchTxFeesResponse) XXX_DiscardUnknown

func (m *BatchTxFeesResponse) XXX_DiscardUnknown()

func (*BatchTxFeesResponse) XXX_Marshal

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

func (*BatchTxFeesResponse) XXX_Merge

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

func (*BatchTxFeesResponse) XXX_Size

func (m *BatchTxFeesResponse) XXX_Size() int

func (*BatchTxFeesResponse) XXX_Unmarshal

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

type BatchTxRequest

type BatchTxRequest struct {
	TokenContract string `protobuf:"bytes,1,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
	BatchNonce    uint64 `protobuf:"varint,2,opt,name=batch_nonce,json=batchNonce,proto3" json:"batch_nonce,omitempty"`
}

rpc BatchTx

func (*BatchTxRequest) Descriptor

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

func (*BatchTxRequest) GetBatchNonce

func (m *BatchTxRequest) GetBatchNonce() uint64

func (*BatchTxRequest) GetTokenContract

func (m *BatchTxRequest) GetTokenContract() string

func (*BatchTxRequest) Marshal

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

func (*BatchTxRequest) MarshalTo

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

func (*BatchTxRequest) MarshalToSizedBuffer

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

func (*BatchTxRequest) ProtoMessage

func (*BatchTxRequest) ProtoMessage()

func (*BatchTxRequest) Reset

func (m *BatchTxRequest) Reset()

func (*BatchTxRequest) Size

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

func (*BatchTxRequest) String

func (m *BatchTxRequest) String() string

func (*BatchTxRequest) Unmarshal

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

func (*BatchTxRequest) XXX_DiscardUnknown

func (m *BatchTxRequest) XXX_DiscardUnknown()

func (*BatchTxRequest) XXX_Marshal

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

func (*BatchTxRequest) XXX_Merge

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

func (*BatchTxRequest) XXX_Size

func (m *BatchTxRequest) XXX_Size() int

func (*BatchTxRequest) XXX_Unmarshal

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

type BatchTxResponse

type BatchTxResponse struct {
	Batch *BatchTx `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"`
}

func (*BatchTxResponse) Descriptor

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

func (*BatchTxResponse) GetBatch

func (m *BatchTxResponse) GetBatch() *BatchTx

func (*BatchTxResponse) Marshal

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

func (*BatchTxResponse) MarshalTo

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

func (*BatchTxResponse) MarshalToSizedBuffer

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

func (*BatchTxResponse) ProtoMessage

func (*BatchTxResponse) ProtoMessage()

func (*BatchTxResponse) Reset

func (m *BatchTxResponse) Reset()

func (*BatchTxResponse) Size

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

func (*BatchTxResponse) String

func (m *BatchTxResponse) String() string

func (*BatchTxResponse) Unmarshal

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

func (*BatchTxResponse) XXX_DiscardUnknown

func (m *BatchTxResponse) XXX_DiscardUnknown()

func (*BatchTxResponse) XXX_Marshal

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

func (*BatchTxResponse) XXX_Merge

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

func (*BatchTxResponse) XXX_Size

func (m *BatchTxResponse) XXX_Size() int

func (*BatchTxResponse) XXX_Unmarshal

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

type BatchTxsRequest

type BatchTxsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

rpc BatchTxs

func (*BatchTxsRequest) Descriptor

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

func (*BatchTxsRequest) GetPagination

func (m *BatchTxsRequest) GetPagination() *query.PageRequest

func (*BatchTxsRequest) Marshal

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

func (*BatchTxsRequest) MarshalTo

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

func (*BatchTxsRequest) MarshalToSizedBuffer

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

func (*BatchTxsRequest) ProtoMessage

func (*BatchTxsRequest) ProtoMessage()

func (*BatchTxsRequest) Reset

func (m *BatchTxsRequest) Reset()

func (*BatchTxsRequest) Size

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

func (*BatchTxsRequest) String

func (m *BatchTxsRequest) String() string

func (*BatchTxsRequest) Unmarshal

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

func (*BatchTxsRequest) XXX_DiscardUnknown

func (m *BatchTxsRequest) XXX_DiscardUnknown()

func (*BatchTxsRequest) XXX_Marshal

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

func (*BatchTxsRequest) XXX_Merge

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

func (*BatchTxsRequest) XXX_Size

func (m *BatchTxsRequest) XXX_Size() int

func (*BatchTxsRequest) XXX_Unmarshal

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

type BatchTxsResponse

type BatchTxsResponse struct {
	Batches    []*BatchTx          `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*BatchTxsResponse) Descriptor

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

func (*BatchTxsResponse) GetBatches

func (m *BatchTxsResponse) GetBatches() []*BatchTx

func (*BatchTxsResponse) GetPagination

func (m *BatchTxsResponse) GetPagination() *query.PageResponse

func (*BatchTxsResponse) Marshal

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

func (*BatchTxsResponse) MarshalTo

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

func (*BatchTxsResponse) MarshalToSizedBuffer

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

func (*BatchTxsResponse) ProtoMessage

func (*BatchTxsResponse) ProtoMessage()

func (*BatchTxsResponse) Reset

func (m *BatchTxsResponse) Reset()

func (*BatchTxsResponse) Size

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

func (*BatchTxsResponse) String

func (m *BatchTxsResponse) String() string

func (*BatchTxsResponse) Unmarshal

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

func (*BatchTxsResponse) XXX_DiscardUnknown

func (m *BatchTxsResponse) XXX_DiscardUnknown()

func (*BatchTxsResponse) XXX_Marshal

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

func (*BatchTxsResponse) XXX_Merge

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

func (*BatchTxsResponse) XXX_Size

func (m *BatchTxsResponse) XXX_Size() int

func (*BatchTxsResponse) XXX_Unmarshal

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

type BatchedSendToEthereumsRequest

type BatchedSendToEthereumsRequest struct {
	SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
}

NOTE: if there is no sender address, return all

func (*BatchedSendToEthereumsRequest) Descriptor

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

func (*BatchedSendToEthereumsRequest) GetSenderAddress

func (m *BatchedSendToEthereumsRequest) GetSenderAddress() string

func (*BatchedSendToEthereumsRequest) Marshal

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

func (*BatchedSendToEthereumsRequest) MarshalTo

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

func (*BatchedSendToEthereumsRequest) MarshalToSizedBuffer

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

func (*BatchedSendToEthereumsRequest) ProtoMessage

func (*BatchedSendToEthereumsRequest) ProtoMessage()

func (*BatchedSendToEthereumsRequest) Reset

func (m *BatchedSendToEthereumsRequest) Reset()

func (*BatchedSendToEthereumsRequest) Size

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

func (*BatchedSendToEthereumsRequest) String

func (*BatchedSendToEthereumsRequest) Unmarshal

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

func (*BatchedSendToEthereumsRequest) XXX_DiscardUnknown

func (m *BatchedSendToEthereumsRequest) XXX_DiscardUnknown()

func (*BatchedSendToEthereumsRequest) XXX_Marshal

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

func (*BatchedSendToEthereumsRequest) XXX_Merge

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

func (*BatchedSendToEthereumsRequest) XXX_Size

func (m *BatchedSendToEthereumsRequest) XXX_Size() int

func (*BatchedSendToEthereumsRequest) XXX_Unmarshal

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

type BatchedSendToEthereumsResponse

type BatchedSendToEthereumsResponse struct {
	SendToEthereums []*SendToEthereum `protobuf:"bytes,1,rep,name=send_to_ethereums,json=sendToEthereums,proto3" json:"send_to_ethereums,omitempty"`
}

func (*BatchedSendToEthereumsResponse) Descriptor

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

func (*BatchedSendToEthereumsResponse) GetSendToEthereums

func (m *BatchedSendToEthereumsResponse) GetSendToEthereums() []*SendToEthereum

func (*BatchedSendToEthereumsResponse) Marshal

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

func (*BatchedSendToEthereumsResponse) MarshalTo

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

func (*BatchedSendToEthereumsResponse) MarshalToSizedBuffer

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

func (*BatchedSendToEthereumsResponse) ProtoMessage

func (*BatchedSendToEthereumsResponse) ProtoMessage()

func (*BatchedSendToEthereumsResponse) Reset

func (m *BatchedSendToEthereumsResponse) Reset()

func (*BatchedSendToEthereumsResponse) Size

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

func (*BatchedSendToEthereumsResponse) String

func (*BatchedSendToEthereumsResponse) Unmarshal

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

func (*BatchedSendToEthereumsResponse) XXX_DiscardUnknown

func (m *BatchedSendToEthereumsResponse) XXX_DiscardUnknown()

func (*BatchedSendToEthereumsResponse) XXX_Marshal

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

func (*BatchedSendToEthereumsResponse) XXX_Merge

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

func (*BatchedSendToEthereumsResponse) XXX_Size

func (m *BatchedSendToEthereumsResponse) XXX_Size() int

func (*BatchedSendToEthereumsResponse) XXX_Unmarshal

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

type ContractCallExecutedEvent

type ContractCallExecutedEvent struct {
	EventNonce        uint64                                               `protobuf:"varint,1,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"`
	InvalidationScope github_com_tendermint_tendermint_libs_bytes.HexBytes `` /* 174-byte string literal not displayed */
	InvalidationNonce uint64                                               `protobuf:"varint,3,opt,name=invalidation_nonce,json=invalidationNonce,proto3" json:"invalidation_nonce,omitempty"`
	EthereumHeight    uint64                                               `protobuf:"varint,4,opt,name=ethereum_height,json=ethereumHeight,proto3" json:"ethereum_height,omitempty"`
}

NOTE: bytes.HexBytes is supposed to "help" with json encoding/decoding investigate?

func (*ContractCallExecutedEvent) Descriptor

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

func (*ContractCallExecutedEvent) GetEthereumHeight

func (m *ContractCallExecutedEvent) GetEthereumHeight() uint64

func (*ContractCallExecutedEvent) GetEventNonce

func (m *ContractCallExecutedEvent) GetEventNonce() uint64

func (*ContractCallExecutedEvent) GetInvalidationNonce

func (m *ContractCallExecutedEvent) GetInvalidationNonce() uint64

func (*ContractCallExecutedEvent) GetInvalidationScope

func (*ContractCallExecutedEvent) Hash

func (*ContractCallExecutedEvent) Marshal

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

func (*ContractCallExecutedEvent) MarshalTo

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

func (*ContractCallExecutedEvent) MarshalToSizedBuffer

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

func (*ContractCallExecutedEvent) ProtoMessage

func (*ContractCallExecutedEvent) ProtoMessage()

func (*ContractCallExecutedEvent) Reset

func (m *ContractCallExecutedEvent) Reset()

func (*ContractCallExecutedEvent) Size

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

func (*ContractCallExecutedEvent) String

func (m *ContractCallExecutedEvent) String() string

func (*ContractCallExecutedEvent) Unmarshal

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

func (*ContractCallExecutedEvent) Validate

func (ccee *ContractCallExecutedEvent) Validate() error

func (*ContractCallExecutedEvent) XXX_DiscardUnknown

func (m *ContractCallExecutedEvent) XXX_DiscardUnknown()

func (*ContractCallExecutedEvent) XXX_Marshal

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

func (*ContractCallExecutedEvent) XXX_Merge

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

func (*ContractCallExecutedEvent) XXX_Size

func (m *ContractCallExecutedEvent) XXX_Size() int

func (*ContractCallExecutedEvent) XXX_Unmarshal

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

type ContractCallTx

type ContractCallTx struct {
	InvalidationNonce uint64                                               `protobuf:"varint,1,opt,name=invalidation_nonce,json=invalidationNonce,proto3" json:"invalidation_nonce,omitempty"`
	InvalidationScope github_com_tendermint_tendermint_libs_bytes.HexBytes `` /* 174-byte string literal not displayed */
	Address           string                                               `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Payload           []byte                                               `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	Timeout           uint64                                               `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Tokens            []ERC20Token                                         `protobuf:"bytes,6,rep,name=tokens,proto3" json:"tokens"`
	Fees              []ERC20Token                                         `protobuf:"bytes,7,rep,name=fees,proto3" json:"fees"`
	Height            uint64                                               `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"`
}

ContractCallTx represents an individual arbitrary logic call transaction from Cosmos to Ethereum.

func (*ContractCallTx) Descriptor

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

func (*ContractCallTx) GetAddress

func (m *ContractCallTx) GetAddress() string

func (ContractCallTx) GetCheckpoint

func (c ContractCallTx) GetCheckpoint(gravityID []byte) []byte

GetCheckpoint gets the checkpoint signature from the given outgoing tx batch

func (*ContractCallTx) GetCosmosHeight

func (cctx *ContractCallTx) GetCosmosHeight() uint64

func (*ContractCallTx) GetFees

func (m *ContractCallTx) GetFees() []ERC20Token

func (*ContractCallTx) GetHeight

func (m *ContractCallTx) GetHeight() uint64

func (*ContractCallTx) GetInvalidationNonce

func (m *ContractCallTx) GetInvalidationNonce() uint64

func (*ContractCallTx) GetInvalidationScope

func (*ContractCallTx) GetPayload

func (m *ContractCallTx) GetPayload() []byte

func (*ContractCallTx) GetStoreIndex

func (cctx *ContractCallTx) GetStoreIndex() []byte

func (*ContractCallTx) GetTimeout

func (m *ContractCallTx) GetTimeout() uint64

func (*ContractCallTx) GetTokens

func (m *ContractCallTx) GetTokens() []ERC20Token

func (*ContractCallTx) Marshal

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

func (*ContractCallTx) MarshalTo

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

func (*ContractCallTx) MarshalToSizedBuffer

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

func (*ContractCallTx) ProtoMessage

func (*ContractCallTx) ProtoMessage()

func (*ContractCallTx) Reset

func (m *ContractCallTx) Reset()

func (*ContractCallTx) Size

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

func (*ContractCallTx) String

func (m *ContractCallTx) String() string

func (*ContractCallTx) Unmarshal

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

func (*ContractCallTx) XXX_DiscardUnknown

func (m *ContractCallTx) XXX_DiscardUnknown()

func (*ContractCallTx) XXX_Marshal

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

func (*ContractCallTx) XXX_Merge

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

func (*ContractCallTx) XXX_Size

func (m *ContractCallTx) XXX_Size() int

func (*ContractCallTx) XXX_Unmarshal

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

type ContractCallTxConfirmation

type ContractCallTxConfirmation struct {
	InvalidationScope []byte `protobuf:"bytes,1,opt,name=invalidation_scope,json=invalidationScope,proto3" json:"invalidation_scope,omitempty"`
	InvalidationNonce uint64 `protobuf:"varint,2,opt,name=invalidation_nonce,json=invalidationNonce,proto3" json:"invalidation_nonce,omitempty"`
	EthereumSigner    string `protobuf:"bytes,3,opt,name=ethereum_signer,json=ethereumSigner,proto3" json:"ethereum_signer,omitempty"`
	Signature         []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
}

ContractCallTxConfirmation is a signature on behalf of a validator for a ContractCallTx.

func (*ContractCallTxConfirmation) Descriptor

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

func (*ContractCallTxConfirmation) GetEthereumSigner

func (m *ContractCallTxConfirmation) GetEthereumSigner() string

func (*ContractCallTxConfirmation) GetInvalidationNonce

func (m *ContractCallTxConfirmation) GetInvalidationNonce() uint64

func (*ContractCallTxConfirmation) GetInvalidationScope

func (m *ContractCallTxConfirmation) GetInvalidationScope() []byte

func (*ContractCallTxConfirmation) GetSignature

func (m *ContractCallTxConfirmation) GetSignature() []byte

func (*ContractCallTxConfirmation) GetSigner

func (u *ContractCallTxConfirmation) GetSigner() common.Address

func (*ContractCallTxConfirmation) GetStoreIndex

func (cctx *ContractCallTxConfirmation) GetStoreIndex() []byte

func (*ContractCallTxConfirmation) Marshal

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

func (*ContractCallTxConfirmation) MarshalTo

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

func (*ContractCallTxConfirmation) MarshalToSizedBuffer

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

func (*ContractCallTxConfirmation) ProtoMessage

func (*ContractCallTxConfirmation) ProtoMessage()

func (*ContractCallTxConfirmation) Reset

func (m *ContractCallTxConfirmation) Reset()

func (*ContractCallTxConfirmation) Size

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

func (*ContractCallTxConfirmation) String

func (m *ContractCallTxConfirmation) String() string

func (*ContractCallTxConfirmation) Unmarshal

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

func (*ContractCallTxConfirmation) Validate

func (u *ContractCallTxConfirmation) Validate() error

func (*ContractCallTxConfirmation) XXX_DiscardUnknown

func (m *ContractCallTxConfirmation) XXX_DiscardUnknown()

func (*ContractCallTxConfirmation) XXX_Marshal

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

func (*ContractCallTxConfirmation) XXX_Merge

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

func (*ContractCallTxConfirmation) XXX_Size

func (m *ContractCallTxConfirmation) XXX_Size() int

func (*ContractCallTxConfirmation) XXX_Unmarshal

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

type ContractCallTxConfirmationsRequest

type ContractCallTxConfirmationsRequest struct {
	InvalidationScope []byte `protobuf:"bytes,1,opt,name=invalidation_scope,json=invalidationScope,proto3" json:"invalidation_scope,omitempty"`
	InvalidationNonce uint64 `protobuf:"varint,2,opt,name=invalidation_nonce,json=invalidationNonce,proto3" json:"invalidation_nonce,omitempty"`
}

func (*ContractCallTxConfirmationsRequest) Descriptor

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

func (*ContractCallTxConfirmationsRequest) GetInvalidationNonce

func (m *ContractCallTxConfirmationsRequest) GetInvalidationNonce() uint64

func (*ContractCallTxConfirmationsRequest) GetInvalidationScope

func (m *ContractCallTxConfirmationsRequest) GetInvalidationScope() []byte

func (*ContractCallTxConfirmationsRequest) Marshal

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

func (*ContractCallTxConfirmationsRequest) MarshalTo

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

func (*ContractCallTxConfirmationsRequest) MarshalToSizedBuffer

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

func (*ContractCallTxConfirmationsRequest) ProtoMessage

func (*ContractCallTxConfirmationsRequest) ProtoMessage()

func (*ContractCallTxConfirmationsRequest) Reset

func (*ContractCallTxConfirmationsRequest) Size

func (*ContractCallTxConfirmationsRequest) String

func (*ContractCallTxConfirmationsRequest) Unmarshal

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

func (*ContractCallTxConfirmationsRequest) XXX_DiscardUnknown

func (m *ContractCallTxConfirmationsRequest) XXX_DiscardUnknown()

func (*ContractCallTxConfirmationsRequest) XXX_Marshal

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

func (*ContractCallTxConfirmationsRequest) XXX_Merge

func (*ContractCallTxConfirmationsRequest) XXX_Size

func (*ContractCallTxConfirmationsRequest) XXX_Unmarshal

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

type ContractCallTxConfirmationsResponse

type ContractCallTxConfirmationsResponse struct {
	Signatures []*ContractCallTxConfirmation `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

func (*ContractCallTxConfirmationsResponse) Descriptor

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

func (*ContractCallTxConfirmationsResponse) GetSignatures

func (*ContractCallTxConfirmationsResponse) Marshal

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

func (*ContractCallTxConfirmationsResponse) MarshalTo

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

func (*ContractCallTxConfirmationsResponse) MarshalToSizedBuffer

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

func (*ContractCallTxConfirmationsResponse) ProtoMessage

func (*ContractCallTxConfirmationsResponse) ProtoMessage()

func (*ContractCallTxConfirmationsResponse) Reset

func (*ContractCallTxConfirmationsResponse) Size

func (*ContractCallTxConfirmationsResponse) String

func (*ContractCallTxConfirmationsResponse) Unmarshal

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

func (*ContractCallTxConfirmationsResponse) XXX_DiscardUnknown

func (m *ContractCallTxConfirmationsResponse) XXX_DiscardUnknown()

func (*ContractCallTxConfirmationsResponse) XXX_Marshal

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

func (*ContractCallTxConfirmationsResponse) XXX_Merge

func (*ContractCallTxConfirmationsResponse) XXX_Size

func (*ContractCallTxConfirmationsResponse) XXX_Unmarshal

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

type ContractCallTxRequest

type ContractCallTxRequest struct {
	InvalidationScope []byte `protobuf:"bytes,1,opt,name=invalidation_scope,json=invalidationScope,proto3" json:"invalidation_scope,omitempty"`
	InvalidationNonce uint64 `protobuf:"varint,2,opt,name=invalidation_nonce,json=invalidationNonce,proto3" json:"invalidation_nonce,omitempty"`
}

rpc ContractCallTx

func (*ContractCallTxRequest) Descriptor

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

func (*ContractCallTxRequest) GetInvalidationNonce

func (m *ContractCallTxRequest) GetInvalidationNonce() uint64

func (*ContractCallTxRequest) GetInvalidationScope

func (m *ContractCallTxRequest) GetInvalidationScope() []byte

func (*ContractCallTxRequest) Marshal

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

func (*ContractCallTxRequest) MarshalTo

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

func (*ContractCallTxRequest) MarshalToSizedBuffer

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

func (*ContractCallTxRequest) ProtoMessage

func (*ContractCallTxRequest) ProtoMessage()

func (*ContractCallTxRequest) Reset

func (m *ContractCallTxRequest) Reset()

func (*ContractCallTxRequest) Size

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

func (*ContractCallTxRequest) String

func (m *ContractCallTxRequest) String() string

func (*ContractCallTxRequest) Unmarshal

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

func (*ContractCallTxRequest) XXX_DiscardUnknown

func (m *ContractCallTxRequest) XXX_DiscardUnknown()

func (*ContractCallTxRequest) XXX_Marshal

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

func (*ContractCallTxRequest) XXX_Merge

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

func (*ContractCallTxRequest) XXX_Size

func (m *ContractCallTxRequest) XXX_Size() int

func (*ContractCallTxRequest) XXX_Unmarshal

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

type ContractCallTxResponse

type ContractCallTxResponse struct {
	LogicCall *ContractCallTx `protobuf:"bytes,1,opt,name=logic_call,json=logicCall,proto3" json:"logic_call,omitempty"`
}

func (*ContractCallTxResponse) Descriptor

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

func (*ContractCallTxResponse) GetLogicCall

func (m *ContractCallTxResponse) GetLogicCall() *ContractCallTx

func (*ContractCallTxResponse) Marshal

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

func (*ContractCallTxResponse) MarshalTo

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

func (*ContractCallTxResponse) MarshalToSizedBuffer

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

func (*ContractCallTxResponse) ProtoMessage

func (*ContractCallTxResponse) ProtoMessage()

func (*ContractCallTxResponse) Reset

func (m *ContractCallTxResponse) Reset()

func (*ContractCallTxResponse) Size

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

func (*ContractCallTxResponse) String

func (m *ContractCallTxResponse) String() string

func (*ContractCallTxResponse) Unmarshal

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

func (*ContractCallTxResponse) XXX_DiscardUnknown

func (m *ContractCallTxResponse) XXX_DiscardUnknown()

func (*ContractCallTxResponse) XXX_Marshal

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

func (*ContractCallTxResponse) XXX_Merge

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

func (*ContractCallTxResponse) XXX_Size

func (m *ContractCallTxResponse) XXX_Size() int

func (*ContractCallTxResponse) XXX_Unmarshal

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

type ContractCallTxsRequest

type ContractCallTxsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

rpc ContractCallTxs

func (*ContractCallTxsRequest) Descriptor

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

func (*ContractCallTxsRequest) GetPagination

func (m *ContractCallTxsRequest) GetPagination() *query.PageRequest

func (*ContractCallTxsRequest) Marshal

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

func (*ContractCallTxsRequest) MarshalTo

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

func (*ContractCallTxsRequest) MarshalToSizedBuffer

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

func (*ContractCallTxsRequest) ProtoMessage

func (*ContractCallTxsRequest) ProtoMessage()

func (*ContractCallTxsRequest) Reset

func (m *ContractCallTxsRequest) Reset()

func (*ContractCallTxsRequest) Size

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

func (*ContractCallTxsRequest) String

func (m *ContractCallTxsRequest) String() string

func (*ContractCallTxsRequest)