vikiival / mimick

Indexer for ink! based NFTs
GNU General Public License v3.0
1 stars 3 forks source link

[TASK] Fetch contract metadata from RPC #14

Open vikiival opened 1 year ago

vikiival commented 1 year ago

Is your feature request related to a problem? Please describe. Currently I cannot fetch metadata from PSP-34 contracts

Describe the solution you'd like Fetch them via RPC

Better would be to implement

Additional context

import {
  Contract as ContractAPI,
} from "./abi/NFTMarketplace";
const contract = new ContractAPI(ctx, { height: block }, contractAddress);
const tokenURI = await contract.tokenURI(BigNumber.from(tokenId));
vikiival commented 1 year ago

from @tmcgroul

Currently i am working on reading ink contracts state from ink-typegen interface. Will notify you when this feature is done

FYI @Maar-io

vikiival commented 1 year ago

https://github.com/subsquid/squid-sdk/blob/357fda8f95932613c091a3501a6216ade9922e4e/test/shibuya-psp22/src/processor.ts#L53