token

package
v0.0.0-...-92c45cb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountTokensByOwnerUseCase

type CountTokensByOwnerUseCase interface {
	Execute(ctx context.Context, owner *common.Address) (int, error)
}

func NewCountTokensByOwnerUseCase

func NewCountTokensByOwnerUseCase(config *config.Configuration, logger *slog.Logger, repo domain.TokenRepository) CountTokensByOwnerUseCase

type GetTokenUseCase

type GetTokenUseCase interface {
	Execute(ctx context.Context, tokenID *big.Int) (*domain.Token, error)
}

func NewGetTokenUseCase

func NewGetTokenUseCase(config *config.Configuration, logger *slog.Logger, repo domain.TokenRepository) GetTokenUseCase

type GetTokensHashStateUseCase

type GetTokensHashStateUseCase interface {
	Execute(ctx context.Context, chainID uint16) (string, error)
}

func NewGetTokensHashStateUseCase

func NewGetTokensHashStateUseCase(config *config.Configuration, logger *slog.Logger, repo domain.TokenRepository) GetTokensHashStateUseCase

type ListTokensByOwnerUseCase

type ListTokensByOwnerUseCase interface {
	Execute(ctx context.Context, owner *common.Address) ([]*domain.Token, error)
}

func NewListTokensByOwnerUseCase

func NewListTokensByOwnerUseCase(config *config.Configuration, logger *slog.Logger, repo domain.TokenRepository) ListTokensByOwnerUseCase

type UpsertTokenIfPreviousTokenNonceGTEUseCase

type UpsertTokenIfPreviousTokenNonceGTEUseCase interface {
	Execute(
		ctx context.Context,
		id *big.Int,
		owner *common.Address,
		metadataURI string,
		nonce *big.Int,
	) error
}

Jump to

Keyboard shortcuts

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