Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - type DelegationOperationData
 - func (*DelegationOperationData) Descriptor() ([]byte, []int)deprecated
 - func (x *DelegationOperationData) GetDelegate() string
 - func (*DelegationOperationData) ProtoMessage()
 - func (x *DelegationOperationData) ProtoReflect() protoreflect.Message
 - func (x *DelegationOperationData) Reset()
 - func (x *DelegationOperationData) String() string
 
- type FA12Parameters
 - func (*FA12Parameters) Descriptor() ([]byte, []int)deprecated
 - func (x *FA12Parameters) GetEntrypoint() string
 - func (x *FA12Parameters) GetFrom() string
 - func (x *FA12Parameters) GetTo() string
 - func (x *FA12Parameters) GetValue() string
 - func (*FA12Parameters) ProtoMessage()
 - func (x *FA12Parameters) ProtoReflect() protoreflect.Message
 - func (x *FA12Parameters) Reset()
 - func (x *FA12Parameters) String() string
 
- type FA2Parameters
 - func (*FA2Parameters) Descriptor() ([]byte, []int)deprecated
 - func (x *FA2Parameters) GetEntrypoint() string
 - func (x *FA2Parameters) GetTxsObject() []*TxObject
 - func (*FA2Parameters) ProtoMessage()
 - func (x *FA2Parameters) ProtoReflect() protoreflect.Message
 - func (x *FA2Parameters) Reset()
 - func (x *FA2Parameters) String() string
 
- type Operation
 - func (*Operation) Descriptor() ([]byte, []int)deprecated
 - func (x *Operation) GetCounter() int64
 - func (x *Operation) GetDelegationOperationData() *DelegationOperationData
 - func (x *Operation) GetFee() int64
 - func (x *Operation) GetGasLimit() int64
 - func (x *Operation) GetKind() Operation_OperationKind
 - func (x *Operation) GetOperationData() isOperation_OperationData
 - func (x *Operation) GetRevealOperationData() *RevealOperationData
 - func (x *Operation) GetSource() string
 - func (x *Operation) GetStorageLimit() int64
 - func (x *Operation) GetTransactionOperationData() *TransactionOperationData
 - func (*Operation) ProtoMessage()
 - func (x *Operation) ProtoReflect() protoreflect.Message
 - func (x *Operation) Reset()
 - func (x *Operation) String() string
 
- type OperationList
 - func (*OperationList) Descriptor() ([]byte, []int)deprecated
 - func (x *OperationList) GetBranch() string
 - func (x *OperationList) GetOperations() []*Operation
 - func (*OperationList) ProtoMessage()
 - func (x *OperationList) ProtoReflect() protoreflect.Message
 - func (x *OperationList) Reset()
 - func (x *OperationList) String() string
 
- type OperationParameters
 - func (*OperationParameters) Descriptor() ([]byte, []int)deprecated
 - func (x *OperationParameters) GetFa12Parameters() *FA12Parameters
 - func (x *OperationParameters) GetFa2Parameters() *FA2Parameters
 - func (x *OperationParameters) GetParameters() isOperationParameters_Parameters
 - func (*OperationParameters) ProtoMessage()
 - func (x *OperationParameters) ProtoReflect() protoreflect.Message
 - func (x *OperationParameters) Reset()
 - func (x *OperationParameters) String() string
 
- type OperationParameters_Fa12Parameters
 - type OperationParameters_Fa2Parameters
 - type Operation_DelegationOperationData
 - type Operation_OperationKind
 - func (Operation_OperationKind) Descriptor() protoreflect.EnumDescriptor
 - func (x Operation_OperationKind) Enum() *Operation_OperationKind
 - func (Operation_OperationKind) EnumDescriptor() ([]byte, []int)deprecated
 - func (x Operation_OperationKind) Number() protoreflect.EnumNumber
 - func (x Operation_OperationKind) String() string
 - func (Operation_OperationKind) Type() protoreflect.EnumType
 
