simplehash

package
v0.0.0-...-476b611 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(chain persist.Chain, httpClient *http.Client) *Provider

func (*Provider) GetContractByAddress

func (p *Provider) GetContractByAddress(ctx context.Context, address persist.Address) (common.ChainAgnosticContract, error)

func (*Provider) GetContractsByCreatorAddress

func (p *Provider) GetContractsByCreatorAddress(ctx context.Context, address persist.Address) ([]common.ChainAgnosticContract, error)

func (*Provider) GetContractsByDeployerAddress

func (p *Provider) GetContractsByDeployerAddress(ctx context.Context, address persist.Address) ([]common.ChainAgnosticContract, []bool, error)

func (*Provider) GetContractsByOwnerAddress

func (p *Provider) GetContractsByOwnerAddress(ctx context.Context, address persist.Address) ([]common.ChainAgnosticContract, error)

func (*Provider) GetTokenMetadataByTokenIdentifiers

func (p *Provider) GetTokenMetadataByTokenIdentifiers(ctx context.Context, tID common.ChainAgnosticIdentifiers) (persist.TokenMetadata, error)

func (*Provider) GetTokenMetadataByTokenIdentifiersBatch

func (p *Provider) GetTokenMetadataByTokenIdentifiersBatch(ctx context.Context, tIDs []common.ChainAgnosticIdentifiers) ([]persist.TokenMetadata, error)

func (*Provider) GetTokensByContractWallet

func (p *Provider) GetTokensByContractWallet(ctx context.Context, contract persist.ChainAddress, wallet persist.Address) ([]common.ChainAgnosticToken, common.ChainAgnosticContract, error)

func (*Provider) GetTokensIncrementallyByContractAddress

func (p *Provider) GetTokensIncrementallyByContractAddress(ctx context.Context, address persist.Address, maxLimit int) (<-chan common.ChainAgnosticTokensAndContracts, <-chan error)

func (*Provider) GetTokensIncrementallyByWalletAddress

func (p *Provider) GetTokensIncrementallyByWalletAddress(ctx context.Context, address persist.Address) (<-chan common.ChainAgnosticTokensAndContracts, <-chan error)

Jump to

Keyboard shortcuts

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