You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{SubstrateBatchProcessor}from"@subsquid/substrate-processor"import{TypeormDatabase}from"@subsquid/typeorm-store"import*aserc20from"./erc20"constCONTRACT_ADDRESS='0x5207202c27b646ceeb294ce516d4334edafbd771f869215cb070ba51dd7e2c72'constprocessor=newSubstrateBatchProcessor().setDataSource({archive: "https://shibuya.archive.subsquid.io/graphql"}).addEvent('Contracts.Instantiated',{range: {from: 1000000,to: 1000000},// block number where your contract was deployeddata: {call: {args: true}},})processor.run(newTypeormDatabase(),asyncctx=>{for(letblockofctx.blocks){for(letitemofblock.items){if(item.kind=='event'&&item.name=='Contracts.Instantiated'&&item.event.args.contract==CONTRACT_ADDRESS){erc20.decodeConstructor(item.event.call.args.data)}}}})
The text was updated successfully, but these errors were encountered:
Example
The text was updated successfully, but these errors were encountered: