From eb5edd521c90ba4f1988e95679a359c59ab5bb98 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:38:09 +1300 Subject: [PATCH 1/4] Update postgres and CI --- .../scripts/ci.package.json | 0 .github/scripts/ci.tsconfig.json | 20 +++++++++++++ .github/scripts/copy-ts-config.sh | 13 +++++++++ .github/workflows/pr.yaml | 29 ++++++++++--------- Acala/acala-evm-starter/.gitignore | 2 +- Acala/acala-evm-starter/docker/pg-Dockerfile | 4 +-- Acala/acala-starter/.gitignore | 2 +- Acala/acala-starter/docker/pg-Dockerfile | 4 +-- Ajuna/ajuna-starter/.gitignore | 2 +- Ajuna/ajuna-starter/docker/pg-Dockerfile | 4 +-- Altair/altair-starter/.gitignore | 2 +- Altair/altair-starter/docker/pg-Dockerfile | 4 +-- Astar/astar-evm-starter/.gitignore | 2 +- Astar/astar-evm-starter/docker/pg-Dockerfile | 4 +-- Astar/astar-starter/.gitignore | 2 +- Astar/astar-starter/docker/pg-Dockerfile | 4 +-- Astar/astar-wasm-starter/.gitignore | 2 +- Astar/astar-wasm-starter/docker/pg-Dockerfile | 4 +-- Automata/automata-starter/.gitignore | 2 +- .../automata-starter/docker/pg-Dockerfile | 4 +-- Basilisk/basilisk-starter/.gitignore | 2 +- .../basilisk-starter/docker/pg-Dockerfile | 4 +-- Bifrost/bifrost-starter/.gitignore | 2 +- Bifrost/bifrost-starter/docker/pg-Dockerfile | 4 +-- Bitcountry/bitcountry-starter/.gitignore | 2 +- .../bitcountry-starter/docker/pg-Dockerfile | 4 +-- Bitgreen/bitgreen-starter/.gitignore | 2 +- .../bitgreen-starter/docker/pg-Dockerfile | 4 +-- Calamari/calamari-starter/.gitignore | 2 +- .../calamari-starter/docker/pg-Dockerfile | 4 +-- Centrifuge/centrifuge-starter/.gitignore | 2 +- .../centrifuge-starter/docker/pg-Dockerfile | 4 +-- Clover/clover-starter/.gitignore | 2 +- Clover/clover-starter/docker/pg-Dockerfile | 4 +-- .../composable-finance-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +-- Contextfree/contextfree-starter/.gitignore | 2 +- .../contextfree-starter/docker/pg-Dockerfile | 4 +-- Darwinia/darwinia-starter/.gitignore | 2 +- .../darwinia-starter/docker/pg-Dockerfile | 4 +-- Efinity/efinity-starter/.gitignore | 2 +- Efinity/efinity-starter/docker/pg-Dockerfile | 4 +-- Encointer/Encointer-starter/.gitignore | 2 +- .../Encointer-starter/docker/pg-Dockerfile | 4 +-- Equilibrium/equilibrium-starter/.gitignore | 2 +- .../equilibrium-starter/docker/pg-Dockerfile | 4 +-- Frequency/frequency-starter/.gitignore | 2 +- .../frequency-starter/docker/pg-Dockerfile | 4 +-- .../hashed-network-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +-- Humanode/Humanode-starter/.gitignore | 2 +- .../Humanode-starter/docker/pg-Dockerfile | 4 +-- HydraDX/hydradx-starter/.gitignore | 2 +- HydraDX/hydradx-starter/docker/pg-Dockerfile | 4 +-- .../integritee-shell-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +-- Interlay/interlay-starter/.gitignore | 2 +- .../interlay-starter/docker/pg-Dockerfile | 4 +-- Kapex/kapex-starter/.gitignore | 2 +- Kapex/kapex-starter/docker/pg-Dockerfile | 4 +-- Karura/karura-evm-starter/.gitignore | 2 +- .../karura-evm-starter/docker/pg-Dockerfile | 4 +-- Karura/karura-starter/.gitignore | 2 +- Karura/karura-starter/docker/pg-Dockerfile | 4 +-- Khala/khala-starter/.gitignore | 2 +- Khala/khala-starter/docker/pg-Dockerfile | 4 +-- .../.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +-- Kilt/kilt-spiritnet-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +-- Kusama/kusama-starter/.gitignore | 2 +- Kusama/kusama-starter/docker/pg-Dockerfile | 4 +-- Kylin/kylin-starter/.gitignore | 2 +- Kylin/kylin-starter/docker/pg-Dockerfile | 4 +-- Moonbeam/Moonbeam-starter/.gitignore | 2 +- .../Moonbeam-starter/docker/pg-Dockerfile | 4 +-- Moonbeam/moonbeam-evm-starter/.gitignore | 2 +- .../moonbeam-evm-starter/docker/pg-Dockerfile | 4 +-- .../moonbeam-substrate-evm-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 7 +++-- Moonriver/Moonriver-starter/.gitignore | 2 +- .../Moonriver-starter/docker/pg-Dockerfile | 4 +-- Moonriver/moonriver-evm-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +-- Nodle/nodle-starter/.gitignore | 2 +- Nodle/nodle-starter/docker/pg-Dockerfile | 4 +-- OriginTrail/origintrail-starter/.gitignore | 2 +- .../origintrail-starter/docker/pg-Dockerfile | 4 +-- Parallel/parallel-heiko-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +-- Parallel/parallel-starter/.gitignore | 2 +- .../parallel-starter/docker/pg-Dockerfile | 4 +-- Polkadex/polkadex-starter/.gitignore | 2 +- .../polkadex-starter/docker/pg-Dockerfile | 4 +-- Polkadot/Polkadot-starter/.gitignore | 2 +- .../Polkadot-starter/docker/pg-Dockerfile | 4 +-- Quartz/quartz-subql-starter/.gitignore | 2 +- .../quartz-subql-starter/docker/pg-Dockerfile | 4 +-- Shiden/shiden-starter/.gitignore | 2 +- Shiden/shiden-starter/docker/pg-Dockerfile | 4 +-- Statemine/statemine-starter/.gitignore | 2 +- .../statemine-starter/docker/pg-Dockerfile | 4 +-- Statemint/statemint-starter/.gitignore | 2 +- .../statemint-starter/docker/pg-Dockerfile | 4 +-- Unique/unique-starter/.gitignore | 2 +- Unique/unique-starter/docker/pg-Dockerfile | 4 +-- Vara/vara-starter/.gitignore | 2 +- Vara/vara-starter/docker/pg-Dockerfile | 4 +-- Watr/watr-starter/.gitignore | 2 +- Watr/watr-starter/docker/pg-Dockerfile | 4 +-- Westend/westend-starter/.gitignore | 2 +- Westend/westend-starter/docker/pg-Dockerfile | 4 +-- 112 files changed, 214 insertions(+), 175 deletions(-) rename package.json => .github/scripts/ci.package.json (100%) create mode 100644 .github/scripts/ci.tsconfig.json create mode 100755 .github/scripts/copy-ts-config.sh diff --git a/package.json b/.github/scripts/ci.package.json similarity index 100% rename from package.json rename to .github/scripts/ci.package.json diff --git a/.github/scripts/ci.tsconfig.json b/.github/scripts/ci.tsconfig.json new file mode 100644 index 00000000..b827eae7 --- /dev/null +++ b/.github/scripts/ci.tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "esModuleInterop": true, + "declaration": true, + "importHelpers": true, + "resolveJsonModule": true, + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "target": "es2017", + "strict": true + }, + "include": [ + "src/**/*", + "../../node_modules/@subql/types-core/dist/global.d.ts", + "../../node_modules/@subql/types/dist/global.d.ts" + ] +} diff --git a/.github/scripts/copy-ts-config.sh b/.github/scripts/copy-ts-config.sh new file mode 100755 index 00000000..43314473 --- /dev/null +++ b/.github/scripts/copy-ts-config.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# This file copies over a modified TS config that works with workspaces so we can build all projects + +set -e + +for DEST_PATH in ./*/*/; do + + SRC="./.github/scripts/ci.tsconfig.json" + DEST="${DEST_PATH}tsconfig.json" + + [ -f "$DEST" ] && cp "$SRC" "$DEST" +done diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b99d1c25..bea8d889 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -2,21 +2,24 @@ name: PR on: pull_request: paths-ignore: - - '.github/workflows/**' + - ".github/workflows/**" jobs: pr: name: pr runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Setup Node.js environment - uses: actions/setup-node@v2 - with: - node-version: 18 - - run: yarn - - name: codegen - run: yarn codegen - # Need to update tsconfig inputs paths for this to work - # - name: build - # run: yarn build - + - uses: actions/checkout@v2 + - name: Setup Node.js environment + uses: actions/setup-node@v2 + with: + node-version: 18 + - name: setup workspace + run: cp .github/scripts/ci.package.json package.json + # Do this before yarn to avoid node_modules directory + - name: update tsconfigs for workspace + run: ./.github/scripts/copy-ts-config.sh + - run: yarn + - name: codegen + run: yarn codegen + - name: build + run: yarn build diff --git a/Acala/acala-evm-starter/.gitignore b/Acala/acala-evm-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Acala/acala-evm-starter/.gitignore +++ b/Acala/acala-evm-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Acala/acala-evm-starter/docker/pg-Dockerfile b/Acala/acala-evm-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Acala/acala-evm-starter/docker/pg-Dockerfile +++ b/Acala/acala-evm-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Acala/acala-starter/.gitignore b/Acala/acala-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Acala/acala-starter/.gitignore +++ b/Acala/acala-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Acala/acala-starter/docker/pg-Dockerfile b/Acala/acala-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Acala/acala-starter/docker/pg-Dockerfile +++ b/Acala/acala-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Ajuna/ajuna-starter/.gitignore b/Ajuna/ajuna-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Ajuna/ajuna-starter/.gitignore +++ b/Ajuna/ajuna-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Ajuna/ajuna-starter/docker/pg-Dockerfile b/Ajuna/ajuna-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Ajuna/ajuna-starter/docker/pg-Dockerfile +++ b/Ajuna/ajuna-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Altair/altair-starter/.gitignore b/Altair/altair-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Altair/altair-starter/.gitignore +++ b/Altair/altair-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Altair/altair-starter/docker/pg-Dockerfile b/Altair/altair-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Altair/altair-starter/docker/pg-Dockerfile +++ b/Altair/altair-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Astar/astar-evm-starter/.gitignore b/Astar/astar-evm-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Astar/astar-evm-starter/.gitignore +++ b/Astar/astar-evm-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Astar/astar-evm-starter/docker/pg-Dockerfile b/Astar/astar-evm-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Astar/astar-evm-starter/docker/pg-Dockerfile +++ b/Astar/astar-evm-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Astar/astar-starter/.gitignore b/Astar/astar-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Astar/astar-starter/.gitignore +++ b/Astar/astar-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Astar/astar-starter/docker/pg-Dockerfile b/Astar/astar-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Astar/astar-starter/docker/pg-Dockerfile +++ b/Astar/astar-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Astar/astar-wasm-starter/.gitignore b/Astar/astar-wasm-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Astar/astar-wasm-starter/.gitignore +++ b/Astar/astar-wasm-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Astar/astar-wasm-starter/docker/pg-Dockerfile b/Astar/astar-wasm-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Astar/astar-wasm-starter/docker/pg-Dockerfile +++ b/Astar/astar-wasm-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Automata/automata-starter/.gitignore b/Automata/automata-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Automata/automata-starter/.gitignore +++ b/Automata/automata-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Automata/automata-starter/docker/pg-Dockerfile b/Automata/automata-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Automata/automata-starter/docker/pg-Dockerfile +++ b/Automata/automata-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Basilisk/basilisk-starter/.gitignore b/Basilisk/basilisk-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Basilisk/basilisk-starter/.gitignore +++ b/Basilisk/basilisk-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Basilisk/basilisk-starter/docker/pg-Dockerfile b/Basilisk/basilisk-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Basilisk/basilisk-starter/docker/pg-Dockerfile +++ b/Basilisk/basilisk-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Bifrost/bifrost-starter/.gitignore b/Bifrost/bifrost-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Bifrost/bifrost-starter/.gitignore +++ b/Bifrost/bifrost-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Bifrost/bifrost-starter/docker/pg-Dockerfile b/Bifrost/bifrost-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Bifrost/bifrost-starter/docker/pg-Dockerfile +++ b/Bifrost/bifrost-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Bitcountry/bitcountry-starter/.gitignore b/Bitcountry/bitcountry-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Bitcountry/bitcountry-starter/.gitignore +++ b/Bitcountry/bitcountry-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Bitcountry/bitcountry-starter/docker/pg-Dockerfile b/Bitcountry/bitcountry-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Bitcountry/bitcountry-starter/docker/pg-Dockerfile +++ b/Bitcountry/bitcountry-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Bitgreen/bitgreen-starter/.gitignore b/Bitgreen/bitgreen-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Bitgreen/bitgreen-starter/.gitignore +++ b/Bitgreen/bitgreen-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Bitgreen/bitgreen-starter/docker/pg-Dockerfile b/Bitgreen/bitgreen-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Bitgreen/bitgreen-starter/docker/pg-Dockerfile +++ b/Bitgreen/bitgreen-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Calamari/calamari-starter/.gitignore b/Calamari/calamari-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Calamari/calamari-starter/.gitignore +++ b/Calamari/calamari-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Calamari/calamari-starter/docker/pg-Dockerfile b/Calamari/calamari-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Calamari/calamari-starter/docker/pg-Dockerfile +++ b/Calamari/calamari-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Centrifuge/centrifuge-starter/.gitignore b/Centrifuge/centrifuge-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Centrifuge/centrifuge-starter/.gitignore +++ b/Centrifuge/centrifuge-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Centrifuge/centrifuge-starter/docker/pg-Dockerfile b/Centrifuge/centrifuge-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Centrifuge/centrifuge-starter/docker/pg-Dockerfile +++ b/Centrifuge/centrifuge-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Clover/clover-starter/.gitignore b/Clover/clover-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Clover/clover-starter/.gitignore +++ b/Clover/clover-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Clover/clover-starter/docker/pg-Dockerfile b/Clover/clover-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Clover/clover-starter/docker/pg-Dockerfile +++ b/Clover/clover-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/ComposableFinance/composable-finance-starter/.gitignore b/ComposableFinance/composable-finance-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/ComposableFinance/composable-finance-starter/.gitignore +++ b/ComposableFinance/composable-finance-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/ComposableFinance/composable-finance-starter/docker/pg-Dockerfile b/ComposableFinance/composable-finance-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/ComposableFinance/composable-finance-starter/docker/pg-Dockerfile +++ b/ComposableFinance/composable-finance-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Contextfree/contextfree-starter/.gitignore b/Contextfree/contextfree-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Contextfree/contextfree-starter/.gitignore +++ b/Contextfree/contextfree-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Contextfree/contextfree-starter/docker/pg-Dockerfile b/Contextfree/contextfree-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Contextfree/contextfree-starter/docker/pg-Dockerfile +++ b/Contextfree/contextfree-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Darwinia/darwinia-starter/.gitignore b/Darwinia/darwinia-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Darwinia/darwinia-starter/.gitignore +++ b/Darwinia/darwinia-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Darwinia/darwinia-starter/docker/pg-Dockerfile b/Darwinia/darwinia-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Darwinia/darwinia-starter/docker/pg-Dockerfile +++ b/Darwinia/darwinia-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Efinity/efinity-starter/.gitignore b/Efinity/efinity-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Efinity/efinity-starter/.gitignore +++ b/Efinity/efinity-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Efinity/efinity-starter/docker/pg-Dockerfile b/Efinity/efinity-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Efinity/efinity-starter/docker/pg-Dockerfile +++ b/Efinity/efinity-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Encointer/Encointer-starter/.gitignore b/Encointer/Encointer-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Encointer/Encointer-starter/.gitignore +++ b/Encointer/Encointer-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Encointer/Encointer-starter/docker/pg-Dockerfile b/Encointer/Encointer-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Encointer/Encointer-starter/docker/pg-Dockerfile +++ b/Encointer/Encointer-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Equilibrium/equilibrium-starter/.gitignore b/Equilibrium/equilibrium-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Equilibrium/equilibrium-starter/.gitignore +++ b/Equilibrium/equilibrium-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Equilibrium/equilibrium-starter/docker/pg-Dockerfile b/Equilibrium/equilibrium-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Equilibrium/equilibrium-starter/docker/pg-Dockerfile +++ b/Equilibrium/equilibrium-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Frequency/frequency-starter/.gitignore b/Frequency/frequency-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Frequency/frequency-starter/.gitignore +++ b/Frequency/frequency-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Frequency/frequency-starter/docker/pg-Dockerfile b/Frequency/frequency-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Frequency/frequency-starter/docker/pg-Dockerfile +++ b/Frequency/frequency-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/HashedNetwork/hashed-network-starter/.gitignore b/HashedNetwork/hashed-network-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/HashedNetwork/hashed-network-starter/.gitignore +++ b/HashedNetwork/hashed-network-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/HashedNetwork/hashed-network-starter/docker/pg-Dockerfile b/HashedNetwork/hashed-network-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/HashedNetwork/hashed-network-starter/docker/pg-Dockerfile +++ b/HashedNetwork/hashed-network-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Humanode/Humanode-starter/.gitignore b/Humanode/Humanode-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Humanode/Humanode-starter/.gitignore +++ b/Humanode/Humanode-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Humanode/Humanode-starter/docker/pg-Dockerfile b/Humanode/Humanode-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Humanode/Humanode-starter/docker/pg-Dockerfile +++ b/Humanode/Humanode-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/HydraDX/hydradx-starter/.gitignore b/HydraDX/hydradx-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/HydraDX/hydradx-starter/.gitignore +++ b/HydraDX/hydradx-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/HydraDX/hydradx-starter/docker/pg-Dockerfile b/HydraDX/hydradx-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/HydraDX/hydradx-starter/docker/pg-Dockerfile +++ b/HydraDX/hydradx-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/IntegriteeShell/integritee-shell-starter/.gitignore b/IntegriteeShell/integritee-shell-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/IntegriteeShell/integritee-shell-starter/.gitignore +++ b/IntegriteeShell/integritee-shell-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/IntegriteeShell/integritee-shell-starter/docker/pg-Dockerfile b/IntegriteeShell/integritee-shell-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/IntegriteeShell/integritee-shell-starter/docker/pg-Dockerfile +++ b/IntegriteeShell/integritee-shell-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Interlay/interlay-starter/.gitignore b/Interlay/interlay-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Interlay/interlay-starter/.gitignore +++ b/Interlay/interlay-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Interlay/interlay-starter/docker/pg-Dockerfile b/Interlay/interlay-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Interlay/interlay-starter/docker/pg-Dockerfile +++ b/Interlay/interlay-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Kapex/kapex-starter/.gitignore b/Kapex/kapex-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Kapex/kapex-starter/.gitignore +++ b/Kapex/kapex-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Kapex/kapex-starter/docker/pg-Dockerfile b/Kapex/kapex-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Kapex/kapex-starter/docker/pg-Dockerfile +++ b/Kapex/kapex-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Karura/karura-evm-starter/.gitignore b/Karura/karura-evm-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Karura/karura-evm-starter/.gitignore +++ b/Karura/karura-evm-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Karura/karura-evm-starter/docker/pg-Dockerfile b/Karura/karura-evm-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Karura/karura-evm-starter/docker/pg-Dockerfile +++ b/Karura/karura-evm-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Karura/karura-starter/.gitignore b/Karura/karura-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Karura/karura-starter/.gitignore +++ b/Karura/karura-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Karura/karura-starter/docker/pg-Dockerfile b/Karura/karura-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Karura/karura-starter/docker/pg-Dockerfile +++ b/Karura/karura-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Khala/khala-starter/.gitignore b/Khala/khala-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Khala/khala-starter/.gitignore +++ b/Khala/khala-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Khala/khala-starter/docker/pg-Dockerfile b/Khala/khala-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Khala/khala-starter/docker/pg-Dockerfile +++ b/Khala/khala-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Kilt/kilt-spiritnet-credentials-example/.gitignore b/Kilt/kilt-spiritnet-credentials-example/.gitignore index 9615e3cf..3981582a 100644 --- a/Kilt/kilt-spiritnet-credentials-example/.gitignore +++ b/Kilt/kilt-spiritnet-credentials-example/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Kilt/kilt-spiritnet-credentials-example/docker/pg-Dockerfile b/Kilt/kilt-spiritnet-credentials-example/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Kilt/kilt-spiritnet-credentials-example/docker/pg-Dockerfile +++ b/Kilt/kilt-spiritnet-credentials-example/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Kilt/kilt-spiritnet-starter/.gitignore b/Kilt/kilt-spiritnet-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Kilt/kilt-spiritnet-starter/.gitignore +++ b/Kilt/kilt-spiritnet-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Kilt/kilt-spiritnet-starter/docker/pg-Dockerfile b/Kilt/kilt-spiritnet-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Kilt/kilt-spiritnet-starter/docker/pg-Dockerfile +++ b/Kilt/kilt-spiritnet-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Kusama/kusama-starter/.gitignore b/Kusama/kusama-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Kusama/kusama-starter/.gitignore +++ b/Kusama/kusama-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Kusama/kusama-starter/docker/pg-Dockerfile b/Kusama/kusama-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Kusama/kusama-starter/docker/pg-Dockerfile +++ b/Kusama/kusama-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Kylin/kylin-starter/.gitignore b/Kylin/kylin-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Kylin/kylin-starter/.gitignore +++ b/Kylin/kylin-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Kylin/kylin-starter/docker/pg-Dockerfile b/Kylin/kylin-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Kylin/kylin-starter/docker/pg-Dockerfile +++ b/Kylin/kylin-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Moonbeam/Moonbeam-starter/.gitignore b/Moonbeam/Moonbeam-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Moonbeam/Moonbeam-starter/.gitignore +++ b/Moonbeam/Moonbeam-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Moonbeam/Moonbeam-starter/docker/pg-Dockerfile b/Moonbeam/Moonbeam-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Moonbeam/Moonbeam-starter/docker/pg-Dockerfile +++ b/Moonbeam/Moonbeam-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Moonbeam/moonbeam-evm-starter/.gitignore b/Moonbeam/moonbeam-evm-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Moonbeam/moonbeam-evm-starter/.gitignore +++ b/Moonbeam/moonbeam-evm-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Moonbeam/moonbeam-evm-starter/docker/pg-Dockerfile b/Moonbeam/moonbeam-evm-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Moonbeam/moonbeam-evm-starter/docker/pg-Dockerfile +++ b/Moonbeam/moonbeam-evm-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Moonbeam/moonbeam-substrate-evm-starter/.gitignore b/Moonbeam/moonbeam-substrate-evm-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Moonbeam/moonbeam-substrate-evm-starter/.gitignore +++ b/Moonbeam/moonbeam-substrate-evm-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Moonbeam/moonbeam-substrate-evm-starter/docker/pg-Dockerfile b/Moonbeam/moonbeam-substrate-evm-starter/docker/pg-Dockerfile index 0f09f8a6..1f5594e6 100644 --- a/Moonbeam/moonbeam-substrate-evm-starter/docker/pg-Dockerfile +++ b/Moonbeam/moonbeam-substrate-evm-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -6,4 +6,7 @@ ENV POSTGRES_USER 'postgres' ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script -COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ \ No newline at end of file +COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Moonriver/Moonriver-starter/.gitignore b/Moonriver/Moonriver-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Moonriver/Moonriver-starter/.gitignore +++ b/Moonriver/Moonriver-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Moonriver/Moonriver-starter/docker/pg-Dockerfile b/Moonriver/Moonriver-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Moonriver/Moonriver-starter/docker/pg-Dockerfile +++ b/Moonriver/Moonriver-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Moonriver/moonriver-evm-starter/.gitignore b/Moonriver/moonriver-evm-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Moonriver/moonriver-evm-starter/.gitignore +++ b/Moonriver/moonriver-evm-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Moonriver/moonriver-evm-starter/docker/pg-Dockerfile b/Moonriver/moonriver-evm-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Moonriver/moonriver-evm-starter/docker/pg-Dockerfile +++ b/Moonriver/moonriver-evm-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Nodle/nodle-starter/.gitignore b/Nodle/nodle-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Nodle/nodle-starter/.gitignore +++ b/Nodle/nodle-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Nodle/nodle-starter/docker/pg-Dockerfile b/Nodle/nodle-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Nodle/nodle-starter/docker/pg-Dockerfile +++ b/Nodle/nodle-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/OriginTrail/origintrail-starter/.gitignore b/OriginTrail/origintrail-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/OriginTrail/origintrail-starter/.gitignore +++ b/OriginTrail/origintrail-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/OriginTrail/origintrail-starter/docker/pg-Dockerfile b/OriginTrail/origintrail-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/OriginTrail/origintrail-starter/docker/pg-Dockerfile +++ b/OriginTrail/origintrail-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Parallel/parallel-heiko-starter/.gitignore b/Parallel/parallel-heiko-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Parallel/parallel-heiko-starter/.gitignore +++ b/Parallel/parallel-heiko-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Parallel/parallel-heiko-starter/docker/pg-Dockerfile b/Parallel/parallel-heiko-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Parallel/parallel-heiko-starter/docker/pg-Dockerfile +++ b/Parallel/parallel-heiko-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Parallel/parallel-starter/.gitignore b/Parallel/parallel-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Parallel/parallel-starter/.gitignore +++ b/Parallel/parallel-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Parallel/parallel-starter/docker/pg-Dockerfile b/Parallel/parallel-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Parallel/parallel-starter/docker/pg-Dockerfile +++ b/Parallel/parallel-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Polkadex/polkadex-starter/.gitignore b/Polkadex/polkadex-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Polkadex/polkadex-starter/.gitignore +++ b/Polkadex/polkadex-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Polkadex/polkadex-starter/docker/pg-Dockerfile b/Polkadex/polkadex-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Polkadex/polkadex-starter/docker/pg-Dockerfile +++ b/Polkadex/polkadex-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Polkadot/Polkadot-starter/.gitignore b/Polkadot/Polkadot-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Polkadot/Polkadot-starter/.gitignore +++ b/Polkadot/Polkadot-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Polkadot/Polkadot-starter/docker/pg-Dockerfile b/Polkadot/Polkadot-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Polkadot/Polkadot-starter/docker/pg-Dockerfile +++ b/Polkadot/Polkadot-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Quartz/quartz-subql-starter/.gitignore b/Quartz/quartz-subql-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Quartz/quartz-subql-starter/.gitignore +++ b/Quartz/quartz-subql-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Quartz/quartz-subql-starter/docker/pg-Dockerfile b/Quartz/quartz-subql-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Quartz/quartz-subql-starter/docker/pg-Dockerfile +++ b/Quartz/quartz-subql-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Shiden/shiden-starter/.gitignore b/Shiden/shiden-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Shiden/shiden-starter/.gitignore +++ b/Shiden/shiden-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Shiden/shiden-starter/docker/pg-Dockerfile b/Shiden/shiden-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Shiden/shiden-starter/docker/pg-Dockerfile +++ b/Shiden/shiden-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Statemine/statemine-starter/.gitignore b/Statemine/statemine-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Statemine/statemine-starter/.gitignore +++ b/Statemine/statemine-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Statemine/statemine-starter/docker/pg-Dockerfile b/Statemine/statemine-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Statemine/statemine-starter/docker/pg-Dockerfile +++ b/Statemine/statemine-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Statemint/statemint-starter/.gitignore b/Statemint/statemint-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Statemint/statemint-starter/.gitignore +++ b/Statemint/statemint-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Statemint/statemint-starter/docker/pg-Dockerfile b/Statemint/statemint-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Statemint/statemint-starter/docker/pg-Dockerfile +++ b/Statemint/statemint-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Unique/unique-starter/.gitignore b/Unique/unique-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Unique/unique-starter/.gitignore +++ b/Unique/unique-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Unique/unique-starter/docker/pg-Dockerfile b/Unique/unique-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Unique/unique-starter/docker/pg-Dockerfile +++ b/Unique/unique-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Vara/vara-starter/.gitignore b/Vara/vara-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Vara/vara-starter/.gitignore +++ b/Vara/vara-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Vara/vara-starter/docker/pg-Dockerfile b/Vara/vara-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Vara/vara-starter/docker/pg-Dockerfile +++ b/Vara/vara-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Watr/watr-starter/.gitignore b/Watr/watr-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Watr/watr-starter/.gitignore +++ b/Watr/watr-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Watr/watr-starter/docker/pg-Dockerfile b/Watr/watr-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Watr/watr-starter/docker/pg-Dockerfile +++ b/Watr/watr-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Westend/westend-starter/.gitignore b/Westend/westend-starter/.gitignore index 9615e3cf..3981582a 100644 --- a/Westend/westend-starter/.gitignore +++ b/Westend/westend-starter/.gitignore @@ -27,7 +27,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Westend/westend-starter/docker/pg-Dockerfile b/Westend/westend-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Westend/westend-starter/docker/pg-Dockerfile +++ b/Westend/westend-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh From 7bc9bfe1315c09acf8590941a7c5053d9b82d314 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 15:18:45 +1300 Subject: [PATCH 2/4] Swap out project.ts for project.yaml --- 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, 2723 insertions(+), 4375 deletions(-) delete mode 100644 Acala/acala-evm-starter/project.ts create mode 100644 Acala/acala-evm-starter/project.yaml delete mode 100644 Acala/acala-starter/project.ts create mode 100644 Acala/acala-starter/project.yaml delete mode 100644 Ajuna/ajuna-starter/project.ts create mode 100644 Ajuna/ajuna-starter/project.yaml delete mode 100644 Altair/altair-starter/project.ts create mode 100644 Altair/altair-starter/project.yaml delete mode 100644 Astar/astar-evm-starter/project.ts create mode 100644 Astar/astar-evm-starter/project.yaml delete mode 100644 Astar/astar-starter/project.ts create mode 100644 Astar/astar-starter/project.yaml delete mode 100644 Astar/astar-wasm-starter/project.ts create mode 100644 Astar/astar-wasm-starter/project.yaml delete mode 100644 Automata/automata-starter/project.ts create mode 100644 Automata/automata-starter/project.yaml delete mode 100644 Basilisk/basilisk-starter/project.ts create mode 100644 Basilisk/basilisk-starter/project.yaml delete mode 100644 Bifrost/bifrost-starter/project.ts create mode 100644 Bifrost/bifrost-starter/project.yaml delete mode 100644 Bitcountry/bitcountry-starter/project.ts create mode 100644 Bitcountry/bitcountry-starter/project.yaml delete mode 100644 Bitgreen/bitgreen-starter/project.ts create mode 100644 Bitgreen/bitgreen-starter/project.yaml delete mode 100644 Calamari/calamari-starter/project.ts create mode 100644 Calamari/calamari-starter/project.yaml delete mode 100644 Centrifuge/centrifuge-starter/project.ts create mode 100644 Centrifuge/centrifuge-starter/project.yaml delete mode 100644 Clover/clover-starter/project.ts create mode 100644 Clover/clover-starter/project.yaml delete mode 100644 ComposableFinance/composable-finance-starter/project.ts create mode 100644 ComposableFinance/composable-finance-starter/project.yaml delete mode 100644 Contextfree/contextfree-starter/project.ts create mode 100644 Contextfree/contextfree-starter/project.yaml delete mode 100644 Darwinia/darwinia-starter/project.ts create mode 100644 Darwinia/darwinia-starter/project.yaml delete mode 100644 Efinity/efinity-starter/project.ts create mode 100644 Efinity/efinity-starter/project.yaml delete mode 100644 Encointer/Encointer-starter/project.ts create mode 100644 Encointer/Encointer-starter/project.yaml delete mode 100644 Equilibrium/equilibrium-starter/project.ts create mode 100644 Equilibrium/equilibrium-starter/project.yaml delete mode 100644 Frequency/frequency-starter/project.ts create mode 100644 Frequency/frequency-starter/project.yaml delete mode 100644 HashedNetwork/hashed-network-starter/project.ts create mode 100644 HashedNetwork/hashed-network-starter/project.yaml delete mode 100644 Humanode/Humanode-starter/project.ts create mode 100644 Humanode/Humanode-starter/project.yaml delete mode 100644 HydraDX/hydradx-starter/project.ts create mode 100644 HydraDX/hydradx-starter/project.yaml delete mode 100644 IntegriteeShell/integritee-shell-starter/project.ts create mode 100644 IntegriteeShell/integritee-shell-starter/project.yaml delete mode 100644 Interlay/interlay-starter/project.ts create mode 100644 Interlay/interlay-starter/project.yaml delete mode 100644 Kapex/kapex-starter/project.ts create mode 100644 Kapex/kapex-starter/project.yaml delete mode 100644 Karura/karura-evm-starter/project.ts create mode 100644 Karura/karura-evm-starter/project.yaml delete mode 100644 Karura/karura-starter/project.ts create mode 100644 Karura/karura-starter/project.yaml delete mode 100644 Khala/khala-starter/project.ts create mode 100644 Khala/khala-starter/project.yaml delete mode 100644 Kilt/kilt-spiritnet-credentials-example/project.ts create mode 100644 Kilt/kilt-spiritnet-credentials-example/project.yaml delete mode 100644 Kilt/kilt-spiritnet-starter/project.ts create mode 100644 Kilt/kilt-spiritnet-starter/project.yaml delete mode 100644 Kusama/kusama-starter/project.ts create mode 100644 Kusama/kusama-starter/project.yaml delete mode 100644 Kylin/kylin-starter/project.ts create mode 100644 Kylin/kylin-starter/project.yaml delete mode 100644 Moonbeam/Moonbeam-starter/project.ts create mode 100644 Moonbeam/Moonbeam-starter/project.yaml delete mode 100644 Moonbeam/moonbeam-evm-starter/project.ts create mode 100644 Moonbeam/moonbeam-evm-starter/project.yaml delete mode 100644 Moonbeam/moonbeam-substrate-evm-starter/project.ts create mode 100644 Moonbeam/moonbeam-substrate-evm-starter/project.yaml delete mode 100644 Moonriver/Moonriver-starter/project.ts create mode 100644 Moonriver/Moonriver-starter/project.yaml delete mode 100644 Moonriver/moonriver-evm-starter/project.ts create mode 100644 Moonriver/moonriver-evm-starter/project.yaml delete mode 100644 Nodle/nodle-starter/project.ts create mode 100644 Nodle/nodle-starter/project.yaml delete mode 100644 OriginTrail/origintrail-starter/project.ts create mode 100644 OriginTrail/origintrail-starter/project.yaml delete mode 100644 Parallel/parallel-heiko-starter/project.ts create mode 100644 Parallel/parallel-heiko-starter/project.yaml delete mode 100644 Parallel/parallel-starter/project.ts create mode 100644 Parallel/parallel-starter/project.yaml delete mode 100644 Polkadex/polkadex-starter/project.ts create mode 100644 Polkadex/polkadex-starter/project.yaml delete mode 100644 Polkadot/Polkadot-starter/project.ts create mode 100644 Polkadot/Polkadot-starter/project.yaml delete mode 100644 Quartz/quartz-subql-starter/project.ts create mode 100644 Quartz/quartz-subql-starter/project.yaml delete mode 100644 Shiden/shiden-starter/project.ts create mode 100644 Shiden/shiden-starter/project.yaml delete mode 100644 Statemine/statemine-starter/project.ts create mode 100644 Statemine/statemine-starter/project.yaml delete mode 100644 Statemint/statemint-starter/project.ts create mode 100644 Statemint/statemint-starter/project.yaml delete mode 100644 Unique/unique-starter/project.ts create mode 100644 Unique/unique-starter/project.yaml delete mode 100644 Vara/vara-starter/project.ts create mode 100644 Vara/vara-starter/project.yaml delete mode 100644 Watr/watr-starter/project.ts create mode 100644 Watr/watr-starter/project.yaml delete mode 100644 Westend/westend-starter/project.ts create mode 100644 Westend/westend-starter/project.yaml diff --git a/Acala/acala-evm-starter/project.ts b/Acala/acala-evm-starter/project.ts deleted file mode 100644 index b232cda4..00000000 --- a/Acala/acala-evm-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..7349f34e --- /dev/null +++ b/Acala/acala-evm-starter/project.yaml @@ -0,0 +1,57 @@ +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 deleted file mode 100644 index 866c3dbf..00000000 --- a/Acala/acala-starter/project.ts +++ /dev/null @@ -1,82 +0,0 @@ -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 new file mode 100644 index 00000000..8c898107 --- /dev/null +++ b/Acala/acala-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 8a78fbad..00000000 --- a/Ajuna/ajuna-starter/project.ts +++ /dev/null @@ -1,81 +0,0 @@ -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 new file mode 100644 index 00000000..a5f42862 --- /dev/null +++ b/Ajuna/ajuna-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 5c9a0ea1..00000000 --- a/Altair/altair-starter/project.ts +++ /dev/null @@ -1,81 +0,0 @@ -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 new file mode 100644 index 00000000..f1b5b8f7 --- /dev/null +++ b/Altair/altair-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index a15ec5b9..00000000 --- a/Astar/astar-evm-starter/project.ts +++ /dev/null @@ -1,86 +0,0 @@ -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 new file mode 100644 index 00000000..cf738fba --- /dev/null +++ b/Astar/astar-evm-starter/project.yaml @@ -0,0 +1,57 @@ +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 deleted file mode 100644 index 8d1a382f..00000000 --- a/Astar/astar-starter/project.ts +++ /dev/null @@ -1,82 +0,0 @@ -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 new file mode 100644 index 00000000..38bb92e5 --- /dev/null +++ b/Astar/astar-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index e1314e81..00000000 --- a/Astar/astar-wasm-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -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 new file mode 100644 index 00000000..e1a09943 --- /dev/null +++ b/Astar/astar-wasm-starter/project.yaml @@ -0,0 +1,84 @@ +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 deleted file mode 100644 index bf6aee9f..00000000 --- a/Automata/automata-starter/project.ts +++ /dev/null @@ -1,79 +0,0 @@ -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 new file mode 100644 index 00000000..108e57c5 --- /dev/null +++ b/Automata/automata-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index aaab60a9..00000000 --- a/Basilisk/basilisk-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..955c2e98 --- /dev/null +++ b/Basilisk/basilisk-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index ed3f3580..00000000 --- a/Bifrost/bifrost-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..2ff27e48 --- /dev/null +++ b/Bifrost/bifrost-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 41f632df..00000000 --- a/Bitcountry/bitcountry-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..a53276a8 --- /dev/null +++ b/Bitcountry/bitcountry-starter/project.yaml @@ -0,0 +1,49 @@ +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 deleted file mode 100644 index 35c64f69..00000000 --- a/Bitgreen/bitgreen-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -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 new file mode 100644 index 00000000..e17b47c0 --- /dev/null +++ b/Bitgreen/bitgreen-starter/project.yaml @@ -0,0 +1,45 @@ +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 deleted file mode 100644 index 282dc264..00000000 --- a/Calamari/calamari-starter/project.ts +++ /dev/null @@ -1,81 +0,0 @@ -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 new file mode 100644 index 00000000..3f38631d --- /dev/null +++ b/Calamari/calamari-starter/project.yaml @@ -0,0 +1,43 @@ +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 deleted file mode 100644 index db2641ed..00000000 --- a/Centrifuge/centrifuge-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..bbcb7cae --- /dev/null +++ b/Centrifuge/centrifuge-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index c047b10a..00000000 --- a/Clover/clover-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..89a0e9bc --- /dev/null +++ b/Clover/clover-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index d84c3706..00000000 --- a/ComposableFinance/composable-finance-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..f6734cca --- /dev/null +++ b/ComposableFinance/composable-finance-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 275e172d..00000000 --- a/Contextfree/contextfree-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..a926839e --- /dev/null +++ b/Contextfree/contextfree-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index 05765ba9..00000000 --- a/Darwinia/darwinia-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -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 new file mode 100644 index 00000000..44522607 --- /dev/null +++ b/Darwinia/darwinia-starter/project.yaml @@ -0,0 +1,43 @@ +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 deleted file mode 100644 index fae52bba..00000000 --- a/Efinity/efinity-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..531b0ed3 --- /dev/null +++ b/Efinity/efinity-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index 55df53ca..00000000 --- a/Encointer/Encointer-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..0a95198b --- /dev/null +++ b/Encointer/Encointer-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index ce69d9a7..00000000 --- a/Equilibrium/equilibrium-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..baea06f9 --- /dev/null +++ b/Equilibrium/equilibrium-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index 7b7e2327..00000000 --- a/Frequency/frequency-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..3b0684dd --- /dev/null +++ b/Frequency/frequency-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index 0f2fe557..00000000 --- a/HashedNetwork/hashed-network-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..0087b8f8 --- /dev/null +++ b/HashedNetwork/hashed-network-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index f1cd27c2..00000000 --- a/Humanode/Humanode-starter/project.ts +++ /dev/null @@ -1,69 +0,0 @@ -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 new file mode 100644 index 00000000..77d8fe09 --- /dev/null +++ b/Humanode/Humanode-starter/project.yaml @@ -0,0 +1,41 @@ +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 deleted file mode 100644 index f6580d4e..00000000 --- a/HydraDX/hydradx-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..14c961a8 --- /dev/null +++ b/HydraDX/hydradx-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index 6e565c85..00000000 --- a/IntegriteeShell/integritee-shell-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..0048241a --- /dev/null +++ b/IntegriteeShell/integritee-shell-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index 3d6428ea..00000000 --- a/Interlay/interlay-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..679774df --- /dev/null +++ b/Interlay/interlay-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index f0ec7bae..00000000 --- a/Kapex/kapex-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..8c98394e --- /dev/null +++ b/Kapex/kapex-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index 99a3618a..00000000 --- a/Karura/karura-evm-starter/project.ts +++ /dev/null @@ -1,87 +0,0 @@ -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 new file mode 100644 index 00000000..b7eab79b --- /dev/null +++ b/Karura/karura-evm-starter/project.yaml @@ -0,0 +1,58 @@ +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 deleted file mode 100644 index 3a1ea188..00000000 --- a/Karura/karura-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..291ac227 --- /dev/null +++ b/Karura/karura-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 647257a9..00000000 --- a/Khala/khala-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..3fc6f5f2 --- /dev/null +++ b/Khala/khala-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 213907c2..00000000 --- a/Kilt/kilt-spiritnet-credentials-example/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..5aef688f --- /dev/null +++ b/Kilt/kilt-spiritnet-credentials-example/project.yaml @@ -0,0 +1,50 @@ +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 deleted file mode 100644 index 57b66468..00000000 --- a/Kilt/kilt-spiritnet-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..67dfeed1 --- /dev/null +++ b/Kilt/kilt-spiritnet-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index 7c792309..00000000 --- a/Kusama/kusama-starter/project.ts +++ /dev/null @@ -1,77 +0,0 @@ -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 new file mode 100644 index 00000000..1acc2d4c --- /dev/null +++ b/Kusama/kusama-starter/project.yaml @@ -0,0 +1,46 @@ +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 deleted file mode 100644 index 2ee38a76..00000000 --- a/Kylin/kylin-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..b21f1470 --- /dev/null +++ b/Kylin/kylin-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index d93075d5..00000000 --- a/Moonbeam/Moonbeam-starter/project.ts +++ /dev/null @@ -1,82 +0,0 @@ -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 new file mode 100644 index 00000000..5520b6d4 --- /dev/null +++ b/Moonbeam/Moonbeam-starter/project.yaml @@ -0,0 +1,49 @@ +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 deleted file mode 100644 index 5b22eceb..00000000 --- a/Moonbeam/moonbeam-evm-starter/project.ts +++ /dev/null @@ -1,89 +0,0 @@ -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 new file mode 100644 index 00000000..f6001b86 --- /dev/null +++ b/Moonbeam/moonbeam-evm-starter/project.yaml @@ -0,0 +1,66 @@ +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 deleted file mode 100644 index 654899f1..00000000 --- a/Moonbeam/moonbeam-substrate-evm-starter/project.ts +++ /dev/null @@ -1,105 +0,0 @@ -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 new file mode 100644 index 00000000..034a6143 --- /dev/null +++ b/Moonbeam/moonbeam-substrate-evm-starter/project.yaml @@ -0,0 +1,69 @@ +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 deleted file mode 100644 index c22f3b27..00000000 --- a/Moonriver/Moonriver-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..1c5950f0 --- /dev/null +++ b/Moonriver/Moonriver-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index ed8bed54..00000000 --- a/Moonriver/moonriver-evm-starter/project.ts +++ /dev/null @@ -1,89 +0,0 @@ -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 new file mode 100644 index 00000000..022fca68 --- /dev/null +++ b/Moonriver/moonriver-evm-starter/project.yaml @@ -0,0 +1,67 @@ +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 deleted file mode 100644 index ead527cc..00000000 --- a/Nodle/nodle-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..7576a947 --- /dev/null +++ b/Nodle/nodle-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 1b171acd..00000000 --- a/OriginTrail/origintrail-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..d35fd973 --- /dev/null +++ b/OriginTrail/origintrail-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index 8ac87259..00000000 --- a/Parallel/parallel-heiko-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..4c4f36e3 --- /dev/null +++ b/Parallel/parallel-heiko-starter/project.yaml @@ -0,0 +1,53 @@ +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 deleted file mode 100644 index 51eebb73..00000000 --- a/Parallel/parallel-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..a8d6e752 --- /dev/null +++ b/Parallel/parallel-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index f01e7748..00000000 --- a/Polkadex/polkadex-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..18436297 --- /dev/null +++ b/Polkadex/polkadex-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index e1314e81..00000000 --- a/Polkadot/Polkadot-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -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 new file mode 100644 index 00000000..e44b20cd --- /dev/null +++ b/Polkadot/Polkadot-starter/project.yaml @@ -0,0 +1,46 @@ +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 deleted file mode 100644 index 549fac95..00000000 --- a/Quartz/quartz-subql-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..ce321b1c --- /dev/null +++ b/Quartz/quartz-subql-starter/project.yaml @@ -0,0 +1,47 @@ +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 deleted file mode 100644 index 7550dcab..00000000 --- a/Shiden/shiden-starter/project.ts +++ /dev/null @@ -1,83 +0,0 @@ -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 new file mode 100644 index 00000000..dcf7b3e9 --- /dev/null +++ b/Shiden/shiden-starter/project.yaml @@ -0,0 +1,51 @@ +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 deleted file mode 100644 index 8a51e689..00000000 --- a/Statemine/statemine-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..e4b29ef2 --- /dev/null +++ b/Statemine/statemine-starter/project.yaml @@ -0,0 +1,49 @@ +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 deleted file mode 100644 index 8e2913c5..00000000 --- a/Statemint/statemint-starter/project.ts +++ /dev/null @@ -1,80 +0,0 @@ -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 new file mode 100644 index 00000000..a9d63859 --- /dev/null +++ b/Statemint/statemint-starter/project.yaml @@ -0,0 +1,49 @@ +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 deleted file mode 100644 index 0cb0b9e4..00000000 --- a/Unique/unique-starter/project.ts +++ /dev/null @@ -1,77 +0,0 @@ -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 new file mode 100644 index 00000000..d5b00c47 --- /dev/null +++ b/Unique/unique-starter/project.yaml @@ -0,0 +1,45 @@ +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 deleted file mode 100644 index b34fad58..00000000 --- a/Vara/vara-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -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 new file mode 100644 index 00000000..99efbc66 --- /dev/null +++ b/Vara/vara-starter/project.yaml @@ -0,0 +1,43 @@ +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 deleted file mode 100644 index eaf9c131..00000000 --- a/Watr/watr-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -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 new file mode 100644 index 00000000..691d40d7 --- /dev/null +++ b/Watr/watr-starter/project.yaml @@ -0,0 +1,48 @@ +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 deleted file mode 100644 index ea9770e5..00000000 --- a/Westend/westend-starter/project.ts +++ /dev/null @@ -1,79 +0,0 @@ -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 new file mode 100644 index 00000000..017f592a --- /dev/null +++ b/Westend/westend-starter/project.yaml @@ -0,0 +1,45 @@ +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 From 138b8ac9f40afce0aed497c8e1fc9ec503594275 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 15:37:57 +1300 Subject: [PATCH 3/4] Fix Equilibrium not building --- .../equilibrium-starter/src/chaintypes.ts | 61 ++++++++++--------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/Equilibrium/equilibrium-starter/src/chaintypes.ts b/Equilibrium/equilibrium-starter/src/chaintypes.ts index 86fa0bf6..64a2dfce 100644 --- a/Equilibrium/equilibrium-starter/src/chaintypes.ts +++ b/Equilibrium/equilibrium-starter/src/chaintypes.ts @@ -2,41 +2,42 @@ import type { OverrideBundleDefinition } from "@polkadot/types/types"; /* eslint-disable sort-keys */ +/* Not sure where `equilibrium` comes from so disabling for now */ const definitions: OverrideBundleDefinition = { - derives: { - ...equilibrium.instances.balances.reduce( - (all, cur) => ({ - ...all, - [cur]: { - customAccount: createCustomAccount(cur, (currency: string, api?: ApiInterfaceRx) => { - let assetsEnabled = true; + // derives: { + // ...equilibrium.instances.balances.reduce( + // (all, cur) => ({ + // ...all, + // [cur]: { + // customAccount: createCustomAccount(cur, (currency: string, api?: ApiInterfaceRx) => { + // let assetsEnabled = true; - try { - api?.registry.createType('AssetIdInnerType' as any); - } catch (_) { - assetsEnabled = false; - } + // try { + // api?.registry.createType('AssetIdInnerType' as any); + // } catch (_) { + // assetsEnabled = false; + // } - return assetsEnabled ? { 0: u64FromCurrency(currency) } : currency; - }) - } - }), - {} - ) - }, + // return assetsEnabled ? { 0: u64FromCurrency(currency) } : currency; + // }) + // } + // }), + // {} + // ) + // }, - instances: equilibrium.instances, + // instances: equilibrium.instances, - types: [ - { - minmax: [0, 264], - types: equilibrium.types - }, - { - minmax: [265, undefined], - types: equilibriumNext.types - } - ] + // types: [ + // { + // minmax: [0, 264], + // types: equilibrium.types + // }, + // { + // minmax: [265, undefined], + // types: equilibriumNext.types + // } + // ] }; export default { typesBundle: { spec: { equilibrum: definitions } } }; From 5ad1229ab1199353fe504a19ed59c2353535ab3b Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 15:52:07 +1300 Subject: [PATCH 4/4] Fix Humannode starter build issue --- .../src/mappings/mappingHandlers.ts | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Humanode/Humanode-starter/src/mappings/mappingHandlers.ts b/Humanode/Humanode-starter/src/mappings/mappingHandlers.ts index 0ba49734..8877c11d 100644 --- a/Humanode/Humanode-starter/src/mappings/mappingHandlers.ts +++ b/Humanode/Humanode-starter/src/mappings/mappingHandlers.ts @@ -12,12 +12,12 @@ export async function handleBioauthNewAuthenticationEvent( data: [validatorPublicKey], } = event; - const record = new BioauthNewAuthentication( - `${block.block.header.number}-${idx}` - ); - record.blockNumber = block.block.header.number.toNumber(); - record.timestamp = block.timestamp; - record.validatorPublicKey = validatorPublicKey.toString(); + const record = BioauthNewAuthentication.create({ + id: `${block.block.header.number}-${idx}`, + blockNumber: block.block.header.number.toNumber(), + timestamp: block.timestamp, + validatorPublicKey: validatorPublicKey.toString(), + }); await record.save(); } @@ -30,10 +30,13 @@ export async function handleImonlineSomeOfflineEvent( data: [offline], } = event; - const record = new ImOnlineSomeOffline(`${block.block.header.number}-${idx}`); - record.blockNumber = block.block.header.number.toNumber(); - record.timestamp = block.timestamp; - record.accountIds = []; + const record = ImOnlineSomeOffline.create({ + id: `${block.block.header.number}-${idx}`, + blockNumber: block.block.header.number.toNumber(), + timestamp: block.timestamp, + accountIds: [], + }); + for (const identification of offline as Vec) { const [accountId, _fullIdentification] = identification as any as [ Codec,