cosmos

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_txproto_cosmos_cosmos_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Fee

type Fee struct {
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // single coin amount
	Denom  string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`   // single coin denom
	Gas    uint64 `protobuf:"varint,3,opt,name=gas,proto3" json:"gas,omitempty"`
	// contains filtered or unexported fields
}

Fee for the transaction.

func (*Fee) Descriptor deprecated

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

Deprecated: Use Fee.ProtoReflect.Descriptor instead.

func (*Fee) GetAmount

func (x *Fee) GetAmount() string

func (*Fee) GetDenom

func (x *Fee) GetDenom() string

func (*Fee) GetGas

func (x *Fee) GetGas() uint64

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) ProtoReflect

func (x *Fee) ProtoReflect() protoreflect.Message

func (*Fee) Reset

func (x *Fee) Reset()

func (*Fee) String

func (x *Fee) String() string

type SendCoinsMessage

type SendCoinsMessage struct {
	FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress   string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// Single denom/amount pair (the common case).
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Denom  string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

A bank MsgSend.

func (*SendCoinsMessage) Descriptor deprecated

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

Deprecated: Use SendCoinsMessage.ProtoReflect.Descriptor instead.

func (*SendCoinsMessage) GetAmount

func (x *SendCoinsMessage) GetAmount() string

func (*SendCoinsMessage) GetDenom

func (x *SendCoinsMessage) GetDenom() string

func (*SendCoinsMessage) GetFromAddress

func (x *SendCoinsMessage) GetFromAddress() string

func (*SendCoinsMessage) GetToAddress

func (x *SendCoinsMessage) GetToAddress() string

func (*SendCoinsMessage) ProtoMessage

func (*SendCoinsMessage) ProtoMessage()

func (*SendCoinsMessage) ProtoReflect

func (x *SendCoinsMessage) ProtoReflect() protoreflect.Message

func (*SendCoinsMessage) Reset

func (x *SendCoinsMessage) Reset()

func (*SendCoinsMessage) String

func (x *SendCoinsMessage) String() string

type SigningInput

type SigningInput struct {
	AccountNumber uint64            `protobuf:"varint,1,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	ChainId       string            `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Sequence      uint64            `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Memo          string            `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"`
	Fee           *Fee              `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"`
	Send          *SendCoinsMessage `protobuf:"bytes,6,opt,name=send,proto3" json:"send,omitempty"`
	// contains filtered or unexported fields
}

SigningInput mirrors a minimal subset of TW.Cosmos.Proto.SigningInput for DIRECT (protobuf) sign mode with a single bank MsgSend.

func (*SigningInput) Descriptor deprecated

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

Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.

func (*SigningInput) GetAccountNumber

func (x *SigningInput) GetAccountNumber() uint64

func (*SigningInput) GetChainId

func (x *SigningInput) GetChainId() string

func (*SigningInput) GetFee

func (x *SigningInput) GetFee() *Fee

func (*SigningInput) GetMemo

func (x *SigningInput) GetMemo() string

func (*SigningInput) GetSend

func (x *SigningInput) GetSend() *SendCoinsMessage

func (*SigningInput) GetSequence

func (x *SigningInput) GetSequence() uint64

func (*SigningInput) ProtoMessage

func (*SigningInput) ProtoMessage()

func (*SigningInput) ProtoReflect

func (x *SigningInput) ProtoReflect() protoreflect.Message

func (*SigningInput) Reset

func (x *SigningInput) Reset()

func (*SigningInput) String

func (x *SigningInput) String() string

type SigningOutput

type SigningOutput struct {

	// Protobuf-serialized TxRaw bytes.
	Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// base64 of `encoded`, as TWC reports it in `serialized` tx_bytes.
	TxBytes string `protobuf:"bytes,2,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
	// 64-byte signature (R||S).
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// Error message, empty on success.
	Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

SigningOutput mirrors a minimal subset of TW.Cosmos.Proto.SigningOutput.

func (*SigningOutput) Descriptor deprecated

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

Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.

func (*SigningOutput) GetEncoded

func (x *SigningOutput) GetEncoded() []byte

func (*SigningOutput) GetError

func (x *SigningOutput) GetError() string

func (*SigningOutput) GetSignature

func (x *SigningOutput) GetSignature() []byte

func (*SigningOutput) GetTxBytes

func (x *SigningOutput) GetTxBytes() string

func (*SigningOutput) ProtoMessage

func (*SigningOutput) ProtoMessage()

func (*SigningOutput) ProtoReflect

func (x *SigningOutput) ProtoReflect() protoreflect.Message

func (*SigningOutput) Reset

func (x *SigningOutput) Reset()

func (*SigningOutput) String

func (x *SigningOutput) String() string

Jump to

Keyboard shortcuts

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