Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - type SigningInput
 - func (*SigningInput) Descriptor() ([]byte, []int)deprecated
 - func (x *SigningInput) GetChainId() string
 - func (x *SigningInput) GetFee() []byte
 - func (x *SigningInput) GetPrivateKey() []byte
 - func (x *SigningInput) GetPublicKey() []byte
 - func (x *SigningInput) GetSequence() uint64
 - func (x *SigningInput) GetTfuelAmount() []byte
 - func (x *SigningInput) GetThetaAmount() []byte
 - 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 (x *SigningOutput) GetSignature() []byte
 - 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_Theta_proto protoreflect.FileDescriptor
    Functions ¶
This section is empty.
Types ¶
type SigningInput ¶
type SigningInput struct {
	// / Chain ID string, mainnet, testnet and privatenet
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// / Recipient address
	ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// / Theta token amount to send in wei (uint256, serialized big endian)
	ThetaAmount []byte `protobuf:"bytes,3,opt,name=theta_amount,json=thetaAmount,proto3" json:"theta_amount,omitempty"`
	// / TFuel token amount to send in wei (uint256, serialized big endian)
	TfuelAmount []byte `protobuf:"bytes,4,opt,name=tfuel_amount,json=tfuelAmount,proto3" json:"tfuel_amount,omitempty"`
	// / Sequence number of the transaction for the sender address
	Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// / Fee amount in TFuel wei for the transaction (uint256, serialized big endian)
	Fee []byte `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
	// / The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,7,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// / Public key
	PublicKey []byte `protobuf:"bytes,8,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) GetChainId ¶
func (x *SigningInput) GetChainId() string
func (*SigningInput) GetFee ¶
func (x *SigningInput) GetFee() []byte
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) GetTfuelAmount ¶
func (x *SigningInput) GetTfuelAmount() []byte
func (*SigningInput) GetThetaAmount ¶
func (x *SigningInput) GetThetaAmount() []byte
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"`
	// / Signature
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// error code, 0 is ok, other codes will be treated as errors
	Error common.SigningError `protobuf:"varint,3,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	// error code description
	ErrorMessage string `protobuf:"bytes,4,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) GetSignature ¶
func (x *SigningOutput) GetSignature() []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
 Click to show internal directories. 
   Click to hide internal directories.