From c12724162ed28e8bfcf0660a9bc27a6106f05507 Mon Sep 17 00:00:00 2001 From: bz888 Date: Wed, 11 Oct 2023 16:05:42 +1300 Subject: [PATCH] resort project.ts --- Acala/acala-evm-starter/project.ts | 83 ++++++++++++++ Acala/acala-evm-starter/project.yaml | 57 ---------- Acala/acala-starter/project.ts | 82 ++++++++++++++ Acala/acala-starter/project.yaml | 51 --------- Ajuna/ajuna-starter/project.ts | 81 ++++++++++++++ Ajuna/ajuna-starter/project.yaml | 51 --------- Altair/altair-starter/project.ts | 81 ++++++++++++++ Altair/altair-starter/project.yaml | 51 --------- Astar/astar-evm-starter/project.ts | 86 ++++++++++++++ Astar/astar-evm-starter/project.yaml | 57 ---------- Astar/astar-starter/project.ts | 82 ++++++++++++++ Astar/astar-starter/project.yaml | 48 -------- Astar/astar-wasm-starter/project.ts | 75 +++++++++++++ Astar/astar-wasm-starter/project.yaml | 84 -------------- Automata/automata-starter/project.ts | 79 +++++++++++++ Automata/automata-starter/project.yaml | 48 -------- Basilisk/basilisk-starter/project.ts | 80 +++++++++++++ Basilisk/basilisk-starter/project.yaml | 48 -------- Bifrost/bifrost-starter/project.ts | 83 ++++++++++++++ Bifrost/bifrost-starter/project.yaml | 51 --------- Bitcountry/bitcountry-starter/project.ts | 80 +++++++++++++ Bitcountry/bitcountry-starter/project.yaml | 49 -------- Bitgreen/bitgreen-starter/project.ts | 75 +++++++++++++ Bitgreen/bitgreen-starter/project.yaml | 45 -------- Calamari/calamari-starter/project.ts | 81 ++++++++++++++ Calamari/calamari-starter/project.yaml | 43 ------- Centrifuge/centrifuge-starter/project.ts | 83 ++++++++++++++ Centrifuge/centrifuge-starter/project.yaml | 51 --------- Clover/clover-starter/project.ts | 83 ++++++++++++++ Clover/clover-starter/project.yaml | 51 --------- .../composable-finance-starter/project.ts | 80 +++++++++++++ .../composable-finance-starter/project.yaml | 51 --------- Contextfree/contextfree-starter/project.ts | 80 +++++++++++++ Contextfree/contextfree-starter/project.yaml | 47 -------- Darwinia/darwinia-starter/project.ts | 75 +++++++++++++ Darwinia/darwinia-starter/project.yaml | 43 ------- Efinity/efinity-starter/project.ts | 80 +++++++++++++ Efinity/efinity-starter/project.yaml | 48 -------- Encointer/Encointer-starter/project.ts | 80 +++++++++++++ Encointer/Encointer-starter/project.yaml | 47 -------- Equilibrium/equilibrium-starter/project.ts | 80 +++++++++++++ Equilibrium/equilibrium-starter/project.yaml | 48 -------- Frequency/frequency-starter/project.ts | 80 +++++++++++++ Frequency/frequency-starter/project.yaml | 47 -------- .../hashed-network-starter/project.ts | 80 +++++++++++++ .../hashed-network-starter/project.yaml | 47 -------- Humanode/Humanode-starter/project.ts | 69 ++++++++++++ Humanode/Humanode-starter/project.yaml | 41 ------- HydraDX/hydradx-starter/project.ts | 80 +++++++++++++ HydraDX/hydradx-starter/project.yaml | 48 -------- .../integritee-shell-starter/project.ts | 80 +++++++++++++ .../integritee-shell-starter/project.yaml | 47 -------- Interlay/interlay-starter/project.ts | 83 ++++++++++++++ Interlay/interlay-starter/project.yaml | 51 --------- Kapex/kapex-starter/project.ts | 80 +++++++++++++ Kapex/kapex-starter/project.yaml | 47 -------- Karura/karura-evm-starter/project.ts | 87 +++++++++++++++ Karura/karura-evm-starter/project.yaml | 58 ---------- Karura/karura-starter/project.ts | 83 ++++++++++++++ Karura/karura-starter/project.yaml | 51 --------- Khala/khala-starter/project.ts | 83 ++++++++++++++ Khala/khala-starter/project.yaml | 51 --------- .../project.ts | 83 ++++++++++++++ .../project.yaml | 50 --------- Kilt/kilt-spiritnet-starter/project.ts | 80 +++++++++++++ Kilt/kilt-spiritnet-starter/project.yaml | 48 -------- Kusama/kusama-starter/project.ts | 77 +++++++++++++ Kusama/kusama-starter/project.yaml | 46 -------- Kylin/kylin-starter/project.ts | 80 +++++++++++++ Kylin/kylin-starter/project.yaml | 47 -------- Moonbeam/Moonbeam-starter/project.ts | 82 ++++++++++++++ Moonbeam/Moonbeam-starter/project.yaml | 49 -------- Moonbeam/moonbeam-evm-starter/project.ts | 89 +++++++++++++++ Moonbeam/moonbeam-evm-starter/project.yaml | 66 ----------- .../moonbeam-substrate-evm-starter/project.ts | 105 ++++++++++++++++++ .../project.yaml | 69 ------------ Moonriver/Moonriver-starter/project.ts | 83 ++++++++++++++ Moonriver/Moonriver-starter/project.yaml | 51 --------- Moonriver/moonriver-evm-starter/project.ts | 89 +++++++++++++++ Moonriver/moonriver-evm-starter/project.yaml | 67 ----------- Nodle/nodle-starter/project.ts | 83 ++++++++++++++ Nodle/nodle-starter/project.yaml | 51 --------- OriginTrail/origintrail-starter/project.ts | 80 +++++++++++++ OriginTrail/origintrail-starter/project.yaml | 47 -------- Parallel/parallel-heiko-starter/project.ts | 83 ++++++++++++++ Parallel/parallel-heiko-starter/project.yaml | 53 --------- Parallel/parallel-starter/project.ts | 80 +++++++++++++ Parallel/parallel-starter/project.yaml | 48 -------- Polkadex/polkadex-starter/project.ts | 83 ++++++++++++++ Polkadex/polkadex-starter/project.yaml | 51 --------- Polkadot/Polkadot-starter/project.ts | 75 +++++++++++++ Polkadot/Polkadot-starter/project.yaml | 46 -------- Quartz/quartz-subql-starter/project.ts | 80 +++++++++++++ Quartz/quartz-subql-starter/project.yaml | 47 -------- Shiden/shiden-starter/project.ts | 83 ++++++++++++++ Shiden/shiden-starter/project.yaml | 51 --------- Statemine/statemine-starter/project.ts | 80 +++++++++++++ Statemine/statemine-starter/project.yaml | 49 -------- Statemint/statemint-starter/project.ts | 80 +++++++++++++ Statemint/statemint-starter/project.yaml | 49 -------- Unique/unique-starter/project.ts | 77 +++++++++++++ Unique/unique-starter/project.yaml | 45 -------- Vara/vara-starter/project.ts | 75 +++++++++++++ Vara/vara-starter/project.yaml | 43 ------- Watr/watr-starter/project.ts | 75 +++++++++++++ Watr/watr-starter/project.yaml | 48 -------- Westend/westend-starter/project.ts | 79 +++++++++++++ Westend/westend-starter/project.yaml | 45 -------- 108 files changed, 4375 insertions(+), 2723 deletions(-) create mode 100644 Acala/acala-evm-starter/project.ts delete mode 100644 Acala/acala-evm-starter/project.yaml create mode 100644 Acala/acala-starter/project.ts delete mode 100644 Acala/acala-starter/project.yaml create mode 100644 Ajuna/ajuna-starter/project.ts delete mode 100644 Ajuna/ajuna-starter/project.yaml create mode 100644 Altair/altair-starter/project.ts delete mode 100644 Altair/altair-starter/project.yaml create mode 100644 Astar/astar-evm-starter/project.ts delete mode 100644 Astar/astar-evm-starter/project.yaml create mode 100644 Astar/astar-starter/project.ts delete mode 100644 Astar/astar-starter/project.yaml create mode 100644 Astar/astar-wasm-starter/project.ts delete mode 100644 Astar/astar-wasm-starter/project.yaml create mode 100644 Automata/automata-starter/project.ts delete mode 100644 Automata/automata-starter/project.yaml create mode 100644 Basilisk/basilisk-starter/project.ts delete mode 100644 Basilisk/basilisk-starter/project.yaml create mode 100644 Bifrost/bifrost-starter/project.ts delete mode 100644 Bifrost/bifrost-starter/project.yaml create mode 100644 Bitcountry/bitcountry-starter/project.ts delete mode 100644 Bitcountry/bitcountry-starter/project.yaml create mode 100644 Bitgreen/bitgreen-starter/project.ts delete mode 100644 Bitgreen/bitgreen-starter/project.yaml create mode 100644 Calamari/calamari-starter/project.ts delete mode 100644 Calamari/calamari-starter/project.yaml create mode 100644 Centrifuge/centrifuge-starter/project.ts delete mode 100644 Centrifuge/centrifuge-starter/project.yaml create mode 100644 Clover/clover-starter/project.ts delete mode 100644 Clover/clover-starter/project.yaml create mode 100644 ComposableFinance/composable-finance-starter/project.ts delete mode 100644 ComposableFinance/composable-finance-starter/project.yaml create mode 100644 Contextfree/contextfree-starter/project.ts delete mode 100644 Contextfree/contextfree-starter/project.yaml create mode 100644 Darwinia/darwinia-starter/project.ts delete mode 100644 Darwinia/darwinia-starter/project.yaml create mode 100644 Efinity/efinity-starter/project.ts delete mode 100644 Efinity/efinity-starter/project.yaml create mode 100644 Encointer/Encointer-starter/project.ts delete mode 100644 Encointer/Encointer-starter/project.yaml create mode 100644 Equilibrium/equilibrium-starter/project.ts delete mode 100644 Equilibrium/equilibrium-starter/project.yaml create mode 100644 Frequency/frequency-starter/project.ts delete mode 100644 Frequency/frequency-starter/project.yaml create mode 100644 HashedNetwork/hashed-network-starter/project.ts delete mode 100644 HashedNetwork/hashed-network-starter/project.yaml create mode 100644 Humanode/Humanode-starter/project.ts delete mode 100644 Humanode/Humanode-starter/project.yaml create mode 100644 HydraDX/hydradx-starter/project.ts delete mode 100644 HydraDX/hydradx-starter/project.yaml create mode 100644 IntegriteeShell/integritee-shell-starter/project.ts delete mode 100644 IntegriteeShell/integritee-shell-starter/project.yaml create mode 100644 Interlay/interlay-starter/project.ts delete mode 100644 Interlay/interlay-starter/project.yaml create mode 100644 Kapex/kapex-starter/project.ts delete mode 100644 Kapex/kapex-starter/project.yaml create mode 100644 Karura/karura-evm-starter/project.ts delete mode 100644 Karura/karura-evm-starter/project.yaml create mode 100644 Karura/karura-starter/project.ts delete mode 100644 Karura/karura-starter/project.yaml create mode 100644 Khala/khala-starter/project.ts delete mode 100644 Khala/khala-starter/project.yaml create mode 100644 Kilt/kilt-spiritnet-credentials-example/project.ts delete mode 100644 Kilt/kilt-spiritnet-credentials-example/project.yaml create mode 100644 Kilt/kilt-spiritnet-starter/project.ts delete mode 100644 Kilt/kilt-spiritnet-starter/project.yaml create mode 100644 Kusama/kusama-starter/project.ts delete mode 100644 Kusama/kusama-starter/project.yaml create mode 100644 Kylin/kylin-starter/project.ts delete mode 100644 Kylin/kylin-starter/project.yaml create mode 100644 Moonbeam/Moonbeam-starter/project.ts delete mode 100644 Moonbeam/Moonbeam-starter/project.yaml create mode 100644 Moonbeam/moonbeam-evm-starter/project.ts delete mode 100644 Moonbeam/moonbeam-evm-starter/project.yaml create mode 100644 Moonbeam/moonbeam-substrate-evm-starter/project.ts delete mode 100644 Moonbeam/moonbeam-substrate-evm-starter/project.yaml create mode 100644 Moonriver/Moonriver-starter/project.ts delete mode 100644 Moonriver/Moonriver-starter/project.yaml create mode 100644 Moonriver/moonriver-evm-starter/project.ts delete mode 100644 Moonriver/moonriver-evm-starter/project.yaml create mode 100644 Nodle/nodle-starter/project.ts delete mode 100644 Nodle/nodle-starter/project.yaml create mode 100644 OriginTrail/origintrail-starter/project.ts delete mode 100644 OriginTrail/origintrail-starter/project.yaml create mode 100644 Parallel/parallel-heiko-starter/project.ts delete mode 100644 Parallel/parallel-heiko-starter/project.yaml create mode 100644 Parallel/parallel-starter/project.ts delete mode 100644 Parallel/parallel-starter/project.yaml create mode 100644 Polkadex/polkadex-starter/project.ts delete mode 100644 Polkadex/polkadex-starter/project.yaml create mode 100644 Polkadot/Polkadot-starter/project.ts delete mode 100644 Polkadot/Polkadot-starter/project.yaml create mode 100644 Quartz/quartz-subql-starter/project.ts delete mode 100644 Quartz/quartz-subql-starter/project.yaml create mode 100644 Shiden/shiden-starter/project.ts delete mode 100644 Shiden/shiden-starter/project.yaml create mode 100644 Statemine/statemine-starter/project.ts delete mode 100644 Statemine/statemine-starter/project.yaml create mode 100644 Statemint/statemint-starter/project.ts delete mode 100644 Statemint/statemint-starter/project.yaml create mode 100644 Unique/unique-starter/project.ts delete mode 100644 Unique/unique-starter/project.yaml create mode 100644 Vara/vara-starter/project.ts delete mode 100644 Vara/vara-starter/project.yaml create mode 100644 Watr/watr-starter/project.ts delete mode 100644 Watr/watr-starter/project.yaml create mode 100644 Westend/westend-starter/project.ts delete mode 100644 Westend/westend-starter/project.yaml diff --git a/Acala/acala-evm-starter/project.ts b/Acala/acala-evm-starter/project.ts new file mode 100644 index 00000000..b232cda4 --- /dev/null +++ b/Acala/acala-evm-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +import { AcalaEvmDatasource } from '@subql/acala-evm-processor'; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "acala-evm-starter", + description: + "A basic Acala EVM example", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://acala-polkadot.api.onfinality.io/public-ws", + "wss://acala-rpc-0.aca-api.network", + ], + dictionary: 'https://explorer.subquery.network/subquery/subquery/acala-dictionary', + }, + dataSources: [ + { + kind: 'substrate/AcalaEvm', + startBlock: 1000000, + processor: { + file: './node_modules/@subql/acala-evm-processor/dist/bundle.js', + options: { + abi: 'erc20', + address: "0x0000000000000000000100000000000000000000" // ACA Token https://blockscout.acala.network/address/0x0000000000000000000100000000000000000000 + } + }, + assets: new Map([['erc20', { file: './erc20.abi.json' }]]), + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleAcalaEvmEvent', + kind: 'substrate/AcalaEvmEvent', + filter: { + topics: [ + 'Transfer(address indexed from,address indexed to,uint256 value)' + ] + } + }, + { + handler: 'handleAcalaEvmCall', + kind: 'substrate/AcalaEvmCall', + filter: { + function: 'approve(address to,uint256 value)' + } + } + ] + }, + }, + ], +}; + +export default project; diff --git a/Acala/acala-evm-starter/project.yaml b/Acala/acala-evm-starter/project.yaml deleted file mode 100644 index 7349f34e..00000000 --- a/Acala/acala-evm-starter/project.yaml +++ /dev/null @@ -1,57 +0,0 @@ -specVersion: 1.0.0 -name: acala-evm-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: A basic Acala EVM example -repository: "https://github.com/subquery/acala-evm-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://acala-polkadot.api.onfinality.io/public-ws", - "wss://acala-rpc-0.aca-api.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: https://explorer.subquery.network/subquery/subquery/acala-dictionary - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/AcalaEvm - startBlock: 1000000 - processor: - file: "./node_modules/@subql/acala-evm-processor/dist/bundle.js" - options: - abi: erc20 - address: "0x0000000000000000000100000000000000000000" # ACA Token https://blockscout.acala.network/address/0x0000000000000000000100000000000000000000 - assets: - erc20: - file: ./erc20.abi.json - mapping: - file: ./dist/index.js - handlers: - - handler: handleAcalaEvmEvent - kind: substrate/AcalaEvmEvent - filter: - topics: - - "Transfer(address indexed from,address indexed to,uint256 value)" - - null - - null - - null - - handler: handleAcalaEvmCall - kind: substrate/AcalaEvmCall - filter: - function: "approve(address to,uint256 value)" diff --git a/Acala/acala-starter/project.ts b/Acala/acala-starter/project.ts new file mode 100644 index 00000000..866c3dbf --- /dev/null +++ b/Acala/acala-starter/project.ts @@ -0,0 +1,82 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "acala-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Acala network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://acala-polkadot.api.onfinality.io/public-ws", + "wss://acala-rpc-0.aca-api.network", + ], + dictionary: 'https://api.subquery.network/sq/subquery/acala-dictionary', + chaintypes: { + file: './dist/chaintypes.js', + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Acala/acala-starter/project.yaml b/Acala/acala-starter/project.yaml deleted file mode 100644 index 8c898107..00000000 --- a/Acala/acala-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: acala-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Acala network -repository: "https://github.com/subquery/acala-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://acala-polkadot.api.onfinality.io/public-ws", - "wss://acala-rpc-0.aca-api.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/acala-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Ajuna/ajuna-starter/project.ts b/Ajuna/ajuna-starter/project.ts new file mode 100644 index 00000000..8a78fbad --- /dev/null +++ b/Ajuna/ajuna-starter/project.ts @@ -0,0 +1,81 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "ajuna-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Ajuna network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://ajuna.api.onfinality.io/public-ws", + "wss://rpc-parachain.ajuna.network", + ], + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Ajuna/ajuna-starter/project.yaml b/Ajuna/ajuna-starter/project.yaml deleted file mode 100644 index a5f42862..00000000 --- a/Ajuna/ajuna-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: ajuna-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Ajuna network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://ajuna.api.onfinality.io/public-ws", - "wss://rpc-parachain.ajuna.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/altair-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Altair/altair-starter/project.ts b/Altair/altair-starter/project.ts new file mode 100644 index 00000000..5c9a0ea1 --- /dev/null +++ b/Altair/altair-starter/project.ts @@ -0,0 +1,81 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "altair-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Altair network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xaa3876c1dc8a1afcc2e9a685a49ff7704cfd36ad8c90bf2702b9d1b00cc40011", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://altair.api.onfinality.io/public-ws", + "wss://fullnode.altair.centrifuge.io", + ], + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Deposit", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Altair/altair-starter/project.yaml b/Altair/altair-starter/project.yaml deleted file mode 100644 index f1b5b8f7..00000000 --- a/Altair/altair-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: altair-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Altair network -repository: "https://github.com/subquery/altair-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xaa3876c1dc8a1afcc2e9a685a49ff7704cfd36ad8c90bf2702b9d1b00cc40011" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://altair.api.onfinality.io/public-ws", - "wss://fullnode.altair.centrifuge.io", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/altair-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Astar/astar-evm-starter/project.ts b/Astar/astar-evm-starter/project.ts new file mode 100644 index 00000000..a15ec5b9 --- /dev/null +++ b/Astar/astar-evm-starter/project.ts @@ -0,0 +1,86 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +import { FrontierEvmDatasource } from '@subql/frontier-evm-processor'; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "astar-evm-starter", + description: + `A basic Frontier EVM example project with an event and call handler. Read more + about this at https://university.subquery.network/create/frontier/. This + project can be use as a starting point for developing your SubQuery project`, + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://astar.api.onfinality.io/public-ws", "wss://rpc.astar.network"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: 'substrate/FrontierEvm', + startBlock: 970733, + processor: { + file: './node_modules/@subql/frontier-evm-processor/dist/bundle.js', + options: { + abi: 'erc20', + // address: '0x0000000000000000000000000000000000000000' // A specific contract to index + } + }, + assets: new Map([['erc20', { file: './erc20.abi.json' }]]), + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvmEvent', + kind: 'substrate/FrontierEvmEvent', + filter: { + topics: [ + 'Transfer(address indexed from,address indexed to,uint256 value)' + ] + } + }, + { + handler: 'handleEvmCall', + kind: 'substrate/FrontierEvmCall', + filter: { + function: 'approve(address to,uint256 value)' + } + } + ] + }, + }, + ], +}; + +export default project; diff --git a/Astar/astar-evm-starter/project.yaml b/Astar/astar-evm-starter/project.yaml deleted file mode 100644 index cf738fba..00000000 --- a/Astar/astar-evm-starter/project.yaml +++ /dev/null @@ -1,57 +0,0 @@ -specVersion: 1.0.0 -name: astar-evm-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - A basic Frontier EVM example project with an event and call handler. Read more - about this at https://university.subquery.network/create/frontier/. This - project can be use as a starting point for developing your SubQuery project -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://astar.api.onfinality.io/public-ws", "wss://rpc.astar.network"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/FrontierEvm - startBlock: 970733 - processor: - file: ./node_modules/@subql/frontier-evm-processor/dist/bundle.js - options: - abi: erc20 - assets: - erc20: - file: ./erc20.abi.json - mapping: - file: ./dist/index.js - handlers: - - handler: handleEvmEvent - kind: substrate/FrontierEvmEvent - filter: - topics: - - "Transfer(address, address,uint256)" - - null - - null - - null - - handler: handleEvmCall - kind: substrate/FrontierEvmCall - filter: - function: "approve(address to,uint256 value)" - #from: "0x6bd193ee6d2104f14f94e2ca6efefae561a4334b" diff --git a/Astar/astar-starter/project.ts b/Astar/astar-starter/project.ts new file mode 100644 index 00000000..8d1a382f --- /dev/null +++ b/Astar/astar-starter/project.ts @@ -0,0 +1,82 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "astar-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Astar network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://astar.api.onfinality.io/public-ws", + "wss://rpc.astar.network" + ], + dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Astar/astar-starter/project.yaml b/Astar/astar-starter/project.yaml deleted file mode 100644 index 38bb92e5..00000000 --- a/Astar/astar-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: astar-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Astar network -repository: "https://github.com/subquery/astar-subql-starters" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://astar.api.onfinality.io/public-ws", "wss://rpc.astar.network"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Astar/astar-wasm-starter/project.ts b/Astar/astar-wasm-starter/project.ts new file mode 100644 index 00000000..e1314e81 --- /dev/null +++ b/Astar/astar-wasm-starter/project.ts @@ -0,0 +1,75 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "polkadot-starter", + description: + "This project can be used as a starting point for developing your SubQuery project", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: "wss://polkadot.api.onfinality.io/public-ws", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Deposit", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Astar/astar-wasm-starter/project.yaml b/Astar/astar-wasm-starter/project.yaml deleted file mode 100644 index e1a09943..00000000 --- a/Astar/astar-wasm-starter/project.yaml +++ /dev/null @@ -1,84 +0,0 @@ -specVersion: 1.0.0 -name: astar-wasm-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - A basic Substrate WSSM example project with an event and call handler. Read more - about this at https://academy.subquery.network/build/substrate-wasm.html. This - project can be use as a starting point for developing your SubQuery project -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://astar.api.onfinality.io/public-ws", "wss://rpc.astar.network"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Wasm - # This is the datasource for Astar's Wasm processor - startBlock: 3281780 - processor: - file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js - options: - abi: erc20 - # contract: "a6Yrf6jAPUwjoi5YvvoTE4ES5vYAMpV55ZCsFHtwMFPDx7H" # Shibuya - contract: "bZ2uiFGTLcYyP8F88XzXa13xu5Mmp13VLiaW1gGn7rzxktc" # Mainnet - assets: - erc20: - file: ./abis/erc20Metadata.json - mapping: - file: ./dist/index.js - handlers: - - handler: handleWasmEvent - kind: substrate/WasmEvent - filter: - # contract: "a6Yrf6jAPUwjoi5YvvoTE4ES5vYAMpV55ZCsFHtwMFPDx7H" # Shibuya - contract: "bZ2uiFGTLcYyP8F88XzXa13xu5Mmp13VLiaW1gGn7rzxktc" # Mainnet - identifier: "Transfer" - - handler: handleWasmCall - kind: substrate/WasmCall - filter: - selector: "0x681266a0" - method: "approve" - - kind: substrate/Runtime - # This is the datasource for Astar's Native Substrate processor - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - - handler: handleNewContract - kind: substrate/EventHandler - filter: - module: dappsStaking - method: NewContract - - handler: handleBondAndStake - kind: substrate/EventHandler - filter: - module: dappsStaking - method: BondAndStake - - handler: handleUnbondAndUnstake - kind: substrate/EventHandler - filter: - module: dappsStaking - method: UnbondAndUnstake - - handler: handleReward - kind: substrate/EventHandler - filter: - module: dappsStaking - method: Reward diff --git a/Automata/automata-starter/project.ts b/Automata/automata-starter/project.ts new file mode 100644 index 00000000..bf6aee9f --- /dev/null +++ b/Automata/automata-starter/project.ts @@ -0,0 +1,79 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "automata-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Automata network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xc8eda34601b5a48c73f47ee39a3a86a858c34f044185b17dc7d5ad155813dc63", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://automata.api.onfinality.io/public-ws", "wss://api.ata.network"], + dictionary: "https://api.subquery.network/sq/subquery/automata-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Automata/automata-starter/project.yaml b/Automata/automata-starter/project.yaml deleted file mode 100644 index 108e57c5..00000000 --- a/Automata/automata-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: automata-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Automata network -repository: "https://github.com/subquery/automata-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xc8eda34601b5a48c73f47ee39a3a86a858c34f044185b17dc7d5ad155813dc63" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://automata.api.onfinality.io/public-ws", "wss://api.ata.network"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/automata-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Basilisk/basilisk-starter/project.ts b/Basilisk/basilisk-starter/project.ts new file mode 100644 index 00000000..aaab60a9 --- /dev/null +++ b/Basilisk/basilisk-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "basilisk-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on basilisk network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: + ["wss://basilisk.api.onfinality.io/public-ws", "wss://rpc.basilisk.cloud"], + dictionary: "https://api.subquery.network/sq/subquery/basilisk-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Basilisk/basilisk-starter/project.yaml b/Basilisk/basilisk-starter/project.yaml deleted file mode 100644 index 955c2e98..00000000 --- a/Basilisk/basilisk-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: basilisk-subql-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on basilisk network -repository: "https://github.com/subquery/basilisk-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://basilisk.api.onfinality.io/public-ws", "wss://rpc.basilisk.cloud"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/basilisk-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Bifrost/bifrost-starter/project.ts b/Bifrost/bifrost-starter/project.ts new file mode 100644 index 00000000..ed3f3580 --- /dev/null +++ b/Bifrost/bifrost-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "bifrost-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Bifrost network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://bifrost-parachain.api.onfinality.io/public-ws", + "wss://bifrost-rpc.liebi.com/ws", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/bifrost-parachain-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Bifrost/bifrost-starter/project.yaml b/Bifrost/bifrost-starter/project.yaml deleted file mode 100644 index 2ff27e48..00000000 --- a/Bifrost/bifrost-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: bifrost-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Bifrost network -repository: "https://github.com/subquery/bifrost-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://bifrost-parachain.api.onfinality.io/public-ws", - "wss://bifrost-rpc.liebi.com/ws", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/bifrost-parachain-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Bitcountry/bitcountry-starter/project.ts b/Bitcountry/bitcountry-starter/project.ts new file mode 100644 index 00000000..41f632df --- /dev/null +++ b/Bitcountry/bitcountry-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "bitcountry-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Bitcountry-pioneer network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xf22b7850cdd5a7657bbfd90ac86441275bbc57ace3d2698a740c7b0ec4de5ec3", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://pioneer.api.onfinality.io/public-ws"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/bitcountry-pioneer-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Bitcountry/bitcountry-starter/project.yaml b/Bitcountry/bitcountry-starter/project.yaml deleted file mode 100644 index a53276a8..00000000 --- a/Bitcountry/bitcountry-starter/project.yaml +++ /dev/null @@ -1,49 +0,0 @@ -specVersion: 1.0.0 -name: bitcountry-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Bitcountry-pioneer - network -repository: "https://github.com/subquery/bitcountry-pioneer-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xf22b7850cdd5a7657bbfd90ac86441275bbc57ace3d2698a740c7b0ec4de5ec3" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://pioneer.api.onfinality.io/public-ws"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/bitcountry-pioneer-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Bitgreen/bitgreen-starter/project.ts b/Bitgreen/bitgreen-starter/project.ts new file mode 100644 index 00000000..35c64f69 --- /dev/null +++ b/Bitgreen/bitgreen-starter/project.ts @@ -0,0 +1,75 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "bitgreen-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Bitgreen network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xc14597baeccb232d662770d2d50ae832ca8c3192693d2b0814e6433f2888ddd6", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://mainnet.bitgreen.org"], + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Bitgreen/bitgreen-starter/project.yaml b/Bitgreen/bitgreen-starter/project.yaml deleted file mode 100644 index e17b47c0..00000000 --- a/Bitgreen/bitgreen-starter/project.yaml +++ /dev/null @@ -1,45 +0,0 @@ -specVersion: 1.0.0 -name: bitgreen-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Bitgreen network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xc14597baeccb232d662770d2d50ae832ca8c3192693d2b0814e6433f2888ddd6" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://mainnet.bitgreen.org"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/bitgreen-dictionary" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Calamari/calamari-starter/project.ts b/Calamari/calamari-starter/project.ts new file mode 100644 index 00000000..282dc264 --- /dev/null +++ b/Calamari/calamari-starter/project.ts @@ -0,0 +1,81 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "calamari-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Calamari network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x4ac80c99289841dd946ef92765bf659a307d39189b3ce374a92b5f0415ee17a1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + // This endpoint might not be publicly available + endpoint: ["wss://ws.calamari.systems"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/calamari-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Calamari/calamari-starter/project.yaml b/Calamari/calamari-starter/project.yaml deleted file mode 100644 index 3f38631d..00000000 --- a/Calamari/calamari-starter/project.yaml +++ /dev/null @@ -1,43 +0,0 @@ -specVersion: 1.0.0 -name: calamari-subql-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Calamari network -repository: "https://github.com/subquery/calamari-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x4ac80c99289841dd946ef92765bf659a307d39189b3ce374a92b5f0415ee17a1" - # This endpoint might not be publicly available - endpoint: ["wss://ws.calamari.systems"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/calamari-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Centrifuge/centrifuge-starter/project.ts b/Centrifuge/centrifuge-starter/project.ts new file mode 100644 index 00000000..db2641ed --- /dev/null +++ b/Centrifuge/centrifuge-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "centrifuge-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Centrifuge network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://centrifuge-parachain.api.onfinality.io/public-ws", + "wss://fullnode.centrifuge.io", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/centrifuge-parachain-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Centrifuge/centrifuge-starter/project.yaml b/Centrifuge/centrifuge-starter/project.yaml deleted file mode 100644 index bbcb7cae..00000000 --- a/Centrifuge/centrifuge-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: centrifuge-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Centrifuge network -repository: "https://github.com/subquery/subql-starter/tree/main/Centrifuge/centrifuge-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://centrifuge-parachain.api.onfinality.io/public-ws", - "wss://fullnode.centrifuge.io", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/centrifuge-parachain-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Clover/clover-starter/project.ts b/Clover/clover-starter/project.ts new file mode 100644 index 00000000..c047b10a --- /dev/null +++ b/Clover/clover-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "clover-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Clover network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x5c7bd13edf349b33eb175ffae85210299e324d852916336027391536e686f267", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://clover.api.onfinality.io/public-ws", + "wss://rpc-para.clover.finance", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/clover-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Clover/clover-starter/project.yaml b/Clover/clover-starter/project.yaml deleted file mode 100644 index 89a0e9bc..00000000 --- a/Clover/clover-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: clover-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Clover network -repository: "https://github.com/subquery/clover-subql-starters" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x5c7bd13edf349b33eb175ffae85210299e324d852916336027391536e686f267" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://clover.api.onfinality.io/public-ws", - "wss://rpc-para.clover.finance", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/clover-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/ComposableFinance/composable-finance-starter/project.ts b/ComposableFinance/composable-finance-starter/project.ts new file mode 100644 index 00000000..d84c3706 --- /dev/null +++ b/ComposableFinance/composable-finance-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "composable-finance-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Composable Finance network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://composable.api.onfinality.io/public-ws", + "wss://rpc.composable.finance", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/composable-finance-dictionary", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/ComposableFinance/composable-finance-starter/project.yaml b/ComposableFinance/composable-finance-starter/project.yaml deleted file mode 100644 index f6734cca..00000000 --- a/ComposableFinance/composable-finance-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: composable-finance-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Composable Finance network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://composable.api.onfinality.io/public-ws", - "wss://rpc.composable.finance", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/composable-finance-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Contextfree/contextfree-starter/project.ts b/Contextfree/contextfree-starter/project.ts new file mode 100644 index 00000000..275e172d --- /dev/null +++ b/Contextfree/contextfree-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "contextfree-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Contextfree network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x6254c948b5eb7199a112cb308be3385c39c8c942625540ac749c77fe2aebc299", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://contextfree.api.onfinality.io/public-ws"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/contextfree-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Contextfree/contextfree-starter/project.yaml b/Contextfree/contextfree-starter/project.yaml deleted file mode 100644 index a926839e..00000000 --- a/Contextfree/contextfree-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: contextfree-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Contextfree network -repository: "https://github.com/subquery/contextfree-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x6254c948b5eb7199a112cb308be3385c39c8c942625540ac749c77fe2aebc299" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://contextfree.api.onfinality.io/public-ws" - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/contextfree-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Darwinia/darwinia-starter/project.ts b/Darwinia/darwinia-starter/project.ts new file mode 100644 index 00000000..05765ba9 --- /dev/null +++ b/Darwinia/darwinia-starter/project.ts @@ -0,0 +1,75 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "darwinia-starter", + description: + "TThis project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Darwinia network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xf0b8924b12e8108550d28870bc03f7b45a947e1b2b9abf81bfb0b89ecb60570e", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://rpc.darwinia.network"], + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Darwinia/darwinia-starter/project.yaml b/Darwinia/darwinia-starter/project.yaml deleted file mode 100644 index 44522607..00000000 --- a/Darwinia/darwinia-starter/project.yaml +++ /dev/null @@ -1,43 +0,0 @@ -specVersion: 1.0.0 -name: darwinia-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Darwinia network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xf0b8924b12e8108550d28870bc03f7b45a947e1b2b9abf81bfb0b89ecb60570e" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://rpc.darwinia.network" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Efinity/efinity-starter/project.ts b/Efinity/efinity-starter/project.ts new file mode 100644 index 00000000..fae52bba --- /dev/null +++ b/Efinity/efinity-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "efinity-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Efinity network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x335369975fced3fc22e23498da306a712f4fd964c957364d53c49cea9db8bc2f", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://efinity.api.onfinality.io/public-ws", "wss://rpc.efinity.io"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/efinity-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Efinity/efinity-starter/project.yaml b/Efinity/efinity-starter/project.yaml deleted file mode 100644 index 531b0ed3..00000000 --- a/Efinity/efinity-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: efinity-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Efinity network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x335369975fced3fc22e23498da306a712f4fd964c957364d53c49cea9db8bc2f" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://efinity.api.onfinality.io/public-ws", "wss://rpc.efinity.io"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - #dictionary: "https://api.subquery.network/sq/subquery/efinity-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Encointer/Encointer-starter/project.ts b/Encointer/Encointer-starter/project.ts new file mode 100644 index 00000000..55df53ca --- /dev/null +++ b/Encointer/Encointer-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "encointer-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Encointer", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x7dd99936c1e9e6d1ce7d90eb6f33bea8393b4bf87677d675aa63c9cb3e8c5b5b", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://encointer.api.onfinality.io/public-ws"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/encointer-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Encointer/Encointer-starter/project.yaml b/Encointer/Encointer-starter/project.yaml deleted file mode 100644 index 0a95198b..00000000 --- a/Encointer/Encointer-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: encointer-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Encointer -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x7dd99936c1e9e6d1ce7d90eb6f33bea8393b4bf87677d675aa63c9cb3e8c5b5b" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://encointer.api.onfinality.io/public-ws" - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/encointer-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Equilibrium/equilibrium-starter/project.ts b/Equilibrium/equilibrium-starter/project.ts new file mode 100644 index 00000000..ce69d9a7 --- /dev/null +++ b/Equilibrium/equilibrium-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "equilibrium-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Equilibrium network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x89d3ec46d2fb43ef5a9713833373d5ea666b092fa8fd68fbc34596036571b907", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://equilibrium-rpc.dwellir.com", "wss://node.pol.equilibrium.io"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/equilibrium-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Equilibrium/equilibrium-starter/project.yaml b/Equilibrium/equilibrium-starter/project.yaml deleted file mode 100644 index baea06f9..00000000 --- a/Equilibrium/equilibrium-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: equilibrium-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Equilibrium network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x89d3ec46d2fb43ef5a9713833373d5ea666b092fa8fd68fbc34596036571b907" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://equilibrium-rpc.dwellir.com", "wss://node.pol.equilibrium.io"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/equilibrium-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Frequency/frequency-starter/project.ts b/Frequency/frequency-starter/project.ts new file mode 100644 index 00000000..7b7e2327 --- /dev/null +++ b/Frequency/frequency-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "frequency-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Frequency network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x4a587bf17a404e3572747add7aab7bbe56e805a5479c6c436f07f36fcc8d3ae1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://0.rpc.frequency.xyz", "wss://1.rpc.frequency.xyz"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/frequency-dictionary" + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Frequency/frequency-starter/project.yaml b/Frequency/frequency-starter/project.yaml deleted file mode 100644 index 3b0684dd..00000000 --- a/Frequency/frequency-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: frequency-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Frequency network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x4a587bf17a404e3572747add7aab7bbe56e805a5479c6c436f07f36fcc8d3ae1" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://0.rpc.frequency.xyz", "wss://1.rpc.frequency.xyz"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/frequency-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/HashedNetwork/hashed-network-starter/project.ts b/HashedNetwork/hashed-network-starter/project.ts new file mode 100644 index 00000000..0f2fe557 --- /dev/null +++ b/HashedNetwork/hashed-network-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "hashed-network-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Hashed Network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x331645ae3db556c7754a82f79cece12cce3420975d5b0219d51b1cb4f6ddc21c", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://c1.hashed.network", "wss://c2.hashed.network"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/hashed-network-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/HashedNetwork/hashed-network-starter/project.yaml b/HashedNetwork/hashed-network-starter/project.yaml deleted file mode 100644 index 0087b8f8..00000000 --- a/HashedNetwork/hashed-network-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: hashed-network-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Hashed Network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x331645ae3db556c7754a82f79cece12cce3420975d5b0219d51b1cb4f6ddc21c" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://c1.hashed.network", "wss://c2.hashed.network"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/hashed-network-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Humanode/Humanode-starter/project.ts b/Humanode/Humanode-starter/project.ts new file mode 100644 index 00000000..f1cd27c2 --- /dev/null +++ b/Humanode/Humanode-starter/project.ts @@ -0,0 +1,69 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "humanode-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers, bioauthentication events, and online validator nodes from Humanode chain", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xc56fa32442b2dad76f214b3ae07998e4ca09736e4813724bfb0717caae2c8bee", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://explorer-rpc-ws.mainnet.stages.humanode.io"], + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + { + kind: SubstrateHandlerKind.Event, + handler: "handleBioauthNewAuthenticationEvent", + filter: { + module: "bioauth", + method: "NewAuthentication", + }, + }, + { + kind: SubstrateHandlerKind.Event, + handler: "handleImonlineSomeOfflineEvent", + filter: { + module: "imOnline", + method: "SomeOffline", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Humanode/Humanode-starter/project.yaml b/Humanode/Humanode-starter/project.yaml deleted file mode 100644 index 77d8fe09..00000000 --- a/Humanode/Humanode-starter/project.yaml +++ /dev/null @@ -1,41 +0,0 @@ -specVersion: 1.0.0 -name: humanode-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers, bioauthentication events, and online validator nodes from Humanode chain" -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xc56fa32442b2dad76f214b3ae07998e4ca09736e4813724bfb0717caae2c8bee" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://explorer-rpc-ws.mainnet.stages.humanode.io" - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - - handler: handleBioauthNewAuthenticationEvent - kind: substrate/EventHandler - filter: - module: bioauth - method: NewAuthentication - - handler: handleImonlineSomeOfflineEvent - kind: substrate/EventHandler - filter: - module: imOnline - method: SomeOffline diff --git a/HydraDX/hydradx-starter/project.ts b/HydraDX/hydradx-starter/project.ts new file mode 100644 index 00000000..f6580d4e --- /dev/null +++ b/HydraDX/hydradx-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "hydradx-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on HydraDX network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://rpc.hydradx.cloud", "wss://hydradx.api.onfinality.io/public-ws"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/hydradx-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/HydraDX/hydradx-starter/project.yaml b/HydraDX/hydradx-starter/project.yaml deleted file mode 100644 index 14c961a8..00000000 --- a/HydraDX/hydradx-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: hydradx-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on HydraDX network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://rpc.hydradx.cloud", "wss://hydradx.api.onfinality.io/public-ws"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/hydradx-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/IntegriteeShell/integritee-shell-starter/project.ts b/IntegriteeShell/integritee-shell-starter/project.ts new file mode 100644 index 00000000..6e565c85 --- /dev/null +++ b/IntegriteeShell/integritee-shell-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "integritee-shell-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Integritee Shell network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xe13e7af377c64e83f95e0d70d5e5c3c01d697a84538776c5b9bbe0e7d7b6034c", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://polkadot.api.integritee.network"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/integritee-shell-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/IntegriteeShell/integritee-shell-starter/project.yaml b/IntegriteeShell/integritee-shell-starter/project.yaml deleted file mode 100644 index 0048241a..00000000 --- a/IntegriteeShell/integritee-shell-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: integritee-shell-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Integritee Shell network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xe13e7af377c64e83f95e0d70d5e5c3c01d697a84538776c5b9bbe0e7d7b6034c" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://polkadot.api.integritee.network" - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/integritee-shell-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Interlay/interlay-starter/project.ts b/Interlay/interlay-starter/project.ts new file mode 100644 index 00000000..3d6428ea --- /dev/null +++ b/Interlay/interlay-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "interlay-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Interlay network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://interlay.api.onfinality.io/public-ws", + "wss://api.interlay.io/parachain", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/interlay-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Interlay/interlay-starter/project.yaml b/Interlay/interlay-starter/project.yaml deleted file mode 100644 index 679774df..00000000 --- a/Interlay/interlay-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: interlay-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Interlay network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://interlay.api.onfinality.io/public-ws", - "wss://api.interlay.io/parachain", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - #dictionary: "https://api.subquery.network/sq/subquery/interlay-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Kapex/kapex-starter/project.ts b/Kapex/kapex-starter/project.ts new file mode 100644 index 00000000..f0ec7bae --- /dev/null +++ b/Kapex/kapex-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "kapex-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Kapex network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "TBC", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://k-ui.kapex.networks"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/kapex-dictionary" + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Kapex/kapex-starter/project.yaml b/Kapex/kapex-starter/project.yaml deleted file mode 100644 index 8c98394e..00000000 --- a/Kapex/kapex-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: kapex-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Kapex network -repository: "https://github.com/subquery/altair-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "TBC" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://k-ui.kapex.networks" - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/kapex-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Karura/karura-evm-starter/project.ts b/Karura/karura-evm-starter/project.ts new file mode 100644 index 00000000..99a3618a --- /dev/null +++ b/Karura/karura-evm-starter/project.ts @@ -0,0 +1,87 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +import { AcalaEvmDatasource } from '@subql/acala-evm-processor'; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "karura-evm-starter", + description: + "A basic Karura EVM example", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://karura.api.onfinality.io/public-ws", + "wss://karura-rpc-0.aca-api.network", + ], + dictionary: 'https://explorer.subquery.network/subquery/subquery/karura-dictionary', + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: 'substrate/AcalaEvm', + startBlock: 1000000, + processor: { + file: './node_modules/@subql/acala-evm-processor/dist/bundle.js', + options: { + abi: 'erc20', + address: "0x0000000000000000000100000000000000000000" + } + }, + assets: new Map([['erc20', { file: './erc20.abi.json' }]]), + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleAcalaEvmEvent', + kind: 'substrate/AcalaEvmEvent', + filter: { + topics: [ + 'Transfer(address indexed from,address indexed to,uint256 value)' + ] + } + }, + { + handler: 'handleAcalaEvmCall', + kind: 'substrate/AcalaEvmCall', + filter: { + function: 'approve(address to,uint256 value)', + from: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b' + } + } + ] + }, + }, + ], +}; + +export default project; diff --git a/Karura/karura-evm-starter/project.yaml b/Karura/karura-evm-starter/project.yaml deleted file mode 100644 index b7eab79b..00000000 --- a/Karura/karura-evm-starter/project.yaml +++ /dev/null @@ -1,58 +0,0 @@ -specVersion: 1.0.0 -name: karura-evm-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: A basic Acala EVM example -repository: "https://github.com/subquery/acala-evm-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://karura.api.onfinality.io/public-ws", - "wss://karura-rpc-0.aca-api.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: https://explorer.subquery.network/subquery/subquery/karura-dictionary - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/AcalaEvm - startBlock: 752073 - processor: - file: ./dist/acalaEvm.js - options: - abi: erc20 - address: "0x0000000000000000000100000000000000000000" - assets: - erc20: - file: ./erc20.abi.json - mapping: - file: ./dist/index.js - handlers: - - handler: handleAcalaEvmEvent - kind: substrate/AcalaEvmEvent - filter: - topics: - - "Transfer(address indexed from,address indexed to,uint256 value)" - - null - - null - - null - - handler: handleAcalaEvmCall - kind: substrate/AcalaEvmCall - filter: - function: "approve(address to,uint256 value)" - from: "0x6bd193ee6d2104f14f94e2ca6efefae561a4334b" diff --git a/Karura/karura-starter/project.ts b/Karura/karura-starter/project.ts new file mode 100644 index 00000000..3a1ea188 --- /dev/null +++ b/Karura/karura-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "karura-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Karura network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://karura.api.onfinality.io/public-ws", + "wss://karura-rpc-0.aca-api.network", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/karura-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Karura/karura-starter/project.yaml b/Karura/karura-starter/project.yaml deleted file mode 100644 index 291ac227..00000000 --- a/Karura/karura-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: karura-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Karura network -repository: "https://github.com/subquery/karura-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://karura.api.onfinality.io/public-ws", - "wss://karura-rpc-0.aca-api.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/karura-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Khala/khala-starter/project.ts b/Khala/khala-starter/project.ts new file mode 100644 index 00000000..647257a9 --- /dev/null +++ b/Khala/khala-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "khala-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Khala network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://khala.api.onfinality.io/public-ws", + "wss://khala-api.phala.network/ws", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/khala-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Khala/khala-starter/project.yaml b/Khala/khala-starter/project.yaml deleted file mode 100644 index 3fc6f5f2..00000000 --- a/Khala/khala-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: khala-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Khala network -repository: "https://github.com/subquery/khala-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://khala.api.onfinality.io/public-ws", - "wss://khala-api.phala.network/ws", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/khala-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Kilt/kilt-spiritnet-credentials-example/project.ts b/Kilt/kilt-spiritnet-credentials-example/project.ts new file mode 100644 index 00000000..213907c2 --- /dev/null +++ b/Kilt/kilt-spiritnet-credentials-example/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "kilt-spiritnet-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It aggregates attestations from the Kilt Spiritnet network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://spiritnet.api.onfinality.io/public-ws", "wss://spiritnet.kilt.io"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/kilt-spiritnet-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + { + kind: SubstrateHandlerKind.Event, + handler: "handleAttestationCreated", + filter: { + module: "attestation", + method: "AttestationCreated", + }, + }, + { + kind: SubstrateHandlerKind.Event, + handler: "handleAttestationRevoked", + filter: { + module: "attestation", + method: "AttestationRevoked", + }, + }, + // We could not find any events for this module in the blocks explored + /*{ + kind: SubstrateHandlerKind.Event, + handler: "handleAttestationRemoved", + filter: { + module: "attestation", + method: "AttestationRemoved", + }, + },*/ + ], + }, + }, + ], +}; + +export default project; diff --git a/Kilt/kilt-spiritnet-credentials-example/project.yaml b/Kilt/kilt-spiritnet-credentials-example/project.yaml deleted file mode 100644 index 5aef688f..00000000 --- a/Kilt/kilt-spiritnet-credentials-example/project.yaml +++ /dev/null @@ -1,50 +0,0 @@ -specVersion: 1.0.0 -name: kilt-spiritnet-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: "This project can be used as a starting point for developing your SubQuery project. It aggregates attestations from the Kilt Spiritnet network" -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://spiritnet.api.onfinality.io/public-ws", "wss://spiritnet.kilt.io"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/kilt-spiritnet-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - - handler: handleAttestationCreated - kind: substrate/EventHandler - filter: - module: attestation - method: AttestationCreated - - handler: handleAttestationRevoked - kind: substrate/EventHandler - filter: - module: attestation - method: AttestationRevoked - # We could not find any events for this module in the blocks explored - # - handler: handleAttestationRemoved - # kind: substrate/EventHandler - # filter: - # module: attestation - # method: AttestationRemoved diff --git a/Kilt/kilt-spiritnet-starter/project.ts b/Kilt/kilt-spiritnet-starter/project.ts new file mode 100644 index 00000000..57b66468 --- /dev/null +++ b/Kilt/kilt-spiritnet-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "kilt-spiritnet-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on KILT Spiritnet", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://spiritnet.api.onfinality.io/public-ws", "wss://spiritnet.kilt.io"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/kilt-spiritnet-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Kilt/kilt-spiritnet-starter/project.yaml b/Kilt/kilt-spiritnet-starter/project.yaml deleted file mode 100644 index 67dfeed1..00000000 --- a/Kilt/kilt-spiritnet-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: kilt-spiritnet-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on KILT Spiritnet -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://spiritnet.api.onfinality.io/public-ws", "wss://spiritnet.kilt.io"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/kilt-spiritnet-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Kusama/kusama-starter/project.ts b/Kusama/kusama-starter/project.ts new file mode 100644 index 00000000..7c792309 --- /dev/null +++ b/Kusama/kusama-starter/project.ts @@ -0,0 +1,77 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "kusama-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Kusama network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://kusama.api.onfinality.io/public-ws", "wss://kusama-rpc.polkadot.io"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/kusama-dictionary", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Kusama/kusama-starter/project.yaml b/Kusama/kusama-starter/project.yaml deleted file mode 100644 index 1acc2d4c..00000000 --- a/Kusama/kusama-starter/project.yaml +++ /dev/null @@ -1,46 +0,0 @@ -specVersion: 1.0.0 -name: kusama-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Kusama network -repository: "https://github.com/subquery/kusama-subql-starters" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://kusama.api.onfinality.io/public-ws", "wss://kusama-rpc.polkadot.io"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/kusama-dictionary" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Kylin/kylin-starter/project.ts b/Kylin/kylin-starter/project.ts new file mode 100644 index 00000000..2ee38a76 --- /dev/null +++ b/Kylin/kylin-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "kylin-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Kylin network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xf2584690455deda322214e97edfffaf4c1233b6e4625e39478496b3e2f5a44c5", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://polkadot.kylin-node.co.uk"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/kylin-dictionary" + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Kylin/kylin-starter/project.yaml b/Kylin/kylin-starter/project.yaml deleted file mode 100644 index b21f1470..00000000 --- a/Kylin/kylin-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: kylin-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Kylin network -repository: "https://github.com/subquery/altair-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xf2584690455deda322214e97edfffaf4c1233b6e4625e39478496b3e2f5a44c5" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://polkadot.kylin-node.co.uk"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/kylin-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Moonbeam/Moonbeam-starter/project.ts b/Moonbeam/Moonbeam-starter/project.ts new file mode 100644 index 00000000..d93075d5 --- /dev/null +++ b/Moonbeam/Moonbeam-starter/project.ts @@ -0,0 +1,82 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "moonbeam-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Moonbeam network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://moonbeam.api.onfinality.io/public-ws", + "wss://wss.api.moonbeam.network", + ], + dictionary: "https://api.subquery.network/sq/subquery/moonbeam-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Moonbeam/Moonbeam-starter/project.yaml b/Moonbeam/Moonbeam-starter/project.yaml deleted file mode 100644 index 5520b6d4..00000000 --- a/Moonbeam/Moonbeam-starter/project.yaml +++ /dev/null @@ -1,49 +0,0 @@ -specVersion: 1.0.0 -name: moonbeam-starter -version: 0.0.4 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Moonbeam network -repository: "https://github.com/subquery/moonbeam-subql-starters" -schema: - file: ./schema.graphql -network: - chainId: "0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://moonbeam.api.onfinality.io/public-ws", - "wss://wss.api.moonbeam.network", - ] - dictionary: "https://api.subquery.network/sq/subquery/moonbeam-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Moonbeam/moonbeam-evm-starter/project.ts b/Moonbeam/moonbeam-evm-starter/project.ts new file mode 100644 index 00000000..5b22eceb --- /dev/null +++ b/Moonbeam/moonbeam-evm-starter/project.ts @@ -0,0 +1,89 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +import { FrontierEvmDatasource } from '@subql/frontier-evm-processor'; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "moonbeam-evm-starter", + description: + `A basic Frontier EVM example project with an event and call handler. Read more + about this at https://university.subquery.network/create/frontier/. This + project can be use as a starting point for developing your SubQuery project`, + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://moonbeam.api.onfinality.io/public-ws", + "wss://wss.api.moonbeam.network", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/moonbeam-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: 'substrate/FrontierEvm', + startBlock: 752073, + processor: { + file: './node_modules/@subql/frontier-evm-processor/dist/bundle.js', + options: { + abi: 'erc20', + address: '0xe3e43888fa7803cdc7bea478ab327cf1a0dc11a7' // FLARE token https://moonscan.io/token/0xe3e43888fa7803cdc7bea478ab327cf1a0dc11a7 + } + }, + assets: new Map([['erc20', { file: './erc20.abi.json' }]]), + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvmEvent', + kind: 'substrate/FrontierEvmEvent', + filter: { + topics: [ + 'Transfer(address indexed from,address indexed to,uint256 value)' + ] + } + }, + { + handler: 'handleEvmCall', + kind: 'substrate/FrontierEvmCall', + filter: { + function: 'approve(address to,uint256 value)' + } + } + ] + }, + }, + ], +}; + +export default project; diff --git a/Moonbeam/moonbeam-evm-starter/project.yaml b/Moonbeam/moonbeam-evm-starter/project.yaml deleted file mode 100644 index f6001b86..00000000 --- a/Moonbeam/moonbeam-evm-starter/project.yaml +++ /dev/null @@ -1,66 +0,0 @@ -specVersion: 1.0.0 -name: moonbeam-evm-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - A basic Frontier EVM example project with an event and call handler. Read more - about this at https://university.subquery.network/build/substrate-evm.html. - This project can be use as a starting point for developing your SubQuery - project -repository: "https://github.com/subquery/tutorials-frontier-evm-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://moonbeam.api.onfinality.io/public-ws", - "wss://wss.api.moonbeam.network", - ] - dictionary: "https://api.subquery.network/sq/subquery/moonbeam-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/FrontierEvm - startBlock: 752073 - processor: - file: "./node_modules/@subql/frontier-evm-processor/dist/bundle.js" - options: - # Must be a key of assets - abi: erc20 - # Contract address (or recipient if transfer) to filter, if `null` should be for contract creation - address: "0xe3e43888fa7803cdc7bea478ab327cf1a0dc11a7" # FLARE token https://moonscan.io/token/0xe3e43888fa7803cdc7bea478ab327cf1a0dc11a7 - assets: - erc20: - file: ./erc20.abi.json - mapping: - file: ./dist/index.js - handlers: - - handler: handleFrontierEvmEvent - kind: substrate/FrontierEvmEvent - filter: - topics: - - "Transfer(address indexed from,address indexed to,uint256 value)" - - null - - null - - null - - handler: handleFrontierEvmCall - kind: substrate/FrontierEvmCall - filter: - ## The function can either be the function fragment or signature - # function: '0x095ea7b3' - # function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - # function: approve(address,uint256) - function: "approve(address to,uint256 value)" diff --git a/Moonbeam/moonbeam-substrate-evm-starter/project.ts b/Moonbeam/moonbeam-substrate-evm-starter/project.ts new file mode 100644 index 00000000..654899f1 --- /dev/null +++ b/Moonbeam/moonbeam-substrate-evm-starter/project.ts @@ -0,0 +1,105 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +import { FrontierEvmDatasource } from '@subql/frontier-evm-processor'; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "moonbeam-substrate-evm-starter", + description: + `A basic Frontier EVM example project with an event and call handler. Read more + about this at https://university.subquery.network/create/frontier/. This + project can be use as a starting point for developing your SubQuery project`, + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://astar.api.onfinality.io/public-ws", "wss://rpc.astar.network"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleCollatorJoined', + kind: SubstrateHandlerKind.Call, + filter: { + module: 'staking', + method: 'joinCandidates' + } + }, + { + handler: 'handleCollatorLeft', + kind: SubstrateHandlerKind.Call, + filter: { + module: 'staking', + method: 'executeLeaveCandidates' + } + } + ] + } + }, + { + kind: 'substrate/FrontierEvm', + startBlock: 189831, + processor: { + file: './node_modules/@subql/frontier-evm-processor/dist/bundle.js', + options: { + abi: 'erc20', + // Contract address of $FRAX + address: '0x322E86852e492a7Ee17f28a78c663da38FB33bfb' + } + }, + assets: new Map([['erc20', { file: './erc20.abi.json' }]]), + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleErc20Transfer', + kind: 'substrate/FrontierEvmEvent', + filter: { + topics: [ + 'Transfer(address indexed from,address indexed to,uint256 value)' + ] + } + }, + ] + }, + }, + ], +}; + +export default project; diff --git a/Moonbeam/moonbeam-substrate-evm-starter/project.yaml b/Moonbeam/moonbeam-substrate-evm-starter/project.yaml deleted file mode 100644 index 034a6143..00000000 --- a/Moonbeam/moonbeam-substrate-evm-starter/project.yaml +++ /dev/null @@ -1,69 +0,0 @@ -specVersion: 1.0.0 -name: moonbeam-substrate-evm-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - A basic Substrate EVM example project with an event and call handler. Read more - about this at https://academy.subquery.network/build/substrate-evm.html. This - project can be use as a starting point for developing your SubQuery project -repository: "https://github.com/subquery/subql-starter.git" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - - wss://moonbeam.api.onfinality.io/public-ws - - wss://wss.api.moonbeam.network - dictionary: "https://api.subquery.network/sq/subquery/moonbeam-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - # This is the datasource for Moonbeam's Native Substrate processor - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - - handler: handleCollatorJoined - kind: substrate/CallHandler - filter: - module: staking - method: joinCandidates - - handler: handleCollatorLeft - kind: substrate/CallHandler - filter: - module: staking - method: executeLeaveCandidates - - - kind: substrate/FrontierEvm - startBlock: 189831 - processor: - file: "./node_modules/@subql/frontier-evm-processor/dist/bundle.js" - options: - # Must be a key of assets - abi: erc20 - # Contract address of $FRAX - address: "0x322E86852e492a7Ee17f28a78c663da38FB33bfb" - assets: - erc20: - file: ./erc20.abi.json - mapping: - file: ./dist/index.js - handlers: - - handler: handleErc20Transfer - kind: substrate/FrontierEvmEvent - filter: - topics: - - "Transfer(address indexed from,address indexed to,uint256 indexed tokenId)" diff --git a/Moonriver/Moonriver-starter/project.ts b/Moonriver/Moonriver-starter/project.ts new file mode 100644 index 00000000..c22f3b27 --- /dev/null +++ b/Moonriver/Moonriver-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "moonriver-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Moonbeam network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://moonriver.api.onfinality.io/public-ws", + "wss://wss.api.moonriver.moonbeam.network", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/moonriver-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Moonriver/Moonriver-starter/project.yaml b/Moonriver/Moonriver-starter/project.yaml deleted file mode 100644 index 1c5950f0..00000000 --- a/Moonriver/Moonriver-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: moonriver-starter -version: 0.0.4 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Moonbeam network -repository: "https://github.com/subquery/moonbeam-subql-starters" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://moonriver.api.onfinality.io/public-ws", - "wss://wss.api.moonriver.moonbeam.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/moonriver-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Moonriver/moonriver-evm-starter/project.ts b/Moonriver/moonriver-evm-starter/project.ts new file mode 100644 index 00000000..ed8bed54 --- /dev/null +++ b/Moonriver/moonriver-evm-starter/project.ts @@ -0,0 +1,89 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +import { FrontierEvmDatasource } from '@subql/frontier-evm-processor'; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "moonriver-evm-starter", + description: + `A basic Frontier EVM example project with an event and call handler. Read more + about this at https://university.subquery.network/create/frontier/. This + project can be use as a starting point for developing your SubQuery project`, + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://moonriver.api.onfinality.io/public-ws", + "wss://wss.api.moonriver.moonbeam.network", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/moonriver-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: 'substrate/FrontierEvm', + startBlock: 752073, + processor: { + file: './node_modules/@subql/frontier-evm-processor/dist/bundle.js', + options: { + abi: 'erc20', + address: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b' // Solarbeam token https://moonriver.moonscan.io/address/0x6bd193ee6d2104f14f94e2ca6efefae561a4334b + } + }, + assets: new Map([['erc20', { file: './erc20.abi.json' }]]), + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvmEvent', + kind: 'substrate/FrontierEvmEvent', + filter: { + topics: [ + 'Transfer(address indexed from,address indexed to,uint256 value)' + ] + } + }, + { + handler: 'handleEvmCall', + kind: 'substrate/FrontierEvmCall', + filter: { + function: 'approve(address to,uint256 value)' + } + } + ] + }, + }, + ], +}; + +export default project; diff --git a/Moonriver/moonriver-evm-starter/project.yaml b/Moonriver/moonriver-evm-starter/project.yaml deleted file mode 100644 index 022fca68..00000000 --- a/Moonriver/moonriver-evm-starter/project.yaml +++ /dev/null @@ -1,67 +0,0 @@ -specVersion: 1.0.0 -name: moonriver-evm-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: ">=0.35.0" - query: - name: "@subql/query" - version: ">=0.16.0" -description: >- - A basic Frontier EVM example project with an event and call handler. Read more - about this at https://university.subquery.network/build/substrate-evm.html. - This project can be use as a starting point for developing your SubQuery - project -repository: "https://github.com/subquery/tutorials-frontier-evm-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://moonriver.api.onfinality.io/public-ws", - "wss://wss.api.moonriver.moonbeam.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/moonriver-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/FrontierEvm - startBlock: 752073 - processor: - file: "./node_modules/@subql/frontier-evm-processor/dist/bundle.js" - options: - # Must be a key of assets - abi: erc20 - # Contract address (or recipient if transfer) to filter, if `null` should be for contract creation - address: "0x6bd193ee6d2104f14f94e2ca6efefae561a4334b" # Solarbeam token https://moonriver.moonscan.io/address/0x6bd193ee6d2104f14f94e2ca6efefae561a4334b - assets: - erc20: - file: ./erc20.abi.json - mapping: - file: ./dist/index.js - handlers: - - handler: handleFrontierEvmEvent - kind: substrate/FrontierEvmEvent - filter: - topics: - - "Transfer(address indexed from,address indexed to,uint256 value)" - - null - - null - - null - - handler: handleFrontierEvmCall - kind: substrate/FrontierEvmCall - filter: - ## The function can either be the function fragment or signature - # function: '0x095ea7b3' - # function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - # function: approve(address,uint256) - function: "approve(address to,uint256 value)" diff --git a/Nodle/nodle-starter/project.ts b/Nodle/nodle-starter/project.ts new file mode 100644 index 00000000..ead527cc --- /dev/null +++ b/Nodle/nodle-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "nodle-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Nodle network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://nodle-parachain.api.onfinality.io/public-ws", + "wss://eden-rpc.dwellir.com", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/nodle-parachain-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Nodle/nodle-starter/project.yaml b/Nodle/nodle-starter/project.yaml deleted file mode 100644 index 7576a947..00000000 --- a/Nodle/nodle-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: nodle-subql-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Nodle network -repository: "https://github.com/subquery/nodle-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://nodle-parachain.api.onfinality.io/public-ws", - "wss://eden-rpc.dwellir.com", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/nodle-parachain-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/OriginTrail/origintrail-starter/project.ts b/OriginTrail/origintrail-starter/project.ts new file mode 100644 index 00000000..1b171acd --- /dev/null +++ b/OriginTrail/origintrail-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "origintrail-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on OriginTrail network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://parachain-rpc.origin-trail.network"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/origintrail-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/OriginTrail/origintrail-starter/project.yaml b/OriginTrail/origintrail-starter/project.yaml deleted file mode 100644 index d35fd973..00000000 --- a/OriginTrail/origintrail-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: origintrail-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on OriginTrail network -repository: "https://github.com/subquery/altair-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://parachain-rpc.origin-trail.network"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/origintrail-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Parallel/parallel-heiko-starter/project.ts b/Parallel/parallel-heiko-starter/project.ts new file mode 100644 index 00000000..8ac87259 --- /dev/null +++ b/Parallel/parallel-heiko-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "parallel-heiko-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on parallel-heiko network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x64a1c658a48b2e70a7fb1ad4c39eea35022568c20fc44a6e2e3d0a57aee6053b", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://parallel-heiko.api.onfinality.io/public-ws", + "wss://heiko-rpc.parallel.fi", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/parallel-heiko-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Parallel/parallel-heiko-starter/project.yaml b/Parallel/parallel-heiko-starter/project.yaml deleted file mode 100644 index 4c4f36e3..00000000 --- a/Parallel/parallel-heiko-starter/project.yaml +++ /dev/null @@ -1,53 +0,0 @@ -specVersion: 1.0.0 -name: parallel-heiko-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on parallel-heiko - network -repository: "https://github.com/subquery/parallel-heiko-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x64a1c658a48b2e70a7fb1ad4c39eea35022568c20fc44a6e2e3d0a57aee6053b" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - { - "wss://parallel-heiko.api.onfinality.io/public-ws", - "wss://heiko-rpc.parallel.fi", - } - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/parallel-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Parallel/parallel-starter/project.ts b/Parallel/parallel-starter/project.ts new file mode 100644 index 00000000..51eebb73 --- /dev/null +++ b/Parallel/parallel-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "parallel-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Parallel network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://parallel.api.onfinality.io/public-ws", "wss://rpc.parallel.fi"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/parallel-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Parallel/parallel-starter/project.yaml b/Parallel/parallel-starter/project.yaml deleted file mode 100644 index a8d6e752..00000000 --- a/Parallel/parallel-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: parallel-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Parallel network -repository: "https://github.com/subquery/parallel-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - ["wss://parallel.api.onfinality.io/public-ws", "wss://rpc.parallel.fi"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/parallel-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Polkadex/polkadex-starter/project.ts b/Polkadex/polkadex-starter/project.ts new file mode 100644 index 00000000..f01e7748 --- /dev/null +++ b/Polkadex/polkadex-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "polkadex-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Polkadex network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://polkadex.api.onfinality.io/public-ws", + "wss://mainnet.polkadex.trade", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/polkadex-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Polkadex/polkadex-starter/project.yaml b/Polkadex/polkadex-starter/project.yaml deleted file mode 100644 index 18436297..00000000 --- a/Polkadex/polkadex-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: polkadex-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Polkadex network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://polkadex.api.onfinality.io/public-ws", - "wss://mainnet.polkadex.trade", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/polkadex-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Polkadot/Polkadot-starter/project.ts b/Polkadot/Polkadot-starter/project.ts new file mode 100644 index 00000000..e1314e81 --- /dev/null +++ b/Polkadot/Polkadot-starter/project.ts @@ -0,0 +1,75 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "polkadot-starter", + description: + "This project can be used as a starting point for developing your SubQuery project", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: "wss://polkadot.api.onfinality.io/public-ws", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Deposit", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Polkadot/Polkadot-starter/project.yaml b/Polkadot/Polkadot-starter/project.yaml deleted file mode 100644 index e44b20cd..00000000 --- a/Polkadot/Polkadot-starter/project.yaml +++ /dev/null @@ -1,46 +0,0 @@ -specVersion: 1.0.0 -name: polkadot-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Polkadot -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality and other RPC providers that serve Polkadot - endpoint: - ["wss://polkadot.api.onfinality.io/public-ws", "wss://rpc.polkadot.io"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/polkadot-dictionary" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Quartz/quartz-subql-starter/project.ts b/Quartz/quartz-subql-starter/project.ts new file mode 100644 index 00000000..549fac95 --- /dev/null +++ b/Quartz/quartz-subql-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "quartz-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Quartz network.", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xcd4d732201ebe5d6b014edda071c4203e16867305332301dc8d092044b28e554", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://quartz.api.onfinality.io/public-ws"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/quartz-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Quartz/quartz-subql-starter/project.yaml b/Quartz/quartz-subql-starter/project.yaml deleted file mode 100644 index ce321b1c..00000000 --- a/Quartz/quartz-subql-starter/project.yaml +++ /dev/null @@ -1,47 +0,0 @@ -specVersion: 1.0.0 -name: quartz-subql-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Quartz network. -repository: "https://github.com/subquery/quartz-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xcd4d732201ebe5d6b014edda071c4203e16867305332301dc8d092044b28e554" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://quartz.api.onfinality.io/public-ws" - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/quartz-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Shiden/shiden-starter/project.ts b/Shiden/shiden-starter/project.ts new file mode 100644 index 00000000..7550dcab --- /dev/null +++ b/Shiden/shiden-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "shiden-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on shiden network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xf1cf9022c7ebb34b162d5b5e34e705a5a740b2d0ecc1009fb89023e62a488108", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://shiden.api.onfinality.io/public-ws", + "wss://rpc.shiden.astar.network", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/shiden-dictionary", + chaintypes: { + file: './dist/chaintypes.js' + } + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Shiden/shiden-starter/project.yaml b/Shiden/shiden-starter/project.yaml deleted file mode 100644 index dcf7b3e9..00000000 --- a/Shiden/shiden-starter/project.yaml +++ /dev/null @@ -1,51 +0,0 @@ -specVersion: 1.0.0 -name: shiden-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on shiden network -repository: "https://github.com/subquery/shiden-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xf1cf9022c7ebb34b162d5b5e34e705a5a740b2d0ecc1009fb89023e62a488108" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://shiden.api.onfinality.io/public-ws", - "wss://rpc.shiden.astar.network", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/shiden-dictionary" - chaintypes: - file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Statemine/statemine-starter/project.ts b/Statemine/statemine-starter/project.ts new file mode 100644 index 00000000..8a51e689 --- /dev/null +++ b/Statemine/statemine-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "statemine-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Statemint network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://statemine.api.onfinality.io/public-ws", + "wss://statemine-rpc.polkadot.io", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/statemine-dictionary", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Statemine/statemine-starter/project.yaml b/Statemine/statemine-starter/project.yaml deleted file mode 100644 index e4b29ef2..00000000 --- a/Statemine/statemine-starter/project.yaml +++ /dev/null @@ -1,49 +0,0 @@ -specVersion: 1.0.0 -name: statemine-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Statemint network -repository: "https://github.com/subquery/statemint-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://statemine.api.onfinality.io/public-ws", - "wss://statemine-rpc.polkadot.io", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/statemine-dictionary" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Statemint/statemint-starter/project.ts b/Statemint/statemint-starter/project.ts new file mode 100644 index 00000000..8e2913c5 --- /dev/null +++ b/Statemint/statemint-starter/project.ts @@ -0,0 +1,80 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "statemint-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on statemint network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://statemint.api.onfinality.io/public-ws", + "wss://statemint-rpc.polkadot.io", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/statemint-dictionary", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Statemint/statemint-starter/project.yaml b/Statemint/statemint-starter/project.yaml deleted file mode 100644 index a9d63859..00000000 --- a/Statemint/statemint-starter/project.yaml +++ /dev/null @@ -1,49 +0,0 @@ -specVersion: 1.0.0 -name: statemint-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on statemint network -repository: "https://github.com/subquery/statemint-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: - [ - "wss://statemint.api.onfinality.io/public-ws", - "wss://statemint-rpc.polkadot.io", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/statemint-dictionary" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Unique/unique-starter/project.ts b/Unique/unique-starter/project.ts new file mode 100644 index 00000000..0cb0b9e4 --- /dev/null +++ b/Unique/unique-starter/project.ts @@ -0,0 +1,77 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "unique-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Unique network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://asia-ws.unique.network", "wss://ws.unique.network"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/unique-dictionary", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Unique/unique-starter/project.yaml b/Unique/unique-starter/project.yaml deleted file mode 100644 index d5b00c47..00000000 --- a/Unique/unique-starter/project.yaml +++ /dev/null @@ -1,45 +0,0 @@ -specVersion: 1.0.0 -name: unique-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Unique network -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://asia-ws.unique.network", "wss://ws.unique.network"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/unique-dictionary" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Vara/vara-starter/project.ts b/Vara/vara-starter/project.ts new file mode 100644 index 00000000..b34fad58 --- /dev/null +++ b/Vara/vara-starter/project.ts @@ -0,0 +1,75 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "vara-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Vara", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xfe1b4c55fd4d668101126434206571a7838a8b6b93a6d1b95d607e78e6c53763", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://archive-rpc.vara-network.io"], + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Vara/vara-starter/project.yaml b/Vara/vara-starter/project.yaml deleted file mode 100644 index 99efbc66..00000000 --- a/Vara/vara-starter/project.yaml +++ /dev/null @@ -1,43 +0,0 @@ -specVersion: 1.0.0 -name: vara-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Vara -repository: "https://github.com/subquery/subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xfe1b4c55fd4d668101126434206571a7838a8b6b93a6d1b95d607e78e6c53763" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://archive-rpc.vara-network.io"] -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Watr/watr-starter/project.ts b/Watr/watr-starter/project.ts new file mode 100644 index 00000000..eaf9c131 --- /dev/null +++ b/Watr/watr-starter/project.ts @@ -0,0 +1,75 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "watr-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Watr network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xb53c620c41860278fa3068a5367c8eedceefce8a7c29237d830bc09a71737b5d", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["wss://rpc.dev.watr.org", "wss://rpc.watr.org"], + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Watr/watr-starter/project.yaml b/Watr/watr-starter/project.yaml deleted file mode 100644 index 691d40d7..00000000 --- a/Watr/watr-starter/project.yaml +++ /dev/null @@ -1,48 +0,0 @@ -specVersion: 1.0.0 -name: watr-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Watr network -repository: "https://github.com/subquery/altair-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xb53c620c41860278fa3068a5367c8eedceefce8a7c29237d830bc09a71737b5d" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["wss://rpc.dev.watr.org", "wss://rpc.watr.org"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/watr-dictionary" - # IT APPEARS THAT THERE ARE NO TYPE OVERRIDES FOR WATR - # chaintypes: - # file: ./dist/chaintypes.js -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer diff --git a/Westend/westend-starter/project.ts b/Westend/westend-starter/project.ts new file mode 100644 index 00000000..ea9770e5 --- /dev/null +++ b/Westend/westend-starter/project.ts @@ -0,0 +1,79 @@ +import { + SubstrateDatasourceKind, + SubstrateHandlerKind, + SubstrateProject, +} from "@subql/types"; + +// Can expand the Datasource processor types via the genreic param +const project: SubstrateProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "westend-starter", + description: + "This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on westend network", + runner: { + node: { + name: "@subql/node", + version: ">=3.0.1", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "wss://westend.api.onfinality.io/public-ws" + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/westend-dictionary", + }, + dataSources: [ + { + kind: SubstrateDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: "./dist/index.js", + handlers: [ + /*{ + kind: SubstrateHandlerKind.Block, + handler: "handleBlock", + filter: { + modulo: 100, + }, + },*/ + /*{ + kind: SubstrateHandlerKind.Call, + handler: "handleCall", + filter: { + module: "balances", + }, + },*/ + { + kind: SubstrateHandlerKind.Event, + handler: "handleEvent", + filter: { + module: "balances", + method: "Transfer", + }, + }, + ], + }, + }, + ], +}; + +export default project; diff --git a/Westend/westend-starter/project.yaml b/Westend/westend-starter/project.yaml deleted file mode 100644 index 017f592a..00000000 --- a/Westend/westend-starter/project.yaml +++ /dev/null @@ -1,45 +0,0 @@ -specVersion: 1.0.0 -name: westend-starter -version: 1.0.0 -runner: - node: - name: "@subql/node" - version: "*" - query: - name: "@subql/query" - version: "*" -description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on westend network -repository: "https://github.com/subquery/westend-subql-starter" -schema: - file: ./schema.graphql -network: - # The genesis hash of the network (hash of block 0) - chainId: "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e" - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: "wss://westend.api.onfinality.io/public-ws" - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/westend-dictionary" -dataSources: - - kind: substrate/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - # - handler: handleBlock - # kind: substrate/BlockHandler - # - handler: handleCall - # kind: substrate/CallHandler - # filter: - # method: - # module: balances - # method: Deposit - # success: true - - handler: handleEvent - kind: substrate/EventHandler - filter: - module: balances - method: Transfer