Documentation ¶
Overview ¶
Package injective_exchange_rpcpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterInjectiveExchangeRPCHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInjectiveExchangeRPCHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InjectiveExchangeRPCClient) error
- func RegisterInjectiveExchangeRPCHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInjectiveExchangeRPCHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InjectiveExchangeRPCServer) error
- func RegisterInjectiveExchangeRPCServer(s grpc.ServiceRegistrar, srv InjectiveExchangeRPCServer)
- type BroadcastTxRequest
- func (*BroadcastTxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastTxRequest) GetChainId() uint64
- func (x *BroadcastTxRequest) GetFeePayer() string
- func (x *BroadcastTxRequest) GetFeePayerSig() string
- func (x *BroadcastTxRequest) GetMode() string
- func (x *BroadcastTxRequest) GetMsgs() [][]byte
- func (x *BroadcastTxRequest) GetPubKey() *CosmosPubKey
- func (x *BroadcastTxRequest) GetSignature() string
- func (x *BroadcastTxRequest) GetTx() []byte
- func (*BroadcastTxRequest) ProtoMessage()
- func (x *BroadcastTxRequest) ProtoReflect() protoreflect.Message
- func (x *BroadcastTxRequest) Reset()
- func (x *BroadcastTxRequest) String() string
- type BroadcastTxResponse
- func (*BroadcastTxResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastTxResponse) GetCode() uint32
- func (x *BroadcastTxResponse) GetCodespace() string
- func (x *BroadcastTxResponse) GetData() []byte
- func (x *BroadcastTxResponse) GetHeight() int64
- func (x *BroadcastTxResponse) GetIndex() uint32
- func (x *BroadcastTxResponse) GetRawLog() string
- func (x *BroadcastTxResponse) GetTimestamp() string
- func (x *BroadcastTxResponse) GetTxHash() string
- func (*BroadcastTxResponse) ProtoMessage()
- func (x *BroadcastTxResponse) ProtoReflect() protoreflect.Message
- func (x *BroadcastTxResponse) Reset()
- func (x *BroadcastTxResponse) String() string
- type CosmosCoin
- type CosmosPubKey
- func (*CosmosPubKey) Descriptor() ([]byte, []int)deprecated
- func (x *CosmosPubKey) GetKey() string
- func (x *CosmosPubKey) GetType() string
- func (*CosmosPubKey) ProtoMessage()
- func (x *CosmosPubKey) ProtoReflect() protoreflect.Message
- func (x *CosmosPubKey) Reset()
- func (x *CosmosPubKey) String() string
- type CosmosTxFee
- func (*CosmosTxFee) Descriptor() ([]byte, []int)deprecated
- func (x *CosmosTxFee) GetDelegateFee() bool
- func (x *CosmosTxFee) GetGas() uint64
- func (x *CosmosTxFee) GetPrice() []*CosmosCoin
- func (*CosmosTxFee) ProtoMessage()
- func (x *CosmosTxFee) ProtoReflect() protoreflect.Message
- func (x *CosmosTxFee) Reset()
- func (x *CosmosTxFee) String() string
- type GetTxRequest
- type GetTxResponse
- func (*GetTxResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTxResponse) GetCode() uint32
- func (x *GetTxResponse) GetCodespace() string
- func (x *GetTxResponse) GetData() []byte
- func (x *GetTxResponse) GetHeight() int64
- func (x *GetTxResponse) GetIndex() uint32
- func (x *GetTxResponse) GetRawLog() string
- func (x *GetTxResponse) GetTimestamp() string
- func (x *GetTxResponse) GetTxHash() string
- func (*GetTxResponse) ProtoMessage()
- func (x *GetTxResponse) ProtoReflect() protoreflect.Message
- func (x *GetTxResponse) Reset()
- func (x *GetTxResponse) String() string
- type InjectiveExchangeRPCClient
- type InjectiveExchangeRPCServer
- type PrepareTxRequest
- func (*PrepareTxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareTxRequest) GetChainId() uint64
- func (x *PrepareTxRequest) GetFee() *CosmosTxFee
- func (x *PrepareTxRequest) GetMemo() string
- func (x *PrepareTxRequest) GetMsgs() [][]byte
- func (x *PrepareTxRequest) GetSequence() uint64
- func (x *PrepareTxRequest) GetSignerAddress() string
- func (x *PrepareTxRequest) GetTimeoutHeight() uint64
- func (*PrepareTxRequest) ProtoMessage()
- func (x *PrepareTxRequest) ProtoReflect() protoreflect.Message
- func (x *PrepareTxRequest) Reset()
- func (x *PrepareTxRequest) String() string
- type PrepareTxResponse
- func (*PrepareTxResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareTxResponse) GetData() string
- func (x *PrepareTxResponse) GetFeePayer() string
- func (x *PrepareTxResponse) GetFeePayerSig() string
- func (x *PrepareTxResponse) GetPubKeyType() string
- func (x *PrepareTxResponse) GetSequence() uint64
- func (x *PrepareTxResponse) GetSignMode() string
- func (*PrepareTxResponse) ProtoMessage()
- func (x *PrepareTxResponse) ProtoReflect() protoreflect.Message
- func (x *PrepareTxResponse) Reset()
- func (x *PrepareTxResponse) String() string
- type UnimplementedInjectiveExchangeRPCServer
- func (UnimplementedInjectiveExchangeRPCServer) BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error)
- func (UnimplementedInjectiveExchangeRPCServer) GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error)
- func (UnimplementedInjectiveExchangeRPCServer) PrepareTx(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error)
- type UnsafeInjectiveExchangeRPCServer
Constants ¶
This section is empty.
Variables ¶
var File_injective_exchange_rpc_proto protoreflect.FileDescriptor
var InjectiveExchangeRPC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "injective_exchange_rpc.InjectiveExchangeRPC", HandlerType: (*InjectiveExchangeRPCServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTx", Handler: _InjectiveExchangeRPC_GetTx_Handler, }, { MethodName: "PrepareTx", Handler: _InjectiveExchangeRPC_PrepareTx_Handler, }, { MethodName: "BroadcastTx", Handler: _InjectiveExchangeRPC_BroadcastTx_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "injective_exchange_rpc.proto", }
InjectiveExchangeRPC_ServiceDesc is the grpc.ServiceDesc for InjectiveExchangeRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInjectiveExchangeRPCHandler ¶ added in v1.32.1
func RegisterInjectiveExchangeRPCHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInjectiveExchangeRPCHandler registers the http handlers for service InjectiveExchangeRPC to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInjectiveExchangeRPCHandlerClient ¶ added in v1.32.1
func RegisterInjectiveExchangeRPCHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InjectiveExchangeRPCClient) error
RegisterInjectiveExchangeRPCHandlerClient registers the http handlers for service InjectiveExchangeRPC to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InjectiveExchangeRPCClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InjectiveExchangeRPCClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InjectiveExchangeRPCClient" to call the correct interceptors.
func RegisterInjectiveExchangeRPCHandlerFromEndpoint ¶ added in v1.32.1
func RegisterInjectiveExchangeRPCHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInjectiveExchangeRPCHandlerFromEndpoint is same as RegisterInjectiveExchangeRPCHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInjectiveExchangeRPCHandlerServer ¶ added in v1.32.1
func RegisterInjectiveExchangeRPCHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InjectiveExchangeRPCServer) error
RegisterInjectiveExchangeRPCHandlerServer registers the http handlers for service InjectiveExchangeRPC to "mux". UnaryRPC :call InjectiveExchangeRPCServer 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 RegisterInjectiveExchangeRPCHandlerFromEndpoint instead.
func RegisterInjectiveExchangeRPCServer ¶
func RegisterInjectiveExchangeRPCServer(s grpc.ServiceRegistrar, srv InjectiveExchangeRPCServer)
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"` // contains filtered or unexported fields }
func (*BroadcastTxRequest) Descriptor
deprecated
func (*BroadcastTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastTxRequest.ProtoReflect.Descriptor instead.
func (*BroadcastTxRequest) GetChainId ¶
func (x *BroadcastTxRequest) GetChainId() uint64
func (*BroadcastTxRequest) GetFeePayer ¶ added in v1.23.6
func (x *BroadcastTxRequest) GetFeePayer() string
func (*BroadcastTxRequest) GetFeePayerSig ¶ added in v1.23.6
func (x *BroadcastTxRequest) GetFeePayerSig() string
func (*BroadcastTxRequest) GetMode ¶
func (x *BroadcastTxRequest) GetMode() string
func (*BroadcastTxRequest) GetMsgs ¶
func (x *BroadcastTxRequest) GetMsgs() [][]byte
func (*BroadcastTxRequest) GetPubKey ¶
func (x *BroadcastTxRequest) GetPubKey() *CosmosPubKey
func (*BroadcastTxRequest) GetSignature ¶
func (x *BroadcastTxRequest) GetSignature() string
func (*BroadcastTxRequest) GetTx ¶
func (x *BroadcastTxRequest) GetTx() []byte
func (*BroadcastTxRequest) ProtoMessage ¶
func (*BroadcastTxRequest) ProtoMessage()
func (*BroadcastTxRequest) ProtoReflect ¶
func (x *BroadcastTxRequest) ProtoReflect() protoreflect.Message
func (*BroadcastTxRequest) Reset ¶
func (x *BroadcastTxRequest) Reset()
func (*BroadcastTxRequest) String ¶
func (x *BroadcastTxRequest) String() string
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"` // contains filtered or unexported fields }
func (*BroadcastTxResponse) Descriptor
deprecated
func (*BroadcastTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastTxResponse.ProtoReflect.Descriptor instead.
func (*BroadcastTxResponse) GetCode ¶
func (x *BroadcastTxResponse) GetCode() uint32
func (*BroadcastTxResponse) GetCodespace ¶
func (x *BroadcastTxResponse) GetCodespace() string
func (*BroadcastTxResponse) GetData ¶
func (x *BroadcastTxResponse) GetData() []byte
func (*BroadcastTxResponse) GetHeight ¶
func (x *BroadcastTxResponse) GetHeight() int64
func (*BroadcastTxResponse) GetIndex ¶
func (x *BroadcastTxResponse) GetIndex() uint32
func (*BroadcastTxResponse) GetRawLog ¶
func (x *BroadcastTxResponse) GetRawLog() string
func (*BroadcastTxResponse) GetTimestamp ¶
func (x *BroadcastTxResponse) GetTimestamp() string
func (*BroadcastTxResponse) GetTxHash ¶
func (x *BroadcastTxResponse) GetTxHash() string
func (*BroadcastTxResponse) ProtoMessage ¶
func (*BroadcastTxResponse) ProtoMessage()
func (*BroadcastTxResponse) ProtoReflect ¶
func (x *BroadcastTxResponse) ProtoReflect() protoreflect.Message
func (*BroadcastTxResponse) Reset ¶
func (x *BroadcastTxResponse) Reset()
func (*BroadcastTxResponse) String ¶
func (x *BroadcastTxResponse) String() string
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"` // contains filtered or unexported fields }
func (*CosmosCoin) Descriptor
deprecated
func (*CosmosCoin) Descriptor() ([]byte, []int)
Deprecated: Use CosmosCoin.ProtoReflect.Descriptor instead.
func (*CosmosCoin) GetAmount ¶
func (x *CosmosCoin) GetAmount() string
func (*CosmosCoin) GetDenom ¶
func (x *CosmosCoin) GetDenom() string
func (*CosmosCoin) ProtoMessage ¶
func (*CosmosCoin) ProtoMessage()
func (*CosmosCoin) ProtoReflect ¶
func (x *CosmosCoin) ProtoReflect() protoreflect.Message
func (*CosmosCoin) Reset ¶
func (x *CosmosCoin) Reset()
func (*CosmosCoin) String ¶
func (x *CosmosCoin) String() string
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"` // contains filtered or unexported fields }
func (*CosmosPubKey) Descriptor
deprecated
func (*CosmosPubKey) Descriptor() ([]byte, []int)
Deprecated: Use CosmosPubKey.ProtoReflect.Descriptor instead.
func (*CosmosPubKey) GetKey ¶
func (x *CosmosPubKey) GetKey() string
func (*CosmosPubKey) GetType ¶
func (x *CosmosPubKey) GetType() string
func (*CosmosPubKey) ProtoMessage ¶
func (*CosmosPubKey) ProtoMessage()
func (*CosmosPubKey) ProtoReflect ¶
func (x *CosmosPubKey) ProtoReflect() protoreflect.Message
func (*CosmosPubKey) Reset ¶
func (x *CosmosPubKey) Reset()
func (*CosmosPubKey) String ¶
func (x *CosmosPubKey) String() string
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"` // contains filtered or unexported fields }
func (*CosmosTxFee) Descriptor
deprecated
func (*CosmosTxFee) Descriptor() ([]byte, []int)
Deprecated: Use CosmosTxFee.ProtoReflect.Descriptor instead.
func (*CosmosTxFee) GetDelegateFee ¶ added in v1.23.6
func (x *CosmosTxFee) GetDelegateFee() bool
func (*CosmosTxFee) GetGas ¶
func (x *CosmosTxFee) GetGas() uint64
func (*CosmosTxFee) GetPrice ¶ added in v1.23.6
func (x *CosmosTxFee) GetPrice() []*CosmosCoin
func (*CosmosTxFee) ProtoMessage ¶
func (*CosmosTxFee) ProtoMessage()
func (*CosmosTxFee) ProtoReflect ¶
func (x *CosmosTxFee) ProtoReflect() protoreflect.Message
func (*CosmosTxFee) Reset ¶
func (x *CosmosTxFee) Reset()
func (*CosmosTxFee) String ¶
func (x *CosmosTxFee) String() string
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"` // contains filtered or unexported fields }
func (*GetTxRequest) Descriptor
deprecated
func (*GetTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTxRequest.ProtoReflect.Descriptor instead.
func (*GetTxRequest) GetHash ¶
func (x *GetTxRequest) GetHash() string
func (*GetTxRequest) ProtoMessage ¶
func (*GetTxRequest) ProtoMessage()
func (*GetTxRequest) ProtoReflect ¶
func (x *GetTxRequest) ProtoReflect() protoreflect.Message
func (*GetTxRequest) Reset ¶
func (x *GetTxRequest) Reset()
func (*GetTxRequest) String ¶
func (x *GetTxRequest) String() string
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"` // contains filtered or unexported fields }
func (*GetTxResponse) Descriptor
deprecated
func (*GetTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTxResponse.ProtoReflect.Descriptor instead.
func (*GetTxResponse) GetCode ¶
func (x *GetTxResponse) GetCode() uint32
func (*GetTxResponse) GetCodespace ¶
func (x *GetTxResponse) GetCodespace() string
func (*GetTxResponse) GetData ¶
func (x *GetTxResponse) GetData() []byte
func (*GetTxResponse) GetHeight ¶
func (x *GetTxResponse) GetHeight() int64
func (*GetTxResponse) GetIndex ¶
func (x *GetTxResponse) GetIndex() uint32
func (*GetTxResponse) GetRawLog ¶
func (x *GetTxResponse) GetRawLog() string
func (*GetTxResponse) GetTimestamp ¶
func (x *GetTxResponse) GetTimestamp() string
func (*GetTxResponse) GetTxHash ¶
func (x *GetTxResponse) GetTxHash() string
func (*GetTxResponse) ProtoMessage ¶
func (*GetTxResponse) ProtoMessage()
func (*GetTxResponse) ProtoReflect ¶
func (x *GetTxResponse) ProtoReflect() protoreflect.Message
func (*GetTxResponse) Reset ¶
func (x *GetTxResponse) Reset()
func (*GetTxResponse) String ¶
func (x *GetTxResponse) String() string
type InjectiveExchangeRPCClient ¶
type InjectiveExchangeRPCClient 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) }
InjectiveExchangeRPCClient is the client API for InjectiveExchangeRPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewInjectiveExchangeRPCClient ¶
func NewInjectiveExchangeRPCClient(cc grpc.ClientConnInterface) InjectiveExchangeRPCClient
type InjectiveExchangeRPCServer ¶
type InjectiveExchangeRPCServer 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) // contains filtered or unexported methods }
InjectiveExchangeRPCServer is the server API for InjectiveExchangeRPC service. All implementations must embed UnimplementedInjectiveExchangeRPCServer for forward compatibility
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"` // contains filtered or unexported fields }
func (*PrepareTxRequest) Descriptor
deprecated
func (*PrepareTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrepareTxRequest.ProtoReflect.Descriptor instead.
func (*PrepareTxRequest) GetChainId ¶
func (x *PrepareTxRequest) GetChainId() uint64
func (*PrepareTxRequest) GetFee ¶
func (x *PrepareTxRequest) GetFee() *CosmosTxFee
func (*PrepareTxRequest) GetMemo ¶
func (x *PrepareTxRequest) GetMemo() string
func (*PrepareTxRequest) GetMsgs ¶
func (x *PrepareTxRequest) GetMsgs() [][]byte
func (*PrepareTxRequest) GetSequence ¶
func (x *PrepareTxRequest) GetSequence() uint64
func (*PrepareTxRequest) GetSignerAddress ¶
func (x *PrepareTxRequest) GetSignerAddress() string
func (*PrepareTxRequest) GetTimeoutHeight ¶
func (x *PrepareTxRequest) GetTimeoutHeight() uint64
func (*PrepareTxRequest) ProtoMessage ¶
func (*PrepareTxRequest) ProtoMessage()
func (*PrepareTxRequest) ProtoReflect ¶
func (x *PrepareTxRequest) ProtoReflect() protoreflect.Message
func (*PrepareTxRequest) Reset ¶
func (x *PrepareTxRequest) Reset()
func (*PrepareTxRequest) String ¶
func (x *PrepareTxRequest) String() string
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"` // contains filtered or unexported fields }
func (*PrepareTxResponse) Descriptor
deprecated
func (*PrepareTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrepareTxResponse.ProtoReflect.Descriptor instead.
func (*PrepareTxResponse) GetData ¶
func (x *PrepareTxResponse) GetData() string
func (*PrepareTxResponse) GetFeePayer ¶ added in v1.23.6
func (x *PrepareTxResponse) GetFeePayer() string
func (*PrepareTxResponse) GetFeePayerSig ¶ added in v1.23.6
func (x *PrepareTxResponse) GetFeePayerSig() string
func (*PrepareTxResponse) GetPubKeyType ¶
func (x *PrepareTxResponse) GetPubKeyType() string
func (*PrepareTxResponse) GetSequence ¶
func (x *PrepareTxResponse) GetSequence() uint64
func (*PrepareTxResponse) GetSignMode ¶
func (x *PrepareTxResponse) GetSignMode() string
func (*PrepareTxResponse) ProtoMessage ¶
func (*PrepareTxResponse) ProtoMessage()
func (*PrepareTxResponse) ProtoReflect ¶
func (x *PrepareTxResponse) ProtoReflect() protoreflect.Message
func (*PrepareTxResponse) Reset ¶
func (x *PrepareTxResponse) Reset()
func (*PrepareTxResponse) String ¶
func (x *PrepareTxResponse) String() string
type UnimplementedInjectiveExchangeRPCServer ¶
type UnimplementedInjectiveExchangeRPCServer struct { }
UnimplementedInjectiveExchangeRPCServer must be embedded to have forward compatible implementations.
func (UnimplementedInjectiveExchangeRPCServer) BroadcastTx ¶
func (UnimplementedInjectiveExchangeRPCServer) BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error)
func (UnimplementedInjectiveExchangeRPCServer) GetTx ¶
func (UnimplementedInjectiveExchangeRPCServer) GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error)
func (UnimplementedInjectiveExchangeRPCServer) PrepareTx ¶
func (UnimplementedInjectiveExchangeRPCServer) PrepareTx(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error)
type UnsafeInjectiveExchangeRPCServer ¶
type UnsafeInjectiveExchangeRPCServer interface {
// contains filtered or unexported methods
}
UnsafeInjectiveExchangeRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InjectiveExchangeRPCServer will result in compilation errors.