Documentation ¶
Index ¶
- Constants
- func NewTxSystem(pdr basetypes.PartitionDescriptionRecord, shardID basetypes.ShardID, ...) (*txsystem.GenericTxSystem, error)
- type FungibleTokensModule
- type LockTokensModule
- type NonFungibleTokensModule
- type Option
- func WithAdminOwnerPredicate(adminOwnerPredicate []byte) Option
- func WithFeelessMode(feelessMode bool) Option
- func WithHashAlgorithm(algorithm gocrypto.Hash) Option
- func WithMoneyTransactionSystemID(moneySystemID types.SystemID) Option
- func WithPredicateExecutor(exec predicates.PredicateExecutor) Option
- func WithState(s *state.State) Option
- func WithTrustBase(trustBase types.RootTrustBase) Option
- type Options
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 ¶
func NewTxSystem ¶
func NewTxSystem(pdr basetypes.PartitionDescriptionRecord, shardID basetypes.ShardID, observe txsystem.Observability, opts ...Option) (*txsystem.GenericTxSystem, error)
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 WithFeelessMode ¶
func WithHashAlgorithm ¶
func WithPredicateExecutor ¶
func WithPredicateExecutor(exec predicates.PredicateExecutor) Option
WithPredicateExecutor allows to replace the default predicate executor which supports only "builtin predicate templates".
func WithTrustBase ¶
func WithTrustBase(trustBase types.RootTrustBase) Option
Source Files ¶
Click to show internal directories.
Click to hide internal directories.