- type Operation_RevealOperationData
 - type Operation_TransactionOperationData
 - type RevealOperationData
 - func (*RevealOperationData) Descriptor() ([]byte, []int)deprecated
 - func (x *RevealOperationData) GetPublicKey() []byte
 - func (*RevealOperationData) ProtoMessage()
 - func (x *RevealOperationData) ProtoReflect() protoreflect.Message
 - func (x *RevealOperationData) Reset()
 - func (x *RevealOperationData) String() string
 
- type SigningInput
 - func (*SigningInput) Descriptor() ([]byte, []int)deprecated
 - func (x *SigningInput) GetEncodedOperations() []byte
 - func (x *SigningInput) GetOperationList() *OperationList
 - func (x *SigningInput) GetPrivateKey() []byte
 - 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
 
- type TransactionOperationData
 - func (*TransactionOperationData) Descriptor() ([]byte, []int)deprecated
 - func (x *TransactionOperationData) GetAmount() int64
 - func (x *TransactionOperationData) GetDestination() string
 - func (x *TransactionOperationData) GetEncodedParameter() []byte
 - func (x *TransactionOperationData) GetParameters() *OperationParameters
 - func (*TransactionOperationData) ProtoMessage()
 - func (x *TransactionOperationData) ProtoReflect() protoreflect.Message
 - func (x *TransactionOperationData) Reset()
 - func (x *TransactionOperationData) String() string
 
- type TxObject
 - type Txs
 
Constants ¶
This section is empty.
Variables ¶
var ( Operation_OperationKind_name = map[int32]string{ 0: "ENDORSEMENT", 107: "REVEAL", 108: "TRANSACTION", 110: "DELEGATION", } Operation_OperationKind_value = map[string]int32{ "ENDORSEMENT": 0, "REVEAL": 107, "TRANSACTION": 108, "DELEGATION": 110, } )
Enum value maps for Operation_OperationKind.
var File_Tezos_proto protoreflect.FileDescriptor
    Functions ¶
This section is empty.
Types ¶
type DelegationOperationData ¶
type DelegationOperationData struct {
	Delegate string `protobuf:"bytes,1,opt,name=delegate,proto3" json:"delegate,omitempty"`
	// contains filtered or unexported fields
}
    Delegation operation specific data. Next field: 2
        
          
            func (*DelegationOperationData) Descriptor
            deprecated
            
          
  
    
  
      
      func (*DelegationOperationData) Descriptor() ([]byte, []int)
Deprecated: Use DelegationOperationData.ProtoReflect.Descriptor instead.
func (*DelegationOperationData) GetDelegate ¶
func (x *DelegationOperationData) GetDelegate() string
func (*DelegationOperationData) ProtoMessage ¶
func (*DelegationOperationData) ProtoMessage()
func (*DelegationOperationData) ProtoReflect ¶
func (x *DelegationOperationData) ProtoReflect() protoreflect.Message
func (*DelegationOperationData) Reset ¶
func (x *DelegationOperationData) Reset()
func (*DelegationOperationData) String ¶
func (x *DelegationOperationData) String() string
type FA12Parameters ¶
type FA12Parameters struct {
	Entrypoint string `protobuf:"bytes,1,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"`
	From       string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To         string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Value      string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*FA12Parameters) Descriptor
            deprecated
            
          
  
    
  
      
      func (*FA12Parameters) Descriptor() ([]byte, []int)
