Documentation
¶
Index ¶
- Variables
- type Amount
- type BroadcastMode
- func (BroadcastMode) Descriptor() protoreflect.EnumDescriptor
- func (x BroadcastMode) Enum() *BroadcastMode
- func (BroadcastMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x BroadcastMode) Number() protoreflect.EnumNumber
- func (x BroadcastMode) String() string
- func (BroadcastMode) Type() protoreflect.EnumType
- type EncodingMode
- func (EncodingMode) Descriptor() protoreflect.EnumDescriptor
- func (x EncodingMode) Enum() *EncodingMode
- func (EncodingMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x EncodingMode) Number() protoreflect.EnumNumber
- func (x EncodingMode) String() string
- func (EncodingMode) Type() protoreflect.EnumType
- type Fee
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetBridgeTransferOut() *Message_BridgeTransferOut
- func (x *Message) GetMessageOneof() isMessage_MessageOneof
- func (x *Message) GetSendCoinsMessage() *Message_Send
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_BridgeTransferOut
- func (*Message_BridgeTransferOut) Descriptor() ([]byte, []int)deprecated
- func (x *Message_BridgeTransferOut) GetAmount() *Amount
- func (x *Message_BridgeTransferOut) GetFromAddress() string
- func (x *Message_BridgeTransferOut) GetToAddress() string
- func (x *Message_BridgeTransferOut) GetTypePrefix() string
- func (*Message_BridgeTransferOut) ProtoMessage()
- func (x *Message_BridgeTransferOut) ProtoReflect() protoreflect.Message
- func (x *Message_BridgeTransferOut) Reset()
- func (x *Message_BridgeTransferOut) String() string
- type Message_BridgeTransferOut_
- type Message_Send
- func (*Message_Send) Descriptor() ([]byte, []int)deprecated
- func (x *Message_Send) GetAmounts() []*Amount
- func (x *Message_Send) GetFromAddress() string
- func (x *Message_Send) GetToAddress() string
- func (x *Message_Send) GetTypePrefix() string
- func (*Message_Send) ProtoMessage()
- func (x *Message_Send) ProtoReflect() protoreflect.Message
- func (x *Message_Send) Reset()
- func (x *Message_Send) String() string
- type Message_SendCoinsMessage
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetAccountNumber() uint64
- func (x *SigningInput) GetCosmosChainId() string
- func (x *SigningInput) GetEncodingMode() EncodingMode
- func (x *SigningInput) GetEthChainId() string
- func (x *SigningInput) GetFee() *Fee
- func (x *SigningInput) GetMemo() string
- func (x *SigningInput) GetMessages() []*Message
- func (x *SigningInput) GetMode() BroadcastMode
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetPublicKey() []byte
- func (x *SigningInput) GetSequence() uint64
- func (x *SigningInput) GetSigningMode() SigningMode
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningMode
- func (SigningMode) Descriptor() protoreflect.EnumDescriptor
- func (x SigningMode) Enum() *SigningMode
- func (SigningMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SigningMode) Number() protoreflect.EnumNumber
- func (x SigningMode) String() string
- func (SigningMode) Type() protoreflect.EnumType
- type SigningOutput
- func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningOutput) GetError() common.SigningError
- func (x *SigningOutput) GetErrorMessage() string
- func (x *SigningOutput) GetSerialized() string
- func (x *SigningOutput) GetSignature() []byte
- func (x *SigningOutput) GetSignatureJson() 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 ( BroadcastMode_name = map[int32]string{ 0: "SYNC", 1: "ASYNC", } BroadcastMode_value = map[string]int32{ "SYNC": 0, "ASYNC": 1, } )
Enum value maps for BroadcastMode.
var ( EncodingMode_name = map[int32]string{ 0: "Protobuf", } EncodingMode_value = map[string]int32{ "Protobuf": 0, } )
Enum value maps for EncodingMode.
var ( SigningMode_name = map[int32]string{ 0: "Eip712", } SigningMode_value = map[string]int32{ "Eip712": 0, } )
Enum value maps for SigningMode.
var File_Greenfield_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Amount ¶
type Amount struct {
// name of the denomination
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
// amount, number as string
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
A denomination and an amount
func (*Amount) Descriptor
deprecated
func (*Amount) ProtoMessage ¶
func (*Amount) ProtoMessage()
func (*Amount) ProtoReflect ¶
func (x *Amount) ProtoReflect() protoreflect.Message
type BroadcastMode ¶
type BroadcastMode int32
Transaction broadcast mode
const ( BroadcastMode_SYNC BroadcastMode = 0 // Wait for the tx to pass/fail CheckTx BroadcastMode_ASYNC BroadcastMode = 1 // Don't wait for pass/fail CheckTx; send and return tx immediately )
func (BroadcastMode) Descriptor ¶
func (BroadcastMode) Descriptor() protoreflect.EnumDescriptor
func (BroadcastMode) Enum ¶
func (x BroadcastMode) Enum() *BroadcastMode
func (BroadcastMode) EnumDescriptor
deprecated
func (BroadcastMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use BroadcastMode.Descriptor instead.
func (BroadcastMode) Number ¶
func (x BroadcastMode) Number() protoreflect.EnumNumber
func (BroadcastMode) String ¶
func (x BroadcastMode) String() string
func (BroadcastMode) Type ¶
func (BroadcastMode) Type() protoreflect.EnumType
type EncodingMode ¶
type EncodingMode int32
Options for transaction encoding. Consider adding Json mode.
const (
EncodingMode_Protobuf EncodingMode = 0 // Protobuf-serialized (binary)
)
func (EncodingMode) Descriptor ¶
func (EncodingMode) Descriptor() protoreflect.EnumDescriptor
func (EncodingMode) Enum ¶
func (x EncodingMode) Enum() *EncodingMode
func (EncodingMode) EnumDescriptor
deprecated
func (EncodingMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use EncodingMode.Descriptor instead.
func (EncodingMode) Number ¶
func (x EncodingMode) Number() protoreflect.EnumNumber
func (EncodingMode) String ¶
func (x EncodingMode) String() string
func (EncodingMode) Type ¶
func (EncodingMode) Type() protoreflect.EnumType
type Fee ¶
type Fee struct {
// Fee amount(s)
Amounts []*Amount `protobuf:"bytes,1,rep,name=amounts,proto3" json:"amounts,omitempty"`
// Gas price
Gas uint64 `protobuf:"varint,2,opt,name=gas,proto3" json:"gas,omitempty"`
// contains filtered or unexported fields
}
Fee incl. gas
func (*Fee) Descriptor
deprecated
func (*Fee) GetAmounts ¶
func (*Fee) ProtoMessage ¶
func (*Fee) ProtoMessage()
func (*Fee) ProtoReflect ¶
func (x *Fee) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct {
// The payload message
//
// Types that are valid to be assigned to MessageOneof:
//
// *Message_SendCoinsMessage
// *Message_BridgeTransferOut_
MessageOneof isMessage_MessageOneof `protobuf_oneof:"message_oneof"`
// contains filtered or unexported fields
}
A transaction payload message
func (*Message) Descriptor
deprecated
func (*Message) GetBridgeTransferOut ¶
func (x *Message) GetBridgeTransferOut() *Message_BridgeTransferOut
func (*Message) GetMessageOneof ¶
func (x *Message) GetMessageOneof() isMessage_MessageOneof
func (*Message) GetSendCoinsMessage ¶
func (x *Message) GetSendCoinsMessage() *Message_Send
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_BridgeTransferOut ¶
type Message_BridgeTransferOut struct {
// In most cases, `from_address` and `to_address` are equal.
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"`
Amount *Amount `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
// Optional. Default `greenfield.bridge.MsgTransferOut`.
TypePrefix string `protobuf:"bytes,4,opt,name=type_prefix,json=typePrefix,proto3" json:"type_prefix,omitempty"`
// contains filtered or unexported fields
}
greenfield/MsgTransferOut Used to transfer BNB Greenfield to BSC blockchain.
func (*Message_BridgeTransferOut) Descriptor
deprecated
func (*Message_BridgeTransferOut) Descriptor() ([]byte, []int)
Deprecated: Use Message_BridgeTransferOut.ProtoReflect.Descriptor instead.
func (*Message_BridgeTransferOut) GetAmount ¶
func (x *Message_BridgeTransferOut) GetAmount() *Amount
func (*Message_BridgeTransferOut) GetFromAddress ¶
func (x *Message_BridgeTransferOut) GetFromAddress() string
func (*Message_BridgeTransferOut) GetToAddress ¶
func (x *Message_BridgeTransferOut) GetToAddress() string
func (*Message_BridgeTransferOut) GetTypePrefix ¶
func (x *Message_BridgeTransferOut) GetTypePrefix() string
func (*Message_BridgeTransferOut) ProtoMessage ¶
func (*Message_BridgeTransferOut) ProtoMessage()
func (*Message_BridgeTransferOut) ProtoReflect ¶
func (x *Message_BridgeTransferOut) ProtoReflect() protoreflect.Message
func (*Message_BridgeTransferOut) Reset ¶
func (x *Message_BridgeTransferOut) Reset()
func (*Message_BridgeTransferOut) String ¶
func (x *Message_BridgeTransferOut) String() string
type Message_BridgeTransferOut_ ¶
type Message_BridgeTransferOut_ struct {
BridgeTransferOut *Message_BridgeTransferOut `protobuf:"bytes,2,opt,name=bridge_transfer_out,json=bridgeTransferOut,proto3,oneof"`
}
type Message_Send ¶
type Message_Send 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"`
Amounts []*Amount `protobuf:"bytes,3,rep,name=amounts,proto3" json:"amounts,omitempty"`
// Optional. Default `cosmos.bank.v1beta1.MsgSend`.
TypePrefix string `protobuf:"bytes,4,opt,name=type_prefix,json=typePrefix,proto3" json:"type_prefix,omitempty"`
// contains filtered or unexported fields
}
cosmos-sdk/MsgSend
func (*Message_Send) Descriptor
deprecated
func (*Message_Send) Descriptor() ([]byte, []int)
Deprecated: Use Message_Send.ProtoReflect.Descriptor instead.
func (*Message_Send) GetAmounts ¶
func (x *Message_Send) GetAmounts() []*Amount
func (*Message_Send) GetFromAddress ¶
func (x *Message_Send) GetFromAddress() string
func (*Message_Send) GetToAddress ¶
func (x *Message_Send) GetToAddress() string
func (*Message_Send) GetTypePrefix ¶
func (x *Message_Send) GetTypePrefix() string
func (*Message_Send) ProtoMessage ¶
func (*Message_Send) ProtoMessage()
func (*Message_Send) ProtoReflect ¶
func (x *Message_Send) ProtoReflect() protoreflect.Message
func (*Message_Send) Reset ¶
func (x *Message_Send) Reset()
func (*Message_Send) String ¶
func (x *Message_Send) String() string
type Message_SendCoinsMessage ¶
type Message_SendCoinsMessage struct {
SendCoinsMessage *Message_Send `protobuf:"bytes,1,opt,name=send_coins_message,json=sendCoinsMessage,proto3,oneof"`
}
type SigningInput ¶
type SigningInput struct {
// An encoding mode.
EncodingMode EncodingMode `` /* 136-byte string literal not displayed */
// A signing mode.
SigningMode SigningMode `` /* 132-byte string literal not displayed */
// Source account number
AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
// ETH Chain ID (string).
// Must be set if `signing_mode` is Eip712.
EthChainId string `protobuf:"bytes,4,opt,name=eth_chain_id,json=ethChainId,proto3" json:"eth_chain_id,omitempty"`
// Cosmos Chain ID (string)
CosmosChainId string `protobuf:"bytes,5,opt,name=cosmos_chain_id,json=cosmosChainId,proto3" json:"cosmos_chain_id,omitempty"`
// Transaction fee
Fee *Fee `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
// Optional memo
Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"`
// Sequence number (account specific)
Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"`
// The secret private key used for signing (32 bytes).
PrivateKey []byte `protobuf:"bytes,9,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// Message payloads.
Messages []*Message `protobuf:"bytes,10,rep,name=messages,proto3" json:"messages,omitempty"`
// Broadcast mode (included in output, relevant when broadcasting)
Mode BroadcastMode `protobuf:"varint,11,opt,name=mode,proto3,enum=TW.Greenfield.Proto.BroadcastMode" json:"mode,omitempty"`
PublicKey []byte `protobuf:"bytes,12,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// contains filtered or unexported fields
}
Input data necessary to create a signed transaction.
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) GetCosmosChainId ¶
func (x *SigningInput) GetCosmosChainId() string
func (*SigningInput) GetEncodingMode ¶
func (x *SigningInput) GetEncodingMode() EncodingMode
func (*SigningInput) GetEthChainId ¶
func (x *SigningInput) GetEthChainId() string
func (*SigningInput) GetFee ¶
func (x *SigningInput) GetFee() *Fee
func (*SigningInput) GetMemo ¶
func (x *SigningInput) GetMemo() string
func (*SigningInput) GetMessages ¶
func (x *SigningInput) GetMessages() []*Message
func (*SigningInput) GetMode ¶
func (x *SigningInput) GetMode() BroadcastMode
func (*SigningInput) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetPublicKey ¶
func (x *SigningInput) GetPublicKey() []byte
func (*SigningInput) GetSequence ¶
func (x *SigningInput) GetSequence() uint64
func (*SigningInput) GetSigningMode ¶
func (x *SigningInput) GetSigningMode() SigningMode
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 SigningMode ¶
type SigningMode int32
Options for transaction signing. Consider adding Direct mode when it is supported.
const (
SigningMode_Eip712 SigningMode = 0
)
func (SigningMode) Descriptor ¶
func (SigningMode) Descriptor() protoreflect.EnumDescriptor
func (SigningMode) Enum ¶
func (x SigningMode) Enum() *SigningMode
func (SigningMode) EnumDescriptor
deprecated
func (SigningMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SigningMode.Descriptor instead.
func (SigningMode) Number ¶
func (x SigningMode) Number() protoreflect.EnumNumber
func (SigningMode) String ¶
func (x SigningMode) String() string
func (SigningMode) Type ¶
func (SigningMode) Type() protoreflect.EnumType
type SigningOutput ¶
type SigningOutput struct {
// Signature
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
// Signed transaction containing protobuf encoded, Base64-encoded form (Stargate case),
// wrapped in a ready-to-broadcast json.
Serialized string `protobuf:"bytes,2,opt,name=serialized,proto3" json:"serialized,omitempty"`
// signatures array json string
SignatureJson string `protobuf:"bytes,3,opt,name=signature_json,json=signatureJson,proto3" json:"signature_json,omitempty"`
// error description
ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
Error common.SigningError `protobuf:"varint,5,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
// contains filtered or unexported fields
}
Result containing the signed and encoded transaction.
func (*SigningOutput) Descriptor
deprecated
func (*SigningOutput) Descriptor() ([]byte, []int)
Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.
func (*SigningOutput) GetError ¶
func (x *SigningOutput) GetError() common.SigningError
func (*SigningOutput) GetErrorMessage ¶
func (x *SigningOutput) GetErrorMessage() string
func (*SigningOutput) GetSerialized ¶
func (x *SigningOutput) GetSerialized() string
func (*SigningOutput) GetSignature ¶
func (x *SigningOutput) GetSignature() []byte
func (*SigningOutput) GetSignatureJson ¶
func (x *SigningOutput) GetSignatureJson() 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