poap

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: 9 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
}

Provider is an the struct for retrieving data from the Tezos blockchain

func NewProvider

func NewProvider(httpClient *http.Client) *Provider

NewProvider creates a new Tezos Provider

func (*Provider) GetContractByAddress

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

GetContractByAddress retrieves an Poap contract by address

func (*Provider) GetOwnedTokensByContract

func (d *Provider) GetOwnedTokensByContract(ctx context.Context, contract persist.Address, addr persist.Address, limit, offset int) ([]common.ChainAgnosticToken, common.ChainAgnosticContract, error)

func (*Provider) GetTokenByTokenIdentifiersAndOwner

func (d *Provider) GetTokenByTokenIdentifiersAndOwner(ctx context.Context, tokenIdentifiers common.ChainAgnosticIdentifiers, ownerAddress persist.Address) (common.ChainAgnosticToken, common.ChainAgnosticContract, error)

GetTokenByTokenIdentifiersAndOwner retrieves tokens for a token identifiers and owner address

func (*Provider) GetTokenMetadataByTokenIdentifiers

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

func (*Provider) GetTokensByContractAddress

func (d *Provider) GetTokensByContractAddress(ctx context.Context, contractAddress persist.Address, limit, offset int) ([]common.ChainAgnosticToken, common.ChainAgnosticContract, error)

GetTokensByContractAddress retrieves tokens for a contract address on the Poap Blockchain

func (*Provider) GetTokensByTokenIdentifiers

func (d *Provider) GetTokensByTokenIdentifiers(ctx context.Context, tokenIdentifiers common.ChainAgnosticIdentifiers, limit, offset int) ([]common.ChainAgnosticToken, common.ChainAgnosticContract, error)

GetTokensByTokenIdentifiers retrieves tokens for a token identifiers on the Poap Blockchain

func (*Provider) GetTokensByWalletAddress

func (d *Provider) GetTokensByWalletAddress(ctx context.Context, addr persist.Address) ([]common.ChainAgnosticToken, []common.ChainAgnosticContract, error)

GetTokensByWalletAddress retrieves tokens for a wallet address on the Poap Blockchain

func (*Provider) GetTokensIncrementallyByWalletAddress

func (d *Provider) GetTokensIncrementallyByWalletAddress(ctx context.Context, addr 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