Documentation ¶
Index ¶
- Variables
- type CustomMetadataHandlers
- func (c *CustomMetadataHandlers) AddToPage(ctx context.Context, chain persist.Chain, ...) (<-chan common.ChainAgnosticTokensAndContracts, <-chan error)
- func (c *CustomMetadataHandlers) AddToToken(ctx context.Context, chain persist.Chain, t common.ChainAgnosticToken) common.ChainAgnosticToken
- func (c *CustomMetadataHandlers) HandlerFor(t persist.TokenIdentifiers) metadataHandler
- func (c *CustomMetadataHandlers) Load(ctx context.Context, chain persist.Chain, t common.ChainAgnosticIdentifiers, ...) persist.TokenMetadata
- func (c *CustomMetadataHandlers) LoadAll(ctx context.Context, chain persist.Chain, tokens []common.ChainAgnosticToken) []common.ChainAgnosticToken
- func (c *CustomMetadataHandlers) LoadMetadataAll(ctx context.Context, chain persist.Chain, tokens []common.ChainAgnosticToken) []persist.TokenMetadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AutoglyphContract = persist.ContractIdentifiers{ContractAddress: "0xd4e4078ca3495de5b1d4db434bebc5a986197782", Chain: persist.ChainETH} ColorglyphContract = persist.ContractIdentifiers{ContractAddress: "0x60f3680350f65beb2752788cb48abfce84a4759e", Chain: persist.ChainETH} EnsContract = persist.ContractIdentifiers{ContractAddress: eth.EnsAddress, Chain: persist.ChainETH} CryptopunkContract = persist.ContractIdentifiers{ContractAddress: "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb", Chain: persist.ChainETH} ZoraContract = persist.ContractIdentifiers{ContractAddress: "0xabefbc9fd2f806065b4f3c237d4b59d9a97bcac7", Chain: persist.ChainETH} )
Functions ¶
This section is empty.
Types ¶
type CustomMetadataHandlers ¶
type CustomMetadataHandlers struct { AutoglyphHandler metadataHandler ColorglyphHandler metadataHandler EnsHandler metadataHandler CryptopunkHandler metadataHandler ZoraHandler metadataHandler }
func (*CustomMetadataHandlers) AddToPage ¶
func (c *CustomMetadataHandlers) AddToPage(ctx context.Context, chain persist.Chain, recCh <-chan common.ChainAgnosticTokensAndContracts, errIn <-chan error) (<-chan common.ChainAgnosticTokensAndContracts, <-chan error)
func (*CustomMetadataHandlers) AddToToken ¶
func (c *CustomMetadataHandlers) AddToToken(ctx context.Context, chain persist.Chain, t common.ChainAgnosticToken) common.ChainAgnosticToken
func (*CustomMetadataHandlers) HandlerFor ¶
func (c *CustomMetadataHandlers) HandlerFor(t persist.TokenIdentifiers) metadataHandler
func (*CustomMetadataHandlers) Load ¶
func (c *CustomMetadataHandlers) Load(ctx context.Context, chain persist.Chain, t common.ChainAgnosticIdentifiers, oldMetadata ...persist.TokenMetadata) persist.TokenMetadata
func (*CustomMetadataHandlers) LoadAll ¶
func (c *CustomMetadataHandlers) LoadAll(ctx context.Context, chain persist.Chain, tokens []common.ChainAgnosticToken) []common.ChainAgnosticToken
func (*CustomMetadataHandlers) LoadMetadataAll ¶
func (c *CustomMetadataHandlers) LoadMetadataAll(ctx context.Context, chain persist.Chain, tokens []common.ChainAgnosticToken) []persist.TokenMetadata
Click to show internal directories.
Click to hide internal directories.