SubQuery has released a new feature that speeds up the development of SubQuery projects by generating an entire SubQuery project off a single smart contract definition. In short, SubQuery will generate a project manifest and function facades for the selected events or transaction types from your smart contracts during setup, saving you from writing a boilerplate. It simplifies the process and ensures type safety in your project, making it a game-changer for SubQuery developers.

0:00
/
Autogenerate project scaffold with ABI

When initialising a new EVM or CosmWasm based project, you can now optionally select your project ABIs (for EVM projects) or Protobufs (for CosmWasm projects) and then select the events, functions, or transaction types you want to index — SubQuery will handle the rest, generating:

  • A datasource in your manifest with the contract ABI/protobuf already imported
  • The correct startBlock for indexing the preset
  • Populates all selected handlers
  • Created facades for mapping functions

In addition, this command can also be run within existing projects to scaffold new changes to your contracts and append them to your existing SubQuery projects.

For more information, please find the SubQuery documentation here.

About SubQuery

SubQuery is a blockchain indexing toolkit allowing developers to index blockchain data to power their Web3 decentralised applications or dApps. A SubQuery project is a complete API to organise and query data from Layer-1 chains. Currently servicing Ethereum, Polygon, BNB, NEAR, Polkadot, Avalanche, Algorand, Arbitrum, Aurora, Cosmos, and Flare projects, this data-as-a-service allows developers to focus on their core use case and front-end without wasting time building a custom backend for data processing activities. In the future, the SubQuery Network intends to replicate this scalable and reliable solution in a completely decentralised manner.

​​Linktree | Website | Discord | Telegram | Twitter | Matrix | LinkedIn | YouTube

Share this post