Documentation
¶
Index ¶
- Variables
- type Asset
- type KeyType
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetAsset() *Asset
- func (x *SigningInput) GetChainId() []byte
- func (x *SigningInput) GetCurrency() string
- func (x *SigningInput) GetExpiration() int32
- func (x *SigningInput) GetMemo() string
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetPrivateKeyType() KeyType
- func (x *SigningInput) GetRecipient() string
- func (x *SigningInput) GetReferenceBlockId() []byte
- func (x *SigningInput) GetReferenceBlockTime() int32
- func (x *SigningInput) GetSender() string
- 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) GetError() common.SigningError
- func (x *SigningOutput) GetErrorMessage() string
- func (x *SigningOutput) GetJsonEncoded() 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 ¶
View Source
var ( KeyType_name = map[int32]string{ 0: "LEGACY", 1: "MODERNK1", 2: "MODERNR1", } KeyType_value = map[string]int32{ "LEGACY": 0, "MODERNK1": 1, "MODERNR1": 2, } )
Enum value maps for KeyType.
View Source
var File_EOS_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
// Total amount
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
// Number of decimals defined
Decimals uint32 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"`
// Asset symbol
Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
// contains filtered or unexported fields
}
Values for an Asset object.
func (*Asset) Descriptor
deprecated
func (*Asset) GetDecimals ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type KeyType ¶
type KeyType int32
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) EnumDescriptor
deprecated
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
func (KeyType) Type ¶
func (KeyType) Type() protoreflect.EnumType
type SigningInput ¶
type SigningInput struct {
// Chain id (uint256, serialized big endian)
ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
// Reference Block Id (uint256, serialized big endian)
ReferenceBlockId []byte `protobuf:"bytes,2,opt,name=reference_block_id,json=referenceBlockId,proto3" json:"reference_block_id,omitempty"`
// Timestamp on the reference block
ReferenceBlockTime int32 `protobuf:"fixed32,3,opt,name=reference_block_time,json=referenceBlockTime,proto3" json:"reference_block_time,omitempty"`
// Currency (e.g. "eosio.token")
Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"`
// Sender's username
Sender string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
// Recipient's username
Recipient string `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"`
// Memo attached to the transaction
Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"`
// Asset details and amount
Asset *Asset `protobuf:"bytes,8,opt,name=asset,proto3" json:"asset,omitempty"`
// Sender's secret private key used for signing (32 bytes).
PrivateKey []byte `protobuf:"bytes,9,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// Type of the private key
PrivateKeyType KeyType `` /* 133-byte string literal not displayed */
// Expiration of the transaction, if not set, default is reference_block_time + 3600 seconds
Expiration int32 `protobuf:"fixed32,11,opt,name=expiration,proto3" json:"expiration,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) GetAsset ¶
func (x *SigningInput) GetAsset() *Asset
func (*SigningInput) GetChainId ¶
func (x *SigningInput) GetChainId() []byte
func (*SigningInput) GetCurrency ¶
func (x *SigningInput) GetCurrency() string
func (*SigningInput) GetExpiration ¶
func (x *SigningInput) GetExpiration() int32
func (*SigningInput) GetMemo ¶
func (x *SigningInput) GetMemo() string
func (*SigningInput) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetPrivateKeyType ¶
func (x *SigningInput) GetPrivateKeyType() KeyType
func (*SigningInput) GetRecipient ¶
func (x *SigningInput) GetRecipient() string
func (*SigningInput) GetReferenceBlockId ¶
func (x *SigningInput) GetReferenceBlockId() []byte
func (*SigningInput) GetReferenceBlockTime ¶
func (x *SigningInput) GetReferenceBlockTime() int32
func (*SigningInput) GetSender ¶
func (x *SigningInput) GetSender() string
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 {
// JSON of the packed transaction.
JsonEncoded string `protobuf:"bytes,1,opt,name=json_encoded,json=jsonEncoded,proto3" json:"json_encoded,omitempty"`
// Optional error
Error common.SigningError `protobuf:"varint,2,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
// error code description
ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,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) GetJsonEncoded ¶
func (x *SigningOutput) GetJsonEncoded() 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
Click to show internal directories.
Click to hide internal directories.