tokens

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 17 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ErrStrInvalidUnitID         = "invalid unit ID"
	ErrStrInvalidTokenTypeID    = "invalid token type ID"
	ErrStrInvalidParentTypeID   = "invalid parent type ID"
	ErrStrStateIsNil            = "state is nil"
	ErrStrInvalidSymbolLength   = "symbol length exceeds the allowed maximum of 16 bytes"
	ErrStrInvalidNameLength     = "name length exceeds the allowed maximum of 256 bytes"
	ErrStrInvalidIconTypeLength = "icon type length exceeds the allowed maximum of 64 bytes"
	ErrStrInvalidIconDataLength = "icon data length exceeds the allowed maximum of 64 KiB"
)

Variables

This section is empty.

Functions

Types

type FungibleTokensModule

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

func NewFungibleTokensModule

func NewFungibleTokensModule(options *Options) (*FungibleTokensModule, error)

func (*FungibleTokensModule) TxHandlers

func (m *FungibleTokensModule) TxHandlers() map[uint16]txtypes.TxExecutor

type LockTokensModule

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

func NewLockTokensModule

func NewLockTokensModule(options *Options) (*LockTokensModule, error)

func (*LockTokensModule) TxHandlers

func (m *LockTokensModule) TxHandlers() map[uint16]txtypes.TxExecutor

type NonFungibleTokensModule

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

func NewNonFungibleTokensModule

func NewNonFungibleTokensModule(options *Options) (*NonFungibleTokensModule, error)

func (*NonFungibleTokensModule) TxHandlers

func (n *NonFungibleTokensModule) TxHandlers() map[uint16]txtypes.TxExecutor

type Option

type Option func(*Options)

func WithAdminOwnerPredicate

func WithAdminOwnerPredicate(adminOwnerPredicate []byte) Option

func WithFeelessMode

func WithFeelessMode(feelessMode bool) Option

func WithHashAlgorithm

func WithHashAlgorithm(algorithm gocrypto.Hash) Option

func WithMoneyTransactionSystemID

func WithMoneyTransactionSystemID(moneySystemID types.SystemID) Option

func WithPredicateExecutor

func WithPredicateExecutor(exec predicates.PredicateExecutor) Option

WithPredicateExecutor allows to replace the default predicate executor which supports only "builtin predicate templates".

func WithState

func WithState(s *state.State) Option

func WithTrustBase

func WithTrustBase(trustBase types.RootTrustBase) Option

type Options

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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