Documentation
¶
Index ¶
- Variables
- type BondPayload
- func (*BondPayload) Descriptor() ([]byte, []int)deprecated
- func (x *BondPayload) GetPublicKey() string
- func (x *BondPayload) GetReceiver() string
- func (x *BondPayload) GetSender() string
- func (x *BondPayload) GetStake() int64
- func (*BondPayload) ProtoMessage()
- func (x *BondPayload) ProtoReflect() protoreflect.Message
- func (x *BondPayload) Reset()
- func (x *BondPayload) String() string
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetTransaction() *TransactionMessage
- 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) GetSignature() []byte
- func (x *SigningOutput) GetSignedTransactionData() []byte
- func (x *SigningOutput) GetTransactionId() []byte
- func (*SigningOutput) ProtoMessage()
- func (x *SigningOutput) ProtoReflect() protoreflect.Message
- func (x *SigningOutput) Reset()
- func (x *SigningOutput) String() string
- type TransactionMessage
- func (*TransactionMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionMessage) GetBond() *BondPayload
- func (x *TransactionMessage) GetFee() int64
- func (x *TransactionMessage) GetLockTime() uint32
- func (x *TransactionMessage) GetMemo() string
- func (x *TransactionMessage) GetPayload() isTransactionMessage_Payload
- func (x *TransactionMessage) GetTransfer() *TransferPayload
- func (*TransactionMessage) ProtoMessage()
- func (x *TransactionMessage) ProtoReflect() protoreflect.Message
- func (x *TransactionMessage) Reset()
- func (x *TransactionMessage) String() string
- type TransactionMessage_Bond
- type TransactionMessage_Transfer
- type TransferPayload
- func (*TransferPayload) Descriptor() ([]byte, []int)deprecated
- func (x *TransferPayload) GetAmount() int64
- func (x *TransferPayload) GetReceiver() string
- func (x *TransferPayload) GetSender() string
- func (*TransferPayload) ProtoMessage()
- func (x *TransferPayload) ProtoReflect() protoreflect.Message
- func (x *TransferPayload) Reset()
- func (x *TransferPayload) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_Pactus_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BondPayload ¶
type BondPayload struct { // The sender's account address. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // The receiver's validator address. Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // The stake amount in NanoPAC. Stake int64 `protobuf:"varint,3,opt,name=stake,proto3" json:"stake,omitempty"` // The public key of the validator (only set when creating a new validator). PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
Bond payload for creating a Bond transaction from an account to a validator.
func (*BondPayload) Descriptor
deprecated
func (*BondPayload) Descriptor() ([]byte, []int)
Deprecated: Use BondPayload.ProtoReflect.Descriptor instead.
func (*BondPayload) GetPublicKey ¶
func (x *BondPayload) GetPublicKey() string
func (*BondPayload) GetReceiver ¶
func (x *BondPayload) GetReceiver() string
func (*BondPayload) GetSender ¶
func (x *BondPayload) GetSender() string
func (*BondPayload) GetStake ¶
func (x *BondPayload) GetStake() int64
func (*BondPayload) ProtoMessage ¶
func (*BondPayload) ProtoMessage()
func (*BondPayload) ProtoReflect ¶
func (x *BondPayload) ProtoReflect() protoreflect.Message
func (*BondPayload) Reset ¶
func (x *BondPayload) Reset()
func (*BondPayload) String ¶
func (x *BondPayload) String() string
type SigningInput ¶
type SigningInput struct { PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` Transaction *TransactionMessage `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,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) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetTransaction ¶
func (x *SigningInput) GetTransaction() *TransactionMessage
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 { // Transaction ID (Hash). TransactionId []byte `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Signed and encoded transaction bytes. SignedTransactionData []byte `` /* 126-byte string literal not displayed */ // Signature the signed transaction. Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // A possible error, `OK` if none. Error common.SigningError `protobuf:"varint,4,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"` // Detailed error message, if any. ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // contains filtered or unexported fields }
Transaction signing output.
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) GetSignature ¶
func (x *SigningOutput) GetSignature() []byte
func (*SigningOutput) GetSignedTransactionData ¶
func (x *SigningOutput) GetSignedTransactionData() []byte
func (*SigningOutput) GetTransactionId ¶
func (x *SigningOutput) GetTransactionId() []byte
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
type TransactionMessage ¶
type TransactionMessage struct { // The lock time for the transaction. LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` // The transaction fee in NanoPAC. Fee int64 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` // A memo string for the transaction (optional). Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` // Types that are valid to be assigned to Payload: // // *TransactionMessage_Transfer // *TransactionMessage_Bond Payload isTransactionMessage_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*TransactionMessage) Descriptor
deprecated
func (*TransactionMessage) Descriptor() ([]byte, []int)
Deprecated: Use TransactionMessage.ProtoReflect.Descriptor instead.
func (*TransactionMessage) GetBond ¶
func (x *TransactionMessage) GetBond() *BondPayload
func (*TransactionMessage) GetFee ¶
func (x *TransactionMessage) GetFee() int64
func (*TransactionMessage) GetLockTime ¶
func (x *TransactionMessage) GetLockTime() uint32
func (*TransactionMessage) GetMemo ¶
func (x *TransactionMessage) GetMemo() string
func (*TransactionMessage) GetPayload ¶
func (x *TransactionMessage) GetPayload() isTransactionMessage_Payload
func (*TransactionMessage) GetTransfer ¶
func (x *TransactionMessage) GetTransfer() *TransferPayload
func (*TransactionMessage) ProtoMessage ¶
func (*TransactionMessage) ProtoMessage()
func (*TransactionMessage) ProtoReflect ¶
func (x *TransactionMessage) ProtoReflect() protoreflect.Message
func (*TransactionMessage) Reset ¶
func (x *TransactionMessage) Reset()
func (*TransactionMessage) String ¶
func (x *TransactionMessage) String() string
type TransactionMessage_Bond ¶
type TransactionMessage_Bond struct {
Bond *BondPayload `protobuf:"bytes,11,opt,name=bond,proto3,oneof"`
}
type TransactionMessage_Transfer ¶
type TransactionMessage_Transfer struct {
Transfer *TransferPayload `protobuf:"bytes,10,opt,name=transfer,proto3,oneof"`
}
type TransferPayload ¶
type TransferPayload struct { // The sender's account address. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // The receiver's account address. Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // The amount to be transferred, specified in NanoPAC. Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
Transfer payload for creating a Transfer transaction between two accounts.
func (*TransferPayload) Descriptor
deprecated
func (*TransferPayload) Descriptor() ([]byte, []int)
Deprecated: Use TransferPayload.ProtoReflect.Descriptor instead.
func (*TransferPayload) GetAmount ¶
func (x *TransferPayload) GetAmount() int64
func (*TransferPayload) GetReceiver ¶
func (x *TransferPayload) GetReceiver() string
func (*TransferPayload) GetSender ¶
func (x *TransferPayload) GetSender() string
func (*TransferPayload) ProtoMessage ¶
func (*TransferPayload) ProtoMessage()
func (*TransferPayload) ProtoReflect ¶
func (x *TransferPayload) ProtoReflect() protoreflect.Message
func (*TransferPayload) Reset ¶
func (x *TransferPayload) Reset()
func (*TransferPayload) String ¶
func (x *TransferPayload) String() string
Click to show internal directories.
Click to hide internal directories.