From ece088e2bd0c30a387b60dbcbe8c2ac372661f5e Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:03:24 +1300 Subject: [PATCH] Replace project.ts with project.yaml, update postgres version --- .../scripts/ci.package.json | 0 .github/scripts/ci.tsconfig.json | 20 ++++ .github/scripts/copy-ts-config.sh | 13 +++ .github/workflows/pr.yaml | 9 +- Agoric/agoric-starter/.gitignore | 2 +- Agoric/agoric-starter/docker/pg-Dockerfile | 4 +- Agoric/agoric-starter/project.ts | 98 ---------------- .../{project-old.yaml => project.yaml} | 0 Akash/akash-starter/.gitignore | 2 +- Akash/akash-starter/docker/pg-Dockerfile | 4 +- Akash/akash-starter/project.ts | 79 ------------- .../{project-old.yaml => project.yaml} | 0 Archway/archway-starter/.gitignore | 2 +- Archway/archway-starter/docker/pg-Dockerfile | 4 +- Archway/archway-starter/project.ts | 99 ---------------- .../{project-old.yaml => project.yaml} | 0 Axelar/axelar-starter/.gitignore | 2 +- Axelar/axelar-starter/docker/pg-Dockerfile | 4 +- Axelar/axelar-starter/project.ts | 60 ---------- .../{project-old.yaml => project.yaml} | 0 Cheqd/cheqd-starter/.gitignore | 2 +- Cheqd/cheqd-starter/docker/pg-Dockerfile | 4 +- Cheqd/cheqd-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Comdex/comdex-starter/.gitignore | 2 +- Comdex/comdex-starter/docker/pg-Dockerfile | 4 +- Comdex/comdex-starter/project.ts | 72 ------------ .../{project-old.yaml => project.yaml} | 0 CosmosHub/cosmoshub-starter/.gitignore | 2 +- .../cosmoshub-starter/docker/pg-Dockerfile | 4 +- CosmosHub/cosmoshub-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Cronos/cronos-evm-starter-via-eth/.gitignore | 6 +- .../docker/pg-Dockerfile | 2 +- Cronos/cronos-evm-starter-via-eth/project.ts | 84 -------------- .../{project-old.yaml => project.yaml} | 0 Cronos/cronos-evm-starter-via-rpc/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +- Cronos/cronos-evm-starter-via-rpc/project.ts | 107 ------------------ .../{project-old.yaml => project.yaml} | 0 Evmos/evmos-starter/.gitignore | 2 +- Evmos/evmos-starter/docker/pg-Dockerfile | 4 +- Evmos/evmos-starter/project.ts | 91 --------------- .../{project-old.yaml => project.yaml} | 0 Evmos/evmos-testnet-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +- Evmos/evmos-testnet-starter/project.ts | 91 --------------- .../{project-old.yaml => project.yaml} | 0 Fetch.ai/fetchhub-starter/.gitignore | 2 +- .../fetchhub-starter/docker/pg-Dockerfile | 4 +- Fetch.ai/fetchhub-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Injective/injective-starter/.gitignore | 2 +- .../injective-starter/docker/pg-Dockerfile | 4 +- Injective/injective-starter/project.ts | 75 ------------ .../{project-old.yaml => project.yaml} | 0 Juno/juno-starter/.gitignore | 2 +- Juno/juno-starter/docker/pg-Dockerfile | 4 +- Juno/juno-starter/project.ts | 70 ------------ .../{project-old.yaml => project.yaml} | 0 Kava/kava-starter/.gitignore | 2 +- Kava/kava-starter/docker/pg-Dockerfile | 4 +- Kava/kava-starter/project.ts | 77 ------------- .../{project-old.yaml => project.yaml} | 0 Mars/mars-starter/.gitignore | 2 +- Mars/mars-starter/docker/pg-Dockerfile | 4 +- Mars/mars-starter/project.ts | 92 --------------- .../{project-old.yaml => project.yaml} | 0 Migaloo/migaloo-starter/.gitignore | 2 +- Migaloo/migaloo-starter/docker/pg-Dockerfile | 4 +- Migaloo/migaloo-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Neutron/neutron-starter/.gitignore | 2 +- Neutron/neutron-starter/docker/pg-Dockerfile | 4 +- Neutron/neutron-starter/project.ts | 67 ----------- .../{project-old.yaml => project.yaml} | 0 OKX/okx-starter/.gitignore | 6 +- OKX/okx-starter/docker/pg-Dockerfile | 2 +- OKX/okx-starter/project.ts | 86 -------------- .../{project-old.yaml => project.yaml} | 0 Omniflixhub/omniflixhub-starter/.gitignore | 2 +- .../omniflixhub-starter/docker/pg-Dockerfile | 4 +- Omniflixhub/omniflixhub-starter/project.ts | 95 ---------------- .../{project-old.yaml => project.yaml} | 0 Osmosis/osmosis-starter/.gitignore | 2 +- Osmosis/osmosis-starter/docker/pg-Dockerfile | 4 +- Osmosis/osmosis-starter/project.ts | 86 -------------- .../{project-old.yaml => project.yaml} | 0 Persistence/persistence-starter/.gitignore | 2 +- .../persistence-starter/docker/pg-Dockerfile | 4 +- Persistence/persistence-starter/project.ts | 72 ------------ .../{project-old.yaml => project.yaml} | 0 Sei/sei-starter/.gitignore | 2 +- Sei/sei-starter/docker/pg-Dockerfile | 4 +- Sei/sei-starter/project.ts | 85 -------------- .../{project-old.yaml => project.yaml} | 0 Stargaze/stargaze-starter/.gitignore | 2 +- .../stargaze-starter/docker/pg-Dockerfile | 4 +- Stargaze/stargaze-starter/project.ts | 99 ---------------- .../{project-old.yaml => project.yaml} | 0 Thorchain/thorchain-starter/.gitignore | 2 +- .../thorchain-starter/docker/pg-Dockerfile | 4 +- Thorchain/thorchain-starter/project.ts | 89 --------------- .../{project-old.yaml => project.yaml} | 0 Umee/umee-starter/.gitignore | 2 +- Umee/umee-starter/docker/pg-Dockerfile | 4 +- Umee/umee-starter/project.ts | 92 --------------- .../{project-old.yaml => project.yaml} | 0 108 files changed, 121 insertions(+), 2319 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 delete mode 100644 Agoric/agoric-starter/project.ts rename Agoric/agoric-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Akash/akash-starter/project.ts rename Akash/akash-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Archway/archway-starter/project.ts rename Archway/archway-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Axelar/axelar-starter/project.ts rename Axelar/axelar-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Cheqd/cheqd-starter/project.ts rename Cheqd/cheqd-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Comdex/comdex-starter/project.ts rename Comdex/comdex-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 CosmosHub/cosmoshub-starter/project.ts rename CosmosHub/cosmoshub-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Cronos/cronos-evm-starter-via-eth/project.ts rename Cronos/cronos-evm-starter-via-eth/{project-old.yaml => project.yaml} (100%) delete mode 100644 Cronos/cronos-evm-starter-via-rpc/project.ts rename Cronos/cronos-evm-starter-via-rpc/{project-old.yaml => project.yaml} (100%) delete mode 100644 Evmos/evmos-starter/project.ts rename Evmos/evmos-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Evmos/evmos-testnet-starter/project.ts rename Evmos/evmos-testnet-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Fetch.ai/fetchhub-starter/project.ts rename Fetch.ai/fetchhub-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Injective/injective-starter/project.ts rename Injective/injective-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Juno/juno-starter/project.ts rename Juno/juno-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Kava/kava-starter/project.ts rename Kava/kava-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Mars/mars-starter/project.ts rename Mars/mars-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Migaloo/migaloo-starter/project.ts rename Migaloo/migaloo-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Neutron/neutron-starter/project.ts rename Neutron/neutron-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 OKX/okx-starter/project.ts rename OKX/okx-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Omniflixhub/omniflixhub-starter/project.ts rename Omniflixhub/omniflixhub-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Osmosis/osmosis-starter/project.ts rename Osmosis/osmosis-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Persistence/persistence-starter/project.ts rename Persistence/persistence-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Sei/sei-starter/project.ts rename Sei/sei-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Stargaze/stargaze-starter/project.ts rename Stargaze/stargaze-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Thorchain/thorchain-starter/project.ts rename Thorchain/thorchain-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Umee/umee-starter/project.ts rename Umee/umee-starter/{project-old.yaml => project.yaml} (100%) 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 000000000..ed617d7ee --- /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-cosmos/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 000000000..938c35264 --- /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 8431e4702..941e09378 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -13,9 +13,12 @@ jobs: uses: actions/setup-node@v2 with: node-version: 18 + - name: setup workspace + run: cp ci.package.json package.json - run: yarn - name: codegen run: yarn codegen - # Need to update tsconfig inputs paths for this to work - # - name: build - # run: yarn build + - name: update tsconfigs for workspace + run: .github/scripts/copy-ts-config.sh + - name: build + run: yarn build diff --git a/Agoric/agoric-starter/.gitignore b/Agoric/agoric-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Agoric/agoric-starter/.gitignore +++ b/Agoric/agoric-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Agoric/agoric-starter/docker/pg-Dockerfile b/Agoric/agoric-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Agoric/agoric-starter/docker/pg-Dockerfile +++ b/Agoric/agoric-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/Agoric/agoric-starter/project.ts b/Agoric/agoric-starter/project.ts deleted file mode 100644 index 5e0b9d04e..000000000 --- a/Agoric/agoric-starter/project.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "agoric-starter", - description: - "This project can be use as a starting point for developing your Cosmos agoric based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "agoric-3", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://agoric-rpc.stakely.io"], - dictionary: "https://api.subquery.network/sq/subquery/agoric-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 11628269, - mapping: { - file: "./dist/index.js", - handlers: [ - // { - // Using block handlers slows your project down as they can be executed with each and every block. - // Only use if you need to - // handler: 'handleEvent', - // kind: SubqlCosmosHandlerKind.Block, - // }, - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Agoric/agoric-starter/project-old.yaml b/Agoric/agoric-starter/project.yaml similarity index 100% rename from Agoric/agoric-starter/project-old.yaml rename to Agoric/agoric-starter/project.yaml diff --git a/Akash/akash-starter/.gitignore b/Akash/akash-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Akash/akash-starter/.gitignore +++ b/Akash/akash-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Akash/akash-starter/docker/pg-Dockerfile b/Akash/akash-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Akash/akash-starter/docker/pg-Dockerfile +++ b/Akash/akash-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/Akash/akash-starter/project.ts b/Akash/akash-starter/project.ts deleted file mode 100644 index 741924ee4..000000000 --- a/Akash/akash-starter/project.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "akash-starter", - description: - "This project can be use as a starting point for developing your Cosmos Akash based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "akashnet-2", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: [ - "https://rpc-akash.ecostake.com:443", - "https://rpc.akashnet.net:443", - ], - // dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary", - chaintypes: new Map([ - [ - "akash.staking.v1beta3", - { - file: "./proto/akash/staking/v1beta3/params.proto", - messages: ["Params"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 11364001, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleReward", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "withdraw_rewards", - messageFilter: { - type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - }, - /* - contractCall field can be specified here too - values: # A set of key/value pairs that are present in the message data - contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - */ - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Akash/akash-starter/project-old.yaml b/Akash/akash-starter/project.yaml similarity index 100% rename from Akash/akash-starter/project-old.yaml rename to Akash/akash-starter/project.yaml diff --git a/Archway/archway-starter/.gitignore b/Archway/archway-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Archway/archway-starter/.gitignore +++ b/Archway/archway-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Archway/archway-starter/docker/pg-Dockerfile b/Archway/archway-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Archway/archway-starter/docker/pg-Dockerfile +++ b/Archway/archway-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/Archway/archway-starter/project.ts b/Archway/archway-starter/project.ts deleted file mode 100644 index 05049deeb..000000000 --- a/Archway/archway-starter/project.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "archway-starter", - description: - " This project can be use as a starting point for developing your Cosmos (Archway) based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "archway-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: [ - "https://rpc.mainnet.archway.io:443", - // "https://rpc-archway.cosmos-spaces.cloud", - // "https://rpc-1.archway.nodes.guru", - ], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://api.subquery.network/sq/subquery/cosmos-archway-dictionary" - chaintypes: new Map([ - [ - "cosmwasm.wasm.v1.MsgSetContractMetadata", - { - file: "./proto/archway/rewards/v1/tx.proto", - messages: ["MsgSetContractMetadata"], - }, - ], - [ - "cosmwasm.wasm.v1.ContractMetadata", - { - file: "./proto/archway/rewards/v1/rewards.proto", - messages: ["ContractMetadata"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 1338, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleRewardsWithdrawEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "archway.rewards.v1.RewardsWithdrawEvent", - messageFilter: { - type: "/archway.rewards.v1.MsgWithdrawRewards", - }, - /* - contractCall field can be specified here too - values: # A set of key/value pairs that are present in the message data - contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - */ - }, - }, - { - handler: "handleSetContractMetadata", - kind: SubqlCosmosHandlerKind.Message, - filter: { - /* - Filter to only messages with the MsgSetContractMetadata function call - e.g. https://archway.explorers.guru/transaction/EBEE24728FCDA79EF167625D66F438236ED17579CAA7229A562C5AB84608B5A4 - */ - type: "/archway.rewards.v1.MsgSetContractMetadata", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Archway/archway-starter/project-old.yaml b/Archway/archway-starter/project.yaml similarity index 100% rename from Archway/archway-starter/project-old.yaml rename to Archway/archway-starter/project.yaml diff --git a/Axelar/axelar-starter/.gitignore b/Axelar/axelar-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Axelar/axelar-starter/.gitignore +++ b/Axelar/axelar-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Axelar/axelar-starter/docker/pg-Dockerfile b/Axelar/axelar-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Axelar/axelar-starter/docker/pg-Dockerfile +++ b/Axelar/axelar-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/Axelar/axelar-starter/project.ts b/Axelar/axelar-starter/project.ts deleted file mode 100644 index 6f4f7f2bf..000000000 --- a/Axelar/axelar-starter/project.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "axelar-starter", - description: - " This project can be use as a starting point for developing your Cosmos Axelar based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "axelar-dojo-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://axelar-archrpc.chainode.tech/"], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://api.subquery.network/sq/subquery/axelar-hub-dictionary" - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5262, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "depositConfirmation", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Axelar/axelar-starter/project-old.yaml b/Axelar/axelar-starter/project.yaml similarity index 100% rename from Axelar/axelar-starter/project-old.yaml rename to Axelar/axelar-starter/project.yaml diff --git a/Cheqd/cheqd-starter/.gitignore b/Cheqd/cheqd-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Cheqd/cheqd-starter/.gitignore +++ b/Cheqd/cheqd-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Cheqd/cheqd-starter/docker/pg-Dockerfile b/Cheqd/cheqd-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Cheqd/cheqd-starter/docker/pg-Dockerfile +++ b/Cheqd/cheqd-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/Cheqd/cheqd-starter/project.ts b/Cheqd/cheqd-starter/project.ts deleted file mode 100644 index 79f756ad9..000000000 --- a/Cheqd/cheqd-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cheqd-starter", - description: - " This project can be use as a starting point for developing your Cosmos cheqd based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "cheqd-mainnet-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc.cheqd.nodestake.top"], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cheqd-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 9758950, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Cheqd/cheqd-starter/project-old.yaml b/Cheqd/cheqd-starter/project.yaml similarity index 100% rename from Cheqd/cheqd-starter/project-old.yaml rename to Cheqd/cheqd-starter/project.yaml diff --git a/Comdex/comdex-starter/.gitignore b/Comdex/comdex-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Comdex/comdex-starter/.gitignore +++ b/Comdex/comdex-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Comdex/comdex-starter/docker/pg-Dockerfile b/Comdex/comdex-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Comdex/comdex-starter/docker/pg-Dockerfile +++ b/Comdex/comdex-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/Comdex/comdex-starter/project.ts b/Comdex/comdex-starter/project.ts deleted file mode 100644 index 616427dd8..000000000 --- a/Comdex/comdex-starter/project.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "comdex-starter", - description: - "This project can be use as a starting point for developing your Cosmos Comdex based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "comdex-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-comdex.zenchainlabs.io/"], - chaintypes: new Map([ - // This feature allows support for any Cosmos chain by importing the correct protobuf messages - [ - "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - { - //CIRCUMVENTING VIA ORDER - file: "./proto/cosmos/distribution/v1beta1/tx.proto", - messages: ["MsgWithdrawDelegatorReward"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 1, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "coin_spent", - messageFilter: { - type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Comdex/comdex-starter/project-old.yaml b/Comdex/comdex-starter/project.yaml similarity index 100% rename from Comdex/comdex-starter/project-old.yaml rename to Comdex/comdex-starter/project.yaml diff --git a/CosmosHub/cosmoshub-starter/.gitignore b/CosmosHub/cosmoshub-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/CosmosHub/cosmoshub-starter/.gitignore +++ b/CosmosHub/cosmoshub-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/CosmosHub/cosmoshub-starter/docker/pg-Dockerfile b/CosmosHub/cosmoshub-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/CosmosHub/cosmoshub-starter/docker/pg-Dockerfile +++ b/CosmosHub/cosmoshub-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/CosmosHub/cosmoshub-starter/project.ts b/CosmosHub/cosmoshub-starter/project.ts deleted file mode 100644 index f4925a8a0..000000000 --- a/CosmosHub/cosmoshub-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cosmoshub-starter", - description: - "This project can be use as a starting point for developing your Cosmos CosmosHub based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "cosmoshub-4", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://cosmos-mainnet-archive.allthatnode.com:26657"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5200791, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/CosmosHub/cosmoshub-starter/project-old.yaml b/CosmosHub/cosmoshub-starter/project.yaml similarity index 100% rename from CosmosHub/cosmoshub-starter/project-old.yaml rename to CosmosHub/cosmoshub-starter/project.yaml diff --git a/Cronos/cronos-evm-starter-via-eth/.gitignore b/Cronos/cronos-evm-starter-via-eth/.gitignore index 040e1989c..39161a936 100644 --- a/Cronos/cronos-evm-starter-via-eth/.gitignore +++ b/Cronos/cronos-evm-starter-via-eth/.gitignore @@ -1,3 +1,4 @@ + # These are some examples of commonly ignored file patterns. # You should customize this list as applicable to your project. # Learn more about .gitignore: @@ -27,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ @@ -54,4 +55,5 @@ Thumbs.db *.mov *.wmv -.data \ No newline at end of file +.data +dist diff --git a/Cronos/cronos-evm-starter-via-eth/docker/pg-Dockerfile b/Cronos/cronos-evm-starter-via-eth/docker/pg-Dockerfile index bb6537ff0..1f5594e66 100644 --- a/Cronos/cronos-evm-starter-via-eth/docker/pg-Dockerfile +++ b/Cronos/cronos-evm-starter-via-eth/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' diff --git a/Cronos/cronos-evm-starter-via-eth/project.ts b/Cronos/cronos-evm-starter-via-eth/project.ts deleted file mode 100644 index feb0cd1d7..000000000 --- a/Cronos/cronos-evm-starter-via-eth/project.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { - EthereumProject, - EthereumDatasourceKind, - EthereumHandlerKind, -} from "@subql/types-ethereum"; - -// Can expand the Datasource processor types via the generic param -const project: EthereumProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cronos-evm-starter-via-eth", - description: - "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Etheruem API", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - chainId: "25", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://evm.cronos.org/"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // Contract creation of Pangolin Token https://snowtrace.io/tx/0xfab84552e997848a43f05e440998617d641788d355e3195b6882e9006996d8f9 - startBlock: 446, - options: { - // Must be a key of assets - abi: "erc20", - address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23", - // Wrapped CRO https://cronos.org/explorer/address/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23 - }, - assets: new Map([["erc20", { file: "./erc20.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Call, - handler: "handleTransaction", - filter: { - /** - * The function can either be the function fragment or signature - * function: '0x095ea7b3' - * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - */ - function: "approve(address guy, uint256 wad)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: ["Transfer(address src, address dst, uint256 wad)"], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -export default project; diff --git a/Cronos/cronos-evm-starter-via-eth/project-old.yaml b/Cronos/cronos-evm-starter-via-eth/project.yaml similarity index 100% rename from Cronos/cronos-evm-starter-via-eth/project-old.yaml rename to Cronos/cronos-evm-starter-via-eth/project.yaml diff --git a/Cronos/cronos-evm-starter-via-rpc/.gitignore b/Cronos/cronos-evm-starter-via-rpc/.gitignore index af37ddbf4..39161a936 100644 --- a/Cronos/cronos-evm-starter-via-rpc/.gitignore +++ b/Cronos/cronos-evm-starter-via-rpc/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Cronos/cronos-evm-starter-via-rpc/docker/pg-Dockerfile b/Cronos/cronos-evm-starter-via-rpc/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Cronos/cronos-evm-starter-via-rpc/docker/pg-Dockerfile +++ b/Cronos/cronos-evm-starter-via-rpc/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/Cronos/cronos-evm-starter-via-rpc/project.ts b/Cronos/cronos-evm-starter-via-rpc/project.ts deleted file mode 100644 index 7194fa0b9..000000000 --- a/Cronos/cronos-evm-starter-via-rpc/project.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { CosmosProject } from "@subql/types-cosmos"; -import { EthermintEvmDatasource } from "@subql/ethermint-evm-processor"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cronos-rpc-starter", - description: - "This project can be use as a starting point for developing your Cosmos Cronos based SubQuery project via Cosmos RPC API", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "cronosmainnet_25-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc.cronos.org/"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary", - chaintypes: new Map([ - [ - "ethermint.evm.v1", - { - file: "./proto/ethermint/evm/v1/tx.proto", - messages: [ - "MsgEthereumTx", - "LegacyTx", - "AccessListTx", - "DynamicFeeTx", - ], - }, - ], - [ - "ethermint.evm.v12", - { - file: "./proto/ethermint/evm/v1/evm.proto", - messages: ["AccessTuple"], - }, - ], - [ - "google.protobuf", - { - file: "./proto/google/protobuf/any.proto", - messages: ["Any"], - }, - ], - ]), - }, - dataSources: [ - { - kind: "cosmos/EthermintEvm", - startBlock: 446, - processor: { - file: "./node_modules/@subql/ethermint-evm-processor/dist/bundle.js", - options: { - abi: "erc20", - address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23", // Wrapped CRO - }, - }, - assets: new Map([["erc20", { file: "./erc20.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEthermintEvmCall", - kind: "cosmos/EthermintEvmCall", - filter: { - // Either Function Signature strings or the function `sighash` to filter the function called on the contract - // https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment - method: "approve(address guy, uint256 wad)", - }, - }, - { - handler: "handleEthermintEvmEvent", - kind: "cosmos/EthermintEvmEvent", - filter: { - // The topics filter follows the Ethereum JSON-PRC log filters - // https://docs.ethers.io/v5/concepts/events - // Example valid values: - // - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' - // - Transfer(address,address,u256) - topics: ["Transfer(address src, address dst, uint256 wad)"], - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Cronos/cronos-evm-starter-via-rpc/project-old.yaml b/Cronos/cronos-evm-starter-via-rpc/project.yaml similarity index 100% rename from Cronos/cronos-evm-starter-via-rpc/project-old.yaml rename to Cronos/cronos-evm-starter-via-rpc/project.yaml diff --git a/Evmos/evmos-starter/.gitignore b/Evmos/evmos-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Evmos/evmos-starter/.gitignore +++ b/Evmos/evmos-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Evmos/evmos-starter/docker/pg-Dockerfile b/Evmos/evmos-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Evmos/evmos-starter/docker/pg-Dockerfile +++ b/Evmos/evmos-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/Evmos/evmos-starter/project.ts b/Evmos/evmos-starter/project.ts deleted file mode 100644 index a7dd540bc..000000000 --- a/Evmos/evmos-starter/project.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Evmos-starter", - description: - "This project can be use as a starting point for developing your Cosmos Evmos based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "evmos_9001-2", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://evmos.api.onfinality.io/public"], - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 58701, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Evmos/evmos-starter/project-old.yaml b/Evmos/evmos-starter/project.yaml similarity index 100% rename from Evmos/evmos-starter/project-old.yaml rename to Evmos/evmos-starter/project.yaml diff --git a/Evmos/evmos-testnet-starter/.gitignore b/Evmos/evmos-testnet-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Evmos/evmos-testnet-starter/.gitignore +++ b/Evmos/evmos-testnet-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Evmos/evmos-testnet-starter/docker/pg-Dockerfile b/Evmos/evmos-testnet-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Evmos/evmos-testnet-starter/docker/pg-Dockerfile +++ b/Evmos/evmos-testnet-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/Evmos/evmos-testnet-starter/project.ts b/Evmos/evmos-testnet-starter/project.ts deleted file mode 100644 index 971f0de7a..000000000 --- a/Evmos/evmos-testnet-starter/project.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "emvos-testnet-starter", - description: - "This project can be use as a starting point for developing your Cosmos Evmos Testnet based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "evmos_9000-4", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://eth.bd.evmos.dev"], - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 58701, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Evmos/evmos-testnet-starter/project-old.yaml b/Evmos/evmos-testnet-starter/project.yaml similarity index 100% rename from Evmos/evmos-testnet-starter/project-old.yaml rename to Evmos/evmos-testnet-starter/project.yaml diff --git a/Fetch.ai/fetchhub-starter/.gitignore b/Fetch.ai/fetchhub-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Fetch.ai/fetchhub-starter/.gitignore +++ b/Fetch.ai/fetchhub-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Fetch.ai/fetchhub-starter/docker/pg-Dockerfile b/Fetch.ai/fetchhub-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Fetch.ai/fetchhub-starter/docker/pg-Dockerfile +++ b/Fetch.ai/fetchhub-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/Fetch.ai/fetchhub-starter/project.ts b/Fetch.ai/fetchhub-starter/project.ts deleted file mode 100644 index 8ca7955e9..000000000 --- a/Fetch.ai/fetchhub-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Fetchhub-starter", - description: - "This project can be use as a starting point for developing your Cosmos Fetchhub based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "fetchhub-4", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-fetchhub.fetch.ai"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-fetch-ai-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5300201, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Fetch.ai/fetchhub-starter/project-old.yaml b/Fetch.ai/fetchhub-starter/project.yaml similarity index 100% rename from Fetch.ai/fetchhub-starter/project-old.yaml rename to Fetch.ai/fetchhub-starter/project.yaml diff --git a/Injective/injective-starter/.gitignore b/Injective/injective-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Injective/injective-starter/.gitignore +++ b/Injective/injective-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Injective/injective-starter/docker/pg-Dockerfile b/Injective/injective-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Injective/injective-starter/docker/pg-Dockerfile +++ b/Injective/injective-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/Injective/injective-starter/project.ts b/Injective/injective-starter/project.ts deleted file mode 100644 index 3463d1a23..000000000 --- a/Injective/injective-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Injective-starter", - description: - "This project can be use as a starting point for developing your Cosmos Injective based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "injective-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["http://archival-sentry-equinix-2.injective.dev:26657"], - chaintypes: new Map([ - [ - // Key is not used, it matches the one above and is inferred from the fil - "injective.exchange.v1beta1.MsgCreateSpotLimitOrder", - { - file: "./proto/injective/exchange/v1beta1/tx.proto", - messages: ["MsgCreateSpotLimitOrder"], - }, - ], - [ - "injective.exchange.v1beta1.SpotOrder", - { - file: "./proto/injective/exchange/v1beta1/exchange.proto", - messages: ["SpotOrder"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 22186475, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/injective.exchange.v1beta1.MsgCreateSpotLimitOrder", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Injective/injective-starter/project-old.yaml b/Injective/injective-starter/project.yaml similarity index 100% rename from Injective/injective-starter/project-old.yaml rename to Injective/injective-starter/project.yaml diff --git a/Juno/juno-starter/.gitignore b/Juno/juno-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Juno/juno-starter/.gitignore +++ b/Juno/juno-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Juno/juno-starter/docker/pg-Dockerfile b/Juno/juno-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Juno/juno-starter/docker/pg-Dockerfile +++ b/Juno/juno-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/Juno/juno-starter/project.ts b/Juno/juno-starter/project.ts deleted file mode 100644 index cd75981f2..000000000 --- a/Juno/juno-starter/project.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "juno-starter", - description: - "This project can be use as a starting point for developing your Cosmos juno based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "juno-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-juno.whispernode.com"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-juno-dictionary", - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 9700000, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "execute", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Juno/juno-starter/project-old.yaml b/Juno/juno-starter/project.yaml similarity index 100% rename from Juno/juno-starter/project-old.yaml rename to Juno/juno-starter/project.yaml diff --git a/Kava/kava-starter/.gitignore b/Kava/kava-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Kava/kava-starter/.gitignore +++ b/Kava/kava-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Kava/kava-starter/docker/pg-Dockerfile b/Kava/kava-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Kava/kava-starter/docker/pg-Dockerfile +++ b/Kava/kava-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/Kava/kava-starter/project.ts b/Kava/kava-starter/project.ts deleted file mode 100644 index c392746de..000000000 --- a/Kava/kava-starter/project.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "kava-starter", - description: - "This project can be use as a starting point for developing your Cosmos kava based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "kava_2222-10", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://kava-rpc.ibs.team"], - chaintypes: new Map([ - [ - "cosmos.bank.v1beta1.MsgSend", - { - file: "./proto/cosmos/bank/v1beta1/tx.proto", - messages: ["MsgSend"], - }, - ], - [ - "cosmos.base.v1beta1.Coin", - { - file: "./proto/cosmos/base/v1beta1/coin.proto", - messages: ["Coin"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5397233, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "coin_spent", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Kava/kava-starter/project-old.yaml b/Kava/kava-starter/project.yaml similarity index 100% rename from Kava/kava-starter/project-old.yaml rename to Kava/kava-starter/project.yaml diff --git a/Mars/mars-starter/.gitignore b/Mars/mars-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Mars/mars-starter/.gitignore +++ b/Mars/mars-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Mars/mars-starter/docker/pg-Dockerfile b/Mars/mars-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Mars/mars-starter/docker/pg-Dockerfile +++ b/Mars/mars-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/Mars/mars-starter/project.ts b/Mars/mars-starter/project.ts deleted file mode 100644 index c357647e7..000000000 --- a/Mars/mars-starter/project.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Mars-starter", - description: - "This project can be use as a starting point for developing your Cosmos Mars based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "mars-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://mars-rpc.publicnode.com"], - dictionary: "https://api.subquery.network/sq/subquery/mars-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 3169377, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Mars/mars-starter/project-old.yaml b/Mars/mars-starter/project.yaml similarity index 100% rename from Mars/mars-starter/project-old.yaml rename to Mars/mars-starter/project.yaml diff --git a/Migaloo/migaloo-starter/.gitignore b/Migaloo/migaloo-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Migaloo/migaloo-starter/.gitignore +++ b/Migaloo/migaloo-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Migaloo/migaloo-starter/docker/pg-Dockerfile b/Migaloo/migaloo-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Migaloo/migaloo-starter/docker/pg-Dockerfile +++ b/Migaloo/migaloo-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/Migaloo/migaloo-starter/project.ts b/Migaloo/migaloo-starter/project.ts deleted file mode 100644 index ff2ca051e..000000000 --- a/Migaloo/migaloo-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "migaloo-starter", - description: - "This project can be use as a starting point for developing your Cosmos migaloo based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "migaloo-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://migaloo-rpc.cosmosrescue.com"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/migaloo-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 3082328, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Migaloo/migaloo-starter/project-old.yaml b/Migaloo/migaloo-starter/project.yaml similarity index 100% rename from Migaloo/migaloo-starter/project-old.yaml rename to Migaloo/migaloo-starter/project.yaml diff --git a/Neutron/neutron-starter/.gitignore b/Neutron/neutron-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Neutron/neutron-starter/.gitignore +++ b/Neutron/neutron-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Neutron/neutron-starter/docker/pg-Dockerfile b/Neutron/neutron-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Neutron/neutron-starter/docker/pg-Dockerfile +++ b/Neutron/neutron-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/Neutron/neutron-starter/project.ts b/Neutron/neutron-starter/project.ts deleted file mode 100644 index f3867bb04..000000000 --- a/Neutron/neutron-starter/project.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "neutron-starter", - description: - "This project can be use as a starting point for developing your Cosmos neutron based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "neutron-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: [ - "https://rpc-kralum.neutron-1.neutron.org", - "https://neutron-rpc.lavenderfive.com", - "https://rpc-neutron.whispernode.com", - ], - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 1, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleAirdropClaim", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - contractCall: "claim", - values: { - contract: - "neutron198sxsrjvt2v2lln2ajn82ks76k97mj72mtgl7309jehd0vy8rezs7e6c56", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Neutron/neutron-starter/project-old.yaml b/Neutron/neutron-starter/project.yaml similarity index 100% rename from Neutron/neutron-starter/project-old.yaml rename to Neutron/neutron-starter/project.yaml diff --git a/OKX/okx-starter/.gitignore b/OKX/okx-starter/.gitignore index 040e1989c..39161a936 100644 --- a/OKX/okx-starter/.gitignore +++ b/OKX/okx-starter/.gitignore @@ -1,3 +1,4 @@ + # These are some examples of commonly ignored file patterns. # You should customize this list as applicable to your project. # Learn more about .gitignore: @@ -27,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ @@ -54,4 +55,5 @@ Thumbs.db *.mov *.wmv -.data \ No newline at end of file +.data +dist diff --git a/OKX/okx-starter/docker/pg-Dockerfile b/OKX/okx-starter/docker/pg-Dockerfile index bb6537ff0..1f5594e66 100644 --- a/OKX/okx-starter/docker/pg-Dockerfile +++ b/OKX/okx-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' diff --git a/OKX/okx-starter/project.ts b/OKX/okx-starter/project.ts deleted file mode 100644 index 551a34b24..000000000 --- a/OKX/okx-starter/project.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { - EthereumProject, - EthereumDatasourceKind, - EthereumHandlerKind, -} from "@subql/types-ethereum"; - -// Can expand the Datasource processor types via the generic param -const project: EthereumProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "OKX-starter-via-eth", - description: - "This project can be use as a starting point for developing your Cosmos (OKX) based SubQuery project via the Etheruem API", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - chainId: "66", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://exchainrpc.okex.org/"], - // dictionary: "https://api.subquery.network/sq/subquery/cosmos-okx-dictionary" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // Contract creation of Pangolin Token https://snowtrace.io/tx/0xfab84552e997848a43f05e440998617d641788d355e3195b6882e9006996d8f9 - startBlock: 446, - options: { - // Must be a key of assets - abi: "erc20", - address: "0x382bb369d343125bfb2117af9c149795c6c65c50", // USDT https://www.oklink.com/en/okc/address/0x382bb369d343125bfb2117af9c149795c6c65c50 - }, - assets: new Map([["erc20", { file: "./erc20.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Call, - handler: "handleTransaction", - filter: { - /** - * The function can either be the function fragment or signature - * function: '0x095ea7b3' - * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - */ - function: "approve(address spender, uint256 value)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - # The topics filter follows the Ethereum JSON-PRC log filters - # https://docs.ethers.io/v5/concepts/events - # Example valid values: - # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' - # - Transfer(address,address,u256) - */ - topics: ["Transfer(address from, address to, uint256 value)"], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -export default project; diff --git a/OKX/okx-starter/project-old.yaml b/OKX/okx-starter/project.yaml similarity index 100% rename from OKX/okx-starter/project-old.yaml rename to OKX/okx-starter/project.yaml diff --git a/Omniflixhub/omniflixhub-starter/.gitignore b/Omniflixhub/omniflixhub-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Omniflixhub/omniflixhub-starter/.gitignore +++ b/Omniflixhub/omniflixhub-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Omniflixhub/omniflixhub-starter/docker/pg-Dockerfile b/Omniflixhub/omniflixhub-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Omniflixhub/omniflixhub-starter/docker/pg-Dockerfile +++ b/Omniflixhub/omniflixhub-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/Omniflixhub/omniflixhub-starter/project.ts b/Omniflixhub/omniflixhub-starter/project.ts deleted file mode 100644 index a95f5e998..000000000 --- a/Omniflixhub/omniflixhub-starter/project.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "omniflixhub-starter", - description: - "This project can be use as a starting point for developing your Cosmos omniflixhub based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "omniflixhub-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://omniflix.rpc.stake2.me"], - - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://api.subquery.network/sq/subquery/omniflixhub-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 8279252, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Omniflixhub/omniflixhub-starter/project-old.yaml b/Omniflixhub/omniflixhub-starter/project.yaml similarity index 100% rename from Omniflixhub/omniflixhub-starter/project-old.yaml rename to Omniflixhub/omniflixhub-starter/project.yaml diff --git a/Osmosis/osmosis-starter/.gitignore b/Osmosis/osmosis-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Osmosis/osmosis-starter/.gitignore +++ b/Osmosis/osmosis-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Osmosis/osmosis-starter/docker/pg-Dockerfile b/Osmosis/osmosis-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Osmosis/osmosis-starter/docker/pg-Dockerfile +++ b/Osmosis/osmosis-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/Osmosis/osmosis-starter/project.ts b/Osmosis/osmosis-starter/project.ts deleted file mode 100644 index 31d8566f5..000000000 --- a/Osmosis/osmosis-starter/project.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "osmosis-starter", - description: - "This project can be use as a starting point for developing your Cosmos osmosis based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "osmosis-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://osmosis.api.onfinality.io/public"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-osmosis-dictionary", - chaintypes: new Map([ - [ - "osmosis.gamm.v1beta1", - { - file: "./proto/osmosis/gamm/v1beta1/tx.proto", - messages: ["MsgSwapExactAmountIn"], - }, - ], - [ - " osmosis.poolmanager.v1beta1", - { - // needed by MsgSwapExactAmountIn - file: "./proto/osmosis/poolmanager/v1beta1/swap_route.proto", - messages: ["SwapAmountInRoute"], - }, - ], - [ - "cosmos.base.v1beta1", - { - // needed by MsgSwapExactAmountIn - file: "./proto/cosmos/base/v1beta1/coin.proto", - messages: ["Coin"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 9798050, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Osmosis/osmosis-starter/project-old.yaml b/Osmosis/osmosis-starter/project.yaml similarity index 100% rename from Osmosis/osmosis-starter/project-old.yaml rename to Osmosis/osmosis-starter/project.yaml diff --git a/Persistence/persistence-starter/.gitignore b/Persistence/persistence-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Persistence/persistence-starter/.gitignore +++ b/Persistence/persistence-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Persistence/persistence-starter/docker/pg-Dockerfile b/Persistence/persistence-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Persistence/persistence-starter/docker/pg-Dockerfile +++ b/Persistence/persistence-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/Persistence/persistence-starter/project.ts b/Persistence/persistence-starter/project.ts deleted file mode 100644 index 9b76f961e..000000000 --- a/Persistence/persistence-starter/project.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "persistence-starter", - description: - "This project can be use as a starting point for developing your Cosmos persistence based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "core-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chaintypes: new Map([ - [ - "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - { - // CIRCUMVENTING VIA ORDER - file: "./proto/cosmos/distribution/v1beta1/tx.proto", - messages: ["MsgWithdrawDelegatorReward"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 10737679, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "coin_spent", - messageFilter: { - type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Persistence/persistence-starter/project-old.yaml b/Persistence/persistence-starter/project.yaml similarity index 100% rename from Persistence/persistence-starter/project-old.yaml rename to Persistence/persistence-starter/project.yaml diff --git a/Sei/sei-starter/.gitignore b/Sei/sei-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Sei/sei-starter/.gitignore +++ b/Sei/sei-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Sei/sei-starter/docker/pg-Dockerfile b/Sei/sei-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Sei/sei-starter/docker/pg-Dockerfile +++ b/Sei/sei-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/Sei/sei-starter/project.ts b/Sei/sei-starter/project.ts deleted file mode 100644 index 31354b934..000000000 --- a/Sei/sei-starter/project.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "sei-starter", - description: - "This project can be use as a starting point for developing your Cosmos sei based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "atlantic-2", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-sei-testnet.rhinostake.com/"], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary", - chaintypes: new Map([ - // This feature allows support for any Cosmos chain by importing the correct protobuf messages - [ - "cosmos.bank.v1beta1.MsgSend", - { - file: "./proto/cosmos/bank/v1beta1/tx.proto", - messages: ["MsgSend"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 24596905, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleFundingRateChangeEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - // https://sei.explorers.guru/transaction/9A5D1FB99CDFB03282459355E4C7221D93D9971160AE79E201FA2B2895952878 - type: "wasm-funding-rate-change", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - { - handler: "handleSpotPriceEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "wasm-spot-price", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Sei/sei-starter/project-old.yaml b/Sei/sei-starter/project.yaml similarity index 100% rename from Sei/sei-starter/project-old.yaml rename to Sei/sei-starter/project.yaml diff --git a/Stargaze/stargaze-starter/.gitignore b/Stargaze/stargaze-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Stargaze/stargaze-starter/.gitignore +++ b/Stargaze/stargaze-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Stargaze/stargaze-starter/docker/pg-Dockerfile b/Stargaze/stargaze-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Stargaze/stargaze-starter/docker/pg-Dockerfile +++ b/Stargaze/stargaze-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/Stargaze/stargaze-starter/project.ts b/Stargaze/stargaze-starter/project.ts deleted file mode 100644 index ca95b91d2..000000000 --- a/Stargaze/stargaze-starter/project.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "stargaze-starter", - description: - "This project can be use as a starting point for developing your Cosmos persistence based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "stargaze-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - [ - "publicawesome.stargaze.claim.v1beta1", - { - file: "./proto/stargaze/claim/v1beta1/tx.proto", - messages: ["MsgInitialClaim"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 6000000, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "execute", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Stargaze/stargaze-starter/project-old.yaml b/Stargaze/stargaze-starter/project.yaml similarity index 100% rename from Stargaze/stargaze-starter/project-old.yaml rename to Stargaze/stargaze-starter/project.yaml diff --git a/Thorchain/thorchain-starter/.gitignore b/Thorchain/thorchain-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Thorchain/thorchain-starter/.gitignore +++ b/Thorchain/thorchain-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Thorchain/thorchain-starter/docker/pg-Dockerfile b/Thorchain/thorchain-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Thorchain/thorchain-starter/docker/pg-Dockerfile +++ b/Thorchain/thorchain-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/Thorchain/thorchain-starter/project.ts b/Thorchain/thorchain-starter/project.ts deleted file mode 100644 index 1fdffb5b9..000000000 --- a/Thorchain/thorchain-starter/project.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "thorchain-starter", - description: - "This project can be use as a starting point for developing your Cosmos thorchain based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "thorchain-mainnet-v1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc.ninerealms.com/"], - chaintypes: new Map([ - // This feature allows support for any Cosmos chain by importing the correct protobuf messages - [ - "thorchain.message.observed.out", - { - file: "./proto/thorchain/v1/x/thorchain/types/msg_observed_txout.proto", - messages: ["MsgObservedTxOut"], - }, - ], - [ - "thorchain.message.deposit", - { - file: "./proto/thorchain/v1/x/thorchain/types/msg_deposit.proto", - messages: ["MsgDeposit"], - }, - ], - [ - "thorchain.types.observed.out", - { - file: "./proto/thorchain/v1/x/thorchain/types/type_observed_tx.proto", - messages: ["ObservedTx"], - }, - ], - [ - "common.Common", - { - file: "./proto/thorchain/v1/common/common.proto", - messages: ["Tx"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 7960001, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/types.MsgDeposit", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Thorchain/thorchain-starter/project-old.yaml b/Thorchain/thorchain-starter/project.yaml similarity index 100% rename from Thorchain/thorchain-starter/project-old.yaml rename to Thorchain/thorchain-starter/project.yaml diff --git a/Umee/umee-starter/.gitignore b/Umee/umee-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Umee/umee-starter/.gitignore +++ b/Umee/umee-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Umee/umee-starter/docker/pg-Dockerfile b/Umee/umee-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Umee/umee-starter/docker/pg-Dockerfile +++ b/Umee/umee-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/Umee/umee-starter/project.ts b/Umee/umee-starter/project.ts deleted file mode 100644 index 378ee4dce..000000000 --- a/Umee/umee-starter/project.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Umee-starter", - description: - "This project can be use as a starting point for developing your Cosmos Umee based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "umee-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-1.umee.nodes.guru"], - dictionary: "https://api.subquery.network/sq/subquery/umee-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 8148041, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Umee/umee-starter/project-old.yaml b/Umee/umee-starter/project.yaml similarity index 100% rename from Umee/umee-starter/project-old.yaml rename to Umee/umee-starter/project.yaml