diff --git a/Acala/acala-evm-starter/package.json b/Acala/acala-evm-starter/package.json index fcfa3dc..fec84e1 100644 --- a/Acala/acala-evm-starter/package.json +++ b/Acala/acala-evm-starter/package.json @@ -28,7 +28,7 @@ "@subql/acala-evm-processor": "latest" }, "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/node": "latest", "@subql/testing": "latest", diff --git a/Acala/acala-starter/package.json b/Acala/acala-starter/package.json index 4b09348..1f9bf76 100644 --- a/Acala/acala-starter/package.json +++ b/Acala/acala-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Ajuna/ajuna-starter/package.json b/Ajuna/ajuna-starter/package.json index e991344..cbc5a3e 100644 --- a/Ajuna/ajuna-starter/package.json +++ b/Ajuna/ajuna-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Altair/altair-starter/package.json b/Altair/altair-starter/package.json index 2c7c0cb..83c0465 100644 --- a/Altair/altair-starter/package.json +++ b/Altair/altair-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Astar/astar-evm-starter/package.json b/Astar/astar-evm-starter/package.json index b2965fb..9ad61ae 100644 --- a/Astar/astar-evm-starter/package.json +++ b/Astar/astar-evm-starter/package.json @@ -29,7 +29,7 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "@polkadot/api": "^12", + "@polkadot/api": "^14", "typescript": "^5.2.2", "@subql/node": "latest" }, @@ -40,4 +40,4 @@ "assert": "^2.0.0", "@subql/types-ethereum": "latest" } -} \ No newline at end of file +} diff --git a/Astar/astar-starter/package.json b/Astar/astar-starter/package.json index 25a47b9..6f00b69 100644 --- a/Astar/astar-starter/package.json +++ b/Astar/astar-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Astar/astar-wasm-starter/package.json b/Astar/astar-wasm-starter/package.json index 19ec165..f01ce12 100644 --- a/Astar/astar-wasm-starter/package.json +++ b/Astar/astar-wasm-starter/package.json @@ -24,7 +24,7 @@ "ipfs-unixfs": "6.0.6" }, "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/node": "latest", "@subql/testing": "latest", diff --git a/Automata/automata-starter/package.json b/Automata/automata-starter/package.json index cfe7ea6..de83354 100644 --- a/Automata/automata-starter/package.json +++ b/Automata/automata-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Avail/avail-starter/package.json b/Avail/avail-starter/package.json index 529f369..3c524b7 100644 --- a/Avail/avail-starter/package.json +++ b/Avail/avail-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", @@ -31,4 +31,4 @@ "exports": { "chaintypes": "src/chaintypes.ts" } -} \ No newline at end of file +} diff --git a/Avail/avail-turing-starter/package.json b/Avail/avail-turing-starter/package.json index e2ed31e..af43c50 100644 --- a/Avail/avail-turing-starter/package.json +++ b/Avail/avail-turing-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", @@ -31,4 +31,4 @@ "exports": { "chaintypes": "src/chaintypes.ts" } -} \ No newline at end of file +} diff --git a/Bajun/bajun-starter/package.json b/Bajun/bajun-starter/package.json index 66387bd..2d3ab60 100644 --- a/Bajun/bajun-starter/package.json +++ b/Bajun/bajun-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", @@ -31,4 +31,4 @@ "exports": { "chaintypes": "src/chaintypes.ts" } -} \ No newline at end of file +} diff --git a/Basilisk/basilisk-starter/package.json b/Basilisk/basilisk-starter/package.json index e2e792a..bde4482 100644 --- a/Basilisk/basilisk-starter/package.json +++ b/Basilisk/basilisk-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Bifrost/bifrost-starter/package.json b/Bifrost/bifrost-starter/package.json index 058d676..e6a138a 100644 --- a/Bifrost/bifrost-starter/package.json +++ b/Bifrost/bifrost-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Bitcountry/bitcountry-starter/package.json b/Bitcountry/bitcountry-starter/package.json index 4154106..7d08590 100644 --- a/Bitcountry/bitcountry-starter/package.json +++ b/Bitcountry/bitcountry-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Bitgreen/bitgreen-starter/package.json b/Bitgreen/bitgreen-starter/package.json index a1420c5..7ff31d2 100644 --- a/Bitgreen/bitgreen-starter/package.json +++ b/Bitgreen/bitgreen-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Bittensor/bittensor-starter/package.json b/Bittensor/bittensor-starter/package.json index 54a988f..a93035a 100644 --- a/Bittensor/bittensor-starter/package.json +++ b/Bittensor/bittensor-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", @@ -31,4 +31,4 @@ "exports": { "chaintypes": "src/chaintypes.ts" } -} \ No newline at end of file +} diff --git a/Calamari/calamari-starter/package.json b/Calamari/calamari-starter/package.json index dcf3622..e3e040b 100644 --- a/Calamari/calamari-starter/package.json +++ b/Calamari/calamari-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Centrifuge/centrifuge-starter/package.json b/Centrifuge/centrifuge-starter/package.json index 13ed1d4..fe818fc 100644 --- a/Centrifuge/centrifuge-starter/package.json +++ b/Centrifuge/centrifuge-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Clover/clover-starter/package.json b/Clover/clover-starter/package.json index ef5b463..98997bb 100644 --- a/Clover/clover-starter/package.json +++ b/Clover/clover-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/ComposableFinance/composable-finance-starter/package.json b/ComposableFinance/composable-finance-starter/package.json index 5e4e025..eeb6036 100644 --- a/ComposableFinance/composable-finance-starter/package.json +++ b/ComposableFinance/composable-finance-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Contextfree/contextfree-starter/package.json b/Contextfree/contextfree-starter/package.json index 79aae54..bd47433 100644 --- a/Contextfree/contextfree-starter/package.json +++ b/Contextfree/contextfree-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Crust/crust-starter/package.json b/Crust/crust-starter/package.json index 9ff4800..b584754 100644 --- a/Crust/crust-starter/package.json +++ b/Crust/crust-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Darwinia/darwinia-starter/package.json b/Darwinia/darwinia-starter/package.json index 78a7f3b..2fe0818 100644 --- a/Darwinia/darwinia-starter/package.json +++ b/Darwinia/darwinia-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/types": "latest", "typescript": "^5.2.2", diff --git a/Efinity/efinity-starter/package.json b/Efinity/efinity-starter/package.json index cc8b6b2..9c06f85 100644 --- a/Efinity/efinity-starter/package.json +++ b/Efinity/efinity-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Encointer/Encointer-starter/package.json b/Encointer/Encointer-starter/package.json index 1ee51f7..ad98a73 100644 --- a/Encointer/Encointer-starter/package.json +++ b/Encointer/Encointer-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Energy Web X/energy-web-x-starter/package.json b/Energy Web X/energy-web-x-starter/package.json index 2263f75..fc8efb9 100644 --- a/Energy Web X/energy-web-x-starter/package.json +++ b/Energy Web X/energy-web-x-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/testing": "latest", "@subql/types": "latest", diff --git a/Equilibrium/equilibrium-starter/package.json b/Equilibrium/equilibrium-starter/package.json index e3fa221..28e237b 100644 --- a/Equilibrium/equilibrium-starter/package.json +++ b/Equilibrium/equilibrium-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Frequency/frequency-starter/package.json b/Frequency/frequency-starter/package.json index 4c192a9..5d9f82a 100644 --- a/Frequency/frequency-starter/package.json +++ b/Frequency/frequency-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/HashedNetwork/hashed-network-starter/package.json b/HashedNetwork/hashed-network-starter/package.json index cba0f21..39a87c7 100644 --- a/HashedNetwork/hashed-network-starter/package.json +++ b/HashedNetwork/hashed-network-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Humanode/Humanode-starter/package.json b/Humanode/Humanode-starter/package.json index 43eebec..5ab4b7a 100644 --- a/Humanode/Humanode-starter/package.json +++ b/Humanode/Humanode-starter/package.json @@ -27,11 +27,11 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "@polkadot/api": "^12", + "@polkadot/api": "^14", "typescript": "^5.2.2", "@subql/node": "latest" }, "dependencies": { "assert": "^2.0.0" } -} \ No newline at end of file +} diff --git a/HydraDX/hydradx-starter/package.json b/HydraDX/hydradx-starter/package.json index cec53bd..124af6f 100644 --- a/HydraDX/hydradx-starter/package.json +++ b/HydraDX/hydradx-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/IntegriteeShell/integritee-shell-starter/package.json b/IntegriteeShell/integritee-shell-starter/package.json index b283600..a8e87bc 100644 --- a/IntegriteeShell/integritee-shell-starter/package.json +++ b/IntegriteeShell/integritee-shell-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Interlay/interlay-starter/package.json b/Interlay/interlay-starter/package.json index dbbdcc8..f718ced 100644 --- a/Interlay/interlay-starter/package.json +++ b/Interlay/interlay-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Kapex/kapex-starter/package.json b/Kapex/kapex-starter/package.json index 6595b2b..415f142 100644 --- a/Kapex/kapex-starter/package.json +++ b/Kapex/kapex-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Karura/karura-evm-starter/package.json b/Karura/karura-evm-starter/package.json index 567c73c..071377f 100644 --- a/Karura/karura-evm-starter/package.json +++ b/Karura/karura-evm-starter/package.json @@ -25,7 +25,7 @@ "@subql/acala-evm-processor": "latest" }, "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/types": "latest", "typescript": "^5.2.2", diff --git a/Karura/karura-starter/package.json b/Karura/karura-starter/package.json index 4a905fe..57efc3c 100644 --- a/Karura/karura-starter/package.json +++ b/Karura/karura-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Khala/khala-starter/package.json b/Khala/khala-starter/package.json index bcb8dfe..a1d566a 100644 --- a/Khala/khala-starter/package.json +++ b/Khala/khala-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Kilt/kilt-spiritnet-credentials-example/package.json b/Kilt/kilt-spiritnet-credentials-example/package.json index bd950ee..0ece6ae 100644 --- a/Kilt/kilt-spiritnet-credentials-example/package.json +++ b/Kilt/kilt-spiritnet-credentials-example/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/types": "latest", "node-fetch": "2.6.7", diff --git a/Kilt/kilt-spiritnet-starter/package.json b/Kilt/kilt-spiritnet-starter/package.json index 48b37dd..7b9a14f 100644 --- a/Kilt/kilt-spiritnet-starter/package.json +++ b/Kilt/kilt-spiritnet-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/types": "latest", "node-fetch": "2.6.7", diff --git a/Kusama/kusama-starter/package.json b/Kusama/kusama-starter/package.json index e1d4107..9d12f12 100644 --- a/Kusama/kusama-starter/package.json +++ b/Kusama/kusama-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Kusama/kusama-starter/project.ts b/Kusama/kusama-starter/project.ts index 461c33a..bcb9762 100644 --- a/Kusama/kusama-starter/project.ts +++ b/Kusama/kusama-starter/project.ts @@ -44,7 +44,7 @@ const project: SubstrateProject = { dataSources: [ { kind: SubstrateDatasourceKind.Runtime, - startBlock: 1, + startBlock: 25845986, mapping: { file: "./dist/index.js", handlers: [ @@ -55,21 +55,21 @@ const project: SubstrateProject = { modulo: 100, }, },*/ - /*{ + { kind: SubstrateHandlerKind.Call, handler: "handleCall", - filter: { - module: "balances", - }, - },*/ - { - kind: SubstrateHandlerKind.Event, - handler: "handleEvent", - filter: { - module: "balances", - method: "Transfer", - }, + // filter: { + // module: "balances", + // }, }, + // { + // kind: SubstrateHandlerKind.Event, + // handler: "handleEvent", + // // filter: { + // // module: "balances", + // // method: "Transfer", + // // }, + // }, ], }, }, diff --git a/Kusama/kusama-starter/src/mappings/mappingHandlers.ts b/Kusama/kusama-starter/src/mappings/mappingHandlers.ts index 4091413..1c32cd2 100644 --- a/Kusama/kusama-starter/src/mappings/mappingHandlers.ts +++ b/Kusama/kusama-starter/src/mappings/mappingHandlers.ts @@ -7,47 +7,56 @@ import { Account, Transfer } from "../types"; import { Balance } from "@polkadot/types/interfaces"; import { decodeAddress } from "@polkadot/util-crypto"; +let lastTransfer: Transfer; + export async function handleBlock(block: SubstrateBlock): Promise { // Do something with each block handler here } export async function handleCall(extrinsic: SubstrateExtrinsic): Promise { + logger.info(`Handle extrinsic ${extrinsic.idx}`) // Do something with a call handler here } export async function handleEvent(event: SubstrateEvent): Promise { - logger.info( - `New transfer event found at block ${event.block.block.header.number.toString()}`, - ); + logger.info() + // logger.info( + // `New transfer event found at block ${event.block.block.header.number.toString()}`, + // ); // Get data from the event // The balances.transfer event has the following payload \[from, to, value\] // logger.info(JSON.stringify(event)); - const { - event: { - data: [from, to, amount], - }, - } = event; + // const { + // event: { + // data: [from, to, amount], + // }, + // } = event; + + // const blockNumber: number = event.block.block.header.number.toNumber(); - const blockNumber: number = event.block.block.header.number.toNumber(); + // const fromAccount = await checkAndGetAccount(from.toString(), blockNumber); + // const toAccount = await checkAndGetAccount(to.toString(), blockNumber); - const fromAccount = await checkAndGetAccount(from.toString(), blockNumber); - const toAccount = await checkAndGetAccount(to.toString(), blockNumber); + // // Create the new transfer entity + // const transfer = Transfer.create({ + // id: `${event.block.block.header.number.toNumber()}-${event.idx}`, + // blockNumber, + // date: event.block.timestamp, + // fromId: fromAccount.id, + // toId: toAccount.id, + // amount: (amount as Balance).toBigInt(), + // }); - // Create the new transfer entity - const transfer = Transfer.create({ - id: `${event.block.block.header.number.toNumber()}-${event.idx}`, - blockNumber, - date: event.block.timestamp, - fromId: fromAccount.id, - toId: toAccount.id, - amount: (amount as Balance).toBigInt(), - }); + // fromAccount.lastTransferBlock = blockNumber; + // toAccount.lastTransferBlock = blockNumber; - fromAccount.lastTransferBlock = blockNumber; - toAccount.lastTransferBlock = blockNumber; + // if (lastTransfer) { + // await Transfer.remove(lastTransfer.id); + // lastTransfer = transfer + // } - await Promise.all([fromAccount.save(), toAccount.save(), transfer.save()]); + // await Promise.all([fromAccount.save(), toAccount.save(), transfer.save()]); } async function checkAndGetAccount( diff --git a/Kylin/kylin-starter/package.json b/Kylin/kylin-starter/package.json index cdf62c3..b07cb09 100644 --- a/Kylin/kylin-starter/package.json +++ b/Kylin/kylin-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Litentry/litentry-starter/package.json b/Litentry/litentry-starter/package.json index 19ff5bd..a44aad6 100644 --- a/Litentry/litentry-starter/package.json +++ b/Litentry/litentry-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Manta/manta-atlantic-starter/package.json b/Manta/manta-atlantic-starter/package.json index 4b3683f..1cad4a2 100644 --- a/Manta/manta-atlantic-starter/package.json +++ b/Manta/manta-atlantic-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Moonbeam/Moonbeam-starter/package.json b/Moonbeam/Moonbeam-starter/package.json index 5252ac1..d8cbaa4 100644 --- a/Moonbeam/Moonbeam-starter/package.json +++ b/Moonbeam/Moonbeam-starter/package.json @@ -24,7 +24,7 @@ "ipfs-unixfs": "6.0.6" }, "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Moonbeam/moonbeam-evm-starter/package.json b/Moonbeam/moonbeam-evm-starter/package.json index dbca002..8b5acca 100644 --- a/Moonbeam/moonbeam-evm-starter/package.json +++ b/Moonbeam/moonbeam-evm-starter/package.json @@ -32,11 +32,11 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "@polkadot/api": "^12", + "@polkadot/api": "^14", "typescript": "^5.2.2", "@subql/node": "latest" }, "exports": { "chaintypes": "src/chaintypes.ts" } -} \ No newline at end of file +} diff --git a/Moonriver/Moonriver-starter/package.json b/Moonriver/Moonriver-starter/package.json index 46666f5..cc66225 100644 --- a/Moonriver/Moonriver-starter/package.json +++ b/Moonriver/Moonriver-starter/package.json @@ -24,7 +24,7 @@ "ipfs-unixfs": "6.0.6" }, "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Moonriver/moonriver-evm-starter/package.json b/Moonriver/moonriver-evm-starter/package.json index 7c795a7..381b54c 100644 --- a/Moonriver/moonriver-evm-starter/package.json +++ b/Moonriver/moonriver-evm-starter/package.json @@ -32,11 +32,11 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "@polkadot/api": "^12", + "@polkadot/api": "^14", "typescript": "^5.2.2", "@subql/node": "latest" }, "exports": { "chaintypes": "src/chaintypes.ts" } -} \ No newline at end of file +} diff --git a/Multi-chain/transfers/package.json b/Multi-chain/transfers/package.json index 4b2df98..905d108 100644 --- a/Multi-chain/transfers/package.json +++ b/Multi-chain/transfers/package.json @@ -25,7 +25,7 @@ "@subql/testing": "latest", "@subql/node": "latest", "@subql/cli": "latest", - "@polkadot/api": "^12", + "@polkadot/api": "^14", "typescript": "^4.1.3" }, "resolutions": { diff --git a/Nodle/nodle-starter/package.json b/Nodle/nodle-starter/package.json index e5d0205..31d6636 100644 --- a/Nodle/nodle-starter/package.json +++ b/Nodle/nodle-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/OriginTrail/origintrail-starter/package.json b/OriginTrail/origintrail-starter/package.json index ba86a0c..bfaf8bc 100644 --- a/OriginTrail/origintrail-starter/package.json +++ b/OriginTrail/origintrail-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Parallel/parallel-heiko-starter/package.json b/Parallel/parallel-heiko-starter/package.json index 4f18977..c289130 100644 --- a/Parallel/parallel-heiko-starter/package.json +++ b/Parallel/parallel-heiko-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Parallel/parallel-starter/package.json b/Parallel/parallel-starter/package.json index 796e121..75f94d6 100644 --- a/Parallel/parallel-starter/package.json +++ b/Parallel/parallel-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Peaq/peaq-starter/package.json b/Peaq/peaq-starter/package.json index 032c089..c204921 100644 --- a/Peaq/peaq-starter/package.json +++ b/Peaq/peaq-starter/package.json @@ -29,11 +29,11 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "@polkadot/api": "^12", + "@polkadot/api": "^14", "typescript": "^5.2.2", "@subql/node": "latest" }, "dependencies": { "assert": "^2.0.0" } -} \ No newline at end of file +} diff --git a/Polkadex/polkadex-starter/package.json b/Polkadex/polkadex-starter/package.json index 8e79031..e1b27a3 100644 --- a/Polkadex/polkadex-starter/package.json +++ b/Polkadex/polkadex-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Polkadot/Polkadot-starter/package.json b/Polkadot/Polkadot-starter/package.json index c583d35..10f51a6 100644 --- a/Polkadot/Polkadot-starter/package.json +++ b/Polkadot/Polkadot-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/cli": "latest", "@subql/testing": "latest", "@subql/types": "latest", diff --git a/Quartz/quartz-subql-starter/package.json b/Quartz/quartz-subql-starter/package.json index b340259..bd60d55 100644 --- a/Quartz/quartz-subql-starter/package.json +++ b/Quartz/quartz-subql-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Reef/reef-starter/package.json b/Reef/reef-starter/package.json index 20c77e8..a3f534c 100644 --- a/Reef/reef-starter/package.json +++ b/Reef/reef-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Shiden/shiden-starter/package.json b/Shiden/shiden-starter/package.json index a54eac2..6b63a25 100644 --- a/Shiden/shiden-starter/package.json +++ b/Shiden/shiden-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Statemine/statemine-starter/package.json b/Statemine/statemine-starter/package.json index 8ce23eb..485278c 100644 --- a/Statemine/statemine-starter/package.json +++ b/Statemine/statemine-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Statemint/statemint-starter/package.json b/Statemint/statemint-starter/package.json index 0f3cda7..3fb4594 100644 --- a/Statemint/statemint-starter/package.json +++ b/Statemint/statemint-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Subsocial/subsocial-starter/package.json b/Subsocial/subsocial-starter/package.json index 2d8f82f..b02b7b2 100644 --- a/Subsocial/subsocial-starter/package.json +++ b/Subsocial/subsocial-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/T3rn/t3rn-starter/package.json b/T3rn/t3rn-starter/package.json index 78bab02..a4637ed 100644 --- a/T3rn/t3rn-starter/package.json +++ b/T3rn/t3rn-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Unique/unique-starter/package.json b/Unique/unique-starter/package.json index b7eed7d..cd88f63 100644 --- a/Unique/unique-starter/package.json +++ b/Unique/unique-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Vara/vara-starter/package.json b/Vara/vara-starter/package.json index 7fa0001..95e9cdf 100644 --- a/Vara/vara-starter/package.json +++ b/Vara/vara-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "@subql/cli": "latest", "node-fetch": "2.6.7", diff --git a/Watr/watr-starter/package.json b/Watr/watr-starter/package.json index 0deb5ea..8ebe071 100644 --- a/Watr/watr-starter/package.json +++ b/Watr/watr-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Westend/westend-starter/package.json b/Westend/westend-starter/package.json index d3b5fbb..1e98014 100644 --- a/Westend/westend-starter/package.json +++ b/Westend/westend-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest", diff --git a/Zeitgeist/zeitgeist-starter/package.json b/Zeitgeist/zeitgeist-starter/package.json index 944176d..0f4c814 100644 --- a/Zeitgeist/zeitgeist-starter/package.json +++ b/Zeitgeist/zeitgeist-starter/package.json @@ -21,7 +21,7 @@ "author": "SubQuery Team", "license": "MIT", "devDependencies": { - "@polkadot/api": "^12", + "@polkadot/api": "^14", "@subql/types": "latest", "typescript": "^5.2.2", "@subql/cli": "latest",