diff --git a/package.json b/.github/scripts/ci.package.json similarity index 100% rename from package.json rename to .github/scripts/ci.package.json diff --git a/.github/scripts/ci.tsconfig.json b/.github/scripts/ci.tsconfig.json new file mode 100644 index 00000000..7967307e --- /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-ethereum/dist/global.d.ts" + ] +} diff --git a/.github/scripts/copy-ts-config.sh b/.github/scripts/copy-ts-config.sh new file mode 100755 index 00000000..43314473 --- /dev/null +++ b/.github/scripts/copy-ts-config.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# This file copies over a modified TS config that works with workspaces so we can build all projects + +set -e + +for DEST_PATH in ./*/*/; do + + SRC="./.github/scripts/ci.tsconfig.json" + DEST="${DEST_PATH}tsconfig.json" + + [ -f "$DEST" ] && cp "$SRC" "$DEST" +done diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 8431e470..bea8d889 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -13,9 +13,13 @@ jobs: uses: actions/setup-node@v2 with: node-version: 18 + - name: setup workspace + run: cp .github/scripts/ci.package.json package.json + # Do this before yarn to avoid node_modules directory + - name: update tsconfigs for workspace + run: ./.github/scripts/copy-ts-config.sh - run: yarn - name: codegen run: yarn codegen - # Need to update tsconfig inputs paths for this to work - # - name: build - # run: yarn build + - name: build + run: yarn build diff --git a/Arbitrum/arbitrum-nova-starter/.gitignore b/Arbitrum/arbitrum-nova-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Arbitrum/arbitrum-nova-starter/.gitignore +++ b/Arbitrum/arbitrum-nova-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Arbitrum/arbitrum-nova-starter/docker/pg-Dockerfile b/Arbitrum/arbitrum-nova-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Arbitrum/arbitrum-nova-starter/docker/pg-Dockerfile +++ b/Arbitrum/arbitrum-nova-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/Arbitrum/arbitrum-nova-starter/package.json b/Arbitrum/arbitrum-nova-starter/package.json index 8b435c97..44799eb0 100644 --- a/Arbitrum/arbitrum-nova-starter/package.json +++ b/Arbitrum/arbitrum-nova-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Arbitrum/arbitrum-nova-starter/project.ts b/Arbitrum/arbitrum-nova-starter/project.ts deleted file mode 100644 index bf505c38..00000000 --- a/Arbitrum/arbitrum-nova-starter/project.ts +++ /dev/null @@ -1,90 +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: "arbitrum-nova-subql-starter", - description: - "This project can be use as a starting point for developing your new Arbitrum Nova SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Arbitrum Nova this is 42170 - * https://chainlist.org/chain/42170 - */ - chainId: "42170", - /** - * 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://nova.arbitrum.io/rpc"], - // dictionary: "https://gx.api.subquery.network/sq/subquery/arbitrum-nova-dictionary" - we don't have one for Nova - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 15143, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for wrapped Eth https://nova.arbiscan.io/token/0x765277EebeCA2e31912C9946eAe1021199B39C61 - address: "0x765277EebeCA2e31912C9946eAe1021199B39C61", - }, - assets: new Map([["erc20", { file: "./abis/erc20.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Call, - handler: "handleLog", - filter: { - /** - * The function can either be the function fragment or signature - * function: '0x095ea7b3' - * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - */ - function: "approve(address spender, uint256 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleTransaction", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Arbitrum/arbitrum-nova-starter/project.yaml b/Arbitrum/arbitrum-nova-starter/project.yaml index 647d77cc..63657c0d 100644 --- a/Arbitrum/arbitrum-nova-starter/project.yaml +++ b/Arbitrum/arbitrum-nova-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Arbitrum/arbitrum-one-starter/.gitignore b/Arbitrum/arbitrum-one-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Arbitrum/arbitrum-one-starter/.gitignore +++ b/Arbitrum/arbitrum-one-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Arbitrum/arbitrum-one-starter/docker/pg-Dockerfile b/Arbitrum/arbitrum-one-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Arbitrum/arbitrum-one-starter/docker/pg-Dockerfile +++ b/Arbitrum/arbitrum-one-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/Arbitrum/arbitrum-one-starter/package.json b/Arbitrum/arbitrum-one-starter/package.json index 1e900eb9..a3cdfbc7 100644 --- a/Arbitrum/arbitrum-one-starter/package.json +++ b/Arbitrum/arbitrum-one-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Arbitrum/arbitrum-one-starter/project.ts b/Arbitrum/arbitrum-one-starter/project.ts deleted file mode 100644 index f89348cb..00000000 --- a/Arbitrum/arbitrum-one-starter/project.ts +++ /dev/null @@ -1,90 +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: "arbitrum-one-subql-starter", - description: - "This project can be use as a starting point for developing your new Arbitrum One SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Arbitrum One this is 42161 - * https://chainlist.org/chain/42161 - */ - chainId: "42161", - /** - * 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://arbitrum.api.onfinality.io/public"], - dictionary: "https://dict-tyk.subquery.network/query/arbitrum", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // This is the block that the contract was deployed on https://arbiscan.io/tx/0x8ebe1945f039f865af8b3079df3819534340ee41a5e6b8bfefb9c36a857778c9 - startBlock: 2591, - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for wrapped BTC https://arbiscan.io/token/0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f - address: "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Arbitrum/arbitrum-one-starter/project.yaml b/Arbitrum/arbitrum-one-starter/project.yaml index 18bc1e1e..9b59f94a 100644 --- a/Arbitrum/arbitrum-one-starter/project.yaml +++ b/Arbitrum/arbitrum-one-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Arbitrum/arbitrum-one-winr/.gitignore b/Arbitrum/arbitrum-one-winr/.gitignore index 2042b11a..ced5d59f 100644 --- a/Arbitrum/arbitrum-one-winr/.gitignore +++ b/Arbitrum/arbitrum-one-winr/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Arbitrum/arbitrum-one-winr/docker/pg-Dockerfile b/Arbitrum/arbitrum-one-winr/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Arbitrum/arbitrum-one-winr/docker/pg-Dockerfile +++ b/Arbitrum/arbitrum-one-winr/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Arbitrum/arbitrum-one-winr/package.json b/Arbitrum/arbitrum-one-winr/package.json index 4fa4a98c..8b7a4c1f 100644 --- a/Arbitrum/arbitrum-one-winr/package.json +++ b/Arbitrum/arbitrum-one-winr/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Arbitrum/arbitrum-one-winr/project.ts b/Arbitrum/arbitrum-one-winr/project.ts deleted file mode 100644 index e26fc112..00000000 --- a/Arbitrum/arbitrum-one-winr/project.ts +++ /dev/null @@ -1,80 +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: "arbitrum-one-subql-starter", - description: - "This SubQuery Arbitrum Example project indexes all Arbitrum WINR Staking Rewards.", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Arbitrum One this is 42161 - * https://chainlist.org/chain/42161 - */ - chainId: "42161", - /** - * 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://arbitrum.api.onfinality.io/public"], - dictionary: "https://dict-tyk.subquery.network/query/arbitrum", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // This is the block of the first claim dividend https://arbiscan.io/tx/0x300b6199816f44029408efc850fb9d6f8751bbedec3e273909eac6f3a61ee3b3 - startBlock: 91573785, - options: { - // Must be a key of assets - abi: "winr-staking", - // This is the contract address for WINR Staking https://arbiscan.io/tx/0x44e9396155f6a90daaea687cf48c309128afead3be9faf20c5de3d81f6f318a6 - address: "0xddAEcf4B02A3e45b96FC2d7339c997E072b0d034", - }, - assets: new Map([ - ["winr-staking", { file: "./abis/winr-staking.abi.json" }], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleDividendBatch", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "ClaimDividendBatch(address indexed user, uint256 reward)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Arbitrum/arbitrum-one-winr/project.yaml b/Arbitrum/arbitrum-one-winr/project.yaml index c6d6cdba..345e3b3b 100644 --- a/Arbitrum/arbitrum-one-winr/project.yaml +++ b/Arbitrum/arbitrum-one-winr/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Avalanche/avalanche-fuji-starter/.gitignore b/Avalanche/avalanche-fuji-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Avalanche/avalanche-fuji-starter/.gitignore +++ b/Avalanche/avalanche-fuji-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Avalanche/avalanche-fuji-starter/docker/pg-Dockerfile b/Avalanche/avalanche-fuji-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Avalanche/avalanche-fuji-starter/docker/pg-Dockerfile +++ b/Avalanche/avalanche-fuji-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Avalanche/avalanche-fuji-starter/package.json b/Avalanche/avalanche-fuji-starter/package.json index 7cc0b3a6..b36df00b 100644 --- a/Avalanche/avalanche-fuji-starter/package.json +++ b/Avalanche/avalanche-fuji-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Avalanche/avalanche-fuji-starter/project.ts b/Avalanche/avalanche-fuji-starter/project.ts deleted file mode 100644 index edd7c089..00000000 --- a/Avalanche/avalanche-fuji-starter/project.ts +++ /dev/null @@ -1,90 +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: "avalanche-fuji-starter", - description: - "This project can be use as a starting point for developing your new Avalanche Fuji SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Avalanche Fuji this is 43113 - * https://chainlist.org/chain/43113 - */ - chainId: "43113", - /** - * 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.ankr.com/avalanche_fuji"], - dictionary: "https://dict-tyk.subquery.network/query/avalanche-testnet", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // This is usually the block that the contract was deployed on https://testnet.snowtrace.io/token/0x1d308089a2d1ced3f1ce36b1fcaf815b07217be3 - startBlock: 1784, - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://testnet.snowtrace.io/token/0x1d308089a2d1ced3f1ce36b1fcaf815b07217be3 - address: "0x1d308089a2d1ced3f1ce36b1fcaf815b07217be3", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Avalanche/avalanche-fuji-starter/project.yaml b/Avalanche/avalanche-fuji-starter/project.yaml index 39114137..71f9153b 100644 --- a/Avalanche/avalanche-fuji-starter/project.yaml +++ b/Avalanche/avalanche-fuji-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Avalanche/avalanche-starter/.gitignore b/Avalanche/avalanche-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Avalanche/avalanche-starter/.gitignore +++ b/Avalanche/avalanche-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Avalanche/avalanche-starter/docker/pg-Dockerfile b/Avalanche/avalanche-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Avalanche/avalanche-starter/docker/pg-Dockerfile +++ b/Avalanche/avalanche-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/Avalanche/avalanche-starter/package.json b/Avalanche/avalanche-starter/package.json index b7509b05..bb044ede 100644 --- a/Avalanche/avalanche-starter/package.json +++ b/Avalanche/avalanche-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Avalanche/avalanche-starter/project.ts b/Avalanche/avalanche-starter/project.ts deleted file mode 100644 index f83e1f3a..00000000 --- a/Avalanche/avalanche-starter/project.ts +++ /dev/null @@ -1,90 +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: "avalanche-subql-starter", - description: - "This project can be use as a starting point for developing your new Avalanche C-Chain SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Avalanche-C this is 43113 - * https://chainlist.org/chain/43113 - */ - chainId: "43114", - /** - * 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://avalanche.api.onfinality.io/public/ext/bc/C/rpc"], - dictionary: "https://dict-tyk.subquery.network/query/avalanche", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // Contract creation of Pangolin Token https://snowtrace.io/tx/0xfab84552e997848a43f05e440998617d641788d355e3195b6882e9006996d8f9 - startBlock: 57360, - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://testnet.snowtrace.io/token/0x60781C2586D68229fde47564546784ab3fACA982 - address: "0x60781C2586D68229fde47564546784ab3fACA982", - }, - assets: new Map([["erc20", { file: "./abis/PangolinERC20.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: "deposit(uint256 amount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Avalanche/avalanche-starter/project.yaml b/Avalanche/avalanche-starter/project.yaml index fcb2cbaa..76f8e5ed 100644 --- a/Avalanche/avalanche-starter/project.yaml +++ b/Avalanche/avalanche-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Avalanche/crabada-nft/.gitignore b/Avalanche/crabada-nft/.gitignore index 2042b11a..ced5d59f 100644 --- a/Avalanche/crabada-nft/.gitignore +++ b/Avalanche/crabada-nft/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Avalanche/crabada-nft/docker/pg-Dockerfile b/Avalanche/crabada-nft/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Avalanche/crabada-nft/docker/pg-Dockerfile +++ b/Avalanche/crabada-nft/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Avalanche/crabada-nft/package.json b/Avalanche/crabada-nft/package.json index f3c5e831..4d72dea8 100644 --- a/Avalanche/crabada-nft/package.json +++ b/Avalanche/crabada-nft/package.json @@ -33,6 +33,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Avalanche/crabada-nft/project.ts b/Avalanche/crabada-nft/project.ts deleted file mode 100644 index 492e9377..00000000 --- a/Avalanche/crabada-nft/project.ts +++ /dev/null @@ -1,80 +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: "crabada-nft", - description: "This project indexes all Crabada NFTs on Avalanche's C-chain", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Avalanche-C this is 43113 - * https://chainlist.org/chain/43113 - */ - chainId: "43114", - /** - * 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://avalanche.api.onfinality.io/public/ext/bc/C/rpc"], - dictionary: "https://dict-tyk.subquery.network/query/avalanche", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // First mint https://snowtrace.io/tx/0x17336f3699f922c245663a50fba2d857c368f6c8137024b980cc2e7042e4df87 - startBlock: 30128346, - options: { - // Must be a key of assets - abi: "crabada", - // Crabada Legacy Contract https://snowtrace.io/address/0xCB7569a6Fe3843c32512d4F3AB35eAE65bd1D50c - address: "0xCB7569a6Fe3843c32512d4F3AB35eAE65bd1D50c", - }, - assets: new Map([["erc20", { file: "./abis/crabada.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleERC721", - filter: { - topics: ["Transfer(address from, address to, uint256 tokenId)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNewCrab", - filter: { - topics: [ - "NewCrab(address account, uint256 id, uint256 daddyId, uint256 mommyId, uint256 dna, uint64 birthday, uint8 breedingCount)\n", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Avalanche/crabada-nft/project.yaml b/Avalanche/crabada-nft/project.yaml index effc8358..04ddd758 100644 --- a/Avalanche/crabada-nft/project.yaml +++ b/Avalanche/crabada-nft/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Avalanche/pangolin-rewards-tutorial/.gitignore b/Avalanche/pangolin-rewards-tutorial/.gitignore index 2042b11a..ced5d59f 100644 --- a/Avalanche/pangolin-rewards-tutorial/.gitignore +++ b/Avalanche/pangolin-rewards-tutorial/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Avalanche/pangolin-rewards-tutorial/docker/pg-Dockerfile b/Avalanche/pangolin-rewards-tutorial/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Avalanche/pangolin-rewards-tutorial/docker/pg-Dockerfile +++ b/Avalanche/pangolin-rewards-tutorial/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Avalanche/pangolin-rewards-tutorial/package.json b/Avalanche/pangolin-rewards-tutorial/package.json index e72e6176..ff6b8bbb 100644 --- a/Avalanche/pangolin-rewards-tutorial/package.json +++ b/Avalanche/pangolin-rewards-tutorial/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Avalanche/pangolin-rewards-tutorial/project.ts b/Avalanche/pangolin-rewards-tutorial/project.ts deleted file mode 100644 index 7be5bd78..00000000 --- a/Avalanche/pangolin-rewards-tutorial/project.ts +++ /dev/null @@ -1,72 +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: "avalanche-subql-starter", - description: - "The goal of this quick start guide is to index all Pangolin token Approve logs", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Avalanche-C this is 43113 - * https://chainlist.org/chain/43113 - */ - chainId: "43114", - /** - * 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://avalanche.api.onfinality.io/public/ext/bc/C/rpc"], - dictionary: "https://dict-tyk.subquery.network/query/avalanche", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // # Block when the first reward is made - startBlock: 7906490, - options: { - // Must be a key of assets - abi: "erc20", - // Pangolin reward contract https://snowtrace.io/token/0x88afdae1a9f58da3e68584421937e5f564a0135b - address: "0x88afdae1a9f58da3e68584421937e5f564a0135b", - }, - assets: new Map([["erc20", { file: "./abis/PangolinRewards.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - topics: ["RewardPaid(address user, uint256 reward)"], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/jamesbayly/pangolin-rewards-tutorial", -}; - -// Must set default to the project instance -export default project; diff --git a/BNB Smart Chain/bsc-mobox-rewards/.gitignore b/BNB Smart Chain/bsc-mobox-rewards/.gitignore index 2042b11a..ced5d59f 100644 --- a/BNB Smart Chain/bsc-mobox-rewards/.gitignore +++ b/BNB Smart Chain/bsc-mobox-rewards/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/BNB Smart Chain/bsc-mobox-rewards/docker/pg-Dockerfile b/BNB Smart Chain/bsc-mobox-rewards/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/BNB Smart Chain/bsc-mobox-rewards/docker/pg-Dockerfile +++ b/BNB Smart Chain/bsc-mobox-rewards/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/BNB Smart Chain/bsc-mobox-rewards/package.json b/BNB Smart Chain/bsc-mobox-rewards/package.json index 30a482d8..5942131c 100644 --- a/BNB Smart Chain/bsc-mobox-rewards/package.json +++ b/BNB Smart Chain/bsc-mobox-rewards/package.json @@ -30,6 +30,6 @@ "@subql/cli": "latest", "@subql/types": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/BNB Smart Chain/bsc-mobox-rewards/project.ts b/BNB Smart Chain/bsc-mobox-rewards/project.ts deleted file mode 100644 index c829c7bd..00000000 --- a/BNB Smart Chain/bsc-mobox-rewards/project.ts +++ /dev/null @@ -1,83 +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: "bsc-mobox-rewards", - description: - "This project indexes all deposits and withdrawls to MOBOX pools", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for BSC this is 56 - * https://chainlist.org/chain/56 - */ - chainId: "56", - /** - * 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://bsc-dataseed1.binance.org"], - dictionary: "https://dict-tyk.subquery.network/query/binance", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 17047980, //The block on which the Mobox Farming contract was deployed - - options: { - // Must be a key of assets - abi: "mobox_abi", - // this is the contract address for Mobox Farming contract https://bscscan.com/address/0xa5f8c5dbd5f286960b9d90548680ae5ebff07652#code - address: "0xa5f8c5dbd5f286960b9d90548680ae5ebff07652", - }, - assets: new Map([["mobox_abi", { file: "mobox.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleDeposit", - filter: { - topics: [ - "Deposit(address indexed user, uint256 indexed pid, uint256 amount)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleWithdraw", - filter: { - topics: [ - "Withdraw(address indexed user, uint256 indexed pid, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/BNB Smart Chain/bsc-mobox-rewards/project.yaml b/BNB Smart Chain/bsc-mobox-rewards/project.yaml index 89d7d0be..cb2d3c40 100644 --- a/BNB Smart Chain/bsc-mobox-rewards/project.yaml +++ b/BNB Smart Chain/bsc-mobox-rewards/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/BNB Smart Chain/bsc-starter/.gitignore b/BNB Smart Chain/bsc-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/BNB Smart Chain/bsc-starter/.gitignore +++ b/BNB Smart Chain/bsc-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/BNB Smart Chain/bsc-starter/docker/pg-Dockerfile b/BNB Smart Chain/bsc-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/BNB Smart Chain/bsc-starter/docker/pg-Dockerfile +++ b/BNB Smart Chain/bsc-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/BNB Smart Chain/bsc-starter/package.json b/BNB Smart Chain/bsc-starter/package.json index d440cb2e..d618ffdb 100644 --- a/BNB Smart Chain/bsc-starter/package.json +++ b/BNB Smart Chain/bsc-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/BNB Smart Chain/bsc-starter/project.ts b/BNB Smart Chain/bsc-starter/project.ts deleted file mode 100644 index de2c35f2..00000000 --- a/BNB Smart Chain/bsc-starter/project.ts +++ /dev/null @@ -1,90 +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: "bsc-mobox-rewards", - description: - "This project can be use as a starting point for developing your new BSC Testnet SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for BSC this is 56 - * https://chainlist.org/chain/56 - */ - chainId: "56", - /** - * 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://bsc-dataseed1.binance.org"], - dictionary: "https://dict-tyk.subquery.network/query/binance", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 326031, //The block on which the Mobox Farming contract was deployed - - options: { - // Must be a key of assets - abi: "erc20", - // this is the contract address for Binance-Peg Ethereum Token https://bscscan.com/address/0x2170ed0880ac9a755fd29b2688956bd959f933f8 - address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/BNB Smart Chain/bsc-starter/project.yaml b/BNB Smart Chain/bsc-starter/project.yaml index 5e23a588..05a3f766 100644 --- a/BNB Smart Chain/bsc-starter/project.yaml +++ b/BNB Smart Chain/bsc-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/BNB Smart Chain/bsc-testnet-starter/.gitignore b/BNB Smart Chain/bsc-testnet-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/BNB Smart Chain/bsc-testnet-starter/.gitignore +++ b/BNB Smart Chain/bsc-testnet-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/BNB Smart Chain/bsc-testnet-starter/docker/pg-Dockerfile b/BNB Smart Chain/bsc-testnet-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/BNB Smart Chain/bsc-testnet-starter/docker/pg-Dockerfile +++ b/BNB Smart Chain/bsc-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/BNB Smart Chain/bsc-testnet-starter/package.json b/BNB Smart Chain/bsc-testnet-starter/package.json index 07355204..93880303 100644 --- a/BNB Smart Chain/bsc-testnet-starter/package.json +++ b/BNB Smart Chain/bsc-testnet-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/BNB Smart Chain/bsc-testnet-starter/project.ts b/BNB Smart Chain/bsc-testnet-starter/project.ts deleted file mode 100644 index 0dfad390..00000000 --- a/BNB Smart Chain/bsc-testnet-starter/project.ts +++ /dev/null @@ -1,95 +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: "bsc-testnet-starter", - description: - "This project can be use as a starting point for developing your new BSC Testnet SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for BSC testnet this is 97 - * https://chainlist.org/chain/97 - */ - chainId: "97", - /** - * 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://data-seed-prebsc-1-s2.bnbchain.org:8545", - "https://data-seed-prebsc-1-s1.bnbchain.org:8545", - "https://data-seed-prebsc-2-s1.bnbchain.org:8545", - "https://data-seed-prebsc-2-s2.bnbchain.org:8545", - ], - dictionary: "https://dict-tyk.subquery.network/query/binance-testnet", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 30738048, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped BNB https://testnet.bscscan.com/address/0xae13d989dac2f0debff460ac112a837c89baa7cd - address: "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/BNB Smart Chain/bsc-testnet-starter/project.yaml b/BNB Smart Chain/bsc-testnet-starter/project.yaml index dead3342..1cc136e8 100644 --- a/BNB Smart Chain/bsc-testnet-starter/project.yaml +++ b/BNB Smart Chain/bsc-testnet-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/BNB Smart Chain/opbnb-starter/.gitignore b/BNB Smart Chain/opbnb-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/BNB Smart Chain/opbnb-starter/.gitignore +++ b/BNB Smart Chain/opbnb-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/BNB Smart Chain/opbnb-starter/docker/pg-Dockerfile b/BNB Smart Chain/opbnb-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/BNB Smart Chain/opbnb-starter/docker/pg-Dockerfile +++ b/BNB Smart Chain/opbnb-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/BNB Smart Chain/opbnb-starter/package.json b/BNB Smart Chain/opbnb-starter/package.json index c1219dae..b57793b9 100644 --- a/BNB Smart Chain/opbnb-starter/package.json +++ b/BNB Smart Chain/opbnb-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/BNB Smart Chain/opbnb-starter/project.ts b/BNB Smart Chain/opbnb-starter/project.ts deleted file mode 100644 index cd06bacd..00000000 --- a/BNB Smart Chain/opbnb-starter/project.ts +++ /dev/null @@ -1,89 +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: "opbnb-subql-starter", - description: - "This project can be use as a starting point for developing your new opBNB SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for opBNB this is 204 - * https://chainlist.org/chain/204 - */ - chainId: "204", - /** - * 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://opbnb-mainnet-rpc.bnbchain.org"], - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 2652849, - - options: { - // Must be a key of assets - abi: "erc20", - // this is the contract address for Ethereum Token https://opbnbscan.com/token/0xe7798f023fc62146e8aa1b36da45fb70855a77ea - address: "0xe7798f023fc62146e8aa1b36da45fb70855a77ea", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/BNB Smart Chain/opbnb-starter/project.yaml b/BNB Smart Chain/opbnb-starter/project.yaml index 0842c7a2..c02ede77 100644 --- a/BNB Smart Chain/opbnb-starter/project.yaml +++ b/BNB Smart Chain/opbnb-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Base/base-goerli-faucet/.gitignore b/Base/base-goerli-faucet/.gitignore index 2042b11a..ced5d59f 100644 --- a/Base/base-goerli-faucet/.gitignore +++ b/Base/base-goerli-faucet/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Base/base-goerli-faucet/docker/pg-Dockerfile b/Base/base-goerli-faucet/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Base/base-goerli-faucet/docker/pg-Dockerfile +++ b/Base/base-goerli-faucet/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Base/base-goerli-faucet/package.json b/Base/base-goerli-faucet/package.json index f883ba03..6b1449b5 100644 --- a/Base/base-goerli-faucet/package.json +++ b/Base/base-goerli-faucet/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Base/base-goerli-faucet/project.ts b/Base/base-goerli-faucet/project.ts deleted file mode 100644 index 5839c8ec..00000000 --- a/Base/base-goerli-faucet/project.ts +++ /dev/null @@ -1,90 +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: "base-goerli-faucet", - description: - "This project can be use as a starting point for developing your new Base SubQuery project, it indexes all drips from USDC faucet contract", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Base Goerli this is 84531 - * https://chainlist.org/chain/84531 - */ - chainId: "84531", - /** - * 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://goerli.base.org"], - dictionary: "https://dict-tyk.subquery.network/query/base-goerli", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 1512049, - - options: { - // Must be a key of assets - abi: "faucet_abi", - // # this is the contract address for wrapped ether https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 - address: "0x298e0B0a38fF8B99bf1a3b697B0efB2195cfE47D", - }, - assets: new Map([["faucet_abi", { file: "./abis/faucet.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Call, - handler: "handleDrip", - filter: { - /** - * The function can either be the function fragment or signature - * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - * function: drip(address token, uint256 amount, address receiver) - */ - function: "0x6c81bd54", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Base/base-goerli-faucet/project.yaml b/Base/base-goerli-faucet/project.yaml index f1ca51f2..4ecbd954 100644 --- a/Base/base-goerli-faucet/project.yaml +++ b/Base/base-goerli-faucet/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Base/base-goerli-starter/.gitignore b/Base/base-goerli-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Base/base-goerli-starter/.gitignore +++ b/Base/base-goerli-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Base/base-goerli-starter/docker/pg-Dockerfile b/Base/base-goerli-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Base/base-goerli-starter/docker/pg-Dockerfile +++ b/Base/base-goerli-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Base/base-goerli-starter/package.json b/Base/base-goerli-starter/package.json index 44fab0bd..de116d1a 100644 --- a/Base/base-goerli-starter/package.json +++ b/Base/base-goerli-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Base/base-goerli-starter/project.ts b/Base/base-goerli-starter/project.ts deleted file mode 100644 index d16e2bc8..00000000 --- a/Base/base-goerli-starter/project.ts +++ /dev/null @@ -1,90 +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: "base-goerli-starter", - description: - "This project can be use as a starting point for developing your new Base Goerli SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Base Goerli this is 84531 - * https://chainlist.org/chain/84531 - */ - chainId: "84531", - /** - * 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://goerli.base.org"], - dictionary: "https://dict-tyk.subquery.network/query/base-goerli", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 3060969, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the block that the contract was deployed on https://goerli.basescan.org/tx/0x3901609b27f80e44b4530c4beaf8484635c088a8e24524e02d7b2571d4f40840 - address: "0x2e9f75df8839ff192da27e977cd154fd1eae03cf", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Base/base-goerli-starter/project.yaml b/Base/base-goerli-starter/project.yaml index e60f2e9d..60e7d030 100644 --- a/Base/base-goerli-starter/project.yaml +++ b/Base/base-goerli-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Base/base-nft/.gitignore b/Base/base-nft/.gitignore index 2042b11a..ced5d59f 100644 --- a/Base/base-nft/.gitignore +++ b/Base/base-nft/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Base/base-nft/docker/pg-Dockerfile b/Base/base-nft/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Base/base-nft/docker/pg-Dockerfile +++ b/Base/base-nft/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Base/base-nft/package.json b/Base/base-nft/package.json index b72d970d..1043bdb7 100644 --- a/Base/base-nft/package.json +++ b/Base/base-nft/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Base/base-nft/project.ts b/Base/base-nft/project.ts deleted file mode 100644 index 2391b178..00000000 --- a/Base/base-nft/project.ts +++ /dev/null @@ -1,76 +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: "subquery-example-base-nft", - description: - "This project can be use as a starting point for developing your new Base SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Base Mainnet this is 8453 - * https://chainlist.org/chain/8453 - */ - chainId: "8453", - /** - * 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://mainnet.base.org/", "https://rpc.notadegen.com/base"], - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 2155076, - - options: { - // Must be a key of assets - abi: "erc721base", - // This is the contract address for Bridge To Base NFT Collection 0xea2a41c02fa86a4901826615f9796e603c6a4491 - address: "0xea2a41c02fa86a4901826615f9796e603c6a4491", - }, - assets: new Map([["erc721base", { file: "./abis/erc721base.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleNftClaim", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - */ - topics: [ - " TokensClaimed (uint256 claimConditionIndex, address claimer, address receiver, uint256 startTokenId, uint256 quantityClaimed)\n", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Base/base-nft/project.yaml b/Base/base-nft/project.yaml index 3f75b6d0..479631f9 100644 --- a/Base/base-nft/project.yaml +++ b/Base/base-nft/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Base/base-starter/.gitignore b/Base/base-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Base/base-starter/.gitignore +++ b/Base/base-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Base/base-starter/docker/pg-Dockerfile b/Base/base-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Base/base-starter/docker/pg-Dockerfile +++ b/Base/base-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Base/base-starter/package.json b/Base/base-starter/package.json index 1def0996..07492d5f 100644 --- a/Base/base-starter/package.json +++ b/Base/base-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Base/base-starter/project.ts b/Base/base-starter/project.ts deleted file mode 100644 index eb7b3f14..00000000 --- a/Base/base-starter/project.ts +++ /dev/null @@ -1,90 +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: "base-starter", - description: - "This project can be use as a starting point for developing your new Base SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Base Mainnet this is 8453 - * https://chainlist.org/chain/8453 - */ - chainId: "8453", - /** - * 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://mainnet.base.org/", "https://rpc.notadegen.com/base"], - dictionary: "https://dict-tyk.subquery.network/query/base-mainnet", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 0, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped ETH token https://basescan.org/address/0x4200000000000000000000000000000000000006 - address: "0x4200000000000000000000000000000000000006", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Base/base-starter/project.yaml b/Base/base-starter/project.yaml index 78fb8ef5..9b6a66f9 100644 --- a/Base/base-starter/project.yaml +++ b/Base/base-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Boba/boba-bnb-starter/.gitignore b/Boba/boba-bnb-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Boba/boba-bnb-starter/.gitignore +++ b/Boba/boba-bnb-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Boba/boba-bnb-starter/docker/pg-Dockerfile b/Boba/boba-bnb-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Boba/boba-bnb-starter/docker/pg-Dockerfile +++ b/Boba/boba-bnb-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Boba/boba-bnb-starter/package.json b/Boba/boba-bnb-starter/package.json index 51ad7ece..1db8af5c 100644 --- a/Boba/boba-bnb-starter/package.json +++ b/Boba/boba-bnb-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Boba/boba-bnb-starter/project.ts b/Boba/boba-bnb-starter/project.ts deleted file mode 100644 index 10d28082..00000000 --- a/Boba/boba-bnb-starter/project.ts +++ /dev/null @@ -1,89 +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: "boba-bnb-starter", - description: - "This project can be use as a starting point for developing your new Boba BNB SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Boba BNB testnet this is 56288 - * https://chainlist.org/chain/56288 - */ - chainId: "56288", - /** - * 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://bnb.boba.network"], - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 30738048, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped BOBA https://bobascan.com/token/0xC58aaD327D6D58D979882601ba8DDa0685B505eA?chainid=56288 - address: "0xC58aaD327D6D58D979882601ba8DDa0685B505eA", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Boba/boba-bnb-starter/project.yaml b/Boba/boba-bnb-starter/project.yaml index 7d3891f6..1012c82e 100644 --- a/Boba/boba-bnb-starter/project.yaml +++ b/Boba/boba-bnb-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Boba/boba-eth-starter/.gitignore b/Boba/boba-eth-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Boba/boba-eth-starter/.gitignore +++ b/Boba/boba-eth-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Boba/boba-eth-starter/docker/pg-Dockerfile b/Boba/boba-eth-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Boba/boba-eth-starter/docker/pg-Dockerfile +++ b/Boba/boba-eth-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Boba/boba-eth-starter/package.json b/Boba/boba-eth-starter/package.json index bf878165..e3066487 100644 --- a/Boba/boba-eth-starter/package.json +++ b/Boba/boba-eth-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Boba/boba-eth-starter/project.ts b/Boba/boba-eth-starter/project.ts deleted file mode 100644 index 5ba7d35e..00000000 --- a/Boba/boba-eth-starter/project.ts +++ /dev/null @@ -1,89 +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: "boba-eth-starter", - description: - "This project can be use as a starting point for developing your new Boba Eth SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Boba Eth testnet this is 288 - * https://chainlist.org/chain/288 - */ - chainId: "288", - /** - * 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://bnb.boba.network"], - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 1049330, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://bobascan.com/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000 - address: "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Boba/boba-eth-starter/project.yaml b/Boba/boba-eth-starter/project.yaml index de678f71..16ae1194 100644 --- a/Boba/boba-eth-starter/project.yaml +++ b/Boba/boba-eth-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Celo/celo-starter/project.ts b/Celo/celo-starter/project.ts deleted file mode 100644 index c4da5432..00000000 --- a/Celo/celo-starter/project.ts +++ /dev/null @@ -1,88 +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: "celo-starter", - description: - "This project can be use as a starting point for developing your new Celo project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Celo this is 42220 - * https://chainlist.org/chain/42220 - */ - chainId: "42220", - /** - * 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://forno.celo.org"], - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 21177820, // This is the block that the contract was deployed on https://explorer.celo.org/mainnet/token/0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207 - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://explorer.celo.org/mainnet/token/0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207 - address: "0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/EOS/eos-starter/.gitignore b/EOS/eos-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/EOS/eos-starter/.gitignore +++ b/EOS/eos-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/EOS/eos-starter/docker/pg-Dockerfile b/EOS/eos-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/EOS/eos-starter/docker/pg-Dockerfile +++ b/EOS/eos-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/EOS/eos-starter/package.json b/EOS/eos-starter/package.json index 9a3fadf0..e9fcf9ff 100644 --- a/EOS/eos-starter/package.json +++ b/EOS/eos-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/EOS/eos-starter/project.ts b/EOS/eos-starter/project.ts deleted file mode 100644 index 0161e6a9..00000000 --- a/EOS/eos-starter/project.ts +++ /dev/null @@ -1,89 +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: "eos-starter", - description: - "This project can be use as a starting point for developing your new EOS SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for EOS this is 17777 - * https://chainlist.org/chain/17777 - */ - chainId: "17777", - /** - * 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://api.evm.eosnetwork.com/"], - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 13178455, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for wrapped EOS https://explorer.evm.eosnetwork.com/address/0xc00592aA41D32D137dC480d9f6d0Df19b860104F - address: "0xc00592aA41D32D137dC480d9f6d0Df19b860104F", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/EOS/eos-starter/project.yaml b/EOS/eos-starter/project.yaml index f380ec69..1e03c682 100644 --- a/EOS/eos-starter/project.yaml +++ b/EOS/eos-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Ethereum/ethereum-chainlink/.gitignore b/Ethereum/ethereum-chainlink/.gitignore index b31b4da4..ced5d59f 100644 --- a/Ethereum/ethereum-chainlink/.gitignore +++ b/Ethereum/ethereum-chainlink/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ @@ -54,5 +55,6 @@ Thumbs.db *.wmv .data -dist -types +.yarn + +.DS_Store diff --git a/Ethereum/ethereum-chainlink/docker/pg-Dockerfile b/Ethereum/ethereum-chainlink/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Ethereum/ethereum-chainlink/docker/pg-Dockerfile +++ b/Ethereum/ethereum-chainlink/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Ethereum/ethereum-chainlink/package.json b/Ethereum/ethereum-chainlink/package.json index 6a3f5a73..6e6e7a35 100644 --- a/Ethereum/ethereum-chainlink/package.json +++ b/Ethereum/ethereum-chainlink/package.json @@ -33,6 +33,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-chainlink/project.ts b/Ethereum/ethereum-chainlink/project.ts deleted file mode 100644 index 3d93721a..00000000 --- a/Ethereum/ethereum-chainlink/project.ts +++ /dev/null @@ -1,107 +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: "uniswap-v3", - description: - "This project can be use as a starting point for developing your new Ethereum SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum this is 1 - * https://chainlist.org/chain/1 - */ - chainId: "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://eth.api.onfinality.io/public"], - dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 12864088, - - options: { - // Must be a key of assets - abi: "FeedRegistry", - address: "0x47fb2585d2c56fe188d0e6ec628a38b74fceeedf", - }, - assets: new Map([ - ["FeedRegistry", { file: "./abis/FeedRegistry.json" }], - [ - "AccessControlledOffchainAggregator", - { file: "./abis/AccessControlledOffchainAggregator.json" }, - ], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleFeedConfirmed", - filter: { - topics: [ - "FeedConfirmed(address,address,address,address,uint16,address)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", - templates: [ - { - kind: EthereumDatasourceKind.Runtime, - name: "DataFeed", - options: { - // Must be a key of assets - abi: "AccessControlledOffchainAggregator", - }, - assets: new Map([ - [ - "AccessControlledOffchainAggregator", - { file: "./abis/AccessControlledOffchainAggregator.json" }, - ], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleAnswerUpdated", - filter: { - topics: ["AnswerUpdated(int256,uint256,uint256)"], - }, - }, - ], - }, - }, - ], -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-chainlink/project.yaml b/Ethereum/ethereum-chainlink/project.yaml index 876087ee..89d105d6 100644 --- a/Ethereum/ethereum-chainlink/project.yaml +++ b/Ethereum/ethereum-chainlink/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" name: "uniswap-v3" diff --git a/Ethereum/ethereum-ens/.gitignore b/Ethereum/ethereum-ens/.gitignore index 05e54213..ced5d59f 100644 --- a/Ethereum/ethereum-ens/.gitignore +++ b/Ethereum/ethereum-ens/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ @@ -54,3 +55,6 @@ Thumbs.db *.wmv .data +.yarn + +.DS_Store diff --git a/Ethereum/ethereum-ens/docker/pg-Dockerfile b/Ethereum/ethereum-ens/docker/pg-Dockerfile index 0f09f8a6..1f5594e6 100644 --- a/Ethereum/ethereum-ens/docker/pg-Dockerfile +++ b/Ethereum/ethereum-ens/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -6,4 +6,7 @@ ENV POSTGRES_USER 'postgres' ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script -COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ \ No newline at end of file +COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Ethereum/ethereum-ens/package.json b/Ethereum/ethereum-ens/package.json index 82d33d6a..b59440dc 100644 --- a/Ethereum/ethereum-ens/package.json +++ b/Ethereum/ethereum-ens/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-ens/project.ts b/Ethereum/ethereum-ens/project.ts deleted file mode 100644 index 5cde3b0a..00000000 --- a/Ethereum/ethereum-ens/project.ts +++ /dev/null @@ -1,391 +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: "subquery-example-ens", - description: - "This project can be use as a starting point for developing your new Ethereum SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum this is 1 - * https://chainlist.org/chain/1 - */ - chainId: "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://eth.api.onfinality.io/public"], - dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary", - }, - dataSources: [ - // ENSRegistry - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 9380380, - - options: { - // Must be a key of assets - abi: "EnsRegistry", - address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", - }, - assets: new Map([["EnsRegistry", { file: "./abis/Registry.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleTransfer", - filter: { - topics: ["Transfer(bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNewOwner", - filter: { - topics: ["NewOwner(bytes32,bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNewResolver", - filter: { - topics: ["NewResolver(bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNewTTL", - filter: { - topics: ["NewTTL(bytes32,uint64)"], - }, - }, - ], - }, - }, - // ENSRegistryOld - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 3327417, - - options: { - // Must be a key of assets - abi: "EnsRegistry", - address: "0x314159265dd8dbb310642f98f50c066173c1259b", - }, - assets: new Map([["EnsRegistry", { file: "./abis/Registry.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleTransferOldRegistry", - filter: { - topics: ["Transfer(bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNewOwnerOldRegistry", - filter: { - topics: ["NewOwner(bytes32,bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNewResolverOldRegistry", - filter: { - topics: ["NewResolver(bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNewTTLOldRegistry", - filter: { - topics: ["NewTTL(bytes32,uint64)"], - }, - }, - ], - }, - }, - // Resolver - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 3327417, - - options: { - // Must be a key of assets - abi: "Resolver", - }, - assets: new Map([["Resolver", { file: "./abis/PublicResolver.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleABIChanged", - filter: { - topics: ["ABIChanged(bytes32,uint256)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleAddrChanged", - filter: { - topics: ["AddrChanged(bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleMulticoinAddrChanged", - filter: { - topics: ["AddressChanged(bytes32,uint256,bytes)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleAuthorisationChanged", - filter: { - topics: ["AuthorisationChanged(bytes32,address,address,bool)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleContentHashChanged", - filter: { - topics: ["ContenthashChanged(bytes32,bytes)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleInterfaceChanged", - filter: { - topics: ["InterfaceChanged(bytes32,bytes4,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNameChanged", - filter: { - topics: ["NameChanged(bytes32,string)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handlePubkeyChanged", - filter: { - topics: ["PubkeyChanged(bytes32,bytes32,bytes32)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleTextChanged", - filter: { - topics: ["TextChanged(bytes32,string,string)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleTextChangedWithValue", - filter: { - topics: ["TextChanged(bytes32,string,string,string)"], - }, - }, - ], - }, - }, - // BaseRegistrar - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 9380410, - - options: { - // Must be a key of assets - abi: "BaseRegistrar", - address: "0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85", - }, - assets: new Map([ - ["BaseRegistrar", { file: "./abis/BaseRegistrar.json" }], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleNameRegistered", - filter: { - topics: ["NameRegistered(uint256,address,uint256)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNameRenewed", - filter: { - topics: ["NameRenewed( uint256,uint256)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNameTransferred", - filter: { - topics: ["Transfer(address,address,uint256)"], - }, - }, - ], - }, - }, - // EthRegistrarControllerOld - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 9380471, - options: { - // Must be a key of assets - abi: "EthRegistrarControllerOld", - address: "0x283Af0B28c62C092C9727F1Ee09c02CA627EB7F5", - }, - assets: new Map([ - [ - "EthRegistrarControllerOld", - { file: "./abis/EthRegistrarControllerOld.json" }, - ], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleNameRegisteredByControllerOld", - filter: { - topics: [ - "NameRegistered(string, bytes32, address,uint256,uint256)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNameRenewedByController", - filter: { - topics: ["NameRenewed(string,bytes32,uint256,uint256)"], - }, - }, - ], - }, - }, - // EthRegistrarController - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 3327417, - options: { - // Must be a key of assets - abi: "EthRegistrarController", - }, - assets: new Map([ - [ - "EthRegistrarController", - { file: "./abis/EthRegistrarController.json" }, - ], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleNameRegisteredByController", - filter: { - topics: [ - "NameRegistered(string, bytes32, address,uint256,uint256,uint256)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNameRenewedByController", - filter: { - topics: ["NameRenewed(string, bytes32,uint256,uint256)"], - }, - }, - ], - }, - }, - // NameWrapper - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 3327417, - options: { - // Must be a key of assets - abi: "NameWrapper", - }, - assets: new Map([["NameWrapper", { file: "./abis/NameWrapper.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleNameWrapped", - filter: { - topics: ["NameWrapped( bytes32,bytes,address,uint32,uint64)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleNameUnwrapped", - filter: { - topics: ["NameUnwrapped( bytes32,address)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleFusesSet", - filter: { - topics: ["FusesSet( bytes32,uint32,uint64)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleTransferSingle", - filter: { - topics: [ - "TransferSingle( address, address, address,uint256,uint256)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleTransferBatch", - filter: { - topics: [ - "TransferBatch( address, address, address,uint256[],uint256[])", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-ens/project.yaml b/Ethereum/ethereum-ens/project.yaml index a066a735..95a31f66 100644 --- a/Ethereum/ethereum-ens/project.yaml +++ b/Ethereum/ethereum-ens/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Ethereum/ethereum-goerli-starter/.gitignore b/Ethereum/ethereum-goerli-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Ethereum/ethereum-goerli-starter/.gitignore +++ b/Ethereum/ethereum-goerli-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Ethereum/ethereum-goerli-starter/docker/pg-Dockerfile b/Ethereum/ethereum-goerli-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Ethereum/ethereum-goerli-starter/docker/pg-Dockerfile +++ b/Ethereum/ethereum-goerli-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Ethereum/ethereum-goerli-starter/package.json b/Ethereum/ethereum-goerli-starter/package.json index 312da575..4b821656 100644 --- a/Ethereum/ethereum-goerli-starter/package.json +++ b/Ethereum/ethereum-goerli-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-goerli-starter/project.ts b/Ethereum/ethereum-goerli-starter/project.ts deleted file mode 100644 index 7f7ae7d5..00000000 --- a/Ethereum/ethereum-goerli-starter/project.ts +++ /dev/null @@ -1,90 +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: "ethereum-goerli-starter", - description: - "This project can be use as a starting point for developing your new Ethereum Goerli SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum Goerli this is 5 - * https://chainlist.org/chain/5 - */ - chainId: "5", - /** - * 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://goerli.gateway.tenderly.co"], - dictionary: "https://dict-tyk.subquery.network/query/eth-goerli", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 8955994, - - options: { - // Must be a key of assets - abi: "erc20", - // This is the block that the contract was deployed (or last record on etherscan) https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6 - address: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-goerli-starter/project.yaml b/Ethereum/ethereum-goerli-starter/project.yaml index 930736d3..18f5a2de 100644 --- a/Ethereum/ethereum-goerli-starter/project.yaml +++ b/Ethereum/ethereum-goerli-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Ethereum/ethereum-gravatar/.gitignore b/Ethereum/ethereum-gravatar/.gitignore index b31b4da4..ced5d59f 100644 --- a/Ethereum/ethereum-gravatar/.gitignore +++ b/Ethereum/ethereum-gravatar/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ @@ -54,5 +55,6 @@ Thumbs.db *.wmv .data -dist -types +.yarn + +.DS_Store diff --git a/Ethereum/ethereum-gravatar/docker/pg-Dockerfile b/Ethereum/ethereum-gravatar/docker/pg-Dockerfile index 0f09f8a6..1f5594e6 100644 --- a/Ethereum/ethereum-gravatar/docker/pg-Dockerfile +++ b/Ethereum/ethereum-gravatar/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -6,4 +6,7 @@ ENV POSTGRES_USER 'postgres' ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script -COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ \ No newline at end of file +COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Ethereum/ethereum-gravatar/package.json b/Ethereum/ethereum-gravatar/package.json index ecfe84f8..1391b8db 100644 --- a/Ethereum/ethereum-gravatar/package.json +++ b/Ethereum/ethereum-gravatar/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-gravatar/project.ts b/Ethereum/ethereum-gravatar/project.ts deleted file mode 100644 index e94c1c6e..00000000 --- a/Ethereum/ethereum-gravatar/project.ts +++ /dev/null @@ -1,78 +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: "subquery-example-gravatar", - description: - "This project can be use as a starting point for developing your new Ethereum SubQuery project, it indexes all Gravatars on Ethereum", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum this is 1 - * https://chainlist.org/chain/1 - */ - chainId: "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://eth.api.onfinality.io/public"], - dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 6175243, - - options: { - // Must be a key of assets - abi: "gravity", - address: "0x2E645469f354BB4F5c8a05B3b30A929361cf77eC", - }, - assets: new Map([["gravity", { file: "./abis/Gravity.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleNewGravatar", - filter: { - topics: ["NewGravatar(uint256,address,string,string)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleUpdatedGravatar", - filter: { - topics: ["UpdatedGravatar(uint256,address,string,string)"], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-gravatar/project.yaml b/Ethereum/ethereum-gravatar/project.yaml index 65880bbd..24d61301 100644 --- a/Ethereum/ethereum-gravatar/project.yaml +++ b/Ethereum/ethereum-gravatar/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Ethereum/ethereum-opensea/.gitignore b/Ethereum/ethereum-opensea/.gitignore index 2042b11a..ced5d59f 100644 --- a/Ethereum/ethereum-opensea/.gitignore +++ b/Ethereum/ethereum-opensea/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Ethereum/ethereum-opensea/docker/pg-Dockerfile b/Ethereum/ethereum-opensea/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Ethereum/ethereum-opensea/docker/pg-Dockerfile +++ b/Ethereum/ethereum-opensea/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/Ethereum/ethereum-opensea/package.json b/Ethereum/ethereum-opensea/package.json index 78d17729..f3d8cf50 100644 --- a/Ethereum/ethereum-opensea/package.json +++ b/Ethereum/ethereum-opensea/package.json @@ -33,6 +33,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-opensea/project.ts b/Ethereum/ethereum-opensea/project.ts deleted file mode 100644 index c9773407..00000000 --- a/Ethereum/ethereum-opensea/project.ts +++ /dev/null @@ -1,77 +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: "opensea", - description: - "This project can be use as a starting point for developing your new Ethereum SubQuery project, it indexes NFT data from the Opensea marketplace", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum this is 1 - * https://chainlist.org/chain/1 - */ - chainId: "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://eth.api.onfinality.io/public"], - dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 14946474, - - options: { - // Must be a key of assets - abi: "SeaportExchange", - address: "0x00000000006c3852cbef3e08e8df289169ede581", - }, - assets: new Map([ - ["SeaportExchange", { file: "./abis/SeaportExchange.abi.json" }], - ["ERC165", { file: "./abis/ERC165.json" }], - ["NftMetadata", { file: "./abis/NftMetadata.json" }], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleOrderFulfilled", - filter: { - topics: [ - "OrderFulfilled(bytes32,address,address,address,(uint8,address,uint256,uint256)[],(uint8,address,uint256,uint256,address)[])\n", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-opensea/project.yaml b/Ethereum/ethereum-opensea/project.yaml index 2548da58..96c21a58 100644 --- a/Ethereum/ethereum-opensea/project.yaml +++ b/Ethereum/ethereum-opensea/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Ethereum/ethereum-sepolia-starter/.gitignore b/Ethereum/ethereum-sepolia-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Ethereum/ethereum-sepolia-starter/.gitignore +++ b/Ethereum/ethereum-sepolia-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Ethereum/ethereum-sepolia-starter/docker/pg-Dockerfile b/Ethereum/ethereum-sepolia-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Ethereum/ethereum-sepolia-starter/docker/pg-Dockerfile +++ b/Ethereum/ethereum-sepolia-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Ethereum/ethereum-sepolia-starter/package.json b/Ethereum/ethereum-sepolia-starter/package.json index 758775b6..d54b1767 100644 --- a/Ethereum/ethereum-sepolia-starter/package.json +++ b/Ethereum/ethereum-sepolia-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-sepolia-starter/project.ts b/Ethereum/ethereum-sepolia-starter/project.ts deleted file mode 100644 index d3cfb35a..00000000 --- a/Ethereum/ethereum-sepolia-starter/project.ts +++ /dev/null @@ -1,89 +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: "ethereum-sepolia-starter", - description: - "This project can be use as a starting point for developing your new Ethereum Sepolia SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum Sepolia this is 11155111 - * https://chainlist.org/chain/11155111 - */ - chainId: "11155111", - /** - * 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: ["wss://sepolia.gateway.tenderly.co"], - dictionary: "https://dict-tyk.subquery.network/query/sepolia", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 4085662, - - options: { - // Must be a key of assets - abi: "erc20", - address: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-sepolia-starter/project.yaml b/Ethereum/ethereum-sepolia-starter/project.yaml index ee4c6451..0429fe3b 100644 --- a/Ethereum/ethereum-sepolia-starter/project.yaml +++ b/Ethereum/ethereum-sepolia-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Ethereum/ethereum-starter/.gitignore b/Ethereum/ethereum-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Ethereum/ethereum-starter/.gitignore +++ b/Ethereum/ethereum-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Ethereum/ethereum-starter/docker/pg-Dockerfile b/Ethereum/ethereum-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Ethereum/ethereum-starter/docker/pg-Dockerfile +++ b/Ethereum/ethereum-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/Ethereum/ethereum-starter/package.json b/Ethereum/ethereum-starter/package.json index c63c1081..28c95738 100644 --- a/Ethereum/ethereum-starter/package.json +++ b/Ethereum/ethereum-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-starter/project.ts b/Ethereum/ethereum-starter/project.ts deleted file mode 100644 index a856619a..00000000 --- a/Ethereum/ethereum-starter/project.ts +++ /dev/null @@ -1,90 +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: "ethereum-subql-starter", - description: - "This project can be use as a starting point for developing your new Ethereum SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum this is 1 - * https://chainlist.org/chain/1 - */ - chainId: "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://eth.api.onfinality.io/public"], - dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 4719568, - - options: { - // Must be a key of assets - abi: "erc20", - // # this is the contract address for wrapped ether https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 - address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-starter/project.yaml b/Ethereum/ethereum-starter/project.yaml index 1956a12e..66994c9d 100644 --- a/Ethereum/ethereum-starter/project.yaml +++ b/Ethereum/ethereum-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Ethereum/ethereum-uniswap-v3/.gitignore b/Ethereum/ethereum-uniswap-v3/.gitignore index b31b4da4..ced5d59f 100644 --- a/Ethereum/ethereum-uniswap-v3/.gitignore +++ b/Ethereum/ethereum-uniswap-v3/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ @@ -54,5 +55,6 @@ Thumbs.db *.wmv .data -dist -types +.yarn + +.DS_Store diff --git a/Ethereum/ethereum-uniswap-v3/docker/pg-Dockerfile b/Ethereum/ethereum-uniswap-v3/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Ethereum/ethereum-uniswap-v3/docker/pg-Dockerfile +++ b/Ethereum/ethereum-uniswap-v3/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Ethereum/ethereum-uniswap-v3/package.json b/Ethereum/ethereum-uniswap-v3/package.json index 7b6457b3..d57805ad 100644 --- a/Ethereum/ethereum-uniswap-v3/package.json +++ b/Ethereum/ethereum-uniswap-v3/package.json @@ -33,6 +33,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Ethereum/ethereum-uniswap-v3/project.ts b/Ethereum/ethereum-uniswap-v3/project.ts deleted file mode 100644 index 2e32c2b8..00000000 --- a/Ethereum/ethereum-uniswap-v3/project.ts +++ /dev/null @@ -1,204 +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: "uniswap-v3", - description: - "This project can be use as a starting point for developing your new Ethereum SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Ethereum this is 1 - * https://chainlist.org/chain/1 - */ - chainId: "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://eth.api.onfinality.io/public"], - dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 12369621, - - options: { - // Must be a key of assets - abi: "Factory", - address: "0x1F98431c8aD98523631AE4a59f267346ea31F984", - }, - assets: new Map([ - ["Factory", { file: "./abis/factory.json" }], - ["ERC20", { file: "./abis/ERC20.json" }], - - ["ERC20SymbolBytes", { file: "./abis/ERC20SymbolBytes.json" }], - ["ERC20NameBytes", { file: "./abis/ERC20NameBytes.json" }], - ["Pool", { file: "./abis/pool.json" }], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handlePoolCreated", - filter: { - topics: [ - "PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool)", - ], - }, - }, - ], - }, - }, - // ethereum/contract - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 12369651, - - options: { - // Must be a key of assets - abi: "NonfungiblePositionManager", - address: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - }, - assets: new Map([ - [ - "NonfungiblePositionManager", - { file: "./abis/NonfungiblePositionManager.json" }, - ], - ["Pool", { file: "./abis/pool.json" }], - ["ERC20", { file: "./abis/ERC20.json" }], - - ["Factory", { file: "./abis/factory.json" }], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleIncreaseLiquidity", - filter: { - topics: [ - "IncreaseLiquidity (uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleDecreaseLiquidity", - filter: { - topics: [ - "DecreaseLiquidity (uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1)", - ], - }, - }, - - { - kind: EthereumHandlerKind.Event, - handler: "handleCollect", - filter: { - topics: [ - "Collect (uint256 tokenId, address recipient, uint256 amount0, uint256 amount1)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleTransfer", - filter: { - topics: ["Transfer (address from, address to, uint256 tokenId)"], - }, - }, - ], - }, - }, - ], - templates: [ - { - kind: EthereumDatasourceKind.Runtime, - name: "Pool", - options: { - abi: "Pool", - }, - assets: new Map([ - ["Pool", { file: "./abis/pool.json" }], - ["ERC20", { file: "./abis/ERC20.json" }], - ["Factory", { file: "./abis/factory.json" }], - ]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleInitialize", - filter: { - topics: ["Initialize (uint160,int24)"], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleSwap", - filter: { - topics: [ - "Swap (address sender, address recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleMint", - filter: { - topics: [ - "Mint(address sender, address owner, int24 tickLower, int24 tickUpper, uint128 amount, uint256 amount0, uint256 amount1)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleBurn", - filter: { - topics: [ - "Burn(indexed address,indexed int24,indexed int24,uint128,uint256,uint256)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleFlash", - filter: { - topics: [ - "Flash(indexed address,indexed address,uint256,uint256,uint256,uint256)", - ], - }, - }, - ], - }, - }, - ], - - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Ethereum/ethereum-uniswap-v3/project.yaml b/Ethereum/ethereum-uniswap-v3/project.yaml index 4bdea161..1d9cc59b 100644 --- a/Ethereum/ethereum-uniswap-v3/project.yaml +++ b/Ethereum/ethereum-uniswap-v3/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Fantom/fantom-starter/.gitignore b/Fantom/fantom-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Fantom/fantom-starter/.gitignore +++ b/Fantom/fantom-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Fantom/fantom-starter/docker/pg-Dockerfile b/Fantom/fantom-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Fantom/fantom-starter/docker/pg-Dockerfile +++ b/Fantom/fantom-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Fantom/fantom-starter/package.json b/Fantom/fantom-starter/package.json index c053d9e5..cc2db639 100644 --- a/Fantom/fantom-starter/package.json +++ b/Fantom/fantom-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Fantom/fantom-starter/project.ts b/Fantom/fantom-starter/project.ts deleted file mode 100644 index de2fbbc0..00000000 --- a/Fantom/fantom-starter/project.ts +++ /dev/null @@ -1,93 +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: "fantom-starter", - description: - "This project can be use as a starting point for developing your new Fantom Opera SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Fantom Opera this is 250 - * https://chainlist.org/chain/250 - */ - chainId: "250", - /** - * 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://rpcapi.fantom.network", - "https://fantom.publicnode.com", - ], - dictionary: "https://dict-tyk.subquery.network/query/fantom", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - //This is the block that the contract was deployed on https://ftmscan.com/token/0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83 - startBlock: 67295175, - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped FTM https://ftmscan.com/token/0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83 - address: "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Fantom/fantom-starter/project.yaml b/Fantom/fantom-starter/project.yaml index 8418cc31..3c5a00ce 100644 --- a/Fantom/fantom-starter/project.yaml +++ b/Fantom/fantom-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Gnosis/gnosis-poap/.gitignore b/Gnosis/gnosis-poap/.gitignore index 2042b11a..ced5d59f 100644 --- a/Gnosis/gnosis-poap/.gitignore +++ b/Gnosis/gnosis-poap/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Gnosis/gnosis-poap/docker/pg-Dockerfile b/Gnosis/gnosis-poap/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Gnosis/gnosis-poap/docker/pg-Dockerfile +++ b/Gnosis/gnosis-poap/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Gnosis/gnosis-poap/package.json b/Gnosis/gnosis-poap/package.json index ebf38bb7..299a7718 100644 --- a/Gnosis/gnosis-poap/package.json +++ b/Gnosis/gnosis-poap/package.json @@ -33,6 +33,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Gnosis/gnosis-poap/project.ts b/Gnosis/gnosis-poap/project.ts deleted file mode 100644 index c4708167..00000000 --- a/Gnosis/gnosis-poap/project.ts +++ /dev/null @@ -1,94 +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: "gnosis-poap", - description: - "This project can be use as a starting point for developing your new Fantom Opera SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Gnosis this is 100 - * https://chainlist.org/chain/100 - */ - chainId: "100", - /** - * 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://gnosis.api.onfinality.io/public", - // "https://gnosischain-rpc.gateway.pokt.network", - // "https://opt-mainnet.g.alchemy.com/v2/demo", - "https://rpc.gnosischain.com", - ], - dictionary: "https://api.subquery.network/sq/subquery/gnosis-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // When the POAP contract was deployed https://gnosisscan.io/tx/0x2e4873cb1390f5328d389276624d1ffa833e3934657d5a791ee145defff663a2 - startBlock: 12188423, - options: { - // Must be a key of assets - abi: "poap", - // this is the contract address for POAPs on Gnosis https://gnosisscan.io/token/0x22c1f6050e56d2876009903609a2cc3fef83b415 - address: "0x22c1f6050e56d2876009903609a2cc3fef83b415", - }, - assets: new Map([["poap", { file: "./abis/poap.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Call, - handler: "handleTokenMint", - filter: { - /** - * The function can either be the function fragment or signature - * function: '0xaf68b302' - */ - function: "mintToken(uint256 eventId, address to)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Gnosis/gnosis-poap/project.yaml b/Gnosis/gnosis-poap/project.yaml index 293e3370..5dfb311b 100644 --- a/Gnosis/gnosis-poap/project.yaml +++ b/Gnosis/gnosis-poap/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Gnosis/gnosis-starter/.gitignore b/Gnosis/gnosis-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Gnosis/gnosis-starter/.gitignore +++ b/Gnosis/gnosis-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Gnosis/gnosis-starter/docker/pg-Dockerfile b/Gnosis/gnosis-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Gnosis/gnosis-starter/docker/pg-Dockerfile +++ b/Gnosis/gnosis-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/Gnosis/gnosis-starter/package.json b/Gnosis/gnosis-starter/package.json index cc900d0b..1bc9e7bf 100644 --- a/Gnosis/gnosis-starter/package.json +++ b/Gnosis/gnosis-starter/package.json @@ -33,6 +33,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Gnosis/gnosis-starter/project.ts b/Gnosis/gnosis-starter/project.ts deleted file mode 100644 index 0c2317aa..00000000 --- a/Gnosis/gnosis-starter/project.ts +++ /dev/null @@ -1,94 +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: "gnosis-subql-starter", - description: - "This project can be use as a starting point for developing your new Gnosis SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Gnosis this is 100 - * https://chainlist.org/chain/100 - */ - chainId: "100", - /** - * 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://gnosis.api.onfinality.io/public", - // "https://gnosischain-rpc.gateway.pokt.network", - // "https://opt-mainnet.g.alchemy.com/v2/demo", - "https://rpc.gnosischain.com", - ], - dictionary: "https://api.subquery.network/sq/subquery/gnosis-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // this is the contract address for ChainLink Token on xDai on Gnosis https://gnosisscan.io/token/0xe2e73a1c69ecf83f464efce6a5be353a37ca09b2 - startBlock: 11566752, - options: { - // Must be a key of assets - abi: "erc20", - address: "0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Gnosis/gnosis-starter/project.yaml b/Gnosis/gnosis-starter/project.yaml index 8be08d0c..fb2df73d 100644 --- a/Gnosis/gnosis-starter/project.yaml +++ b/Gnosis/gnosis-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Harmony/harmony-starter/.gitignore b/Harmony/harmony-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Harmony/harmony-starter/.gitignore +++ b/Harmony/harmony-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Harmony/harmony-starter/docker/pg-Dockerfile b/Harmony/harmony-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Harmony/harmony-starter/docker/pg-Dockerfile +++ b/Harmony/harmony-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Harmony/harmony-starter/package.json b/Harmony/harmony-starter/package.json index 998b7b18..f70c4914 100644 --- a/Harmony/harmony-starter/package.json +++ b/Harmony/harmony-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Harmony/harmony-starter/project.ts b/Harmony/harmony-starter/project.ts deleted file mode 100644 index 43df6485..00000000 --- a/Harmony/harmony-starter/project.ts +++ /dev/null @@ -1,88 +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: "harmony-starter", - description: - "This project can be use as a starting point for developing your new Harmony project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Harmony this is 1666600000 - * https://chainlist.org/chain/1666600000 - */ - chainId: "1666600000", - /** - * 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://api.harmony.one"], - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 42793429, - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://explorer.harmony.one/address/0x6983d1e6def3690c4d616b13597a09e6193ea013 - address: "0x6983d1e6def3690c4d616b13597a09e6193ea013", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Harmony/harmony-starter/project.yaml b/Harmony/harmony-starter/project.yaml index 18e436ce..8a788c91 100644 --- a/Harmony/harmony-starter/project.yaml +++ b/Harmony/harmony-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Heco/heco-starter/.gitignore b/Heco/heco-starter/.gitignore index c139d877..ced5d59f 100644 --- a/Heco/heco-starter/.gitignore +++ b/Heco/heco-starter/.gitignore @@ -23,10 +23,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Heco/heco-starter/docker/pg-Dockerfile b/Heco/heco-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Heco/heco-starter/docker/pg-Dockerfile +++ b/Heco/heco-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Heco/heco-starter/package.json b/Heco/heco-starter/package.json index 8f625328..b206f18c 100644 --- a/Heco/heco-starter/package.json +++ b/Heco/heco-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Heco/heco-starter/project.yaml b/Heco/heco-starter/project.yaml index b4ffebfd..5c2f793a 100644 --- a/Heco/heco-starter/project.yaml +++ b/Heco/heco-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Immutable/immutable-testnet-starter/.gitignore b/Immutable/immutable-testnet-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Immutable/immutable-testnet-starter/.gitignore +++ b/Immutable/immutable-testnet-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Immutable/immutable-testnet-starter/docker/pg-Dockerfile b/Immutable/immutable-testnet-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Immutable/immutable-testnet-starter/docker/pg-Dockerfile +++ b/Immutable/immutable-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/Immutable/immutable-testnet-starter/package.json b/Immutable/immutable-testnet-starter/package.json index 08fcada1..fafd9596 100644 --- a/Immutable/immutable-testnet-starter/package.json +++ b/Immutable/immutable-testnet-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Immutable/immutable-testnet-starter/project.ts b/Immutable/immutable-testnet-starter/project.ts deleted file mode 100644 index 96f876ed..00000000 --- a/Immutable/immutable-testnet-starter/project.ts +++ /dev/null @@ -1,88 +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: "immutable-testnet-subql-starter", - description: - "This project can be use as a starting point for developing your new Immutable Testnet project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Immutable this is 13472 - * https://chainlist.org/chain/13472 - */ - chainId: "13472", - /** - * 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.testnet.immutable.com/"], - // dictionary: 'https://gx.api.subquery.network/sq/subquery/immutable-dictionary' // Not ready yet - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 1, - options: { - // Must be a key of assets - abi: "erc20", - address: "0x0000000000000000000000000000000000001010", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Immutable/immutable-testnet-starter/project.yaml b/Immutable/immutable-testnet-starter/project.yaml index b9da2a05..a3e2de63 100644 --- a/Immutable/immutable-testnet-starter/project.yaml +++ b/Immutable/immutable-testnet-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Klaytn/klaytn-starter/.gitignore b/Klaytn/klaytn-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Klaytn/klaytn-starter/.gitignore +++ b/Klaytn/klaytn-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Klaytn/klaytn-starter/docker/pg-Dockerfile b/Klaytn/klaytn-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Klaytn/klaytn-starter/docker/pg-Dockerfile +++ b/Klaytn/klaytn-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Klaytn/klaytn-starter/package.json b/Klaytn/klaytn-starter/package.json index f27801f4..1b249c7f 100644 --- a/Klaytn/klaytn-starter/package.json +++ b/Klaytn/klaytn-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Klaytn/klaytn-starter/project.ts b/Klaytn/klaytn-starter/project.ts deleted file mode 100644 index 0285889a..00000000 --- a/Klaytn/klaytn-starter/project.ts +++ /dev/null @@ -1,90 +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: "klaytn-starter", - description: - "This project can be use as a starting point for developing your new Klaytn SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Klaytn this is 8217 - * https://chainlist.org/chain/8217 - */ - chainId: "8217", - /** - * 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://klaytn.blockpi.network/v1/rpc/public"], - // dictionary: "https://dict-tyk.subquery.network/query/klaytn" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 131206820, - // This is the block that the contract was deployed on https://scope.klaytn.com/token/0x34d21b1e550d73cee41151c77f3c73359527a396 - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Orbit Ether https://scope.klaytn.com/token/0x34d21b1e550d73cee41151c77f3c73359527a396 - address: "0x34d21b1e550d73cee41151c77f3c73359527a396", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Klaytn/klaytn-starter/project.yaml b/Klaytn/klaytn-starter/project.yaml index 11cdfaf5..48533db5 100644 --- a/Klaytn/klaytn-starter/project.yaml +++ b/Klaytn/klaytn-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Linea/linea-starter/.gitignore b/Linea/linea-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Linea/linea-starter/.gitignore +++ b/Linea/linea-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Linea/linea-starter/docker/pg-Dockerfile b/Linea/linea-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Linea/linea-starter/docker/pg-Dockerfile +++ b/Linea/linea-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/Linea/linea-starter/package.json b/Linea/linea-starter/package.json index 2405812e..64083d36 100644 --- a/Linea/linea-starter/package.json +++ b/Linea/linea-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Linea/linea-starter/project.ts b/Linea/linea-starter/project.ts deleted file mode 100644 index 77c5208f..00000000 --- a/Linea/linea-starter/project.ts +++ /dev/null @@ -1,91 +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: "linea-subql-starter", - description: - "This project can be use as a starting point for developing your new linea SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Linea this is 59144 - * https://chainlist.org/chain/59144 - */ - chainId: "59144", - /** - * 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://linea.blockpi.network/v1/rpc/public"], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://gx.api.subquery.network/sq/subquery/linea-dictionary" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 219470, - // This is the block that the contract was deployed on https://scope.klaytn.com/token/0x34d21b1e550d73cee41151c77f3c73359527a396 - options: { - // Must be a key of assets - abi: "erc20", - // this is the contract address for wrapped ether https://lineascan.build/token/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f - address: "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Linea/linea-starter/project.yaml b/Linea/linea-starter/project.yaml index 0737d44a..23f1781a 100644 --- a/Linea/linea-starter/project.yaml +++ b/Linea/linea-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Mantle/mantle-starter/.gitignore b/Mantle/mantle-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Mantle/mantle-starter/.gitignore +++ b/Mantle/mantle-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Mantle/mantle-starter/docker/pg-Dockerfile b/Mantle/mantle-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Mantle/mantle-starter/docker/pg-Dockerfile +++ b/Mantle/mantle-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Mantle/mantle-starter/package.json b/Mantle/mantle-starter/package.json index 283e22e1..e0a4b2dd 100644 --- a/Mantle/mantle-starter/package.json +++ b/Mantle/mantle-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Mantle/mantle-starter/project.ts b/Mantle/mantle-starter/project.ts deleted file mode 100644 index 679d6052..00000000 --- a/Mantle/mantle-starter/project.ts +++ /dev/null @@ -1,95 +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: "mantle-starter", - description: - "This project can be use as a starting point for developing your new mantle SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for mantle this is 5000 - * https://chainlist.org/chain/5000 - */ - chainId: "5000", - /** - * 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.mantle.xyz", - "https://mantle.public-rpc.com", - "https://mantle.drpc.org", - ], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://gx.api.subquery.network/sq/subquery/mantle-dictionary" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 1, - // This is the contract address for the Mantle native token https://explorer.mantle.xyz/token/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000/token-transfers - options: { - // Must be a key of assets - abi: "erc20", - // this is the contract address for wrapped ether https://lineascan.build/token/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f - address: "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Mantle/mantle-starter/project.yaml b/Mantle/mantle-starter/project.yaml index 81a76e0f..11ea52aa 100644 --- a/Mantle/mantle-starter/project.yaml +++ b/Mantle/mantle-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Meter/meter-starter/.gitignore b/Meter/meter-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Meter/meter-starter/.gitignore +++ b/Meter/meter-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Meter/meter-starter/docker/pg-Dockerfile b/Meter/meter-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Meter/meter-starter/docker/pg-Dockerfile +++ b/Meter/meter-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/Meter/meter-starter/package.json b/Meter/meter-starter/package.json index c305ac26..00706739 100644 --- a/Meter/meter-starter/package.json +++ b/Meter/meter-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Meter/meter-starter/project.ts b/Meter/meter-starter/project.ts deleted file mode 100644 index c8ed2c78..00000000 --- a/Meter/meter-starter/project.ts +++ /dev/null @@ -1,91 +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: "meter-starter", - description: - "This project can be use as a starting point for developing your new meter SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for meter this is 82 - * https://chainlist.org/chain/82 - */ - chainId: "82", - /** - * 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-meter.jellypool.xyz/"], - - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://gx.api.subquery.network/sq/subquery/meter-dictionary" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 41279094, // This is the block that the contract was deployed on - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for wrapped ether https://scan.meter.io/address/0x983147fb73a45fc7f8b4dfa1cd61bdc7b111e5b6 - address: "0x983147fb73a45fc7f8b4dfa1cd61bdc7b111e5b6", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Meter/meter-starter/project.yaml b/Meter/meter-starter/project.yaml index af3b84ce..d4bd930f 100644 --- a/Meter/meter-starter/project.yaml +++ b/Meter/meter-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Metis/metis-starter/.gitignore b/Metis/metis-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Metis/metis-starter/.gitignore +++ b/Metis/metis-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Metis/metis-starter/docker/pg-Dockerfile b/Metis/metis-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Metis/metis-starter/docker/pg-Dockerfile +++ b/Metis/metis-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Metis/metis-starter/package.json b/Metis/metis-starter/package.json index 5ef0d70d..adaaf956 100644 --- a/Metis/metis-starter/package.json +++ b/Metis/metis-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Metis/metis-starter/project.ts b/Metis/metis-starter/project.ts deleted file mode 100644 index 970b119a..00000000 --- a/Metis/metis-starter/project.ts +++ /dev/null @@ -1,91 +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: "metis-starter", - description: - "This project can be use as a starting point for developing your new metis SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for metis this is 1088 - * https://chainlist.org/chain/1088 - */ - chainId: "1088", - /** - * 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://andromeda.metis.io/?owner=1088"], - - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://gx.api.subquery.network/sq/subquery/metis-dictionary" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 41279094, // This is the block that the contract was deployed on - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Metis Token https://andromeda-explorer.metis.io/token/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000/token-transfers - address: "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Metis/metis-starter/project.yaml b/Metis/metis-starter/project.yaml index f1bf9eba..27e43b5b 100644 --- a/Metis/metis-starter/project.yaml +++ b/Metis/metis-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Optimism/optimism-airdrop/.gitignore b/Optimism/optimism-airdrop/.gitignore index 2042b11a..ced5d59f 100644 --- a/Optimism/optimism-airdrop/.gitignore +++ b/Optimism/optimism-airdrop/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Optimism/optimism-airdrop/docker/pg-Dockerfile b/Optimism/optimism-airdrop/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Optimism/optimism-airdrop/docker/pg-Dockerfile +++ b/Optimism/optimism-airdrop/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Optimism/optimism-airdrop/package.json b/Optimism/optimism-airdrop/package.json index b0648d19..4c414fe1 100644 --- a/Optimism/optimism-airdrop/package.json +++ b/Optimism/optimism-airdrop/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Optimism/optimism-airdrop/project.ts b/Optimism/optimism-airdrop/project.ts deleted file mode 100644 index a1e47bff..00000000 --- a/Optimism/optimism-airdrop/project.ts +++ /dev/null @@ -1,80 +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: "optimism-airdrop", - description: - "This project can be use as a starting point for developing your new Optimism SubQuery project. It indexes all claim events from the Optimism airdrop", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for optimism this is 10 - * https://chainlist.org/chain/10 - */ - chainId: "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://optimism.api.onfinality.io/public", - "https://mainnet.optimism.io", - "https://endpoints.omniatech.io/v1/op/mainnet/public", - "https://opt-mainnet.g.alchemy.com/v2/demo", - "https://rpc.ankr.com/optimism", - ], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://dict-tyk.subquery.network/query/optimism-mainnet", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 100316590, // When the airdrop contract was deployed https://optimistic.etherscan.io/tx/0xdd10f016092f1584912a23e544a29a638610bdd6cb42a3e8b13030fd78334eba - options: { - // Must be a key of assets - abi: "airdrop", - // this is the contract address for Optimism Airdrop https://optimistic.etherscan.io/address/0xfedfaf1a10335448b7fa0268f56d2b44dbd357de - address: "0xFeDFAF1A10335448b7FA0268F56D2B44DBD357de", - }, - assets: new Map([["airdrop", { file: "./abis/airdrop.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleClaim", - filter: { - topics: [ - "Claimed(uint256 index, address account, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Optimism/optimism-airdrop/project.yaml b/Optimism/optimism-airdrop/project.yaml index 0bfe4d6f..1f46bd86 100644 --- a/Optimism/optimism-airdrop/project.yaml +++ b/Optimism/optimism-airdrop/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Optimism/optimism-starter/.gitignore b/Optimism/optimism-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Optimism/optimism-starter/.gitignore +++ b/Optimism/optimism-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Optimism/optimism-starter/docker/pg-Dockerfile b/Optimism/optimism-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Optimism/optimism-starter/docker/pg-Dockerfile +++ b/Optimism/optimism-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/Optimism/optimism-starter/package.json b/Optimism/optimism-starter/package.json index ae8b36b6..90f77110 100644 --- a/Optimism/optimism-starter/package.json +++ b/Optimism/optimism-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Optimism/optimism-starter/project.ts b/Optimism/optimism-starter/project.ts deleted file mode 100644 index ea369427..00000000 --- a/Optimism/optimism-starter/project.ts +++ /dev/null @@ -1,96 +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: "Optimism-subql-starter", - description: - "This project can be use as a starting point for developing your new Optimism SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for optimism this is 10 - * https://chainlist.org/chain/10 - */ - chainId: "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://optimism.api.onfinality.io/public", - "https://mainnet.optimism.io", - "https://endpoints.omniatech.io/v1/op/mainnet/public", - "https://opt-mainnet.g.alchemy.com/v2/demo", - "https://rpc.ankr.com/optimism", - ], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://dict-tyk.subquery.network/query/optimism-mainnet", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 2485, // This is the block that the contract was deployed on - options: { - // Must be a key of assets - abi: "erc20", - // this is the contract address for USDT on Optimism https://optimistic.etherscan.io/address/0x94b008aa00579c1307b0ef2c499ad98a8ce58e58 - address: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Optimism/optimism-starter/project.yaml b/Optimism/optimism-starter/project.yaml index 0eb65714..173947e8 100644 --- a/Optimism/optimism-starter/project.yaml +++ b/Optimism/optimism-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Polygon/polygon-mumbai-starter/.gitignore b/Polygon/polygon-mumbai-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Polygon/polygon-mumbai-starter/.gitignore +++ b/Polygon/polygon-mumbai-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Polygon/polygon-mumbai-starter/docker/pg-Dockerfile b/Polygon/polygon-mumbai-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Polygon/polygon-mumbai-starter/docker/pg-Dockerfile +++ b/Polygon/polygon-mumbai-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Polygon/polygon-mumbai-starter/package.json b/Polygon/polygon-mumbai-starter/package.json index 7121c708..e9ee27fa 100644 --- a/Polygon/polygon-mumbai-starter/package.json +++ b/Polygon/polygon-mumbai-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Polygon/polygon-mumbai-starter/project.ts b/Polygon/polygon-mumbai-starter/project.ts deleted file mode 100644 index a696ba83..00000000 --- a/Polygon/polygon-mumbai-starter/project.ts +++ /dev/null @@ -1,90 +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: "polygon-mumbai-starter", - description: - "This project can be use as a starting point for developing your new polygon Mumbai SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Polygon this is 80001 - * https://chainlist.org/chain/80001 - */ - chainId: "80001", - /** - * 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://polygon-mumbai.blockpi.network/v1/rpc/public"], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://dict-tyk.subquery.network/query/polygon-mumbai", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 29605828, // This is the block that the contract was deployed on - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://mumbai.polygonscan.com/token/0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa - address: "0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Polygon/polygon-mumbai-starter/project.yaml b/Polygon/polygon-mumbai-starter/project.yaml index 3d3dac23..7e8c20fd 100644 --- a/Polygon/polygon-mumbai-starter/project.yaml +++ b/Polygon/polygon-mumbai-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Polygon/polygon-plasma-bridge/.gitignore b/Polygon/polygon-plasma-bridge/.gitignore index 2042b11a..ced5d59f 100644 --- a/Polygon/polygon-plasma-bridge/.gitignore +++ b/Polygon/polygon-plasma-bridge/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Polygon/polygon-plasma-bridge/docker/pg-Dockerfile b/Polygon/polygon-plasma-bridge/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Polygon/polygon-plasma-bridge/docker/pg-Dockerfile +++ b/Polygon/polygon-plasma-bridge/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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Polygon/polygon-plasma-bridge/package.json b/Polygon/polygon-plasma-bridge/package.json index 602ae5fc..608d77fd 100644 --- a/Polygon/polygon-plasma-bridge/package.json +++ b/Polygon/polygon-plasma-bridge/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Polygon/polygon-plasma-bridge/project.ts b/Polygon/polygon-plasma-bridge/project.ts deleted file mode 100644 index b6e2759f..00000000 --- a/Polygon/polygon-plasma-bridge/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: "polygon-plasma-bridge", - description: - "This example project indexes all token deposits from the Polygon Plamsa Bridge", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Polygon this is 137 - * https://chainlist.org/chain/137 - */ - chainId: "137", - /** - * 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://polygon.api.onfinality.io/public", - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://gx.api.subquery.network/sq/subquery/polygon-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 8323392, - options: { - // Must be a key of assets - abi: "plasma", - // Plasma contract - address: "0xd9c7c4ed4b66858301d0cb28cc88bf655fe34861", - }, - assets: new Map([["plasma", { file: "./abis/plasma.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Event, - handler: "handleDeposit", - filter: { - topics: [ - "TokenDeposited (address indexed rootToken, address indexed childToken, address indexed user, uint256 amount, uint256 depositCount)", - ], - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleDeposit", - filter: { - topics: [ - "TokenWithdrawn (address indexed rootToken, address indexed childToken, address indexed user, uint256 amount, uint256 withrawCount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Polygon/polygon-plasma-bridge/project.yaml b/Polygon/polygon-plasma-bridge/project.yaml index 87983e83..b7a79ff1 100644 --- a/Polygon/polygon-plasma-bridge/project.yaml +++ b/Polygon/polygon-plasma-bridge/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Polygon/polygon-starter/.gitignore b/Polygon/polygon-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Polygon/polygon-starter/.gitignore +++ b/Polygon/polygon-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Polygon/polygon-starter/docker/pg-Dockerfile b/Polygon/polygon-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Polygon/polygon-starter/docker/pg-Dockerfile +++ b/Polygon/polygon-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/Polygon/polygon-starter/package.json b/Polygon/polygon-starter/package.json index 83769700..1dd82914 100644 --- a/Polygon/polygon-starter/package.json +++ b/Polygon/polygon-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Polygon/polygon-starter/project.ts b/Polygon/polygon-starter/project.ts deleted file mode 100644 index 69814bd5..00000000 --- a/Polygon/polygon-starter/project.ts +++ /dev/null @@ -1,91 +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: "polygon-subql-starter", - description: - "This project can be use as a starting point for developing your new polygon SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Polygon this is 137 - * https://chainlist.org/chain/137 - */ - chainId: "137", - /** - * 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://polygon.api.onfinality.io/public"], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://gx.api.subquery.network/sq/subquery/polygon-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 3678215, // This is the block that the contract was deployed on - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for wrapped ether https://polygonscan.com/address/0x7ceb23fd6bc0add59e62ac25578270cff1b9f619 - address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Polygon/polygon-starter/project.yaml b/Polygon/polygon-starter/project.yaml index 71867cae..7b13ee1c 100644 --- a/Polygon/polygon-starter/project.yaml +++ b/Polygon/polygon-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Polygon/polygon-zkevm-starter/.gitignore b/Polygon/polygon-zkevm-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Polygon/polygon-zkevm-starter/.gitignore +++ b/Polygon/polygon-zkevm-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Polygon/polygon-zkevm-starter/docker/pg-Dockerfile b/Polygon/polygon-zkevm-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Polygon/polygon-zkevm-starter/docker/pg-Dockerfile +++ b/Polygon/polygon-zkevm-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Polygon/polygon-zkevm-starter/package.json b/Polygon/polygon-zkevm-starter/package.json index 026ac661..0e118cda 100644 --- a/Polygon/polygon-zkevm-starter/package.json +++ b/Polygon/polygon-zkevm-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Polygon/polygon-zkevm-starter/project.ts b/Polygon/polygon-zkevm-starter/project.ts deleted file mode 100644 index 5d4164f2..00000000 --- a/Polygon/polygon-zkevm-starter/project.ts +++ /dev/null @@ -1,90 +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: "polygon-zkevm-starter", - description: - "This project can be use as a starting point for developing your new polygon zkEVM SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Polygon zkEVM this is 1101 - * https://chainlist.org/chain/1101 - */ - chainId: "1101", - /** - * 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://zkevm-rpc.com"], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://dict-tyk.subquery.network/query/polygon-zkevm", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 1, // This is the block that the contract was deployed on https://zkevm.polygonscan.com/token/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9 - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://zkevm.polygonscan.com/token/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9 - address: "0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Polygon/polygon-zkevm-starter/project.yaml b/Polygon/polygon-zkevm-starter/project.yaml index ccde268c..932f08e7 100644 --- a/Polygon/polygon-zkevm-starter/project.yaml +++ b/Polygon/polygon-zkevm-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Scroll/scroll-sepolia-starter/.gitignore b/Scroll/scroll-sepolia-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Scroll/scroll-sepolia-starter/.gitignore +++ b/Scroll/scroll-sepolia-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Scroll/scroll-sepolia-starter/docker/pg-Dockerfile b/Scroll/scroll-sepolia-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Scroll/scroll-sepolia-starter/docker/pg-Dockerfile +++ b/Scroll/scroll-sepolia-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Scroll/scroll-sepolia-starter/package.json b/Scroll/scroll-sepolia-starter/package.json index 6d4f3fa1..cd45c8ae 100644 --- a/Scroll/scroll-sepolia-starter/package.json +++ b/Scroll/scroll-sepolia-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Scroll/scroll-sepolia-starter/project.ts b/Scroll/scroll-sepolia-starter/project.ts deleted file mode 100644 index fc0e276a..00000000 --- a/Scroll/scroll-sepolia-starter/project.ts +++ /dev/null @@ -1,91 +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: "scroll-sepolia-starter", - description: - "This project can be use as a starting point for developing your new Scroll Sepolia testnet SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for Scroll Sepolia this is 534351 - * https://chainlist.org/chain/534351 - */ - chainId: "534351", - /** - * 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://scroll-sepolia.blockpi.network/v1/rpc/public"], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://api.subquery.network/sq/subquery/scroll-sepolia-dictionary" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 1, // This is the block that the contract was deployed on https://sepolia-blockscout.scroll.io/address/0x5300000000000000000000000000000000000004 - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for Wrapped Ether https://sepolia-blockscout.scroll.io/address/0x5300000000000000000000000000000000000004 - address: "0x5300000000000000000000000000000000000004", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Scroll/scroll-sepolia-starter/project.yaml b/Scroll/scroll-sepolia-starter/project.yaml index a59943fe..53a77604 100644 --- a/Scroll/scroll-sepolia-starter/project.yaml +++ b/Scroll/scroll-sepolia-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Skale/skale-starter/.gitignore b/Skale/skale-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Skale/skale-starter/.gitignore +++ b/Skale/skale-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Skale/skale-starter/docker/pg-Dockerfile b/Skale/skale-starter/docker/pg-Dockerfile index c819635a..1f5594e6 100644 --- a/Skale/skale-starter/docker/pg-Dockerfile +++ b/Skale/skale-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' @@ -7,3 +7,6 @@ ENV POSTGRES_PASSWORD 'postgres' # Copy in the load-extensions script COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ + +# Convert line endings to LF +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Skale/skale-starter/package.json b/Skale/skale-starter/package.json index 0d2b0fec..d7e85c81 100644 --- a/Skale/skale-starter/package.json +++ b/Skale/skale-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Skale/skale-starter/project.ts b/Skale/skale-starter/project.ts deleted file mode 100644 index 8b275a8a..00000000 --- a/Skale/skale-starter/project.ts +++ /dev/null @@ -1,91 +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: "Skale-subql-starter", - description: - "This project can be use as a starting point for developing your new Skale Europa SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for skale this is 2046399126 - * https://chainlist.org/chain/2046399126 - */ - chainId: "2046399126", - /** - * 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://mainnet.skalenodes.com/v1/elated-tan-skat"], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://dict-tyk.subquery.network/query/skale-zkevm" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 3238500, // This is the block that the contract was deployed on https://elated-tan-skat.explorer.mainnet.skalenodes.com/token/0x871Bb56655376622A367ece74332C449e5bAc433 - - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for SKL Token https://elated-tan-skat.explorer.mainnet.skalenodes.com/token/0x871Bb56655376622A367ece74332C449e5bAc433 - address: "0x871bb56655376622a367ece74332c449e5bac433", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Skale/skale-starter/project.yaml b/Skale/skale-starter/project.yaml index 9dc10d79..9f6f8682 100644 --- a/Skale/skale-starter/project.yaml +++ b/Skale/skale-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0" diff --git a/Zksync/zksync-starter/.gitignore b/Zksync/zksync-starter/.gitignore index 2042b11a..ced5d59f 100644 --- a/Zksync/zksync-starter/.gitignore +++ b/Zksync/zksync-starter/.gitignore @@ -27,6 +27,7 @@ package-lock.json target/ dist/ src/types +#project.yaml # JetBrains IDE .idea/ diff --git a/Zksync/zksync-starter/docker/pg-Dockerfile b/Zksync/zksync-starter/docker/pg-Dockerfile index ab2ace1d..1f5594e6 100644 --- a/Zksync/zksync-starter/docker/pg-Dockerfile +++ b/Zksync/zksync-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/Zksync/zksync-starter/package.json b/Zksync/zksync-starter/package.json index 474fa698..805def90 100644 --- a/Zksync/zksync-starter/package.json +++ b/Zksync/zksync-starter/package.json @@ -32,6 +32,6 @@ "@subql/testing": "latest", "@subql/node-ethereum": "latest", "ethers": "^5.7.2", - "typescript": "4.5.5" + "typescript": "latest" } } diff --git a/Zksync/zksync-starter/project.ts b/Zksync/zksync-starter/project.ts deleted file mode 100644 index 19229300..00000000 --- a/Zksync/zksync-starter/project.ts +++ /dev/null @@ -1,90 +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: "Zksync-subql-starter", - description: - "This project can be use as a starting point for developing your new Zksync SubQuery project", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /** - * chainId is the EVM Chain ID, for zksync this is 324 - * https://chainlist.org/chain/324 - */ - chainId: "324", - /** - * 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://mainnet.era.zksync.io"], - // Recommended to provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://dict-tyk.subquery.network/query/zksync-mainnet", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - startBlock: 10456259, // This is the block that the contract was deployed on - options: { - // Must be a key of assets - abi: "erc20", - // This is the contract address for wrapped ether https://explorer.zksync.io/address/0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4 - address: "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4", - }, - assets: new Map([["erc20", { file: "./abis/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 rawAmount)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: [ - "Transfer(address indexed from, address indexed to, uint256 amount)", - ], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -// Must set default to the project instance -export default project; diff --git a/Zksync/zksync-starter/project.yaml b/Zksync/zksync-starter/project.yaml index b1387a85..327024ec 100644 --- a/Zksync/zksync-starter/project.yaml +++ b/Zksync/zksync-starter/project.yaml @@ -1,6 +1,3 @@ -# NOTE THIS FILE IS HAS BEEN DEPRECATED AND REPLACED BY THE TYPESCRIPT DEFINITION (PROJECT.TS) -# The CLI will automatically look for the project.ts as priority, if you want to ensure you -# use the project manifest, please delete project.ts specVersion: "1.0.0"