Documentation ¶
Index ¶
- Constants
- Variables
- func New(opts ...Option) (*tokensTxSystem, error)
- func NewGenericTx(tx *txsystem.Transaction) (txsystem.GenericTransaction, error)
- type BurnFungibleToken
- type BurnFungibleTokenAttributes
- func (*BurnFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *BurnFungibleTokenAttributes) GetBacklink() []byte
- func (x *BurnFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
- func (x *BurnFungibleTokenAttributes) GetNonce() []byte
- func (x *BurnFungibleTokenAttributes) GetType() []byte
- func (x *BurnFungibleTokenAttributes) GetValue() uint64
- func (*BurnFungibleTokenAttributes) ProtoMessage()
- func (x *BurnFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *BurnFungibleTokenAttributes) Reset()
- func (x *BurnFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
- func (x *BurnFungibleTokenAttributes) String() string
- type CreateFungibleTokenType
- type CreateFungibleTokenTypeAttributes
- func (*CreateFungibleTokenTypeAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFungibleTokenTypeAttributes) GetDecimalPlaces() uint32
- func (x *CreateFungibleTokenTypeAttributes) GetInvariantPredicate() []byte
- func (x *CreateFungibleTokenTypeAttributes) GetParentTypeId() []byte
- func (x *CreateFungibleTokenTypeAttributes) GetSubTypeCreationPredicate() []byte
- func (x *CreateFungibleTokenTypeAttributes) GetSubTypeCreationPredicateSignatures() [][]byte
- func (x *CreateFungibleTokenTypeAttributes) GetSymbol() string
- func (x *CreateFungibleTokenTypeAttributes) GetTokenCreationPredicate() []byte
- func (*CreateFungibleTokenTypeAttributes) ProtoMessage()
- func (x *CreateFungibleTokenTypeAttributes) ProtoReflect() protoreflect.Message
- func (x *CreateFungibleTokenTypeAttributes) Reset()
- func (x *CreateFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures(sigs [][]byte)
- func (x *CreateFungibleTokenTypeAttributes) String() string
- type CreateNonFungibleTokenType
- type CreateNonFungibleTokenTypeAttributes
- func (*CreateNonFungibleTokenTypeAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNonFungibleTokenTypeAttributes) GetDataUpdatePredicate() []byte
- func (x *CreateNonFungibleTokenTypeAttributes) GetInvariantPredicate() []byte
- func (x *CreateNonFungibleTokenTypeAttributes) GetParentTypeId() []byte
- func (x *CreateNonFungibleTokenTypeAttributes) GetSubTypeCreationPredicate() []byte
- func (x *CreateNonFungibleTokenTypeAttributes) GetSubTypeCreationPredicateSignatures() [][]byte
- func (x *CreateNonFungibleTokenTypeAttributes) GetSymbol() string
- func (x *CreateNonFungibleTokenTypeAttributes) GetTokenCreationPredicate() []byte
- func (*CreateNonFungibleTokenTypeAttributes) ProtoMessage()
- func (x *CreateNonFungibleTokenTypeAttributes) ProtoReflect() protoreflect.Message
- func (x *CreateNonFungibleTokenTypeAttributes) Reset()
- func (x *CreateNonFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures(sigs [][]byte)
- func (x *CreateNonFungibleTokenTypeAttributes) String() string
- type JoinFungibleToken
- type JoinFungibleTokenAttributes
- func (*JoinFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *JoinFungibleTokenAttributes) GetBacklink() []byte
- func (x *JoinFungibleTokenAttributes) GetBurnTransactions() []*txsystem.Transaction
- func (x *JoinFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
- func (x *JoinFungibleTokenAttributes) GetProofs() []*block.BlockProof
- func (*JoinFungibleTokenAttributes) ProtoMessage()
- func (x *JoinFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *JoinFungibleTokenAttributes) Reset()
- func (x *JoinFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
- func (x *JoinFungibleTokenAttributes) String() string
- type MintFungibleToken
- type MintFungibleTokenAttributes
- func (*MintFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *MintFungibleTokenAttributes) GetBearer() []byte
- func (x *MintFungibleTokenAttributes) GetTokenCreationPredicateSignatures() [][]byte
- func (x *MintFungibleTokenAttributes) GetType() []byte
- func (x *MintFungibleTokenAttributes) GetValue() uint64
- func (*MintFungibleTokenAttributes) ProtoMessage()
- func (x *MintFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *MintFungibleTokenAttributes) Reset()
- func (x *MintFungibleTokenAttributes) SetBearer(b []byte)
- func (x *MintFungibleTokenAttributes) SetTokenCreationPredicateSignatures(sigs [][]byte)
- func (x *MintFungibleTokenAttributes) String() string
- type MintNonFungibleToken
- type MintNonFungibleTokenAttributes
- func (*MintNonFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *MintNonFungibleTokenAttributes) GetBearer() []byte
- func (x *MintNonFungibleTokenAttributes) GetData() []byte
- func (x *MintNonFungibleTokenAttributes) GetDataUpdatePredicate() []byte
- func (x *MintNonFungibleTokenAttributes) GetNftType() []byte
- func (x *MintNonFungibleTokenAttributes) GetTokenCreationPredicateSignatures() [][]byte
- func (x *MintNonFungibleTokenAttributes) GetUri() string
- func (*MintNonFungibleTokenAttributes) ProtoMessage()
- func (x *MintNonFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *MintNonFungibleTokenAttributes) Reset()
- func (x *MintNonFungibleTokenAttributes) SetBearer(b []byte)
- func (x *MintNonFungibleTokenAttributes) SetTokenCreationPredicateSignatures(sigs [][]byte)
- func (x *MintNonFungibleTokenAttributes) String() string
- type Option
- type Options
- type Predicate
- type SplitFungibleToken
- type SplitFungibleTokenAttributes
- func (*SplitFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *SplitFungibleTokenAttributes) GetBacklink() []byte
- func (x *SplitFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
- func (x *SplitFungibleTokenAttributes) GetNewBearer() []byte
- func (x *SplitFungibleTokenAttributes) GetNonce() []byte
- func (x *SplitFungibleTokenAttributes) GetRemainingValue() uint64
- func (x *SplitFungibleTokenAttributes) GetTargetValue() uint64
- func (x *SplitFungibleTokenAttributes) GetType() []byte
- func (*SplitFungibleTokenAttributes) ProtoMessage()
- func (x *SplitFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *SplitFungibleTokenAttributes) Reset()
- func (x *SplitFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
- func (x *SplitFungibleTokenAttributes) String() string
- type TokenOwnershipProver
- type TokenState
- type TransferFungibleToken
- type TransferFungibleTokenAttributes
- func (*TransferFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *TransferFungibleTokenAttributes) GetBacklink() []byte
- func (x *TransferFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
- func (x *TransferFungibleTokenAttributes) GetNewBearer() []byte
- func (x *TransferFungibleTokenAttributes) GetNonce() []byte
- func (x *TransferFungibleTokenAttributes) GetType() []byte
- func (x *TransferFungibleTokenAttributes) GetValue() uint64
- func (*TransferFungibleTokenAttributes) ProtoMessage()
- func (x *TransferFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *TransferFungibleTokenAttributes) Reset()
- func (x *TransferFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
- func (x *TransferFungibleTokenAttributes) String() string
- type TransferNonFungibleToken
- type TransferNonFungibleTokenAttributes
- func (*TransferNonFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *TransferNonFungibleTokenAttributes) GetBacklink() []byte
- func (x *TransferNonFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
- func (x *TransferNonFungibleTokenAttributes) GetNewBearer() []byte
- func (x *TransferNonFungibleTokenAttributes) GetNftType() []byte
- func (x *TransferNonFungibleTokenAttributes) GetNonce() []byte
- func (*TransferNonFungibleTokenAttributes) ProtoMessage()
- func (x *TransferNonFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *TransferNonFungibleTokenAttributes) Reset()
- func (x *TransferNonFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
- func (x *TransferNonFungibleTokenAttributes) String() string
- type UpdateNonFungibleToken
- type UpdateNonFungibleTokenAttributes
- func (*UpdateNonFungibleTokenAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNonFungibleTokenAttributes) GetBacklink() []byte
- func (x *UpdateNonFungibleTokenAttributes) GetData() []byte
- func (x *UpdateNonFungibleTokenAttributes) GetDataUpdateSignatures() [][]byte
- func (*UpdateNonFungibleTokenAttributes) ProtoMessage()
- func (x *UpdateNonFungibleTokenAttributes) ProtoReflect() protoreflect.Message
- func (x *UpdateNonFungibleTokenAttributes) Reset()
- func (x *UpdateNonFungibleTokenAttributes) String() string
Constants ¶
const ( ErrStrSystemIdentifierIsNil = "system identifier is nil" ErrStrStateIsNil = "state is nil" ErrStrUnitIDIsZero = "unit ID cannot be zero" ErrStrInvalidSymbolName = "symbol name exceeds the allowed maximum length of 64 bytes" )
const ( TypeCreateNonFungibleTokenTypeAttributes = "CreateNonFungibleTokenTypeAttributes" TypeMintNonFungibleTokenAttributes = "MintNonFungibleTokenAttributes" TypeTransferNonFungibleTokenAttributes = "TransferNonFungibleTokenAttributes" TypeUpdateNonFungibleTokenAttributes = "UpdateNonFungibleTokenAttributes" TypeCreateFungibleTokenTypeAttributes = "CreateFungibleTokenTypeAttributes" TypeMintFungibleTokenAttributes = "MintFungibleTokenAttributes" TypeTransferFungibleTokenAttributes = "TransferFungibleTokenAttributes" TypeSplitFungibleTokenAttributes = "SplitFungibleTokenAttributes" TypeBurnFungibleTokenAttributes = "BurnFungibleTokenAttributes" TypeJoinFungibleTokenAttributes = "JoinFungibleTokenAttributes" )
Variables ¶
var DefaultTokenTxSystemIdentifier = []byte{0, 0, 0, 2}
var File_token_tx_proto protoreflect.FileDescriptor
Functions ¶
func NewGenericTx ¶
func NewGenericTx(tx *txsystem.Transaction) (txsystem.GenericTransaction, error)
Types ¶
type BurnFungibleToken ¶
type BurnFungibleToken interface { txsystem.GenericTransaction TypeID() []byte Value() uint64 Nonce() []byte Backlink() []byte InvariantPredicateSignatures() [][]byte }
token tx type interfaces
type BurnFungibleTokenAttributes ¶
type BurnFungibleTokenAttributes struct { // identifies the type of the token to burn; Type []byte `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // the value to burn Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` // the backlink to the previous transaction with this token Backlink []byte `protobuf:"bytes,4,opt,name=backlink,proto3" json:"backlink,omitempty"` // inputs to satisfy the token type invariant predicates down the inheritance chain InvariantPredicateSignatures [][]byte `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BurnFungibleTokenAttributes) Descriptor
deprecated
func (*BurnFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use BurnFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*BurnFungibleTokenAttributes) GetBacklink ¶
func (x *BurnFungibleTokenAttributes) GetBacklink() []byte
func (*BurnFungibleTokenAttributes) GetInvariantPredicateSignatures ¶
func (x *BurnFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
func (*BurnFungibleTokenAttributes) GetNonce ¶
func (x *BurnFungibleTokenAttributes) GetNonce() []byte
func (*BurnFungibleTokenAttributes) GetType ¶
func (x *BurnFungibleTokenAttributes) GetType() []byte
func (*BurnFungibleTokenAttributes) GetValue ¶
func (x *BurnFungibleTokenAttributes) GetValue() uint64
func (*BurnFungibleTokenAttributes) ProtoMessage ¶
func (*BurnFungibleTokenAttributes) ProtoMessage()
func (*BurnFungibleTokenAttributes) ProtoReflect ¶
func (x *BurnFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*BurnFungibleTokenAttributes) Reset ¶
func (x *BurnFungibleTokenAttributes) Reset()
func (*BurnFungibleTokenAttributes) SetInvariantPredicateSignatures ¶
func (x *BurnFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
func (*BurnFungibleTokenAttributes) String ¶
func (x *BurnFungibleTokenAttributes) String() string
type CreateFungibleTokenType ¶
type CreateFungibleTokenType interface { txsystem.GenericTransaction ParentTypeID() []byte Symbol() string DecimalPlaces() uint32 SubTypeCreationPredicate() []byte TokenCreationPredicate() []byte InvariantPredicate() []byte SubTypeCreationPredicateSignatures() [][]byte }
token tx type interfaces
type CreateFungibleTokenTypeAttributes ¶
type CreateFungibleTokenTypeAttributes struct { // is the symbol (short name) of this token type Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // identifies the parent type that the new type derives from; 0 indicates there is no parent type; ParentTypeId []byte `protobuf:"bytes,2,opt,name=parent_type_id,json=parentTypeId,proto3" json:"parent_type_id,omitempty"` // is the number of decimal places to display for values of tokens of the new type; DecimalPlaces uint32 `protobuf:"varint,3,opt,name=decimalPlaces,proto3" json:"decimalPlaces,omitempty"` // the predicate clause that controls defining new sub-types of this type; SubTypeCreationPredicate []byte `` /* 137-byte string literal not displayed */ // the predicate clause that controls creating new tokens of this type TokenCreationPredicate []byte `` /* 129-byte string literal not displayed */ // the invariant predicate clause that all tokens of this type (and of sub- types of this type) inherit into their bearer predicates; InvariantPredicate []byte `protobuf:"bytes,6,opt,name=invariant_predicate,json=invariantPredicate,proto3" json:"invariant_predicate,omitempty"` // inputs to satisfy the sub-type creation predicates of all parents. SubTypeCreationPredicateSignatures [][]byte `` /* 169-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateFungibleTokenTypeAttributes) Descriptor
deprecated
func (*CreateFungibleTokenTypeAttributes) Descriptor() ([]byte, []int)
Deprecated: Use CreateFungibleTokenTypeAttributes.ProtoReflect.Descriptor instead.
func (*CreateFungibleTokenTypeAttributes) GetDecimalPlaces ¶
func (x *CreateFungibleTokenTypeAttributes) GetDecimalPlaces() uint32
func (*CreateFungibleTokenTypeAttributes) GetInvariantPredicate ¶
func (x *CreateFungibleTokenTypeAttributes) GetInvariantPredicate() []byte
func (*CreateFungibleTokenTypeAttributes) GetParentTypeId ¶
func (x *CreateFungibleTokenTypeAttributes) GetParentTypeId() []byte
func (*CreateFungibleTokenTypeAttributes) GetSubTypeCreationPredicate ¶
func (x *CreateFungibleTokenTypeAttributes) GetSubTypeCreationPredicate() []byte
func (*CreateFungibleTokenTypeAttributes) GetSubTypeCreationPredicateSignatures ¶
func (x *CreateFungibleTokenTypeAttributes) GetSubTypeCreationPredicateSignatures() [][]byte
func (*CreateFungibleTokenTypeAttributes) GetSymbol ¶
func (x *CreateFungibleTokenTypeAttributes) GetSymbol() string
func (*CreateFungibleTokenTypeAttributes) GetTokenCreationPredicate ¶
func (x *CreateFungibleTokenTypeAttributes) GetTokenCreationPredicate() []byte
func (*CreateFungibleTokenTypeAttributes) ProtoMessage ¶
func (*CreateFungibleTokenTypeAttributes) ProtoMessage()
func (*CreateFungibleTokenTypeAttributes) ProtoReflect ¶
func (x *CreateFungibleTokenTypeAttributes) ProtoReflect() protoreflect.Message
func (*CreateFungibleTokenTypeAttributes) Reset ¶
func (x *CreateFungibleTokenTypeAttributes) Reset()
func (*CreateFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures ¶
func (x *CreateFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures(sigs [][]byte)
func (*CreateFungibleTokenTypeAttributes) String ¶
func (x *CreateFungibleTokenTypeAttributes) String() string
type CreateNonFungibleTokenType ¶
type CreateNonFungibleTokenType interface { txsystem.GenericTransaction ParentTypeID() []byte Symbol() string SubTypeCreationPredicate() []byte TokenCreationPredicate() []byte InvariantPredicate() []byte DataUpdatePredicate() []byte SubTypeCreationPredicateSignatures() [][]byte }
token tx type interfaces
type CreateNonFungibleTokenTypeAttributes ¶
type CreateNonFungibleTokenTypeAttributes struct { // is the symbol (short name) of this token type, up to 32 characters in the UTF-8 encoding; note that the symbols are not guaranteed to be unique; Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // identifies the parent type that this type derives from; 0 indicates there is no parent type; ParentTypeId []byte `protobuf:"bytes,2,opt,name=parent_type_id,json=parentTypeId,proto3" json:"parent_type_id,omitempty"` // the predicate clause that controls defining new sub-types of this type; SubTypeCreationPredicate []byte `` /* 137-byte string literal not displayed */ // the predicate clause that controls creating new tokens of this type TokenCreationPredicate []byte `` /* 129-byte string literal not displayed */ // the invariant predicate clause that all tokens of this type (and of sub- types of this type) inherit into their bearer predicates; InvariantPredicate []byte `protobuf:"bytes,5,opt,name=invariant_predicate,json=invariantPredicate,proto3" json:"invariant_predicate,omitempty"` // the clause that all tokens of this type (and of sub-types of this type) inherit into their data update predicates DataUpdatePredicate []byte `protobuf:"bytes,6,opt,name=data_update_predicate,json=dataUpdatePredicate,proto3" json:"data_update_predicate,omitempty"` // inputs to satisfy the sub-type creation predicates of all parents. SubTypeCreationPredicateSignatures [][]byte `` /* 169-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateNonFungibleTokenTypeAttributes) Descriptor
deprecated
func (*CreateNonFungibleTokenTypeAttributes) Descriptor() ([]byte, []int)
Deprecated: Use CreateNonFungibleTokenTypeAttributes.ProtoReflect.Descriptor instead.
func (*CreateNonFungibleTokenTypeAttributes) GetDataUpdatePredicate ¶
func (x *CreateNonFungibleTokenTypeAttributes) GetDataUpdatePredicate() []byte
func (*CreateNonFungibleTokenTypeAttributes) GetInvariantPredicate ¶
func (x *CreateNonFungibleTokenTypeAttributes) GetInvariantPredicate() []byte
func (*CreateNonFungibleTokenTypeAttributes) GetParentTypeId ¶
func (x *CreateNonFungibleTokenTypeAttributes) GetParentTypeId() []byte
func (*CreateNonFungibleTokenTypeAttributes) GetSubTypeCreationPredicate ¶
func (x *CreateNonFungibleTokenTypeAttributes) GetSubTypeCreationPredicate() []byte
func (*CreateNonFungibleTokenTypeAttributes) GetSubTypeCreationPredicateSignatures ¶
func (x *CreateNonFungibleTokenTypeAttributes) GetSubTypeCreationPredicateSignatures() [][]byte
func (*CreateNonFungibleTokenTypeAttributes) GetSymbol ¶
func (x *CreateNonFungibleTokenTypeAttributes) GetSymbol() string
func (*CreateNonFungibleTokenTypeAttributes) GetTokenCreationPredicate ¶
func (x *CreateNonFungibleTokenTypeAttributes) GetTokenCreationPredicate() []byte
func (*CreateNonFungibleTokenTypeAttributes) ProtoMessage ¶
func (*CreateNonFungibleTokenTypeAttributes) ProtoMessage()
func (*CreateNonFungibleTokenTypeAttributes) ProtoReflect ¶
func (x *CreateNonFungibleTokenTypeAttributes) ProtoReflect() protoreflect.Message
func (*CreateNonFungibleTokenTypeAttributes) Reset ¶
func (x *CreateNonFungibleTokenTypeAttributes) Reset()
func (*CreateNonFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures ¶
func (x *CreateNonFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures(sigs [][]byte)
func (*CreateNonFungibleTokenTypeAttributes) String ¶
func (x *CreateNonFungibleTokenTypeAttributes) String() string
type JoinFungibleToken ¶
type JoinFungibleToken interface { txsystem.GenericTransaction BurnTransactions() []BurnFungibleToken BlockProofs() []*block.BlockProof Backlink() []byte InvariantPredicateSignatures() [][]byte }
token tx type interfaces
type JoinFungibleTokenAttributes ¶
type JoinFungibleTokenAttributes struct { // the transactions that burned the source tokens; BurnTransactions []*txsystem.Transaction `protobuf:"bytes,1,rep,name=burn_transactions,json=burnTransactions,proto3" json:"burn_transactions,omitempty"` // block proofs for burn transactions Proofs []*block.BlockProof `protobuf:"bytes,2,rep,name=proofs,proto3" json:"proofs,omitempty"` // the backlink to the previous transaction with this token Backlink []byte `protobuf:"bytes,3,opt,name=backlink,proto3" json:"backlink,omitempty"` // inputs to satisfy the token type invariant predicates down the inheritance chain InvariantPredicateSignatures [][]byte `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*JoinFungibleTokenAttributes) Descriptor
deprecated
func (*JoinFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use JoinFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*JoinFungibleTokenAttributes) GetBacklink ¶
func (x *JoinFungibleTokenAttributes) GetBacklink() []byte
func (*JoinFungibleTokenAttributes) GetBurnTransactions ¶
func (x *JoinFungibleTokenAttributes) GetBurnTransactions() []*txsystem.Transaction
func (*JoinFungibleTokenAttributes) GetInvariantPredicateSignatures ¶
func (x *JoinFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
func (*JoinFungibleTokenAttributes) GetProofs ¶
func (x *JoinFungibleTokenAttributes) GetProofs() []*block.BlockProof
func (*JoinFungibleTokenAttributes) ProtoMessage ¶
func (*JoinFungibleTokenAttributes) ProtoMessage()
func (*JoinFungibleTokenAttributes) ProtoReflect ¶
func (x *JoinFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*JoinFungibleTokenAttributes) Reset ¶
func (x *JoinFungibleTokenAttributes) Reset()
func (*JoinFungibleTokenAttributes) SetInvariantPredicateSignatures ¶
func (x *JoinFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
func (*JoinFungibleTokenAttributes) String ¶
func (x *JoinFungibleTokenAttributes) String() string
type MintFungibleToken ¶
type MintFungibleToken interface { txsystem.GenericTransaction TypeIDInt() *uint256.Int TypeID() []byte Value() uint64 Bearer() []byte TokenCreationPredicateSignatures() [][]byte }
token tx type interfaces
type MintFungibleTokenAttributes ¶
type MintFungibleTokenAttributes struct { // the initial bearer predicate of the new token Bearer []byte `protobuf:"bytes,1,opt,name=bearer,proto3" json:"bearer,omitempty"` // identifies the type of the new token; Type []byte `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // the value of the new token; Value uint64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` // inputs to satisfy the token creation predicates of all parent types. TokenCreationPredicateSignatures [][]byte `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MintFungibleTokenAttributes) Descriptor
deprecated
func (*MintFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use MintFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*MintFungibleTokenAttributes) GetBearer ¶
func (x *MintFungibleTokenAttributes) GetBearer() []byte
func (*MintFungibleTokenAttributes) GetTokenCreationPredicateSignatures ¶
func (x *MintFungibleTokenAttributes) GetTokenCreationPredicateSignatures() [][]byte
func (*MintFungibleTokenAttributes) GetType ¶
func (x *MintFungibleTokenAttributes) GetType() []byte
func (*MintFungibleTokenAttributes) GetValue ¶
func (x *MintFungibleTokenAttributes) GetValue() uint64
func (*MintFungibleTokenAttributes) ProtoMessage ¶
func (*MintFungibleTokenAttributes) ProtoMessage()
func (*MintFungibleTokenAttributes) ProtoReflect ¶
func (x *MintFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*MintFungibleTokenAttributes) Reset ¶
func (x *MintFungibleTokenAttributes) Reset()
func (*MintFungibleTokenAttributes) SetBearer ¶
func (x *MintFungibleTokenAttributes) SetBearer(b []byte)
func (*MintFungibleTokenAttributes) SetTokenCreationPredicateSignatures ¶
func (x *MintFungibleTokenAttributes) SetTokenCreationPredicateSignatures(sigs [][]byte)
func (*MintFungibleTokenAttributes) String ¶
func (x *MintFungibleTokenAttributes) String() string
type MintNonFungibleToken ¶
type MintNonFungibleToken interface { txsystem.GenericTransaction NFTTypeID() []byte NFTTypeIDInt() *uint256.Int Bearer() []byte URI() string Data() []byte DataUpdatePredicate() []byte TokenCreationPredicateSignatures() [][]byte }
token tx type interfaces
type MintNonFungibleTokenAttributes ¶
type MintNonFungibleTokenAttributes struct { // the initial bearer predicate of the new token Bearer []byte `protobuf:"bytes,1,opt,name=bearer,proto3" json:"bearer,omitempty"` // identifies the type of the new token; NftType []byte `protobuf:"bytes,2,opt,name=nft_type,json=nftType,proto3" json:"nft_type,omitempty"` // the optional URI of an external resource associated with the new token Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // the optional data associated with the new token Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // the data update predicate of the new token; DataUpdatePredicate []byte `protobuf:"bytes,5,opt,name=data_update_predicate,json=dataUpdatePredicate,proto3" json:"data_update_predicate,omitempty"` // inputs to satisfy the token creation predicates of all parent types. TokenCreationPredicateSignatures [][]byte `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MintNonFungibleTokenAttributes) Descriptor
deprecated
func (*MintNonFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use MintNonFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*MintNonFungibleTokenAttributes) GetBearer ¶
func (x *MintNonFungibleTokenAttributes) GetBearer() []byte
func (*MintNonFungibleTokenAttributes) GetData ¶
func (x *MintNonFungibleTokenAttributes) GetData() []byte
func (*MintNonFungibleTokenAttributes) GetDataUpdatePredicate ¶
func (x *MintNonFungibleTokenAttributes) GetDataUpdatePredicate() []byte
func (*MintNonFungibleTokenAttributes) GetNftType ¶
func (x *MintNonFungibleTokenAttributes) GetNftType() []byte
func (*MintNonFungibleTokenAttributes) GetTokenCreationPredicateSignatures ¶
func (x *MintNonFungibleTokenAttributes) GetTokenCreationPredicateSignatures() [][]byte
func (*MintNonFungibleTokenAttributes) GetUri ¶
func (x *MintNonFungibleTokenAttributes) GetUri() string
func (*MintNonFungibleTokenAttributes) ProtoMessage ¶
func (*MintNonFungibleTokenAttributes) ProtoMessage()
func (*MintNonFungibleTokenAttributes) ProtoReflect ¶
func (x *MintNonFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*MintNonFungibleTokenAttributes) Reset ¶
func (x *MintNonFungibleTokenAttributes) Reset()
func (*MintNonFungibleTokenAttributes) SetBearer ¶
func (x *MintNonFungibleTokenAttributes) SetBearer(b []byte)
func (*MintNonFungibleTokenAttributes) SetTokenCreationPredicateSignatures ¶
func (x *MintNonFungibleTokenAttributes) SetTokenCreationPredicateSignatures(sigs [][]byte)
func (*MintNonFungibleTokenAttributes) String ¶
func (x *MintNonFungibleTokenAttributes) String() string
type Option ¶
type Option func(*Options)
func WithHashAlgorithm ¶
func WithState ¶
func WithState(state TokenState) Option
func WithSystemIdentifier ¶
type SplitFungibleToken ¶
type SplitFungibleToken interface { txsystem.GenericTransaction TypeID() []byte HashForIDCalculation(hashFunc crypto.Hash) []byte NewBearer() []byte TargetValue() uint64 RemainingValue() uint64 Nonce() []byte Backlink() []byte InvariantPredicateSignatures() [][]byte }
token tx type interfaces
type SplitFungibleTokenAttributes ¶
type SplitFungibleTokenAttributes struct { // the bearer predicate of the new token; NewBearer []byte `protobuf:"bytes,1,opt,name=new_bearer,json=newBearer,proto3" json:"new_bearer,omitempty"` // the value of the new token TargetValue uint64 `protobuf:"varint,2,opt,name=target_value,json=targetValue,proto3" json:"target_value,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` // the backlink to the previous transaction with this token Backlink []byte `protobuf:"bytes,4,opt,name=backlink,proto3" json:"backlink,omitempty"` // inputs to satisfy the token type invariant predicates down the inheritance chain InvariantPredicateSignatures [][]byte `` /* 147-byte string literal not displayed */ // identifies the type of the token; Type []byte `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` // new value of the source token RemainingValue uint64 `protobuf:"varint,7,opt,name=remaining_value,json=remainingValue,proto3" json:"remaining_value,omitempty"` // contains filtered or unexported fields }
func (*SplitFungibleTokenAttributes) Descriptor
deprecated
func (*SplitFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use SplitFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*SplitFungibleTokenAttributes) GetBacklink ¶
func (x *SplitFungibleTokenAttributes) GetBacklink() []byte
func (*SplitFungibleTokenAttributes) GetInvariantPredicateSignatures ¶
func (x *SplitFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
func (*SplitFungibleTokenAttributes) GetNewBearer ¶
func (x *SplitFungibleTokenAttributes) GetNewBearer() []byte
func (*SplitFungibleTokenAttributes) GetNonce ¶
func (x *SplitFungibleTokenAttributes) GetNonce() []byte
func (*SplitFungibleTokenAttributes) GetRemainingValue ¶
func (x *SplitFungibleTokenAttributes) GetRemainingValue() uint64
func (*SplitFungibleTokenAttributes) GetTargetValue ¶
func (x *SplitFungibleTokenAttributes) GetTargetValue() uint64
func (*SplitFungibleTokenAttributes) GetType ¶
func (x *SplitFungibleTokenAttributes) GetType() []byte
func (*SplitFungibleTokenAttributes) ProtoMessage ¶
func (*SplitFungibleTokenAttributes) ProtoMessage()
func (*SplitFungibleTokenAttributes) ProtoReflect ¶
func (x *SplitFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*SplitFungibleTokenAttributes) Reset ¶
func (x *SplitFungibleTokenAttributes) Reset()
func (*SplitFungibleTokenAttributes) SetInvariantPredicateSignatures ¶
func (x *SplitFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
func (*SplitFungibleTokenAttributes) String ¶
func (x *SplitFungibleTokenAttributes) String() string
type TokenOwnershipProver ¶ added in v0.1.3
type TokenState ¶
type TransferFungibleToken ¶
type TransferFungibleToken interface { txsystem.GenericTransaction TypeID() []byte NewBearer() []byte Value() uint64 Nonce() []byte Backlink() []byte InvariantPredicateSignatures() [][]byte }
token tx type interfaces
type TransferFungibleTokenAttributes ¶
type TransferFungibleTokenAttributes struct { // the initial bearer predicate of the new token NewBearer []byte `protobuf:"bytes,1,opt,name=new_bearer,json=newBearer,proto3" json:"new_bearer,omitempty"` // the value to transfer Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` // the backlink to the previous transaction with this token Backlink []byte `protobuf:"bytes,4,opt,name=backlink,proto3" json:"backlink,omitempty"` // inputs to satisfy the token type invariant predicates down the inheritance chain InvariantPredicateSignatures [][]byte `` /* 147-byte string literal not displayed */ // identifies the type of the token; Type []byte `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*TransferFungibleTokenAttributes) Descriptor
deprecated
func (*TransferFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use TransferFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*TransferFungibleTokenAttributes) GetBacklink ¶
func (x *TransferFungibleTokenAttributes) GetBacklink() []byte
func (*TransferFungibleTokenAttributes) GetInvariantPredicateSignatures ¶
func (x *TransferFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
func (*TransferFungibleTokenAttributes) GetNewBearer ¶
func (x *TransferFungibleTokenAttributes) GetNewBearer() []byte
func (*TransferFungibleTokenAttributes) GetNonce ¶
func (x *TransferFungibleTokenAttributes) GetNonce() []byte
func (*TransferFungibleTokenAttributes) GetType ¶
func (x *TransferFungibleTokenAttributes) GetType() []byte
func (*TransferFungibleTokenAttributes) GetValue ¶
func (x *TransferFungibleTokenAttributes) GetValue() uint64
func (*TransferFungibleTokenAttributes) ProtoMessage ¶
func (*TransferFungibleTokenAttributes) ProtoMessage()
func (*TransferFungibleTokenAttributes) ProtoReflect ¶
func (x *TransferFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*TransferFungibleTokenAttributes) Reset ¶
func (x *TransferFungibleTokenAttributes) Reset()
func (*TransferFungibleTokenAttributes) SetInvariantPredicateSignatures ¶
func (x *TransferFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
func (*TransferFungibleTokenAttributes) String ¶
func (x *TransferFungibleTokenAttributes) String() string
type TransferNonFungibleToken ¶
type TransferNonFungibleToken interface { txsystem.GenericTransaction NFTTypeID() []byte NewBearer() []byte Nonce() []byte Backlink() []byte InvariantPredicateSignatures() [][]byte }
token tx type interfaces
type TransferNonFungibleTokenAttributes ¶
type TransferNonFungibleTokenAttributes struct { // the new bearer predicate of the token NewBearer []byte `protobuf:"bytes,1,opt,name=new_bearer,json=newBearer,proto3" json:"new_bearer,omitempty"` // optional nonce Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // the backlink to the previous transaction with the token Backlink []byte `protobuf:"bytes,3,opt,name=backlink,proto3" json:"backlink,omitempty"` // inputs to satisfy the token type invariant predicates down the inheritance chain InvariantPredicateSignatures [][]byte `` /* 147-byte string literal not displayed */ // identifies the type of the token; NftType []byte `protobuf:"bytes,5,opt,name=nft_type,json=nftType,proto3" json:"nft_type,omitempty"` // contains filtered or unexported fields }
func (*TransferNonFungibleTokenAttributes) Descriptor
deprecated
func (*TransferNonFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use TransferNonFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*TransferNonFungibleTokenAttributes) GetBacklink ¶
func (x *TransferNonFungibleTokenAttributes) GetBacklink() []byte
func (*TransferNonFungibleTokenAttributes) GetInvariantPredicateSignatures ¶
func (x *TransferNonFungibleTokenAttributes) GetInvariantPredicateSignatures() [][]byte
func (*TransferNonFungibleTokenAttributes) GetNewBearer ¶
func (x *TransferNonFungibleTokenAttributes) GetNewBearer() []byte
func (*TransferNonFungibleTokenAttributes) GetNftType ¶
func (x *TransferNonFungibleTokenAttributes) GetNftType() []byte
func (*TransferNonFungibleTokenAttributes) GetNonce ¶
func (x *TransferNonFungibleTokenAttributes) GetNonce() []byte
func (*TransferNonFungibleTokenAttributes) ProtoMessage ¶
func (*TransferNonFungibleTokenAttributes) ProtoMessage()
func (*TransferNonFungibleTokenAttributes) ProtoReflect ¶
func (x *TransferNonFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*TransferNonFungibleTokenAttributes) Reset ¶
func (x *TransferNonFungibleTokenAttributes) Reset()
func (*TransferNonFungibleTokenAttributes) SetInvariantPredicateSignatures ¶
func (x *TransferNonFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)
func (*TransferNonFungibleTokenAttributes) String ¶
func (x *TransferNonFungibleTokenAttributes) String() string
type UpdateNonFungibleToken ¶
type UpdateNonFungibleToken interface { txsystem.GenericTransaction Data() []byte Backlink() []byte DataUpdateSignatures() [][]byte }
token tx type interfaces
type UpdateNonFungibleTokenAttributes ¶
type UpdateNonFungibleTokenAttributes struct { // the new data to replace the data currently associated with the token Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // the backlink to the previous transaction with the token Backlink []byte `protobuf:"bytes,2,opt,name=backlink,proto3" json:"backlink,omitempty"` // inputs to satisfy the token data update predicates down the inheritance chain DataUpdateSignatures [][]byte `protobuf:"bytes,3,rep,name=data_update_signatures,json=dataUpdateSignatures,proto3" json:"data_update_signatures,omitempty"` // contains filtered or unexported fields }
func (*UpdateNonFungibleTokenAttributes) Descriptor
deprecated
func (*UpdateNonFungibleTokenAttributes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNonFungibleTokenAttributes.ProtoReflect.Descriptor instead.
func (*UpdateNonFungibleTokenAttributes) GetBacklink ¶
func (x *UpdateNonFungibleTokenAttributes) GetBacklink() []byte
func (*UpdateNonFungibleTokenAttributes) GetData ¶
func (x *UpdateNonFungibleTokenAttributes) GetData() []byte
func (*UpdateNonFungibleTokenAttributes) GetDataUpdateSignatures ¶
func (x *UpdateNonFungibleTokenAttributes) GetDataUpdateSignatures() [][]byte
func (*UpdateNonFungibleTokenAttributes) ProtoMessage ¶
func (*UpdateNonFungibleTokenAttributes) ProtoMessage()
func (*UpdateNonFungibleTokenAttributes) ProtoReflect ¶
func (x *UpdateNonFungibleTokenAttributes) ProtoReflect() protoreflect.Message
func (*UpdateNonFungibleTokenAttributes) Reset ¶
func (x *UpdateNonFungibleTokenAttributes) Reset()
func (*UpdateNonFungibleTokenAttributes) String ¶
func (x *UpdateNonFungibleTokenAttributes) String() string