Deprecated: Use FA12Parameters.ProtoReflect.Descriptor instead.
func (*FA12Parameters) GetEntrypoint ¶
func (x *FA12Parameters) GetEntrypoint() string
func (*FA12Parameters) GetFrom ¶
func (x *FA12Parameters) GetFrom() string
func (*FA12Parameters) GetTo ¶
func (x *FA12Parameters) GetTo() string
func (*FA12Parameters) GetValue ¶
func (x *FA12Parameters) GetValue() string
func (*FA12Parameters) ProtoMessage ¶
func (*FA12Parameters) ProtoMessage()
func (*FA12Parameters) ProtoReflect ¶
func (x *FA12Parameters) ProtoReflect() protoreflect.Message
func (*FA12Parameters) Reset ¶
func (x *FA12Parameters) Reset()
func (*FA12Parameters) String ¶
func (x *FA12Parameters) String() string
type FA2Parameters ¶
type FA2Parameters struct {
	Entrypoint string      `protobuf:"bytes,1,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"`
	TxsObject  []*TxObject `protobuf:"bytes,2,rep,name=txs_object,json=txsObject,proto3" json:"txs_object,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*FA2Parameters) Descriptor
            deprecated
            
          
  
    
  
      
      func (*FA2Parameters) Descriptor() ([]byte, []int)
Deprecated: Use FA2Parameters.ProtoReflect.Descriptor instead.
func (*FA2Parameters) GetEntrypoint ¶
func (x *FA2Parameters) GetEntrypoint() string
func (*FA2Parameters) GetTxsObject ¶
func (x *FA2Parameters) GetTxsObject() []*TxObject
func (*FA2Parameters) ProtoMessage ¶
func (*FA2Parameters) ProtoMessage()
func (*FA2Parameters) ProtoReflect ¶
func (x *FA2Parameters) ProtoReflect() protoreflect.Message
func (*FA2Parameters) Reset ¶
func (x *FA2Parameters) Reset()
func (*FA2Parameters) String ¶
func (x *FA2Parameters) String() string
type Operation ¶
type Operation struct {
	// counter
	Counter int64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"`
	// source account
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// fee
	Fee int64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
	// gas limit
	GasLimit int64 `protobuf:"varint,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// storage limit
	StorageLimit int64 `protobuf:"varint,5,opt,name=storage_limit,json=storageLimit,proto3" json:"storage_limit,omitempty"`
	// Operation type
	Kind Operation_OperationKind `protobuf:"varint,7,opt,name=kind,proto3,enum=TW.Tezos.Proto.Operation_OperationKind" json:"kind,omitempty"`
	// Operation specific data depending on the type of the operation.
	//
	// Types that are valid to be assigned to OperationData:
	//
	//	*Operation_RevealOperationData
	//	*Operation_TransactionOperationData
	//	*Operation_DelegationOperationData
	OperationData isOperation_OperationData `protobuf_oneof:"operation_data"`
	// contains filtered or unexported fields
}
    An operation that can be applied to the Tezos blockchain. Next field: 12
        
          
            func (*Operation) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Operation) GetCounter ¶
func (*Operation) GetDelegationOperationData ¶
func (x *Operation) GetDelegationOperationData() *DelegationOperationData
func (*Operation) GetGasLimit ¶
func (*Operation) GetKind ¶
func (x *Operation) GetKind() Operation_OperationKind
func (*Operation) GetOperationData ¶
func (x *Operation) GetOperationData() isOperation_OperationData
func (*Operation) GetRevealOperationData ¶
func (x *Operation) GetRevealOperationData() *RevealOperationData
func (*Operation) GetStorageLimit ¶
func (*Operation) GetTransactionOperationData ¶
func (x *Operation) GetTransactionOperationData() *TransactionOperationData
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) ProtoReflect ¶
func (x *Operation) ProtoReflect() protoreflect.Message
type OperationList ¶
type OperationList struct {
	// branch
	Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
	// list of operations
	Operations []*Operation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
	// contains filtered or unexported fields
}
    A list of operations and a branch. Next field: 3
        
          
            func (*OperationList) Descriptor
            deprecated
            
          
  
    
  
      
      func (*OperationList) Descriptor() ([]byte, []int)
Deprecated: Use OperationList.ProtoReflect.Descriptor instead.
func (*OperationList) GetBranch ¶
func (x *OperationList) GetBranch() string
func (*OperationList) GetOperations ¶
func (x *OperationList) GetOperations() []*Operation
func (*OperationList) ProtoMessage ¶
func (*OperationList) ProtoMessage()
func (*OperationList) ProtoReflect ¶
func (x *OperationList) ProtoReflect() protoreflect.Message
func (*OperationList) Reset ¶
func (x *OperationList) Reset()
func (*OperationList) String ¶
func (x *OperationList) String() string
type OperationParameters ¶
type OperationParameters struct {
	// Types that are valid to be assigned to Parameters:
	//
	//	*OperationParameters_Fa12Parameters
	//	*OperationParameters_Fa2Parameters
	Parameters isOperationParameters_Parameters `protobuf_oneof:"parameters"`
	// contains filtered or unexported fields
}
    Generic operation parameters
        
          
            func (*OperationParameters) Descriptor
            deprecated
            
          
  
    
  
      
      func (*OperationParameters) Descriptor() ([]byte, []int)
Deprecated: Use OperationParameters.ProtoReflect.Descriptor instead.
func (*OperationParameters) GetFa12Parameters ¶
func (x *OperationParameters) GetFa12Parameters() *FA12Parameters
func (*OperationParameters) GetFa2Parameters ¶
func (x *OperationParameters) GetFa2Parameters() *FA2Parameters
func (*OperationParameters) GetParameters ¶
func (x *OperationParameters) GetParameters() isOperationParameters_Parameters
func (*OperationParameters) ProtoMessage ¶
func (*OperationParameters) ProtoMessage()
func (*OperationParameters) ProtoReflect ¶
func (x *OperationParameters) ProtoReflect() protoreflect.Message
func (*OperationParameters) Reset ¶
func (x *OperationParameters) Reset()
func (*OperationParameters) String ¶
func (x *OperationParameters) String() string
type OperationParameters_Fa12Parameters ¶
type OperationParameters_Fa12Parameters struct {
	Fa12Parameters *FA12Parameters `protobuf:"bytes,1,opt,name=fa12_parameters,json=fa12Parameters,proto3,oneof"`
}
    type OperationParameters_Fa2Parameters ¶
type OperationParameters_Fa2Parameters struct {
	Fa2Parameters *FA2Parameters `protobuf:"bytes,2,opt,name=fa2_parameters,json=fa2Parameters,proto3,oneof"`
}
    type Operation_DelegationOperationData ¶
type Operation_DelegationOperationData struct {
	DelegationOperationData *DelegationOperationData `protobuf:"bytes,11,opt,name=delegation_operation_data,json=delegationOperationData,proto3,oneof"`
}
    type Operation_OperationKind ¶
type Operation_OperationKind int32
Operation types
const ( // Note: Proto3 semantics require a zero value. Operation_ENDORSEMENT Operation_OperationKind = 0 Operation_REVEAL Operation_OperationKind = 107 Operation_TRANSACTION Operation_OperationKind = 108 Operation_DELEGATION Operation_OperationKind = 110 )
func (Operation_OperationKind) Descriptor ¶
func (Operation_OperationKind) Descriptor() protoreflect.EnumDescriptor
func (Operation_OperationKind) Enum ¶
func (x Operation_OperationKind) Enum() *Operation_OperationKind
        
          
            func (Operation_OperationKind) EnumDescriptor
            deprecated
            
          
  
    
  
      
      func (Operation_OperationKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Operation_OperationKind.Descriptor instead.
func (Operation_OperationKind) Number ¶
func (x Operation_OperationKind) Number() protoreflect.EnumNumber
func (Operation_OperationKind) String ¶
func (x Operation_OperationKind) String() string
func (Operation_OperationKind) Type ¶
func (Operation_OperationKind) Type() protoreflect.EnumType
type Operation_RevealOperationData ¶
type Operation_RevealOperationData struct {
	RevealOperationData *RevealOperationData `protobuf:"bytes,8,opt,name=reveal_operation_data,json=revealOperationData,proto3,oneof"`
}
    type Operation_TransactionOperationData ¶
type Operation_TransactionOperationData struct {
	TransactionOperationData *TransactionOperationData `protobuf:"bytes,9,opt,name=transaction_operation_data,json=transactionOperationData,proto3,oneof"`
}
    type RevealOperationData ¶
type RevealOperationData struct {
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// contains filtered or unexported fields
}
    Reveal operation specific data. Next field: 2
        
          
            func (*RevealOperationData) Descriptor
            deprecated
            
          
  
    
  
      
      func (*RevealOperationData) Descriptor() ([]byte, []int)
Deprecated: Use RevealOperationData.ProtoReflect.Descriptor instead.
func (*RevealOperationData) GetPublicKey ¶
func (x *RevealOperationData) GetPublicKey() []byte
func (*RevealOperationData) ProtoMessage ¶
func (*RevealOperationData) ProtoMessage()
func (*RevealOperationData) ProtoReflect ¶
func (x *RevealOperationData) ProtoReflect() protoreflect.Message
func (*RevealOperationData) Reset ¶
func (x *RevealOperationData) Reset()
func (*RevealOperationData) String ¶
func (x *RevealOperationData) String() string
type SigningInput ¶
type SigningInput struct {
	// One or more operations
	OperationList *OperationList `protobuf:"bytes,1,opt,name=operation_list,json=operationList,proto3" json:"operation_list,omitempty"`
	// Encoded operation bytes obtained with $RPC_URL/chains/main/blocks/head/helpers/forge/operations, operation_list will be ignored.
	EncodedOperations []byte `protobuf:"bytes,2,opt,name=encoded_operations,json=encodedOperations,proto3" json:"encoded_operations,omitempty"`
	// The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}
    Input data necessary to create a signed Tezos transaction. Next field: 3
        
          
            func (*SigningInput) Descriptor
            deprecated
            
          
  
    
  
      
      func (*SigningInput) Descriptor() ([]byte, []int)
Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.
func (*SigningInput) GetEncodedOperations ¶
func (x *SigningInput) GetEncodedOperations() []byte
func (*SigningInput) GetOperationList ¶
func (x *SigningInput) GetOperationList() *OperationList
func (*SigningInput) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
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 {
	// The encoded transaction
	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. Next field: 2
        
          
            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
type TransactionOperationData ¶
type TransactionOperationData struct {
	Destination      string               `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	Amount           int64                `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	EncodedParameter []byte               `protobuf:"bytes,3,opt,name=encoded_parameter,json=encodedParameter,proto3" json:"encoded_parameter,omitempty"`
	Parameters       *OperationParameters `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}
    Transaction operation specific data. Next field: 3
        
          
            func (*TransactionOperationData) Descriptor
            deprecated
            
          
  
    
  
      
      func (*TransactionOperationData) Descriptor() ([]byte, []int)
