Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 v0.3.0 Feb 28, 2024 Changes in this version + var NoParent = TokenTypeID(make([]byte, crypto.SHA256.Size())) + func Run(ctx context.Context, cfg Configuration) error + type ABClient interface + GetBlocks func(ctx context.Context, blockNumber, blockCount uint64) (*alphabill.GetBlocksResponse, error) + GetRoundNumber func(ctx context.Context) (uint64, error) + SendTransaction func(ctx context.Context, tx *types.TransactionOrder) error + type Configuration interface + APIAddr func() string + BatchSize func() int + Client func() (ABClient, error) + HttpServer func(http.Handler) http.Server + Listener func() net.Listener + Logger func() *slog.Logger + Storage func() (Storage, error) + SystemID func() types.SystemID + func NewConfig(systemID types.SystemID, apiAddr, abURL, boltDB string, observe Observability) Configuration + type FeeCreditBill struct + Id []byte + Locked wallet.LockReason + TxHash []byte + Value uint64 + func (f *FeeCreditBill) GetID() []byte + func (f *FeeCreditBill) GetTxHash() []byte + func (f *FeeCreditBill) GetValue() uint64 + func (f *FeeCreditBill) ToGenericBill() *wallet.Bill + type Kind byte + const Any + const Fungible + const NonFungible + func (kind Kind) String() string + type Observability interface + Logger func() *slog.Logger + Tracer func(name string, options ...trace.TracerOption) trace.Tracer + TracerProvider func() trace.TracerProvider + type Storage interface + Close func() error + GetBlockNumber func() (uint64, error) + GetFeeCreditBill func(unitID types.UnitID) (*FeeCreditBill, error) + GetToken func(id TokenID) (*TokenUnit, error) + GetTokenType func(id TokenTypeID) (*TokenUnitType, error) + GetTxProof func(unitID types.UnitID, txHash sdk.TxHash) (*sdk.Proof, error) + QueryTokenType func(kind Kind, creator sdk.PubKey, startKey TokenTypeID, count int) ([]*TokenUnitType, TokenTypeID, error) + QueryTokens func(kind Kind, owner sdk.Predicate, startKey TokenID, count int) ([]*TokenUnit, TokenID, error) + RemoveToken func(id TokenID) error + SaveToken func(data *TokenUnit, proof *sdk.Proof) error + SaveTokenType func(data *TokenUnitType, proof *sdk.Proof) error + SaveTokenTypeCreator func(id TokenTypeID, kind Kind, creator sdk.PubKey) error + SetBlockNumber func(blockNumber uint64) error + SetFeeCreditBill func(fcb *FeeCreditBill, proof *sdk.Proof) error + type TokenID = types.UnitID + type TokenTypeID = types.UnitID + type TokenUnit struct + Amount uint64 + Burned bool + Decimals uint32 + ID TokenID + Kind Kind + Locked uint64 + NftData []byte + NftDataUpdatePredicate wallet.Predicate + NftName string + NftURI string + Owner wallet.Predicate + Symbol string + TxHash wallet.TxHash + TypeID TokenTypeID + TypeName string + func (tu *TokenUnit) IsLocked() bool + func (tu *TokenUnit) WriteSSE(w io.Writer) error + type TokenUnitType struct + DecimalPlaces uint32 + ID TokenTypeID + Icon *tokens.Icon + InvariantPredicate wallet.Predicate + Kind Kind + Name string + NftDataUpdatePredicate wallet.Predicate + ParentTypeID TokenTypeID + SubTypeCreationPredicate wallet.Predicate + Symbol string + TokenCreationPredicate wallet.Predicate + TxHash wallet.TxHash