Documentation ¶
Overview ¶
Copyright 2021 Evmos Foundation This file is part of Evmos' Ethermint library.
The Ethermint library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Ethermint library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Ethermint library. If not, see https://github.com/evmos/ethermint/blob/main/LICENSE
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GenerateRandomChainID() string
- func IsValidChainID(chainID string) bool
- func NewRouterCoin(amount sdk.Int) sdk.Coin
- func NewRouterCoinInt64(amount int64) sdk.Coin
- func NewRouterDecCoin(amount sdk.Int) sdk.DecCoin
- func ParseChainID(chainID string) (*big.Int, error)
- func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)
- func RegisterRouterTxRpcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRouterTxRpcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RouterTxRpcClient) error
- func RegisterRouterTxRpcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRouterTxRpcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RouterTxRpcServer) error
- func RegisterRouterTxRpcServer(s grpc1.Server, srv RouterTxRpcServer)
- func RegisterRouterTxService(qrt gogogrpc.Server, clientCtx client.Context, simulateFn baseAppSimulateFn, ...)
- type BroadcastTxRequest
- func (*BroadcastTxRequest) Descriptor() ([]byte, []int)
- func (m *BroadcastTxRequest) GetChainId() uint64
- func (m *BroadcastTxRequest) GetFeePayer() string
- func (m *BroadcastTxRequest) GetFeePayerSig() string
- func (m *BroadcastTxRequest) GetMode() string
- func (m *BroadcastTxRequest) GetMsgs() [][]byte
- func (m *BroadcastTxRequest) GetPubKey() *CosmosPubKey
- func (m *BroadcastTxRequest) GetSignature() string
- func (m *BroadcastTxRequest) GetTx() []byte
- func (m *BroadcastTxRequest) Marshal() (dAtA []byte, err error)
- func (m *BroadcastTxRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *BroadcastTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BroadcastTxRequest) ProtoMessage()
- func (m *BroadcastTxRequest) Reset()
- func (m *BroadcastTxRequest) Size() (n int)
- func (m *BroadcastTxRequest) String() string
- func (m *BroadcastTxRequest) Unmarshal(dAtA []byte) error
- func (m *BroadcastTxRequest) XXX_DiscardUnknown()
- func (m *BroadcastTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BroadcastTxRequest) XXX_Merge(src proto.Message)
- func (m *BroadcastTxRequest) XXX_Size() int
- func (m *BroadcastTxRequest) XXX_Unmarshal(b []byte) error
- type BroadcastTxResponse
- func (*BroadcastTxResponse) Descriptor() ([]byte, []int)
- func (m *BroadcastTxResponse) GetCode() uint32
- func (m *BroadcastTxResponse) GetCodespace() string
- func (m *BroadcastTxResponse) GetData() []byte
- func (m *BroadcastTxResponse) GetHeight() int64
- func (m *BroadcastTxResponse) GetIndex() uint32
- func (m *BroadcastTxResponse) GetRawLog() string
- func (m *BroadcastTxResponse) GetTimestamp() string
- func (m *BroadcastTxResponse) GetTxHash() string
- func (m *BroadcastTxResponse) Marshal() (dAtA []byte, err error)
- func (m *BroadcastTxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *BroadcastTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BroadcastTxResponse) ProtoMessage()
- func (m *BroadcastTxResponse) Reset()
- func (m *BroadcastTxResponse) Size() (n int)
- func (m *BroadcastTxResponse) String() string
- func (m *BroadcastTxResponse) Unmarshal(dAtA []byte) error
- func (m *BroadcastTxResponse) XXX_DiscardUnknown()
- func (m *BroadcastTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BroadcastTxResponse) XXX_Merge(src proto.Message)
- func (m *BroadcastTxResponse) XXX_Size() int
- func (m *BroadcastTxResponse) XXX_Unmarshal(b []byte) error
- type CosmosCoin
- func (*CosmosCoin) Descriptor() ([]byte, []int)
- func (m *CosmosCoin) GetAmount() string
- func (m *CosmosCoin) GetDenom() string
- func (m *CosmosCoin) Marshal() (dAtA []byte, err error)
- func (m *CosmosCoin) MarshalTo(dAtA []byte) (int, error)
- func (m *CosmosCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CosmosCoin) ProtoMessage()
- func (m *CosmosCoin) Reset()
- func (m *CosmosCoin) Size() (n int)
- func (m *CosmosCoin) String() string
- func (m *CosmosCoin) Unmarshal(dAtA []byte) error
- func (m *CosmosCoin) XXX_DiscardUnknown()
- func (m *CosmosCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CosmosCoin) XXX_Merge(src proto.Message)
- func (m *CosmosCoin) XXX_Size() int
- func (m *CosmosCoin) XXX_Unmarshal(b []byte) error
- type CosmosPubKey
- func (*CosmosPubKey) Descriptor() ([]byte, []int)
- func (m *CosmosPubKey) GetKey() string
- func (m *CosmosPubKey) GetType() string
- func (m *CosmosPubKey) Marshal() (dAtA []byte, err error)
- func (m *CosmosPubKey) MarshalTo(dAtA []byte) (int, error)
- func (m *CosmosPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CosmosPubKey) ProtoMessage()
- func (m *CosmosPubKey) Reset()
- func (m *CosmosPubKey) Size() (n int)
- func (m *CosmosPubKey) String() string
- func (m *CosmosPubKey) Unmarshal(dAtA []byte) error
- func (m *CosmosPubKey) XXX_DiscardUnknown()
- func (m *CosmosPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CosmosPubKey) XXX_Merge(src proto.Message)
- func (m *CosmosPubKey) XXX_Size() int
- func (m *CosmosPubKey) XXX_Unmarshal(b []byte) error
- type CosmosTxFee
- func (*CosmosTxFee) Descriptor() ([]byte, []int)
- func (m *CosmosTxFee) GetDelegateFee() bool
- func (m *CosmosTxFee) GetGas() uint64
- func (m *CosmosTxFee) GetPrice() []*CosmosCoin
- func (m *CosmosTxFee) Marshal() (dAtA []byte, err error)
- func (m *CosmosTxFee) MarshalTo(dAtA []byte) (int, error)
- func (m *CosmosTxFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CosmosTxFee) ProtoMessage()
- func (m *CosmosTxFee) Reset()
- func (m *CosmosTxFee) Size() (n int)
- func (m *CosmosTxFee) String() string
- func (m *CosmosTxFee) Unmarshal(dAtA []byte) error
- func (m *CosmosTxFee) XXX_DiscardUnknown()
- func (m *CosmosTxFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CosmosTxFee) XXX_Merge(src proto.Message)
- func (m *CosmosTxFee) XXX_Size() int
- func (m *CosmosTxFee) XXX_Unmarshal(b []byte) error
- type ExtensionOptionsWeb3Tx
- func (*ExtensionOptionsWeb3Tx) Descriptor() ([]byte, []int)
- func (m *ExtensionOptionsWeb3Tx) Marshal() (dAtA []byte, err error)
- func (m *ExtensionOptionsWeb3Tx) MarshalTo(dAtA []byte) (int, error)
- func (m *ExtensionOptionsWeb3Tx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExtensionOptionsWeb3Tx) ProtoMessage()
- func (m *ExtensionOptionsWeb3Tx) Reset()
- func (m *ExtensionOptionsWeb3Tx) Size() (n int)
- func (m *ExtensionOptionsWeb3Tx) String() string
- func (m *ExtensionOptionsWeb3Tx) Unmarshal(dAtA []byte) error
- func (m *ExtensionOptionsWeb3Tx) XXX_DiscardUnknown()
- func (m *ExtensionOptionsWeb3Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtensionOptionsWeb3Tx) XXX_Merge(src proto.Message)
- func (m *ExtensionOptionsWeb3Tx) XXX_Size() int
- func (m *ExtensionOptionsWeb3Tx) XXX_Unmarshal(b []byte) error
- type GetTxRequest
- func (*GetTxRequest) Descriptor() ([]byte, []int)
- func (m *GetTxRequest) GetHash() string
- func (m *GetTxRequest) Marshal() (dAtA []byte, err error)
- func (m *GetTxRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetTxRequest) ProtoMessage()
- func (m *GetTxRequest) Reset()
- func (m *GetTxRequest) Size() (n int)
- func (m *GetTxRequest) String() string
- func (m *GetTxRequest) Unmarshal(dAtA []byte) error
- func (m *GetTxRequest) XXX_DiscardUnknown()
- func (m *GetTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTxRequest) XXX_Merge(src proto.Message)
- func (m *GetTxRequest) XXX_Size() int
- func (m *GetTxRequest) XXX_Unmarshal(b []byte) error
- type GetTxResponse
- func (*GetTxResponse) Descriptor() ([]byte, []int)
- func (m *GetTxResponse) GetCode() uint32
- func (m *GetTxResponse) GetCodespace() string
- func (m *GetTxResponse) GetData() []byte
- func (m *GetTxResponse) GetHeight() int64
- func (m *GetTxResponse) GetIndex() uint32
- func (m *GetTxResponse) GetRawLog() string
- func (m *GetTxResponse) GetTimestamp() string
- func (m *GetTxResponse) GetTxHash() string
- func (m *GetTxResponse) Marshal() (dAtA []byte, err error)
- func (m *GetTxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetTxResponse) ProtoMessage()
- func (m *GetTxResponse) Reset()
- func (m *GetTxResponse) Size() (n int)
- func (m *GetTxResponse) String() string
- func (m *GetTxResponse) Unmarshal(dAtA []byte) error
- func (m *GetTxResponse) XXX_DiscardUnknown()
- func (m *GetTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTxResponse) XXX_Merge(src proto.Message)
- func (m *GetTxResponse) XXX_Size() int
- func (m *GetTxResponse) XXX_Unmarshal(b []byte) error
- type HDPathIterator
- type MiddlewareContractType
- type PrepareTxRequest
- func (*PrepareTxRequest) Descriptor() ([]byte, []int)
- func (m *PrepareTxRequest) GetChainId() uint64
- func (m *PrepareTxRequest) GetFee() *CosmosTxFee
- func (m *PrepareTxRequest) GetMemo() string
- func (m *PrepareTxRequest) GetMsgs() [][]byte
- func (m *PrepareTxRequest) GetSequence() uint64
- func (m *PrepareTxRequest) GetSignerAddress() string
- func (m *PrepareTxRequest) GetTimeoutHeight() uint64
- func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error)
- func (m *PrepareTxRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PrepareTxRequest) ProtoMessage()
- func (m *PrepareTxRequest) Reset()
- func (m *PrepareTxRequest) Size() (n int)
- func (m *PrepareTxRequest) String() string
- func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error
- func (m *PrepareTxRequest) XXX_DiscardUnknown()
- func (m *PrepareTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrepareTxRequest) XXX_Merge(src proto.Message)
- func (m *PrepareTxRequest) XXX_Size() int
- func (m *PrepareTxRequest) XXX_Unmarshal(b []byte) error
- type PrepareTxResponse
- func (*PrepareTxResponse) Descriptor() ([]byte, []int)
- func (m *PrepareTxResponse) GetData() string
- func (m *PrepareTxResponse) GetFeePayer() string
- func (m *PrepareTxResponse) GetFeePayerSig() string
- func (m *PrepareTxResponse) GetPubKeyType() string
- func (m *PrepareTxResponse) GetSequence() uint64
- func (m *PrepareTxResponse) GetSignMode() string
- func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error)
- func (m *PrepareTxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PrepareTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PrepareTxResponse) ProtoMessage()
- func (m *PrepareTxResponse) Reset()
- func (m *PrepareTxResponse) Size() (n int)
- func (m *PrepareTxResponse) String() string
- func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error
- func (m *PrepareTxResponse) XXX_DiscardUnknown()
- func (m *PrepareTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrepareTxResponse) XXX_Merge(src proto.Message)
- func (m *PrepareTxResponse) XXX_Size() int
- func (m *PrepareTxResponse) XXX_Unmarshal(b []byte) error
- type RouterTxRpcClient
- type RouterTxRpcServer
- type TxResponseData
- func (*TxResponseData) Descriptor() ([]byte, []int)
- func (m *TxResponseData) GetMessages() []*TxResponseGenericMessage
- func (m *TxResponseData) Marshal() (dAtA []byte, err error)
- func (m *TxResponseData) MarshalTo(dAtA []byte) (int, error)
- func (m *TxResponseData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxResponseData) ProtoMessage()
- func (m *TxResponseData) Reset()
- func (m *TxResponseData) Size() (n int)
- func (m *TxResponseData) String() string
- func (m *TxResponseData) Unmarshal(dAtA []byte) error
- func (m *TxResponseData) XXX_DiscardUnknown()
- func (m *TxResponseData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxResponseData) XXX_Merge(src proto.Message)
- func (m *TxResponseData) XXX_Size() int
- func (m *TxResponseData) XXX_Unmarshal(b []byte) error
- type TxResponseGenericMessage
- func (*TxResponseGenericMessage) Descriptor() ([]byte, []int)
- func (m *TxResponseGenericMessage) GetData() []byte
- func (m *TxResponseGenericMessage) GetHeader() string
- func (m *TxResponseGenericMessage) Marshal() (dAtA []byte, err error)
- func (m *TxResponseGenericMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *TxResponseGenericMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxResponseGenericMessage) ProtoMessage()
- func (m *TxResponseGenericMessage) Reset()
- func (m *TxResponseGenericMessage) Size() (n int)
- func (m *TxResponseGenericMessage) String() string
- func (m *TxResponseGenericMessage) Unmarshal(dAtA []byte) error
- func (m *TxResponseGenericMessage) XXX_DiscardUnknown()
- func (m *TxResponseGenericMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxResponseGenericMessage) XXX_Merge(src proto.Message)
- func (m *TxResponseGenericMessage) XXX_Size() int
- func (m *TxResponseGenericMessage) XXX_Unmarshal(b []byte) error
- type UnimplementedRouterTxRpcServer
- func (*UnimplementedRouterTxRpcServer) BroadcastTx(ctx context.Context, req *BroadcastTxRequest) (*BroadcastTxResponse, error)
- func (*UnimplementedRouterTxRpcServer) GetTx(ctx context.Context, req *GetTxRequest) (*GetTxResponse, error)
- func (*UnimplementedRouterTxRpcServer) PrepareTx(ctx context.Context, req *PrepareTxRequest) (*PrepareTxResponse, error)
Constants ¶
const ( // ROUTER defines the default coin denomination used in Ethermint in: // // - Staking parameters: denomination used as stake in the dPoS chain // - Mint parameters: denomination minted due to fee distribution rewards // - Governance parameters: denomination used for spam prevention in proposal deposits // - Crisis parameters: constant fee denomination used for spam prevention to check broken invariant // - EVM parameters: denomination used for running EVM state transitions in Ethermint. RouterCoin string = "route" // BaseDenomUnit defines the base denomination unit for Photons. // 1 photon = 1x10^{BaseDenomUnit} router BaseDenomUnit = 18 )
const ( // DefaultGasPrice is default gas price for evm transactions DefaultGasPrice = 0 // DefaultRPCGasLimit is default gas limit for RPC call operations DefaultRPCGasLimit = 80000000 )
const (
// RootCodespace is the codespace for all errors defined in this package
RootCodespace = "router"
)
Variables ¶
var ( // ErrInvalidValue returns an error resulting from an invalid value. ErrInvalidValue = sdkerrors.Register(RootCodespace, 2, "invalid value") // ErrInvalidChainID returns an error resulting from an invalid chain ID. ErrInvalidChainID = sdkerrors.Register(RootCodespace, 3, "invalid chain ID") // ErrVMExecution returns an error resulting from an error in EVM execution. ErrVMExecution = sdkerrors.Register(RootCodespace, 4, "error while executing evm transaction") )
var ( // Bip44CoinType satisfies EIP84. See https://github.com/ethereum/EIPs/issues/84 for more info. Bip44CoinType uint32 = 60 // BIP44HDPath is the default BIP44 HD path used on Ethereum. BIP44HDPath = ethaccounts.DefaultBaseDerivationPath.String() )
var ( ErrInvalidLengthTxExt = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTxExt = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTxExt = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTxResponse = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTxResponse = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTxResponse = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTxService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTxService = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTxService = fmt.Errorf("proto: unexpected end of group") )
var MiddlewareContractType_name = map[int32]string{
0: "MIDDLEWARE_COSMWASM",
1: "MIDDLEWARE_SOLIDITY",
}
var MiddlewareContractType_value = map[string]int32{
"MIDDLEWARE_COSMWASM": 0,
"MIDDLEWARE_SOLIDITY": 1,
}
var PowerReduction = sdkmath.NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(BaseDenomUnit), nil))
PowerReduction defines the default power reduction value for staking
Functions ¶
func GenerateRandomChainID ¶
func GenerateRandomChainID() string
GenerateRandomChainID returns a random chain-id in the valid format.
func IsValidChainID ¶
IsValidChainID returns false if the given chain identifier is incorrectly formatted.
func NewRouterCoin ¶
NewRouterCoin is a utility function that returns an "router" coin with the given sdk.Int amount. The function will panic if the provided amount is negative.
func NewRouterCoinInt64 ¶
NewRouterCoinInt64 is a utility function that returns an "router" coin with the given int64 amount. The function will panic if the provided amount is negative.
func NewRouterDecCoin ¶
NewRouterDecCoin is a utility function that returns an "router" decimal coin with the given sdk.Int amount. The function will panic if the provided amount is negative.
func ParseChainID ¶
ParseChainID parses a string chain identifier's epoch to an Ethereum-compatible chain-id in *big.Int format. The function returns an error if the chain-id has an invalid format
func RegisterGRPCGatewayRoutes ¶
func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes mounts the tx service's GRPC-gateway routes on the given Mux.
func RegisterRouterTxRpcHandler ¶
func RegisterRouterTxRpcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRouterTxRpcHandler registers the http handlers for service RouterTxRpc to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRouterTxRpcHandlerClient ¶
func RegisterRouterTxRpcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RouterTxRpcClient) error
RegisterRouterTxRpcHandlerClient registers the http handlers for service RouterTxRpc to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RouterTxRpcClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RouterTxRpcClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RouterTxRpcClient" to call the correct interceptors.
func RegisterRouterTxRpcHandlerFromEndpoint ¶
func RegisterRouterTxRpcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRouterTxRpcHandlerFromEndpoint is same as RegisterRouterTxRpcHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRouterTxRpcHandlerServer ¶
func RegisterRouterTxRpcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RouterTxRpcServer) error
RegisterRouterTxRpcHandlerServer registers the http handlers for service RouterTxRpc to "mux". UnaryRPC :call RouterTxRpcServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRouterTxRpcHandlerFromEndpoint instead.
func RegisterRouterTxRpcServer ¶
func RegisterRouterTxRpcServer(s grpc1.Server, srv RouterTxRpcServer)
func RegisterRouterTxService ¶
func RegisterRouterTxService( qrt gogogrpc.Server, clientCtx client.Context, simulateFn baseAppSimulateFn, interfaceRegistry codectypes.InterfaceRegistry, )
RegisterRouterTxService registers the router tx service on the gRPC router.
Types ¶
type BroadcastTxRequest ¶
type BroadcastTxRequest struct { // Specify Web3 chainID (from prepateTx) for the target Tx ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Amino-encoded Tx JSON data (except Msgs) Tx []byte `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"` // List of Cosmos proto3-encoded Msgs from tx Msgs [][]byte `protobuf:"bytes,3,rep,name=msgs,proto3" json:"msgs,omitempty"` // Specify ethsecp256k1 pubkey of the signer PubKey *CosmosPubKey `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` // Hex-encoded ethsecp256k1 signature bytes Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // Fee payer address provided by service FeePayer string `protobuf:"bytes,6,opt,name=fee_payer,json=feePayer,proto3" json:"fee_payer,omitempty"` // Hex-encoded ethsecp256k1 signature bytes from fee payer FeePayerSig string `protobuf:"bytes,7,opt,name=fee_payer_sig,json=feePayerSig,proto3" json:"fee_payer_sig,omitempty"` // Broadcast mode Mode string `protobuf:"bytes,8,opt,name=mode,proto3" json:"mode,omitempty"` }
func (*BroadcastTxRequest) Descriptor ¶
func (*BroadcastTxRequest) Descriptor() ([]byte, []int)
func (*BroadcastTxRequest) GetChainId ¶
func (m *BroadcastTxRequest) GetChainId() uint64
func (*BroadcastTxRequest) GetFeePayer ¶
func (m *BroadcastTxRequest) GetFeePayer() string
func (*BroadcastTxRequest) GetFeePayerSig ¶
func (m *BroadcastTxRequest) GetFeePayerSig() string
func (*BroadcastTxRequest) GetMode ¶
func (m *BroadcastTxRequest) GetMode() string
func (*BroadcastTxRequest) GetMsgs ¶
func (m *BroadcastTxRequest) GetMsgs() [][]byte
func (*BroadcastTxRequest) GetPubKey ¶
func (m *BroadcastTxRequest) GetPubKey() *CosmosPubKey
func (*BroadcastTxRequest) GetSignature ¶
func (m *BroadcastTxRequest) GetSignature() string
func (*BroadcastTxRequest) GetTx ¶
func (m *BroadcastTxRequest) GetTx() []byte
func (*BroadcastTxRequest) Marshal ¶
func (m *BroadcastTxRequest) Marshal() (dAtA []byte, err error)
func (*BroadcastTxRequest) MarshalTo ¶
func (m *BroadcastTxRequest) MarshalTo(dAtA []byte) (int, error)
func (*BroadcastTxRequest) MarshalToSizedBuffer ¶
func (m *BroadcastTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BroadcastTxRequest) ProtoMessage ¶
func (*BroadcastTxRequest) ProtoMessage()
func (*BroadcastTxRequest) Reset ¶
func (m *BroadcastTxRequest) Reset()
func (*BroadcastTxRequest) Size ¶
func (m *BroadcastTxRequest) Size() (n int)
func (*BroadcastTxRequest) String ¶
func (m *BroadcastTxRequest) String() string
func (*BroadcastTxRequest) Unmarshal ¶
func (m *BroadcastTxRequest) Unmarshal(dAtA []byte) error
func (*BroadcastTxRequest) XXX_DiscardUnknown ¶
func (m *BroadcastTxRequest) XXX_DiscardUnknown()
func (*BroadcastTxRequest) XXX_Marshal ¶
func (m *BroadcastTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BroadcastTxRequest) XXX_Merge ¶
func (m *BroadcastTxRequest) XXX_Merge(src proto.Message)
func (*BroadcastTxRequest) XXX_Size ¶
func (m *BroadcastTxRequest) XXX_Size() int
func (*BroadcastTxRequest) XXX_Unmarshal ¶
func (m *BroadcastTxRequest) XXX_Unmarshal(b []byte) error
type BroadcastTxResponse ¶
type BroadcastTxResponse struct { // Hex-encoded Tendermint transaction hash TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // The block height Height int64 `protobuf:"zigzag64,2,opt,name=height,proto3" json:"height,omitempty"` // Tx index in the block Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` // Namespace for the resp code Codespace string `protobuf:"bytes,4,opt,name=codespace,proto3" json:"codespace,omitempty"` // Response code Code uint32 `protobuf:"varint,5,opt,name=code,proto3" json:"code,omitempty"` // Result bytes, if any Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // The output of the application's logger (raw string). May be // non-deterministic. RawLog string `protobuf:"bytes,7,opt,name=raw_log,json=rawLog,proto3" json:"raw_log,omitempty"` // Time of the previous block. Timestamp string `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*BroadcastTxResponse) Descriptor ¶
func (*BroadcastTxResponse) Descriptor() ([]byte, []int)
func (*BroadcastTxResponse) GetCode ¶
func (m *BroadcastTxResponse) GetCode() uint32
func (*BroadcastTxResponse) GetCodespace ¶
func (m *BroadcastTxResponse) GetCodespace() string
func (*BroadcastTxResponse) GetData ¶
func (m *BroadcastTxResponse) GetData() []byte
func (*BroadcastTxResponse) GetHeight ¶
func (m *BroadcastTxResponse) GetHeight() int64
func (*BroadcastTxResponse) GetIndex ¶
func (m *BroadcastTxResponse) GetIndex() uint32
func (*BroadcastTxResponse) GetRawLog ¶
func (m *BroadcastTxResponse) GetRawLog() string
func (*BroadcastTxResponse) GetTimestamp ¶
func (m *BroadcastTxResponse) GetTimestamp() string
func (*BroadcastTxResponse) GetTxHash ¶
func (m *BroadcastTxResponse) GetTxHash() string
func (*BroadcastTxResponse) Marshal ¶
func (m *BroadcastTxResponse) Marshal() (dAtA []byte, err error)
func (*BroadcastTxResponse) MarshalTo ¶
func (m *BroadcastTxResponse) MarshalTo(dAtA []byte) (int, error)
func (*BroadcastTxResponse) MarshalToSizedBuffer ¶
func (m *BroadcastTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BroadcastTxResponse) ProtoMessage ¶
func (*BroadcastTxResponse) ProtoMessage()
func (*BroadcastTxResponse) Reset ¶
func (m *BroadcastTxResponse) Reset()
func (*BroadcastTxResponse) Size ¶
func (m *BroadcastTxResponse) Size() (n int)
func (*BroadcastTxResponse) String ¶
func (m *BroadcastTxResponse) String() string
func (*BroadcastTxResponse) Unmarshal ¶
func (m *BroadcastTxResponse) Unmarshal(dAtA []byte) error
func (*BroadcastTxResponse) XXX_DiscardUnknown ¶
func (m *BroadcastTxResponse) XXX_DiscardUnknown()
func (*BroadcastTxResponse) XXX_Marshal ¶
func (m *BroadcastTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BroadcastTxResponse) XXX_Merge ¶
func (m *BroadcastTxResponse) XXX_Merge(src proto.Message)
func (*BroadcastTxResponse) XXX_Size ¶
func (m *BroadcastTxResponse) XXX_Size() int
func (*BroadcastTxResponse) XXX_Unmarshal ¶
func (m *BroadcastTxResponse) XXX_Unmarshal(b []byte) error
type CosmosCoin ¶
type CosmosCoin struct { // Coin denominator Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // Coin amount (big int) Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*CosmosCoin) Descriptor ¶
func (*CosmosCoin) Descriptor() ([]byte, []int)
func (*CosmosCoin) GetAmount ¶
func (m *CosmosCoin) GetAmount() string
func (*CosmosCoin) GetDenom ¶
func (m *CosmosCoin) GetDenom() string
func (*CosmosCoin) Marshal ¶
func (m *CosmosCoin) Marshal() (dAtA []byte, err error)
func (*CosmosCoin) MarshalToSizedBuffer ¶
func (m *CosmosCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CosmosCoin) ProtoMessage ¶
func (*CosmosCoin) ProtoMessage()
func (*CosmosCoin) Reset ¶
func (m *CosmosCoin) Reset()
func (*CosmosCoin) Size ¶
func (m *CosmosCoin) Size() (n int)
func (*CosmosCoin) String ¶
func (m *CosmosCoin) String() string
func (*CosmosCoin) Unmarshal ¶
func (m *CosmosCoin) Unmarshal(dAtA []byte) error
func (*CosmosCoin) XXX_DiscardUnknown ¶
func (m *CosmosCoin) XXX_DiscardUnknown()
func (*CosmosCoin) XXX_Marshal ¶
func (m *CosmosCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CosmosCoin) XXX_Merge ¶
func (m *CosmosCoin) XXX_Merge(src proto.Message)
func (*CosmosCoin) XXX_Size ¶
func (m *CosmosCoin) XXX_Size() int
func (*CosmosCoin) XXX_Unmarshal ¶
func (m *CosmosCoin) XXX_Unmarshal(b []byte) error
type CosmosPubKey ¶
type CosmosPubKey struct { // Pubkey type URL Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Hex-encoded string of the public key Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` }
func (*CosmosPubKey) Descriptor ¶
func (*CosmosPubKey) Descriptor() ([]byte, []int)
func (*CosmosPubKey) GetKey ¶
func (m *CosmosPubKey) GetKey() string
func (*CosmosPubKey) GetType ¶
func (m *CosmosPubKey) GetType() string
func (*CosmosPubKey) Marshal ¶
func (m *CosmosPubKey) Marshal() (dAtA []byte, err error)
func (*CosmosPubKey) MarshalToSizedBuffer ¶
func (m *CosmosPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CosmosPubKey) ProtoMessage ¶
func (*CosmosPubKey) ProtoMessage()
func (*CosmosPubKey) Reset ¶
func (m *CosmosPubKey) Reset()
func (*CosmosPubKey) Size ¶
func (m *CosmosPubKey) Size() (n int)
func (*CosmosPubKey) String ¶
func (m *CosmosPubKey) String() string
func (*CosmosPubKey) Unmarshal ¶
func (m *CosmosPubKey) Unmarshal(dAtA []byte) error
func (*CosmosPubKey) XXX_DiscardUnknown ¶
func (m *CosmosPubKey) XXX_DiscardUnknown()
func (*CosmosPubKey) XXX_Marshal ¶
func (m *CosmosPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CosmosPubKey) XXX_Merge ¶
func (m *CosmosPubKey) XXX_Merge(src proto.Message)
func (*CosmosPubKey) XXX_Size ¶
func (m *CosmosPubKey) XXX_Size() int
func (*CosmosPubKey) XXX_Unmarshal ¶
func (m *CosmosPubKey) XXX_Unmarshal(b []byte) error
type CosmosTxFee ¶
type CosmosTxFee struct { // Transaction gas price Price []*CosmosCoin `protobuf:"bytes,1,rep,name=price,proto3" json:"price,omitempty"` // Transaction gas limit Gas uint64 `protobuf:"varint,2,opt,name=gas,proto3" json:"gas,omitempty"` // Explicitly require fee delegation when set to true. Or don't care = false. // Will be replaced by other flag in the next version. DelegateFee bool `protobuf:"varint,3,opt,name=delegate_fee,json=delegateFee,proto3" json:"delegate_fee,omitempty"` }
func (*CosmosTxFee) Descriptor ¶
func (*CosmosTxFee) Descriptor() ([]byte, []int)
func (*CosmosTxFee) GetDelegateFee ¶
func (m *CosmosTxFee) GetDelegateFee() bool
func (*CosmosTxFee) GetGas ¶
func (m *CosmosTxFee) GetGas() uint64
func (*CosmosTxFee) GetPrice ¶
func (m *CosmosTxFee) GetPrice() []*CosmosCoin
func (*CosmosTxFee) Marshal ¶
func (m *CosmosTxFee) Marshal() (dAtA []byte, err error)
func (*CosmosTxFee) MarshalToSizedBuffer ¶
func (m *CosmosTxFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CosmosTxFee) ProtoMessage ¶
func (*CosmosTxFee) ProtoMessage()
func (*CosmosTxFee) Reset ¶
func (m *CosmosTxFee) Reset()
func (*CosmosTxFee) Size ¶
func (m *CosmosTxFee) Size() (n int)
func (*CosmosTxFee) String ¶
func (m *CosmosTxFee) String() string
func (*CosmosTxFee) Unmarshal ¶
func (m *CosmosTxFee) Unmarshal(dAtA []byte) error
func (*CosmosTxFee) XXX_DiscardUnknown ¶
func (m *CosmosTxFee) XXX_DiscardUnknown()
func (*CosmosTxFee) XXX_Marshal ¶
func (m *CosmosTxFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CosmosTxFee) XXX_Merge ¶
func (m *CosmosTxFee) XXX_Merge(src proto.Message)
func (*CosmosTxFee) XXX_Size ¶
func (m *CosmosTxFee) XXX_Size() int
func (*CosmosTxFee) XXX_Unmarshal ¶
func (m *CosmosTxFee) XXX_Unmarshal(b []byte) error
type ExtensionOptionsWeb3Tx ¶
type ExtensionOptionsWeb3Tx struct { // typedDataChainID used only in EIP712 Domain and should match // Ethereum network ID in a Web3 provider (e.g. Metamask). TypedDataChainID uint64 `protobuf:"varint,1,opt,name=typedDataChainID,proto3" json:"typedDataChainID,omitempty"` // feePayer is an account address for the fee payer. It will be validated // during EIP712 signature checking. FeePayer string `protobuf:"bytes,2,opt,name=feePayer,proto3" json:"feePayer,omitempty"` // feePayerSig is a signature data from the fee paying account, // allows to perform fee delegation when using EIP712 Domain. FeePayerSig []byte `protobuf:"bytes,3,opt,name=feePayerSig,proto3" json:"feePayerSig,omitempty"` }
func (*ExtensionOptionsWeb3Tx) Descriptor ¶
func (*ExtensionOptionsWeb3Tx) Descriptor() ([]byte, []int)
func (*ExtensionOptionsWeb3Tx) Marshal ¶
func (m *ExtensionOptionsWeb3Tx) Marshal() (dAtA []byte, err error)
func (*ExtensionOptionsWeb3Tx) MarshalTo ¶
func (m *ExtensionOptionsWeb3Tx) MarshalTo(dAtA []byte) (int, error)
func (*ExtensionOptionsWeb3Tx) MarshalToSizedBuffer ¶
func (m *ExtensionOptionsWeb3Tx) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExtensionOptionsWeb3Tx) ProtoMessage ¶
func (*ExtensionOptionsWeb3Tx) ProtoMessage()
func (*ExtensionOptionsWeb3Tx) Reset ¶
func (m *ExtensionOptionsWeb3Tx) Reset()
func (*ExtensionOptionsWeb3Tx) Size ¶
func (m *ExtensionOptionsWeb3Tx) Size() (n int)
func (*ExtensionOptionsWeb3Tx) String ¶
func (m *ExtensionOptionsWeb3Tx) String() string
func (*ExtensionOptionsWeb3Tx) Unmarshal ¶
func (m *ExtensionOptionsWeb3Tx) Unmarshal(dAtA []byte) error
func (*ExtensionOptionsWeb3Tx) XXX_DiscardUnknown ¶
func (m *ExtensionOptionsWeb3Tx) XXX_DiscardUnknown()
func (*ExtensionOptionsWeb3Tx) XXX_Marshal ¶
func (m *ExtensionOptionsWeb3Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExtensionOptionsWeb3Tx) XXX_Merge ¶
func (m *ExtensionOptionsWeb3Tx) XXX_Merge(src proto.Message)
func (*ExtensionOptionsWeb3Tx) XXX_Size ¶
func (m *ExtensionOptionsWeb3Tx) XXX_Size() int
func (*ExtensionOptionsWeb3Tx) XXX_Unmarshal ¶
func (m *ExtensionOptionsWeb3Tx) XXX_Unmarshal(b []byte) error
type GetTxRequest ¶
type GetTxRequest struct { // Transaction hash in hex without 0x prefix (Cosmos-like). Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` }
func (*GetTxRequest) Descriptor ¶
func (*GetTxRequest) Descriptor() ([]byte, []int)
func (*GetTxRequest) GetHash ¶
func (m *GetTxRequest) GetHash() string
func (*GetTxRequest) Marshal ¶
func (m *GetTxRequest) Marshal() (dAtA []byte, err error)
func (*GetTxRequest) MarshalToSizedBuffer ¶
func (m *GetTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetTxRequest) ProtoMessage ¶
func (*GetTxRequest) ProtoMessage()
func (*GetTxRequest) Reset ¶
func (m *GetTxRequest) Reset()
func (*GetTxRequest) Size ¶
func (m *GetTxRequest) Size() (n int)
func (*GetTxRequest) String ¶
func (m *GetTxRequest) String() string
func (*GetTxRequest) Unmarshal ¶
func (m *GetTxRequest) Unmarshal(dAtA []byte) error
func (*GetTxRequest) XXX_DiscardUnknown ¶
func (m *GetTxRequest) XXX_DiscardUnknown()
func (*GetTxRequest) XXX_Marshal ¶
func (m *GetTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTxRequest) XXX_Merge ¶
func (m *GetTxRequest) XXX_Merge(src proto.Message)
func (*GetTxRequest) XXX_Size ¶
func (m *GetTxRequest) XXX_Size() int
func (*GetTxRequest) XXX_Unmarshal ¶
func (m *GetTxRequest) XXX_Unmarshal(b []byte) error
type GetTxResponse ¶
type GetTxResponse struct { // Hex-encoded Tendermint transaction hash TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // The block height Height int64 `protobuf:"zigzag64,2,opt,name=height,proto3" json:"height,omitempty"` // Tx index in the block Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` // Namespace for the resp code Codespace string `protobuf:"bytes,4,opt,name=codespace,proto3" json:"codespace,omitempty"` // Response code Code uint32 `protobuf:"varint,5,opt,name=code,proto3" json:"code,omitempty"` // Result bytes, if any Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // The output of the application's logger (raw string). May be // non-deterministic. RawLog string `protobuf:"bytes,7,opt,name=raw_log,json=rawLog,proto3" json:"raw_log,omitempty"` // Time of the previous block. Timestamp string `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*GetTxResponse) Descriptor ¶
func (*GetTxResponse) Descriptor() ([]byte, []int)
func (*GetTxResponse) GetCode ¶
func (m *GetTxResponse) GetCode() uint32
func (*GetTxResponse) GetCodespace ¶
func (m *GetTxResponse) GetCodespace() string
func (*GetTxResponse) GetData ¶
func (m *GetTxResponse) GetData() []byte
func (*GetTxResponse) GetHeight ¶
func (m *GetTxResponse) GetHeight() int64
func (*GetTxResponse) GetIndex ¶
func (m *GetTxResponse) GetIndex() uint32
func (*GetTxResponse) GetRawLog ¶
func (m *GetTxResponse) GetRawLog() string
func (*GetTxResponse) GetTimestamp ¶
func (m *GetTxResponse) GetTimestamp() string
func (*GetTxResponse) GetTxHash ¶
func (m *GetTxResponse) GetTxHash() string
func (*GetTxResponse) Marshal ¶
func (m *GetTxResponse) Marshal() (dAtA []byte, err error)
func (*GetTxResponse) MarshalToSizedBuffer ¶
func (m *GetTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetTxResponse) ProtoMessage ¶
func (*GetTxResponse) ProtoMessage()
func (*GetTxResponse) Reset ¶
func (m *GetTxResponse) Reset()
func (*GetTxResponse) Size ¶
func (m *GetTxResponse) Size() (n int)
func (*GetTxResponse) String ¶
func (m *GetTxResponse) String() string
func (*GetTxResponse) Unmarshal ¶
func (m *GetTxResponse) Unmarshal(dAtA []byte) error
func (*GetTxResponse) XXX_DiscardUnknown ¶
func (m *GetTxResponse) XXX_DiscardUnknown()
func (*GetTxResponse) XXX_Marshal ¶
func (m *GetTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTxResponse) XXX_Merge ¶
func (m *GetTxResponse) XXX_Merge(src proto.Message)
func (*GetTxResponse) XXX_Size ¶
func (m *GetTxResponse) XXX_Size() int
func (*GetTxResponse) XXX_Unmarshal ¶
func (m *GetTxResponse) XXX_Unmarshal(b []byte) error
type HDPathIterator ¶
type HDPathIterator func() ethaccounts.DerivationPath
func NewHDPathIterator ¶
func NewHDPathIterator(basePath string, ledgerIter bool) (HDPathIterator, error)
HDPathIterator receives a base path as a string and a boolean for the desired iterator type and returns a function that iterates over the base HD path, returning the string.
type MiddlewareContractType ¶
type MiddlewareContractType int32
const ( MIDDLEWARE_COSMWASM MiddlewareContractType = 0 MIDDLEWARE_SOLIDITY MiddlewareContractType = 1 )
func (MiddlewareContractType) EnumDescriptor ¶
func (MiddlewareContractType) EnumDescriptor() ([]byte, []int)
func (MiddlewareContractType) String ¶
func (x MiddlewareContractType) String() string
type PrepareTxRequest ¶
type PrepareTxRequest struct { // Specify chainID for the target tx ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Specify Ethereum address of a signer SignerAddress string `protobuf:"bytes,2,opt,name=signer_address,json=signerAddress,proto3" json:"signer_address,omitempty"` // Account sequence number (nonce) of signer Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` // Textual memo information to attach with tx Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"` // Block height until which the transaction is valid. TimeoutHeight uint64 `protobuf:"varint,5,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"` // Transaction fee details. Fee *CosmosTxFee `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"` // List of Cosmos proto3-encoded Msgs to include in a single tx Msgs [][]byte `protobuf:"bytes,7,rep,name=msgs,proto3" json:"msgs,omitempty"` }
func (*PrepareTxRequest) Descriptor ¶
func (*PrepareTxRequest) Descriptor() ([]byte, []int)
func (*PrepareTxRequest) GetChainId ¶
func (m *PrepareTxRequest) GetChainId() uint64
func (*PrepareTxRequest) GetFee ¶
func (m *PrepareTxRequest) GetFee() *CosmosTxFee
func (*PrepareTxRequest) GetMemo ¶
func (m *PrepareTxRequest) GetMemo() string
func (*PrepareTxRequest) GetMsgs ¶
func (m *PrepareTxRequest) GetMsgs() [][]byte
func (*PrepareTxRequest) GetSequence ¶
func (m *PrepareTxRequest) GetSequence() uint64
func (*PrepareTxRequest) GetSignerAddress ¶
func (m *PrepareTxRequest) GetSignerAddress() string
func (*PrepareTxRequest) GetTimeoutHeight ¶
func (m *PrepareTxRequest) GetTimeoutHeight() uint64
func (*PrepareTxRequest) Marshal ¶
func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error)
func (*PrepareTxRequest) MarshalToSizedBuffer ¶
func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PrepareTxRequest) ProtoMessage ¶
func (*PrepareTxRequest) ProtoMessage()
func (*PrepareTxRequest) Reset ¶
func (m *PrepareTxRequest) Reset()
func (*PrepareTxRequest) Size ¶
func (m *PrepareTxRequest) Size() (n int)
func (*PrepareTxRequest) String ¶
func (m *PrepareTxRequest) String() string
func (*PrepareTxRequest) Unmarshal ¶
func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error
func (*PrepareTxRequest) XXX_DiscardUnknown ¶
func (m *PrepareTxRequest) XXX_DiscardUnknown()
func (*PrepareTxRequest) XXX_Marshal ¶
func (m *PrepareTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrepareTxRequest) XXX_Merge ¶
func (m *PrepareTxRequest) XXX_Merge(src proto.Message)
func (*PrepareTxRequest) XXX_Size ¶
func (m *PrepareTxRequest) XXX_Size() int
func (*PrepareTxRequest) XXX_Unmarshal ¶
func (m *PrepareTxRequest) XXX_Unmarshal(b []byte) error
type PrepareTxResponse ¶
type PrepareTxResponse struct { // EIP712-compatible message suitable for signing with eth_signTypedData_v4 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Account tx sequence (nonce) Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` // Sign mode for the resulting tx SignMode string `protobuf:"bytes,3,opt,name=sign_mode,json=signMode,proto3" json:"sign_mode,omitempty"` // Specify proto-URL of a public key, which defines the signature format PubKeyType string `protobuf:"bytes,4,opt,name=pub_key_type,json=pubKeyType,proto3" json:"pub_key_type,omitempty"` // Fee payer address provided by service FeePayer string `protobuf:"bytes,5,opt,name=fee_payer,json=feePayer,proto3" json:"fee_payer,omitempty"` // Hex-encoded ethsecp256k1 signature bytes from fee payer FeePayerSig string `protobuf:"bytes,6,opt,name=fee_payer_sig,json=feePayerSig,proto3" json:"fee_payer_sig,omitempty"` }
func (*PrepareTxResponse) Descriptor ¶
func (*PrepareTxResponse) Descriptor() ([]byte, []int)
func (*PrepareTxResponse) GetData ¶
func (m *PrepareTxResponse) GetData() string
func (*PrepareTxResponse) GetFeePayer ¶
func (m *PrepareTxResponse) GetFeePayer() string
func (*PrepareTxResponse) GetFeePayerSig ¶
func (m *PrepareTxResponse) GetFeePayerSig() string
func (*PrepareTxResponse) GetPubKeyType ¶
func (m *PrepareTxResponse) GetPubKeyType() string
func (*PrepareTxResponse) GetSequence ¶
func (m *PrepareTxResponse) GetSequence() uint64
func (*PrepareTxResponse) GetSignMode ¶
func (m *PrepareTxResponse) GetSignMode() string
func (*PrepareTxResponse) Marshal ¶
func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error)
func (*PrepareTxResponse) MarshalTo ¶
func (m *PrepareTxResponse) MarshalTo(dAtA []byte) (int, error)
func (*PrepareTxResponse) MarshalToSizedBuffer ¶
func (m *PrepareTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PrepareTxResponse) ProtoMessage ¶
func (*PrepareTxResponse) ProtoMessage()
func (*PrepareTxResponse) Reset ¶
func (m *PrepareTxResponse) Reset()
func (*PrepareTxResponse) Size ¶
func (m *PrepareTxResponse) Size() (n int)
func (*PrepareTxResponse) String ¶
func (m *PrepareTxResponse) String() string
func (*PrepareTxResponse) Unmarshal ¶
func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error
func (*PrepareTxResponse) XXX_DiscardUnknown ¶
func (m *PrepareTxResponse) XXX_DiscardUnknown()
func (*PrepareTxResponse) XXX_Marshal ¶
func (m *PrepareTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrepareTxResponse) XXX_Merge ¶
func (m *PrepareTxResponse) XXX_Merge(src proto.Message)
func (*PrepareTxResponse) XXX_Size ¶
func (m *PrepareTxResponse) XXX_Size() int
func (*PrepareTxResponse) XXX_Unmarshal ¶
func (m *PrepareTxResponse) XXX_Unmarshal(b []byte) error
type RouterTxRpcClient ¶
type RouterTxRpcClient interface { // GetTx gets transaction details by hash. GetTx(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error) // PrepareTx generates a Web3-signable body for a Cosmos transaction PrepareTx(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) // BroadcastTx broadcasts a signed Web3 transaction BroadcastTx(ctx context.Context, in *BroadcastTxRequest, opts ...grpc.CallOption) (*BroadcastTxResponse, error) }
RouterTxRpcClient is the client API for RouterTxRpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRouterTxRpcClient ¶
func NewRouterTxRpcClient(cc grpc1.ClientConn) RouterTxRpcClient
type RouterTxRpcServer ¶
type RouterTxRpcServer interface { // GetTx gets transaction details by hash. GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error) // PrepareTx generates a Web3-signable body for a Cosmos transaction PrepareTx(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error) // BroadcastTx broadcasts a signed Web3 transaction BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error) }
RouterTxRpcServer is the server API for RouterTxRpc service.
func NewRouterTxServer ¶
func NewRouterTxServer(clientCtx client.Context, simulate baseAppSimulateFn, interfaceRegistry codectypes.InterfaceRegistry) RouterTxRpcServer
NewRouterTxServer creates a new Router Tx service server.
type TxResponseData ¶
type TxResponseData struct {
Messages []*TxResponseGenericMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
}
improvised message to unpack length prefixed messages in tx response data
func (*TxResponseData) Descriptor ¶
func (*TxResponseData) Descriptor() ([]byte, []int)
func (*TxResponseData) GetMessages ¶
func (m *TxResponseData) GetMessages() []*TxResponseGenericMessage
func (*TxResponseData) Marshal ¶
func (m *TxResponseData) Marshal() (dAtA []byte, err error)
func (*TxResponseData) MarshalToSizedBuffer ¶
func (m *TxResponseData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TxResponseData) ProtoMessage ¶
func (*TxResponseData) ProtoMessage()
func (*TxResponseData) Reset ¶
func (m *TxResponseData) Reset()
func (*TxResponseData) Size ¶
func (m *TxResponseData) Size() (n int)
func (*TxResponseData) String ¶
func (m *TxResponseData) String() string
func (*TxResponseData) Unmarshal ¶
func (m *TxResponseData) Unmarshal(dAtA []byte) error
func (*TxResponseData) XXX_DiscardUnknown ¶
func (m *TxResponseData) XXX_DiscardUnknown()
func (*TxResponseData) XXX_Marshal ¶
func (m *TxResponseData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxResponseData) XXX_Merge ¶
func (m *TxResponseData) XXX_Merge(src proto.Message)
func (*TxResponseData) XXX_Size ¶
func (m *TxResponseData) XXX_Size() int
func (*TxResponseData) XXX_Unmarshal ¶
func (m *TxResponseData) XXX_Unmarshal(b []byte) error
type TxResponseGenericMessage ¶
type TxResponseGenericMessage struct { Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
base header ak message type, we can cast the bytes into corresponding message response type
func (*TxResponseGenericMessage) Descriptor ¶
func (*TxResponseGenericMessage) Descriptor() ([]byte, []int)
func (*TxResponseGenericMessage) GetData ¶
func (m *TxResponseGenericMessage) GetData() []byte
func (*TxResponseGenericMessage) GetHeader ¶
func (m *TxResponseGenericMessage) GetHeader() string
func (*TxResponseGenericMessage) Marshal ¶
func (m *TxResponseGenericMessage) Marshal() (dAtA []byte, err error)
func (*TxResponseGenericMessage) MarshalTo ¶
func (m *TxResponseGenericMessage) MarshalTo(dAtA []byte) (int, error)
func (*TxResponseGenericMessage) MarshalToSizedBuffer ¶
func (m *TxResponseGenericMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TxResponseGenericMessage) ProtoMessage ¶
func (*TxResponseGenericMessage) ProtoMessage()
func (*TxResponseGenericMessage) Reset ¶
func (m *TxResponseGenericMessage) Reset()
func (*TxResponseGenericMessage) Size ¶
func (m *TxResponseGenericMessage) Size() (n int)
func (*TxResponseGenericMessage) String ¶
func (m *TxResponseGenericMessage) String() string
func (*TxResponseGenericMessage) Unmarshal ¶
func (m *TxResponseGenericMessage) Unmarshal(dAtA []byte) error
func (*TxResponseGenericMessage) XXX_DiscardUnknown ¶
func (m *TxResponseGenericMessage) XXX_DiscardUnknown()
func (*TxResponseGenericMessage) XXX_Marshal ¶
func (m *TxResponseGenericMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxResponseGenericMessage) XXX_Merge ¶
func (m *TxResponseGenericMessage) XXX_Merge(src proto.Message)
func (*TxResponseGenericMessage) XXX_Size ¶
func (m *TxResponseGenericMessage) XXX_Size() int
func (*TxResponseGenericMessage) XXX_Unmarshal ¶
func (m *TxResponseGenericMessage) XXX_Unmarshal(b []byte) error
type UnimplementedRouterTxRpcServer ¶
type UnimplementedRouterTxRpcServer struct { }
UnimplementedRouterTxRpcServer can be embedded to have forward compatible implementations.
func (*UnimplementedRouterTxRpcServer) BroadcastTx ¶
func (*UnimplementedRouterTxRpcServer) BroadcastTx(ctx context.Context, req *BroadcastTxRequest) (*BroadcastTxResponse, error)
func (*UnimplementedRouterTxRpcServer) GetTx ¶
func (*UnimplementedRouterTxRpcServer) GetTx(ctx context.Context, req *GetTxRequest) (*GetTxResponse, error)
func (*UnimplementedRouterTxRpcServer) PrepareTx ¶
func (*UnimplementedRouterTxRpcServer) PrepareTx(ctx context.Context, req *PrepareTxRequest) (*PrepareTxResponse, error)