cosmos-sdk: github.com/cosmos/cosmos-sdk/types/tx Index | Files | Directories

package tx

import "github.com/cosmos/cosmos-sdk/types/tx"

Package tx is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Package Files

service.pb.go service.pb.gw.go tx.pb.go types.go

Constants

const MaxGasWanted = uint64((1 << 63) - 1)

MaxGasWanted defines the max gas allowed.

Variables

var (
    ErrInvalidLengthService        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowService          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group")
)
var (
    ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
var BroadcastMode_name = map[int32]string{
    0:  "BROADCAST_MODE_UNSPECIFIED",
    1:  "BROADCAST_MODE_BLOCK",
    2:  "BROADCAST_MODE_SYNC",
    3:  "BROADCAST_MODE_ASYNC",
}
var BroadcastMode_value = map[string]int32{
    "BROADCAST_MODE_UNSPECIFIED": 0,
    "BROADCAST_MODE_BLOCK":       1,
    "BROADCAST_MODE_SYNC":        2,
    "BROADCAST_MODE_ASYNC":       3,
}

func RegisterInterfaces Uses

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the sdk.Tx interface.

func RegisterServiceHandler Uses

func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterServiceHandler registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterServiceHandlerClient Uses

func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error

RegisterServiceHandlerClient registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceClient" to call the correct interceptors.

func RegisterServiceHandlerFromEndpoint Uses

func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterServiceHandlerFromEndpoint is same as RegisterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterServiceHandlerServer Uses

func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error

RegisterServiceHandlerServer registers the http handlers for service Service to "mux". UnaryRPC :call ServiceServer 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterServiceHandlerFromEndpoint instead.

func RegisterServiceServer Uses

func RegisterServiceServer(s grpc1.Server, srv ServiceServer)

type AuthInfo Uses

type AuthInfo struct {
    // signer_infos defines the signing modes for the required signers. The number
    // and order of elements must match the required signers from TxBody's
    // messages. The first element is the primary signer and the one which pays
    // the fee.
    SignerInfos []*SignerInfo `protobuf:"bytes,1,rep,name=signer_infos,json=signerInfos,proto3" json:"signer_infos,omitempty"`
    // Fee is the fee and gas limit for the transaction. The first signer is the
    // primary signer and the one which pays the fee. The fee can be calculated
    // based on the cost of evaluating the body and doing signature verification
    // of the signers. This can be estimated via simulation.
    Fee *Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
}

AuthInfo describes the fee and signer modes that are used to sign a transaction.

func (*AuthInfo) Descriptor Uses

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

func (*AuthInfo) GetFee Uses

func (m *AuthInfo) GetFee() *Fee

func (*AuthInfo) GetSignerInfos Uses

func (m *AuthInfo) GetSignerInfos() []*SignerInfo

func (*AuthInfo) Marshal Uses

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

func (*AuthInfo) MarshalTo Uses

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

func (*AuthInfo) MarshalToSizedBuffer Uses

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

func (*AuthInfo) ProtoMessage Uses

func (*AuthInfo) ProtoMessage()

func (*AuthInfo) Reset Uses

func (m *AuthInfo) Reset()

func (*AuthInfo) Size Uses

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

func (*AuthInfo) String Uses

func (m *AuthInfo) String() string

func (*AuthInfo) Unmarshal Uses

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

func (*AuthInfo) UnpackInterfaces Uses

func (m *AuthInfo) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements the UnpackInterfaceMessages.UnpackInterfaces method

func (*AuthInfo) XXX_DiscardUnknown Uses

func (m *AuthInfo) XXX_DiscardUnknown()

func (*AuthInfo) XXX_Marshal Uses

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

func (*AuthInfo) XXX_Merge Uses

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

func (*AuthInfo) XXX_Size Uses

func (m *AuthInfo) XXX_Size() int

func (*AuthInfo) XXX_Unmarshal Uses

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

type BroadcastMode Uses

type BroadcastMode int32

BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.

const (
    // zero-value for mode ordering
    BroadcastMode_BROADCAST_MODE_UNSPECIFIED BroadcastMode = 0
    // BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
    // the tx to be committed in a block.
    BroadcastMode_BROADCAST_MODE_BLOCK BroadcastMode = 1
    // BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
    // a CheckTx execution response only.
    BroadcastMode_BROADCAST_MODE_SYNC BroadcastMode = 2
    // BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
    // immediately.
    BroadcastMode_BROADCAST_MODE_ASYNC BroadcastMode = 3
)

func (BroadcastMode) EnumDescriptor Uses

func (BroadcastMode) EnumDescriptor() ([]byte, []int)

func (BroadcastMode) String Uses

func (x BroadcastMode) String() string

type BroadcastTxRequest Uses

type BroadcastTxRequest struct {
    // tx_bytes is the raw transaction.
    TxBytes []byte        `protobuf:"bytes,1,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
    Mode    BroadcastMode `protobuf:"varint,2,opt,name=mode,proto3,enum=cosmos.tx.v1beta1.BroadcastMode" json:"mode,omitempty"`
}

BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.

func (*BroadcastTxRequest) Descriptor Uses

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

func (*BroadcastTxRequest) GetMode Uses

func (m *BroadcastTxRequest) GetMode() BroadcastMode

func (*BroadcastTxRequest) GetTxBytes Uses

func (m *BroadcastTxRequest) GetTxBytes() []byte

func (*BroadcastTxRequest) Marshal Uses

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

func (*BroadcastTxRequest) MarshalTo Uses

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

func (*BroadcastTxRequest) MarshalToSizedBuffer Uses

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

func (*BroadcastTxRequest) ProtoMessage Uses

func (*BroadcastTxRequest) ProtoMessage()

func (*BroadcastTxRequest) Reset Uses

func (m *BroadcastTxRequest) Reset()

func (*BroadcastTxRequest) Size Uses

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

func (*BroadcastTxRequest) String Uses

func (m *BroadcastTxRequest) String() string

func (*BroadcastTxRequest) Unmarshal Uses

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

func (*BroadcastTxRequest) XXX_DiscardUnknown Uses

func (m *BroadcastTxRequest) XXX_DiscardUnknown()

func (*BroadcastTxRequest) XXX_Marshal Uses

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

func (*BroadcastTxRequest) XXX_Merge Uses

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

func (*BroadcastTxRequest) XXX_Size Uses

func (m *BroadcastTxRequest) XXX_Size() int

func (*BroadcastTxRequest) XXX_Unmarshal Uses

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

type BroadcastTxResponse Uses

type BroadcastTxResponse struct {
    // tx_response is the queried TxResponses.
    TxResponse *types.TxResponse `protobuf:"bytes,1,opt,name=tx_response,json=txResponse,proto3" json:"tx_response,omitempty"`
}

BroadcastTxResponse is the response type for the Service.BroadcastTx method.

func (*BroadcastTxResponse) Descriptor Uses

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

func (*BroadcastTxResponse) GetTxResponse Uses

func (m *BroadcastTxResponse) GetTxResponse() *types.TxResponse

func (*BroadcastTxResponse) Marshal Uses

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

func (*BroadcastTxResponse) MarshalTo Uses

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

func (*BroadcastTxResponse) MarshalToSizedBuffer Uses

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

func (*BroadcastTxResponse) ProtoMessage Uses

func (*BroadcastTxResponse) ProtoMessage()

func (*BroadcastTxResponse) Reset Uses

func (m *BroadcastTxResponse) Reset()

func (*BroadcastTxResponse) Size Uses

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

func (*BroadcastTxResponse) String Uses

func (m *BroadcastTxResponse) String() string

func (*BroadcastTxResponse) Unmarshal Uses

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

func (*BroadcastTxResponse) XXX_DiscardUnknown Uses

func (m *BroadcastTxResponse) XXX_DiscardUnknown()

func (*BroadcastTxResponse) XXX_Marshal Uses

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

func (*BroadcastTxResponse) XXX_Merge Uses

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

func (*BroadcastTxResponse) XXX_Size Uses

func (m *BroadcastTxResponse) XXX_Size() int

func (*BroadcastTxResponse) XXX_Unmarshal Uses

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

type Fee Uses

type Fee struct {
    // amount is the amount of coins to be paid as a fee
    Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
    // gas_limit is the maximum gas that can be used in transaction processing
    // before an out of gas error occurs
    GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
    // if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
    // the payer must be a tx signer (and thus have signed this field in AuthInfo).
    // setting this field does *not* change the ordering of required signers for the transaction.
    Payer string `protobuf:"bytes,3,opt,name=payer,proto3" json:"payer,omitempty"`
    // if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
    // to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
    // not support fee grants, this will fail
    Granter string `protobuf:"bytes,4,opt,name=granter,proto3" json:"granter,omitempty"`
}

Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. The ratio yields an effective "gasprice", which must be above some miminum to be accepted into the mempool.

func (*Fee) Descriptor Uses

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

func (*Fee) GetAmount Uses

func (m *Fee) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins

func (*Fee) GetGasLimit Uses

func (m *Fee) GetGasLimit() uint64

func (*Fee) GetGranter Uses

func (m *Fee) GetGranter() string

func (*Fee) GetPayer Uses

func (m *Fee) GetPayer() string

func (*Fee) Marshal Uses

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

func (*Fee) MarshalTo Uses

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

func (*Fee) MarshalToSizedBuffer Uses

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

func (*Fee) ProtoMessage Uses

func (*Fee) ProtoMessage()

func (*Fee) Reset Uses

func (m *Fee) Reset()

func (*Fee) Size Uses

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

func (*Fee) String Uses

func (m *Fee) String() string

func (*Fee) Unmarshal Uses

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

func (*Fee) XXX_DiscardUnknown Uses

func (m *Fee) XXX_DiscardUnknown()

func (*Fee) XXX_Marshal Uses

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

func (*Fee) XXX_Merge Uses

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

func (*Fee) XXX_Size Uses

func (m *Fee) XXX_Size() int

func (*Fee) XXX_Unmarshal Uses

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

type GetTxRequest Uses

type GetTxRequest struct {
    // hash is the tx hash to query, encoded as a hex string.
    Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

GetTxRequest is the request type for the Service.GetTx RPC method.

func (*GetTxRequest) Descriptor Uses

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

func (*GetTxRequest) GetHash Uses

func (m *GetTxRequest) GetHash() string

func (*GetTxRequest) Marshal Uses

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

func (*GetTxRequest) MarshalTo Uses

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

func (*GetTxRequest) MarshalToSizedBuffer Uses

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

func (*GetTxRequest) ProtoMessage Uses

func (*GetTxRequest) ProtoMessage()

func (*GetTxRequest) Reset Uses

func (m *GetTxRequest) Reset()

func (*GetTxRequest) Size Uses

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

func (*GetTxRequest) String Uses

func (m *GetTxRequest) String() string

func (*GetTxRequest) Unmarshal Uses

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

func (*GetTxRequest) XXX_DiscardUnknown Uses

func (m *GetTxRequest) XXX_DiscardUnknown()

func (*GetTxRequest) XXX_Marshal Uses

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

func (*GetTxRequest) XXX_Merge Uses

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

func (*GetTxRequest) XXX_Size Uses

func (m *GetTxRequest) XXX_Size() int

func (*GetTxRequest) XXX_Unmarshal Uses

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

type GetTxResponse Uses

type GetTxResponse struct {
    // tx is the queried transaction.
    Tx  *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
    // tx_response is the queried TxResponses.
    TxResponse *types.TxResponse `protobuf:"bytes,2,opt,name=tx_response,json=txResponse,proto3" json:"tx_response,omitempty"`
}

GetTxResponse is the response type for the Service.GetTx method.

func (*GetTxResponse) Descriptor Uses

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

func (*GetTxResponse) GetTx Uses

func (m *GetTxResponse) GetTx() *Tx

func (*GetTxResponse) GetTxResponse Uses

func (m *GetTxResponse) GetTxResponse() *types.TxResponse

func (*GetTxResponse) Marshal Uses

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

func (*GetTxResponse) MarshalTo Uses

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

func (*GetTxResponse) MarshalToSizedBuffer Uses

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

func (*GetTxResponse) ProtoMessage Uses

func (*GetTxResponse) ProtoMessage()

func (*GetTxResponse) Reset Uses

func (m *GetTxResponse) Reset()

func (*GetTxResponse) Size Uses

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

func (*GetTxResponse) String Uses

func (m *GetTxResponse) String() string

func (*GetTxResponse) Unmarshal Uses

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

func (*GetTxResponse) XXX_DiscardUnknown Uses

func (m *GetTxResponse) XXX_DiscardUnknown()

func (*GetTxResponse) XXX_Marshal Uses

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

func (*GetTxResponse) XXX_Merge Uses

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

func (*GetTxResponse) XXX_Size Uses

func (m *GetTxResponse) XXX_Size() int

func (*GetTxResponse) XXX_Unmarshal Uses

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

type GetTxsEventRequest Uses

type GetTxsEventRequest struct {
    // events is the list of transaction event type.
    Events []string `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
    // pagination defines an pagination for the request.
    Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

GetTxsEventRequest is the request type for the Service.TxsByEvents RPC method.

func (*GetTxsEventRequest) Descriptor Uses

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

func (*GetTxsEventRequest) GetEvents Uses

func (m *GetTxsEventRequest) GetEvents() []string

func (*GetTxsEventRequest) GetPagination Uses

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

func (*GetTxsEventRequest) Marshal Uses

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

func (*GetTxsEventRequest) MarshalTo Uses

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

func (*GetTxsEventRequest) MarshalToSizedBuffer Uses

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

func (*GetTxsEventRequest) ProtoMessage Uses

func (*GetTxsEventRequest) ProtoMessage()

func (*GetTxsEventRequest) Reset Uses

func (m *GetTxsEventRequest) Reset()

func (*GetTxsEventRequest) Size Uses

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

func (*GetTxsEventRequest) String Uses

func (m *GetTxsEventRequest) String() string

func (*GetTxsEventRequest) Unmarshal Uses

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

func (*GetTxsEventRequest) XXX_DiscardUnknown Uses

func (m *GetTxsEventRequest) XXX_DiscardUnknown()

func (*GetTxsEventRequest) XXX_Marshal Uses

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

func (*GetTxsEventRequest) XXX_Merge Uses

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

func (*GetTxsEventRequest) XXX_Size Uses

func (m *GetTxsEventRequest) XXX_Size() int

func (*GetTxsEventRequest) XXX_Unmarshal Uses

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

type GetTxsEventResponse Uses

type GetTxsEventResponse struct {
    // txs is the list of queried transactions.
    Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
    // tx_responses is the list of queried TxResponses.
    TxResponses []*types.TxResponse `protobuf:"bytes,2,rep,name=tx_responses,json=txResponses,proto3" json:"tx_responses,omitempty"`
    // pagination defines an pagination for the response.
    Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

GetTxsEventResponse is the response type for the Service.TxsByEvents RPC method.

func (*GetTxsEventResponse) Descriptor Uses

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

func (*GetTxsEventResponse) GetPagination Uses

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

func (*GetTxsEventResponse) GetTxResponses Uses

func (m *GetTxsEventResponse) GetTxResponses() []*types.TxResponse

func (*GetTxsEventResponse) GetTxs Uses

func (m *GetTxsEventResponse) GetTxs() []*Tx

func (*GetTxsEventResponse) Marshal Uses

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

func (*GetTxsEventResponse) MarshalTo Uses

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

func (*GetTxsEventResponse) MarshalToSizedBuffer Uses

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

func (*GetTxsEventResponse) ProtoMessage Uses

func (*GetTxsEventResponse) ProtoMessage()

func (*GetTxsEventResponse) Reset Uses

func (m *GetTxsEventResponse) Reset()

func (*GetTxsEventResponse) Size Uses

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

func (*GetTxsEventResponse) String Uses

func (m *GetTxsEventResponse) String() string

func (*GetTxsEventResponse) Unmarshal Uses

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

func (*GetTxsEventResponse) XXX_DiscardUnknown Uses

func (m *GetTxsEventResponse) XXX_DiscardUnknown()

func (*GetTxsEventResponse) XXX_Marshal Uses

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

func (*GetTxsEventResponse) XXX_Merge Uses

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

func (*GetTxsEventResponse) XXX_Size Uses

func (m *GetTxsEventResponse) XXX_Size() int

func (*GetTxsEventResponse) XXX_Unmarshal Uses

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

type ModeInfo Uses

type ModeInfo struct {
    // sum is the oneof that specifies whether this represents a single or nested
    // multisig signer
    //
    // Types that are valid to be assigned to Sum:
    //	*ModeInfo_Single_
    //	*ModeInfo_Multi_
    Sum isModeInfo_Sum `protobuf_oneof:"sum"`
}

ModeInfo describes the signing mode of a single or nested multisig signer.

func (*ModeInfo) Descriptor Uses

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

func (*ModeInfo) GetMulti Uses

func (m *ModeInfo) GetMulti() *ModeInfo_Multi

func (*ModeInfo) GetSingle Uses

func (m *ModeInfo) GetSingle() *ModeInfo_Single

func (*ModeInfo) GetSum Uses

func (m *ModeInfo) GetSum() isModeInfo_Sum

func (*ModeInfo) Marshal Uses

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

func (*ModeInfo) MarshalTo Uses

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

func (*ModeInfo) MarshalToSizedBuffer Uses

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

func (*ModeInfo) ProtoMessage Uses

func (*ModeInfo) ProtoMessage()

func (*ModeInfo) Reset Uses

func (m *ModeInfo) Reset()

func (*ModeInfo) Size Uses

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

func (*ModeInfo) String Uses

func (m *ModeInfo) String() string

func (*ModeInfo) Unmarshal Uses

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

func (*ModeInfo) XXX_DiscardUnknown Uses

func (m *ModeInfo) XXX_DiscardUnknown()

func (*ModeInfo) XXX_Marshal Uses

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

func (*ModeInfo) XXX_Merge Uses

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

func (*ModeInfo) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*ModeInfo) XXX_Size Uses

func (m *ModeInfo) XXX_Size() int

func (*ModeInfo) XXX_Unmarshal Uses

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

type ModeInfo_Multi Uses

type ModeInfo_Multi struct {
    // bitarray specifies which keys within the multisig are signing
    Bitarray *types1.CompactBitArray `protobuf:"bytes,1,opt,name=bitarray,proto3" json:"bitarray,omitempty"`
    // mode_infos is the corresponding modes of the signers of the multisig
    // which could include nested multisig public keys
    ModeInfos []*ModeInfo `protobuf:"bytes,2,rep,name=mode_infos,json=modeInfos,proto3" json:"mode_infos,omitempty"`
}

Multi is the mode info for a multisig public key

func (*ModeInfo_Multi) Descriptor Uses

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

func (*ModeInfo_Multi) GetBitarray Uses

func (m *ModeInfo_Multi) GetBitarray() *types1.CompactBitArray

func (*ModeInfo_Multi) GetModeInfos Uses

func (m *ModeInfo_Multi) GetModeInfos() []*ModeInfo

func (*ModeInfo_Multi) Marshal Uses

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

func (*ModeInfo_Multi) MarshalTo Uses

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

func (*ModeInfo_Multi) MarshalToSizedBuffer Uses

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

func (*ModeInfo_Multi) ProtoMessage Uses

func (*ModeInfo_Multi) ProtoMessage()

func (*ModeInfo_Multi) Reset Uses

func (m *ModeInfo_Multi) Reset()

func (*ModeInfo_Multi) Size Uses

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

func (*ModeInfo_Multi) String Uses

func (m *ModeInfo_Multi) String() string

func (*ModeInfo_Multi) Unmarshal Uses

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

func (*ModeInfo_Multi) XXX_DiscardUnknown Uses

func (m *ModeInfo_Multi) XXX_DiscardUnknown()

func (*ModeInfo_Multi) XXX_Marshal Uses

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

func (*ModeInfo_Multi) XXX_Merge Uses

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

func (*ModeInfo_Multi) XXX_Size Uses

func (m *ModeInfo_Multi) XXX_Size() int

func (*ModeInfo_Multi) XXX_Unmarshal Uses

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

type ModeInfo_Multi_ Uses

type ModeInfo_Multi_ struct {
    Multi *ModeInfo_Multi `protobuf:"bytes,2,opt,name=multi,proto3,oneof" json:"multi,omitempty"`
}

func (*ModeInfo_Multi_) MarshalTo Uses

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

func (*ModeInfo_Multi_) MarshalToSizedBuffer Uses

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

func (*ModeInfo_Multi_) Size Uses

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

type ModeInfo_Single Uses

type ModeInfo_Single struct {
    // mode is the signing mode of the single signer
    Mode signing.SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"`
}

Single is the mode info for a single signer. It is structured as a message to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the future

func (*ModeInfo_Single) Descriptor Uses

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

func (*ModeInfo_Single) GetMode Uses

func (m *ModeInfo_Single) GetMode() signing.SignMode

func (*ModeInfo_Single) Marshal Uses

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

func (*ModeInfo_Single) MarshalTo Uses

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

func (*ModeInfo_Single) MarshalToSizedBuffer Uses

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

func (*ModeInfo_Single) ProtoMessage Uses

func (*ModeInfo_Single) ProtoMessage()

func (*ModeInfo_Single) Reset Uses

func (m *ModeInfo_Single) Reset()

func (*ModeInfo_Single) Size Uses

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

func (*ModeInfo_Single) String Uses

func (m *ModeInfo_Single) String() string

func (*ModeInfo_Single) Unmarshal Uses

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

func (*ModeInfo_Single) XXX_DiscardUnknown Uses

func (m *ModeInfo_Single) XXX_DiscardUnknown()

func (*ModeInfo_Single) XXX_Marshal Uses

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

func (*ModeInfo_Single) XXX_Merge Uses

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

func (*ModeInfo_Single) XXX_Size Uses

func (m *ModeInfo_Single) XXX_Size() int

func (*ModeInfo_Single) XXX_Unmarshal Uses

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

type ModeInfo_Single_ Uses

type ModeInfo_Single_ struct {
    Single *ModeInfo_Single `protobuf:"bytes,1,opt,name=single,proto3,oneof" json:"single,omitempty"`
}

func (*ModeInfo_Single_) MarshalTo Uses

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

func (*ModeInfo_Single_) MarshalToSizedBuffer Uses

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

func (*ModeInfo_Single_) Size Uses

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

type ServiceClient Uses

type ServiceClient interface {
    // Simulate simulates executing a transaction for estimating gas usage.
    Simulate(ctx context.Context, in *SimulateRequest, opts ...grpc.CallOption) (*SimulateResponse, error)
    // GetTx fetches a tx by hash.
    GetTx(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error)
    // BroadcastTx broadcast transaction.
    BroadcastTx(ctx context.Context, in *BroadcastTxRequest, opts ...grpc.CallOption) (*BroadcastTxResponse, error)
    // GetTxsEvent fetches txs by event.
    GetTxsEvent(ctx context.Context, in *GetTxsEventRequest, opts ...grpc.CallOption) (*GetTxsEventResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient Uses

func NewServiceClient(cc grpc1.ClientConn) ServiceClient

type ServiceServer Uses

type ServiceServer interface {
    // Simulate simulates executing a transaction for estimating gas usage.
    Simulate(context.Context, *SimulateRequest) (*SimulateResponse, error)
    // GetTx fetches a tx by hash.
    GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error)
    // BroadcastTx broadcast transaction.
    BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error)
    // GetTxsEvent fetches txs by event.
    GetTxsEvent(context.Context, *GetTxsEventRequest) (*GetTxsEventResponse, error)
}

ServiceServer is the server API for Service service.

type SignDoc Uses

type SignDoc struct {
    // body_bytes is protobuf serialization of a TxBody that matches the
    // representation in TxRaw.
    BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
    // auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
    // representation in TxRaw.
    AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"`
    // chain_id is the unique identifier of the chain this transaction targets.
    // It prevents signed transactions from being used on another chain by an
    // attacker
    ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
    // account_number is the account number of the account in state
    AccountNumber uint64 `protobuf:"varint,4,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
}

SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.

func (*SignDoc) Descriptor Uses

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

func (*SignDoc) GetAccountNumber Uses

func (m *SignDoc) GetAccountNumber() uint64

func (*SignDoc) GetAuthInfoBytes Uses

func (m *SignDoc) GetAuthInfoBytes() []byte

func (*SignDoc) GetBodyBytes Uses

func (m *SignDoc) GetBodyBytes() []byte

func (*SignDoc) GetChainId Uses

func (m *SignDoc) GetChainId() string

func (*SignDoc) Marshal Uses

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

func (*SignDoc) MarshalTo Uses

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

func (*SignDoc) MarshalToSizedBuffer Uses

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

func (*SignDoc) ProtoMessage Uses

func (*SignDoc) ProtoMessage()

func (*SignDoc) Reset Uses

func (m *SignDoc) Reset()

func (*SignDoc) Size Uses

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

func (*SignDoc) String Uses

func (m *SignDoc) String() string

func (*SignDoc) Unmarshal Uses

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

func (*SignDoc) XXX_DiscardUnknown Uses

func (m *SignDoc) XXX_DiscardUnknown()

func (*SignDoc) XXX_Marshal Uses

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

func (*SignDoc) XXX_Merge Uses

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

func (*SignDoc) XXX_Size Uses

func (m *SignDoc) XXX_Size() int

func (*SignDoc) XXX_Unmarshal Uses

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

type SignerInfo Uses

type SignerInfo struct {
    // public_key is the public key of the signer. It is optional for accounts
    // that already exist in state. If unset, the verifier can use the required \
    // signer address for this position and lookup the public key.
    PublicKey *types.Any `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
    // mode_info describes the signing mode of the signer and is a nested
    // structure to support nested multisig pubkey's
    ModeInfo *ModeInfo `protobuf:"bytes,2,opt,name=mode_info,json=modeInfo,proto3" json:"mode_info,omitempty"`
    // sequence is the sequence of the account, which describes the
    // number of committed transactions signed by a given address. It is used to
    // prevent replay attacks.
    Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

SignerInfo describes the public key and signing mode of a single top-level signer.

func (*SignerInfo) Descriptor Uses

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

func (*SignerInfo) GetModeInfo Uses

func (m *SignerInfo) GetModeInfo() *ModeInfo

func (*SignerInfo) GetPublicKey Uses

func (m *SignerInfo) GetPublicKey() *types.Any

func (*SignerInfo) GetSequence Uses

func (m *SignerInfo) GetSequence() uint64

func (*SignerInfo) Marshal Uses

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

func (*SignerInfo) MarshalTo Uses

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

func (*SignerInfo) MarshalToSizedBuffer Uses

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

func (*SignerInfo) ProtoMessage Uses

func (*SignerInfo) ProtoMessage()

func (*SignerInfo) Reset Uses

func (m *SignerInfo) Reset()

func (*SignerInfo) Size Uses

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

func (*SignerInfo) String Uses

func (m *SignerInfo) String() string

func (*SignerInfo) Unmarshal Uses

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

func (*SignerInfo) UnpackInterfaces Uses

func (m *SignerInfo) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements the UnpackInterfaceMessages.UnpackInterfaces method

func (*SignerInfo) XXX_DiscardUnknown Uses

func (m *SignerInfo) XXX_DiscardUnknown()

func (*SignerInfo) XXX_Marshal Uses

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

func (*SignerInfo) XXX_Merge Uses

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

func (*SignerInfo) XXX_Size Uses

func (m *SignerInfo) XXX_Size() int

func (*SignerInfo) XXX_Unmarshal Uses

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

type SimulateRequest Uses

type SimulateRequest struct {
    // tx is the transaction to simulate.
    Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
}

SimulateRequest is the request type for the Service.Simulate RPC method.

func (*SimulateRequest) Descriptor Uses

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

func (*SimulateRequest) GetTx Uses

func (m *SimulateRequest) GetTx() *Tx

func (*SimulateRequest) Marshal Uses

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

func (*SimulateRequest) MarshalTo Uses

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

func (*SimulateRequest) MarshalToSizedBuffer Uses

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

func (*SimulateRequest) ProtoMessage Uses

func (*SimulateRequest) ProtoMessage()

func (*SimulateRequest) Reset Uses

func (m *SimulateRequest) Reset()

func (*SimulateRequest) Size Uses

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

func (*SimulateRequest) String Uses

func (m *SimulateRequest) String() string

func (*SimulateRequest) Unmarshal Uses

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

func (*SimulateRequest) XXX_DiscardUnknown Uses

func (m *SimulateRequest) XXX_DiscardUnknown()

func (*SimulateRequest) XXX_Marshal Uses

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

func (*SimulateRequest) XXX_Merge Uses

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

func (*SimulateRequest) XXX_Size Uses

func (m *SimulateRequest) XXX_Size() int

func (*SimulateRequest) XXX_Unmarshal Uses

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

type SimulateResponse Uses

type SimulateResponse struct {
    // gas_info is the information about gas used in the simulation.
    GasInfo *types.GasInfo `protobuf:"bytes,1,opt,name=gas_info,json=gasInfo,proto3" json:"gas_info,omitempty"`
    // result is the result of the simulation.
    Result *types.Result `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
}

SimulateResponse is the response type for the Service.SimulateRPC method.

func (*SimulateResponse) Descriptor Uses

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

func (*SimulateResponse) GetGasInfo Uses

func (m *SimulateResponse) GetGasInfo() *types.GasInfo

func (*SimulateResponse) GetResult Uses

func (m *SimulateResponse) GetResult() *types.Result

func (*SimulateResponse) Marshal Uses

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

func (*SimulateResponse) MarshalTo Uses

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

func (*SimulateResponse) MarshalToSizedBuffer Uses

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

func (*SimulateResponse) ProtoMessage Uses

func (*SimulateResponse) ProtoMessage()

func (*SimulateResponse) Reset Uses

func (m *SimulateResponse) Reset()

func (*SimulateResponse) Size Uses

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

func (*SimulateResponse) String Uses

func (m *SimulateResponse) String() string

func (*SimulateResponse) Unmarshal Uses

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

func (*SimulateResponse) XXX_DiscardUnknown Uses

func (m *SimulateResponse) XXX_DiscardUnknown()

func (*SimulateResponse) XXX_Marshal Uses

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

func (*SimulateResponse) XXX_Merge Uses

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

func (*SimulateResponse) XXX_Size Uses

func (m *SimulateResponse) XXX_Size() int

func (*SimulateResponse) XXX_Unmarshal Uses

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

type Tx Uses

type Tx struct {
    // body is the processable content of the transaction
    Body *TxBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
    // auth_info is the authorization related content of the transaction,
    // specifically signers, signer modes and fee
    AuthInfo *AuthInfo `protobuf:"bytes,2,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
    // signatures is a list of signatures that matches the length and order of
    // AuthInfo's signer_infos to allow connecting signature meta information like
    // public key and signing mode by position.
    Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

Tx is the standard type used for broadcasting transactions.

func (*Tx) Descriptor Uses

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

func (*Tx) FeeGranter Uses

func (t *Tx) FeeGranter() sdk.AccAddress

func (*Tx) FeePayer Uses

func (t *Tx) FeePayer() sdk.AccAddress

func (*Tx) GetAuthInfo Uses

func (m *Tx) GetAuthInfo() *AuthInfo

func (*Tx) GetBody Uses

func (m *Tx) GetBody() *TxBody

func (*Tx) GetFee Uses

func (t *Tx) GetFee() sdk.Coins

func (*Tx) GetGas Uses

func (t *Tx) GetGas() uint64

func (*Tx) GetMsgs Uses

func (t *Tx) GetMsgs() []sdk.Msg

GetMsgs implements the GetMsgs method on sdk.Tx.

func (*Tx) GetSignatures Uses

func (m *Tx) GetSignatures() [][]byte

func (*Tx) GetSigners Uses

func (t *Tx) GetSigners() []sdk.AccAddress

GetSigners retrieves all the signers of a tx. This includes all unique signers of the messages (in order), as well as the FeePayer (if specified and not already included).

func (*Tx) Marshal Uses

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

func (*Tx) MarshalTo Uses

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

func (*Tx) MarshalToSizedBuffer Uses

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

func (*Tx) ProtoMessage Uses

func (*Tx) ProtoMessage()

func (*Tx) Reset Uses

func (m *Tx) Reset()

func (*Tx) Size Uses

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

func (*Tx) String Uses

func (m *Tx) String() string

func (*Tx) Unmarshal Uses

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

func (*Tx) UnpackInterfaces Uses

func (t *Tx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements the UnpackInterfaceMessages.UnpackInterfaces method

func (*Tx) ValidateBasic Uses

func (t *Tx) ValidateBasic() error

ValidateBasic implements the ValidateBasic method on sdk.Tx.

func (*Tx) XXX_DiscardUnknown Uses

func (m *Tx) XXX_DiscardUnknown()

func (*Tx) XXX_Marshal Uses

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

func (*Tx) XXX_Merge Uses

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

func (*Tx) XXX_Size Uses

func (m *Tx) XXX_Size() int

func (*Tx) XXX_Unmarshal Uses

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

type TxBody Uses

type TxBody struct {
    // messages is a list of messages to be executed. The required signers of
    // those messages define the number and order of elements in AuthInfo's
    // signer_infos and Tx's signatures. Each required signer address is added to
    // the list only the first time it occurs.
    // By convention, the first required signer (usually from the first message)
    // is referred to as the primary signer and pays the fee for the whole
    // transaction.
    Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
    // memo is any arbitrary memo to be added to the transaction
    Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
    // timeout is the block height after which this transaction will not
    // be processed by the chain
    TimeoutHeight uint64 `protobuf:"varint,3,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
    // extension_options are arbitrary options that can be added by chains
    // when the default options are not sufficient. If any of these are present
    // and can't be handled, the transaction will be rejected
    ExtensionOptions []*types.Any `protobuf:"bytes,1023,rep,name=extension_options,json=extensionOptions,proto3" json:"extension_options,omitempty"`
    // extension_options are arbitrary options that can be added by chains
    // when the default options are not sufficient. If any of these are present
    // and can't be handled, they will be ignored
    NonCriticalExtensionOptions []*types.Any `protobuf:"bytes,2047,rep,name=non_critical_extension_options,json=nonCriticalExtensionOptions,proto3" json:"non_critical_extension_options,omitempty"`
}

TxBody is the body of a transaction that all signers sign over.

func (*TxBody) Descriptor Uses

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

func (*TxBody) GetExtensionOptions Uses

func (m *TxBody) GetExtensionOptions() []*types.Any

func (*TxBody) GetMemo Uses

func (m *TxBody) GetMemo() string

func (*TxBody) GetMessages Uses

func (m *TxBody) GetMessages() []*types.Any

func (*TxBody) GetNonCriticalExtensionOptions Uses

func (m *TxBody) GetNonCriticalExtensionOptions() []*types.Any

func (*TxBody) GetTimeoutHeight Uses

func (m *TxBody) GetTimeoutHeight() uint64

func (*TxBody) Marshal Uses

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

func (*TxBody) MarshalTo Uses

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

func (*TxBody) MarshalToSizedBuffer Uses

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

func (*TxBody) ProtoMessage Uses

func (*TxBody) ProtoMessage()

func (*TxBody) Reset Uses

func (m *TxBody) Reset()

func (*TxBody) Size Uses

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

func (*TxBody) String Uses

func (m *TxBody) String() string

func (*TxBody) Unmarshal Uses

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

func (*TxBody) UnpackInterfaces Uses

func (m *TxBody) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements the UnpackInterfaceMessages.UnpackInterfaces method

func (*TxBody) XXX_DiscardUnknown Uses

func (m *TxBody) XXX_DiscardUnknown()

func (*TxBody) XXX_Marshal Uses

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

func (*TxBody) XXX_Merge Uses

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

func (*TxBody) XXX_Size Uses

func (m *TxBody) XXX_Size() int

func (*TxBody) XXX_Unmarshal Uses

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

type TxRaw Uses

type TxRaw struct {
    // body_bytes is a protobuf serialization of a TxBody that matches the
    // representation in SignDoc.
    BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
    // auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
    // representation in SignDoc.
    AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"`
    // signatures is a list of signatures that matches the length and order of
    // AuthInfo's signer_infos to allow connecting signature meta information like
    // public key and signing mode by position.
    Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

TxRaw is a variant of Tx that pins the signer's exact binary representation of body and auth_info. This is used for signing, broadcasting and verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used as the transaction ID.

func (*TxRaw) Descriptor Uses

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

func (*TxRaw) GetAuthInfoBytes Uses

func (m *TxRaw) GetAuthInfoBytes() []byte

func (*TxRaw) GetBodyBytes Uses

func (m *TxRaw) GetBodyBytes() []byte

func (*TxRaw) GetSignatures Uses

func (m *TxRaw) GetSignatures() [][]byte

func (*TxRaw) Marshal Uses

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

func (*TxRaw) MarshalTo Uses

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

func (*TxRaw) MarshalToSizedBuffer Uses

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

func (*TxRaw) ProtoMessage Uses

func (*TxRaw) ProtoMessage()

func (*TxRaw) Reset Uses

func (m *TxRaw) Reset()

func (*TxRaw) Size Uses

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

func (*TxRaw) String Uses

func (m *TxRaw) String() string

func (*TxRaw) Unmarshal Uses

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

func (*TxRaw) XXX_DiscardUnknown Uses

func (m *TxRaw) XXX_DiscardUnknown()

func (*TxRaw) XXX_Marshal Uses

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

func (*TxRaw) XXX_Merge Uses

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

func (*TxRaw) XXX_Size Uses

func (m *TxRaw) XXX_Size() int

func (*TxRaw) XXX_Unmarshal Uses

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

type UnimplementedServiceServer Uses

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) BroadcastTx Uses

func (*UnimplementedServiceServer) BroadcastTx(ctx context.Context, req *BroadcastTxRequest) (*BroadcastTxResponse, error)

func (*UnimplementedServiceServer) GetTx Uses

func (*UnimplementedServiceServer) GetTx(ctx context.Context, req *GetTxRequest) (*GetTxResponse, error)

func (*UnimplementedServiceServer) GetTxsEvent Uses

func (*UnimplementedServiceServer) GetTxsEvent(ctx context.Context, req *GetTxsEventRequest) (*GetTxsEventResponse, error)

func (*UnimplementedServiceServer) Simulate Uses

func (*UnimplementedServiceServer) Simulate(ctx context.Context, req *SimulateRequest) (*SimulateResponse, error)

Directories

PathSynopsis
signing

Package tx imports 25 packages (graph) and is imported by 8 packages. Updated 2021-01-21. Refresh now. Tools for package owners.