Documentation
¶
Index ¶
- Variables
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetAmount() uint64
- func (x *SigningInput) GetContract() string
- func (x *SigningInput) GetGasLimit() uint64
- func (x *SigningInput) GetGasPrice() uint64
- func (x *SigningInput) GetMethod() string
- func (x *SigningInput) GetNonce() uint32
- func (x *SigningInput) GetOwnerAddress() string
- func (x *SigningInput) GetOwnerPrivateKey() []byte
- func (x *SigningInput) GetPayerAddress() string
- func (x *SigningInput) GetPayerPrivateKey() []byte
- func (x *SigningInput) GetQueryAddress() string
- func (x *SigningInput) GetToAddress() 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) GetEncoded() []byte
- func (x *SigningOutput) GetError() common.SigningError
- func (x *SigningOutput) GetErrorMessage() 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 File_Ontology_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SigningInput ¶
type SigningInput struct {
// Contract ID, e.g. "ONT"
Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
// Method, e.g. "transfer"
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
// The secret private key used for signing (32 bytes).
OwnerPrivateKey []byte `protobuf:"bytes,3,opt,name=owner_private_key,json=ownerPrivateKey,proto3" json:"owner_private_key,omitempty"`
// base58 encode address string (160-bit number)
ToAddress string `protobuf:"bytes,4,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
// Transfer amount
Amount uint64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
// Private key of the payer
PayerPrivateKey []byte `protobuf:"bytes,6,opt,name=payer_private_key,json=payerPrivateKey,proto3" json:"payer_private_key,omitempty"`
// Gas price
GasPrice uint64 `protobuf:"varint,7,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
// Limit for gas used
GasLimit uint64 `protobuf:"varint,8,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
// base58 encode address string (160-bit number)
QueryAddress string `protobuf:"bytes,9,opt,name=query_address,json=queryAddress,proto3" json:"query_address,omitempty"`
// Nonce (should be larger than in the last transaction of the account)
Nonce uint32 `protobuf:"varint,10,opt,name=nonce,proto3" json:"nonce,omitempty"`
// base58 encode address string (160-bit number)
OwnerAddress string `protobuf:"bytes,11,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
// base58 encode address string (160-bit number)
PayerAddress string `protobuf:"bytes,12,opt,name=payer_address,json=payerAddress,proto3" json:"payer_address,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) GetAmount ¶
func (x *SigningInput) GetAmount() uint64
func (*SigningInput) GetContract ¶
func (x *SigningInput) GetContract() string
func (*SigningInput) GetGasLimit ¶
func (x *SigningInput) GetGasLimit() uint64
func (*SigningInput) GetGasPrice ¶
func (x *SigningInput) GetGasPrice() uint64
func (*SigningInput) GetMethod ¶
func (x *SigningInput) GetMethod() string
func (*SigningInput) GetNonce ¶
func (x *SigningInput) GetNonce() uint32
func (*SigningInput) GetOwnerAddress ¶
func (x *SigningInput) GetOwnerAddress() string
func (*SigningInput) GetOwnerPrivateKey ¶
func (x *SigningInput) GetOwnerPrivateKey() []byte
func (*SigningInput) GetPayerAddress ¶
func (x *SigningInput) GetPayerAddress() string
func (*SigningInput) GetPayerPrivateKey ¶
func (x *SigningInput) GetPayerPrivateKey() []byte
func (*SigningInput) GetQueryAddress ¶
func (x *SigningInput) GetQueryAddress() string
func (*SigningInput) GetToAddress ¶
func (x *SigningInput) GetToAddress() 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 {
// Signed and encoded transaction bytes.
Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
// error code, 0 is ok, other codes will be treated as errors
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) GetEncoded ¶
func (x *SigningOutput) GetEncoded() []byte
func (*SigningOutput) GetError ¶
func (x *SigningOutput) GetError() common.SigningError
func (*SigningOutput) GetErrorMessage ¶
func (x *SigningOutput) GetErrorMessage() 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.