Deprecated: Use TransactionOperationData.ProtoReflect.Descriptor instead.
func (*TransactionOperationData) GetAmount ¶
func (x *TransactionOperationData) GetAmount() int64
func (*TransactionOperationData) GetDestination ¶
func (x *TransactionOperationData) GetDestination() string
func (*TransactionOperationData) GetEncodedParameter ¶
func (x *TransactionOperationData) GetEncodedParameter() []byte
func (*TransactionOperationData) GetParameters ¶
func (x *TransactionOperationData) GetParameters() *OperationParameters
func (*TransactionOperationData) ProtoMessage ¶
func (*TransactionOperationData) ProtoMessage()
func (*TransactionOperationData) ProtoReflect ¶
func (x *TransactionOperationData) ProtoReflect() protoreflect.Message
func (*TransactionOperationData) Reset ¶
func (x *TransactionOperationData) Reset()
func (*TransactionOperationData) String ¶
func (x *TransactionOperationData) String() string
type TxObject ¶
type TxObject struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Txs  []*Txs `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*TxObject) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*TxObject) ProtoMessage ¶
func (*TxObject) ProtoMessage()
func (*TxObject) ProtoReflect ¶
func (x *TxObject) ProtoReflect() protoreflect.Message
type Txs ¶
type Txs struct {
	To      string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	Amount  string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*Txs) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Txs) GetTokenId ¶
func (*Txs) ProtoMessage ¶
func (*Txs) ProtoMessage()
func (*Txs) ProtoReflect ¶
func (x *Txs) ProtoReflect() protoreflect.Message