tokens

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: AGPL-3.0, ISC Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	TypeCreateNonFungibleTokenTypeAttributes = "CreateNonFungibleTokenTypeAttributes"
	TypeMintNonFungibleTokenAttributes       = "MintNonFungibleTokenAttributes"
	TypeTransferNonFungibleTokenAttributes   = "TransferNonFungibleTokenAttributes"
	TypeUpdateNonFungibleTokenAttributes     = "UpdateNonFungibleTokenAttributes"
	TypeCreateFungibleTokenTypeAttributes    = "CreateFungibleTokenTypeAttributes"
	TypeMintFungibleTokenAttributes          = "MintFungibleTokenAttributes"
	TypeTransferFungibleTokenAttributes      = "TransferFungibleTokenAttributes"
	TypeSplitFungibleTokenAttributes         = "SplitFungibleTokenAttributes"
	TypeBurnFungibleTokenAttributes          = "BurnFungibleTokenAttributes"
	TypeJoinFungibleTokenAttributes          = "JoinFungibleTokenAttributes"
)

Variables

View Source
var DefaultTokenTxSystemIdentifier = []byte{0, 0, 0, 2}
View Source
var File_token_tx_proto protoreflect.FileDescriptor

Functions

func New

func New(opts ...Option) (*tokensTxSystem, 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 (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 (*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 (*CreateFungibleTokenTypeAttributes) GetTokenCreationPredicate

func (x *CreateFungibleTokenTypeAttributes) GetTokenCreationPredicate() []byte

func (*CreateFungibleTokenTypeAttributes) ProtoMessage

func (*CreateFungibleTokenTypeAttributes) ProtoMessage()

func (*CreateFungibleTokenTypeAttributes) ProtoReflect

func (*CreateFungibleTokenTypeAttributes) Reset

func (*CreateFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures

func (x *CreateFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures(sigs [][]byte)

func (*CreateFungibleTokenTypeAttributes) 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 (*CreateNonFungibleTokenTypeAttributes) GetTokenCreationPredicate

func (x *CreateNonFungibleTokenTypeAttributes) GetTokenCreationPredicate() []byte

func (*CreateNonFungibleTokenTypeAttributes) ProtoMessage

func (*CreateNonFungibleTokenTypeAttributes) ProtoMessage()

func (*CreateNonFungibleTokenTypeAttributes) ProtoReflect

func (*CreateNonFungibleTokenTypeAttributes) Reset

func (*CreateNonFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures

func (x *CreateNonFungibleTokenTypeAttributes) SetSubTypeCreationPredicateSignatures(sigs [][]byte)

func (*CreateNonFungibleTokenTypeAttributes) 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 (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 (*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 (*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 (*MintNonFungibleTokenAttributes) ProtoMessage

func (*MintNonFungibleTokenAttributes) ProtoMessage()

func (*MintNonFungibleTokenAttributes) ProtoReflect

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

type Option

type Option func(*Options)

func WithHashAlgorithm

func WithHashAlgorithm(algorithm gocrypto.Hash) Option

func WithState

func WithState(state TokenState) Option

func WithSystemIdentifier

func WithSystemIdentifier(systemIdentifier []byte) Option

func WithTrustBase

func WithTrustBase(trustBase map[string]crypto.Verifier) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

type Predicate

type Predicate []byte

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 (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 (*SplitFungibleTokenAttributes) Reset

func (x *SplitFungibleTokenAttributes) Reset()

func (*SplitFungibleTokenAttributes) SetInvariantPredicateSignatures

func (x *SplitFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)

func (*SplitFungibleTokenAttributes) String

type TokenOwnershipProver added in v0.1.3

type TokenOwnershipProver interface {
	OwnerProof() []byte
	InvariantPredicateSignatures() [][]byte
	SigBytes() []byte
}

type TokenState

type TokenState interface {
	AtomicUpdate(actions ...rma.Action) error
	GetUnit(id *uint256.Int) (*rma.Unit, error)
	// contains filtered or unexported methods
}

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 (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 (*TransferFungibleTokenAttributes) ProtoMessage

func (*TransferFungibleTokenAttributes) ProtoMessage()

func (*TransferFungibleTokenAttributes) ProtoReflect

func (*TransferFungibleTokenAttributes) Reset

func (*TransferFungibleTokenAttributes) SetInvariantPredicateSignatures

func (x *TransferFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)

func (*TransferFungibleTokenAttributes) 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 (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 (*TransferNonFungibleTokenAttributes) Reset

func (*TransferNonFungibleTokenAttributes) SetInvariantPredicateSignatures

func (x *TransferNonFungibleTokenAttributes) SetInvariantPredicateSignatures(sigs [][]byte)

func (*TransferNonFungibleTokenAttributes) 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 (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 (*UpdateNonFungibleTokenAttributes) Reset

func (*UpdateNonFungibleTokenAttributes) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL