Documentation
¶
Index ¶
- Variables
- type Fee
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetDelegate() *MsgDelegate
- func (x *Message) GetMessageOneof() isMessage_MessageOneof
- func (x *Message) GetSend() *SendCoinsMessage
- func (x *Message) GetUndelegate() *MsgDelegate
- func (x *Message) GetWithdrawReward() *MsgWithdrawReward
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Delegate
- type Message_Send
- type Message_Undelegate
- type Message_WithdrawReward
- type MsgDelegate
- func (*MsgDelegate) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDelegate) GetAmount() string
- func (x *MsgDelegate) GetDelegatorAddress() string
- func (x *MsgDelegate) GetDenom() string
- func (x *MsgDelegate) GetValidatorAddress() string
- func (*MsgDelegate) ProtoMessage()
- func (x *MsgDelegate) ProtoReflect() protoreflect.Message
- func (x *MsgDelegate) Reset()
- func (x *MsgDelegate) String() string
- type MsgWithdrawReward
- func (*MsgWithdrawReward) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawReward) GetDelegatorAddress() string
- func (x *MsgWithdrawReward) GetValidatorAddress() string
- func (*MsgWithdrawReward) ProtoMessage()
- func (x *MsgWithdrawReward) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawReward) Reset()
- func (x *MsgWithdrawReward) String() string
- type SendCoinsMessage
- func (*SendCoinsMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SendCoinsMessage) GetAmount() string
- func (x *SendCoinsMessage) GetDenom() string
- func (x *SendCoinsMessage) GetFromAddress() string
- func (x *SendCoinsMessage) GetToAddress() string
- func (*SendCoinsMessage) ProtoMessage()
- func (x *SendCoinsMessage) ProtoReflect() protoreflect.Message
- func (x *SendCoinsMessage) Reset()
- func (x *SendCoinsMessage) String() string
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetAccountNumber() uint64
- func (x *SigningInput) GetChainId() string
- func (x *SigningInput) GetFee() *Fee
- func (x *SigningInput) GetMemo() string
- func (x *SigningInput) GetMessages() []*Message
- func (x *SigningInput) GetSend() *SendCoinsMessage
- func (x *SigningInput) GetSequence() uint64
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningOutput
- func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningOutput) GetEncoded() []byte
- func (x *SigningOutput) GetError() string
- func (x *SigningOutput) GetSignature() []byte
- func (x *SigningOutput) GetTxBytes() string
- func (*SigningOutput) ProtoMessage()
- func (x *SigningOutput) ProtoReflect() protoreflect.Message
- func (x *SigningOutput) Reset()
- func (x *SigningOutput) String() string
Constants ¶
This section is empty.
Variables ¶
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) ProtoMessage ¶
func (*Fee) ProtoMessage()
func (*Fee) ProtoReflect ¶
func (x *Fee) ProtoReflect() protoreflect.Message
type Message ¶ added in v0.3.0
type Message struct {
// Types that are valid to be assigned to MessageOneof:
//
// *Message_Send
// *Message_Delegate
// *Message_Undelegate
// *Message_WithdrawReward
MessageOneof isMessage_MessageOneof `protobuf_oneof:"message_oneof"`
// contains filtered or unexported fields
}
One message in the transaction body. Multiple messages may be sent in one tx via SigningInput.messages.
func (*Message) Descriptor
deprecated
added in
v0.3.0
func (*Message) GetDelegate ¶ added in v0.3.0
func (x *Message) GetDelegate() *MsgDelegate
func (*Message) GetMessageOneof ¶ added in v0.3.0
func (x *Message) GetMessageOneof() isMessage_MessageOneof
func (*Message) GetSend ¶ added in v0.3.0
func (x *Message) GetSend() *SendCoinsMessage
func (*Message) GetUndelegate ¶ added in v0.3.0
func (x *Message) GetUndelegate() *MsgDelegate
func (*Message) GetWithdrawReward ¶ added in v0.3.0
func (x *Message) GetWithdrawReward() *MsgWithdrawReward
func (*Message) ProtoMessage ¶ added in v0.3.0
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.3.0
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Delegate ¶ added in v0.3.0
type Message_Delegate struct {
Delegate *MsgDelegate `protobuf:"bytes,2,opt,name=delegate,proto3,oneof"`
}
type Message_Send ¶ added in v0.3.0
type Message_Send struct {
Send *SendCoinsMessage `protobuf:"bytes,1,opt,name=send,proto3,oneof"`
}
type Message_Undelegate ¶ added in v0.3.0
type Message_Undelegate struct {
Undelegate *MsgDelegate `protobuf:"bytes,3,opt,name=undelegate,proto3,oneof"`
}
type Message_WithdrawReward ¶ added in v0.3.0
type Message_WithdrawReward struct {
WithdrawReward *MsgWithdrawReward `protobuf:"bytes,4,opt,name=withdraw_reward,json=withdrawReward,proto3,oneof"`
}
type MsgDelegate ¶ added in v0.3.0
type MsgDelegate struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
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 staking MsgDelegate / MsgUndelegate (identical wire shape; the type_url differs by which Message oneof field carries it).
func (*MsgDelegate) Descriptor
deprecated
added in
v0.3.0
func (*MsgDelegate) Descriptor() ([]byte, []int)
Deprecated: Use MsgDelegate.ProtoReflect.Descriptor instead.
func (*MsgDelegate) GetAmount ¶ added in v0.3.0
func (x *MsgDelegate) GetAmount() string
func (*MsgDelegate) GetDelegatorAddress ¶ added in v0.3.0
func (x *MsgDelegate) GetDelegatorAddress() string
func (*MsgDelegate) GetDenom ¶ added in v0.3.0
func (x *MsgDelegate) GetDenom() string
func (*MsgDelegate) GetValidatorAddress ¶ added in v0.3.0
func (x *MsgDelegate) GetValidatorAddress() string
func (*MsgDelegate) ProtoMessage ¶ added in v0.3.0
func (*MsgDelegate) ProtoMessage()
func (*MsgDelegate) ProtoReflect ¶ added in v0.3.0
func (x *MsgDelegate) ProtoReflect() protoreflect.Message
func (*MsgDelegate) Reset ¶ added in v0.3.0
func (x *MsgDelegate) Reset()
func (*MsgDelegate) String ¶ added in v0.3.0
func (x *MsgDelegate) String() string
type MsgWithdrawReward ¶ added in v0.3.0
type MsgWithdrawReward struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// contains filtered or unexported fields
}
A distribution MsgWithdrawDelegatorReward.
func (*MsgWithdrawReward) Descriptor
deprecated
added in
v0.3.0
func (*MsgWithdrawReward) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawReward.ProtoReflect.Descriptor instead.
func (*MsgWithdrawReward) GetDelegatorAddress ¶ added in v0.3.0
func (x *MsgWithdrawReward) GetDelegatorAddress() string
func (*MsgWithdrawReward) GetValidatorAddress ¶ added in v0.3.0
func (x *MsgWithdrawReward) GetValidatorAddress() string
func (*MsgWithdrawReward) ProtoMessage ¶ added in v0.3.0
func (*MsgWithdrawReward) ProtoMessage()
func (*MsgWithdrawReward) ProtoReflect ¶ added in v0.3.0
func (x *MsgWithdrawReward) ProtoReflect() protoreflect.Message
func (*MsgWithdrawReward) Reset ¶ added in v0.3.0
func (x *MsgWithdrawReward) Reset()
func (*MsgWithdrawReward) String ¶ added in v0.3.0
func (x *MsgWithdrawReward) 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"`
// Legacy single bank send (kept for back-compat). Prefer `messages`.
Send *SendCoinsMessage `protobuf:"bytes,6,opt,name=send,proto3" json:"send,omitempty"`
// One or more messages (bank send, staking delegate/undelegate, reward
// withdrawal). When non-empty this takes precedence over `send`.
Messages []*Message `protobuf:"bytes,7,rep,name=messages,proto3" json:"messages,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) GetMessages ¶ added in v0.3.0
func (x *SigningInput) GetMessages() []*Message
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