From 468cb71bdcc0bf7a33968c72b3c4c83bbfae67ea Mon Sep 17 00:00:00 2001 From: bz888 Date: Sat, 7 Oct 2023 00:45:47 +1300 Subject: [PATCH 1/9] add project.yaml back, update name to project-old.yaml --- Agoric/agoric-starter/project-old.yaml | 58 +++++++++++++++ Akash/akash-starter/project-old.yaml | 69 +++++++++++++++++ .../{project.yaml => project-old.yaml} | 0 Axelar/axelar-starter/project-old.yaml | 43 +++++++++++ Axelar/axelar-starter/src/types/index.ts | 4 - .../axelar-starter/src/types/models/index.ts | 5 -- Cheqd/cheqd-starter/project-old.yaml | 58 +++++++++++++++ Comdex/comdex-starter/project-old.yaml | 45 +++++++++++ CosmosHub/cosmoshub-starter/project-old.yaml | 59 +++++++++++++++ .../project-old.yaml | 59 +++++++++++++++ .../project-old.yaml | 74 +++++++++++++++++++ Evmos/evmos-starter/project-old.yaml | 62 ++++++++++++++++ Evmos/evmos-testnet-starter/project-old.yaml | 60 +++++++++++++++ Fetch.ai/fetchhub-starter/project-old.yaml | 60 +++++++++++++++ Injective/injective-starter/project-old.yaml | 54 ++++++++++++++ Juno/juno-starter/project-old.yaml | 61 +++++++++++++++ Kava/kava-starter/project-old.yaml | 49 ++++++++++++ Mars/mars-starter/project-old.yaml | 58 +++++++++++++++ Migaloo/migaloo-starter/project-old.yaml | 58 +++++++++++++++ Neutron/neutron-starter/project-old.yaml | 62 ++++++++++++++++ OKX/okx-starter/project-old.yaml | 59 +++++++++++++++ .../omniflixhub-starter/project-old.yaml | 58 +++++++++++++++ Osmosis/osmosis-starter/project-old.yaml | 59 +++++++++++++++ .../persistence-starter/project-old.yaml | 45 +++++++++++ Sei/sei-starter/project-old.yaml | 65 ++++++++++++++++ Stargaze/stargaze-starter/project-old.yaml | 64 ++++++++++++++++ Thorchain/thorchain-starter/project-old.yaml | 62 ++++++++++++++++ Umee/umee-starter/project-old.yaml | 58 +++++++++++++++ 28 files changed, 1459 insertions(+), 9 deletions(-) create mode 100644 Agoric/agoric-starter/project-old.yaml create mode 100644 Akash/akash-starter/project-old.yaml rename Archway/archway-starter/{project.yaml => project-old.yaml} (100%) create mode 100644 Axelar/axelar-starter/project-old.yaml delete mode 100644 Axelar/axelar-starter/src/types/index.ts delete mode 100644 Axelar/axelar-starter/src/types/models/index.ts create mode 100644 Cheqd/cheqd-starter/project-old.yaml create mode 100644 Comdex/comdex-starter/project-old.yaml create mode 100644 CosmosHub/cosmoshub-starter/project-old.yaml create mode 100644 Cronos/cronos-evm-starter-via-eth/project-old.yaml create mode 100644 Cronos/cronos-evm-starter-via-rpc/project-old.yaml create mode 100644 Evmos/evmos-starter/project-old.yaml create mode 100644 Evmos/evmos-testnet-starter/project-old.yaml create mode 100644 Fetch.ai/fetchhub-starter/project-old.yaml create mode 100644 Injective/injective-starter/project-old.yaml create mode 100644 Juno/juno-starter/project-old.yaml create mode 100644 Kava/kava-starter/project-old.yaml create mode 100644 Mars/mars-starter/project-old.yaml create mode 100644 Migaloo/migaloo-starter/project-old.yaml create mode 100644 Neutron/neutron-starter/project-old.yaml create mode 100644 OKX/okx-starter/project-old.yaml create mode 100644 Omniflixhub/omniflixhub-starter/project-old.yaml create mode 100644 Osmosis/osmosis-starter/project-old.yaml create mode 100644 Persistence/persistence-starter/project-old.yaml create mode 100644 Sei/sei-starter/project-old.yaml create mode 100644 Stargaze/stargaze-starter/project-old.yaml create mode 100644 Thorchain/thorchain-starter/project-old.yaml create mode 100644 Umee/umee-starter/project-old.yaml diff --git a/Agoric/agoric-starter/project-old.yaml b/Agoric/agoric-starter/project-old.yaml new file mode 100644 index 000000000..0d301b820 --- /dev/null +++ b/Agoric/agoric-starter/project-old.yaml @@ -0,0 +1,58 @@ +specVersion: 1.0.0 +name: agoric-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: agoric-3 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://agoric-rpc.stakely.io"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/agoric-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 11628269 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Akash/akash-starter/project-old.yaml b/Akash/akash-starter/project-old.yaml new file mode 100644 index 000000000..f5fc5774a --- /dev/null +++ b/Akash/akash-starter/project-old.yaml @@ -0,0 +1,69 @@ +specVersion: 1.0.0 +name: akash-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Akash + based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + #chainId: sei-devnet-3 + chainId: akashnet-2 + # This endpoint must be a public non-pruned archive node + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: + - https://rpc-akash.ecostake.com:443 + - https://rpc.akashnet.net:443 + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + # dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary" + chainTypes: + # This feature allows support for any Cosmos chain by importing the correct protobuf messages + akash.staking.v1beta3: + file: ./proto/akash/staking/v1beta3/params.proto + messages: + - Params +dataSources: + - kind: cosmos/Runtime + startBlock: 11364001 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + - handler: handleReward + kind: cosmos/EventHandler + # https://sei.explorers.guru/transaction/9A5D1FB99CDFB03282459355E4C7221D93D9971160AE79E201FA2B2895952878 + filter: + type: withdraw_rewards + messageFilter: + type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward" + # contractCall field can be specified here too + #values: # A set of key/value pairs that are present in the message data + #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" + #- handler: handleSpotPriceEvent + # kind: cosmos/EventHandler + # filter: + # type: wasm-spot-price + # messageFilter: + # type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # - handler: handleMessage + # kind: cosmos/MessageHandler + # filter: + # type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # Filter to only messages with the provide_liquidity function call + #contractCall: "provide_liquidity" # The name of the contract function that was called + #values: # A set of key/value pairs that are present in the message data + #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" diff --git a/Archway/archway-starter/project.yaml b/Archway/archway-starter/project-old.yaml similarity index 100% rename from Archway/archway-starter/project.yaml rename to Archway/archway-starter/project-old.yaml diff --git a/Axelar/axelar-starter/project-old.yaml b/Axelar/axelar-starter/project-old.yaml new file mode 100644 index 000000000..c8125bb64 --- /dev/null +++ b/Axelar/axelar-starter/project-old.yaml @@ -0,0 +1,43 @@ +specVersion: 1.0.0 +name: axelar-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Axelar) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: axelar-dojo-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://axelar-archrpc.chainode.tech/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + # dictionary: "https://api.subquery.network/sq/subquery/axelar-hub-dictionary" +dataSources: + - kind: cosmos/Runtime + startBlock: 5262 # The first deposit event occurs on this block + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: "depositConfirmation" + # - handler: handleMessage + # kind: cosmos/MessageHandler + # filter: + # type: /cosmos.bank.v1beta1.MsgSend diff --git a/Axelar/axelar-starter/src/types/index.ts b/Axelar/axelar-starter/src/types/index.ts deleted file mode 100644 index 86842696a..000000000 --- a/Axelar/axelar-starter/src/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT -export * from "./models"; diff --git a/Axelar/axelar-starter/src/types/models/index.ts b/Axelar/axelar-starter/src/types/models/index.ts deleted file mode 100644 index 131e13130..000000000 --- a/Axelar/axelar-starter/src/types/models/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT - -export { DepositConfirmation } from "./DepositConfirmation"; diff --git a/Cheqd/cheqd-starter/project-old.yaml b/Cheqd/cheqd-starter/project-old.yaml new file mode 100644 index 000000000..2463c38d0 --- /dev/null +++ b/Cheqd/cheqd-starter/project-old.yaml @@ -0,0 +1,58 @@ +specVersion: 1.0.0 +name: cheqd-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Cheqd) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: cheqd-mainnet-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://rpc.cheqd.nodestake.top"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cheqd-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 9758950 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Comdex/comdex-starter/project-old.yaml b/Comdex/comdex-starter/project-old.yaml new file mode 100644 index 000000000..6e4de4ea9 --- /dev/null +++ b/Comdex/comdex-starter/project-old.yaml @@ -0,0 +1,45 @@ +specVersion: 1.0.0 +name: comdex-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Comdex) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: comdex-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://rpc-comdex.zenchainlabs.io/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: #CIRCUMVENTING VIA ORDER + file: ./proto/cosmos/distribution/v1beta1/tx.proto + messages: + - MsgWithdrawDelegatorReward +dataSources: + - kind: cosmos/Runtime + startBlock: 1 + mapping: + file: ./dist/index.js + handlers: + #- handler: handleMessage + # kind: cosmos/MessageHandler + # filter: + # type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward + - handler: handleEvent + kind: cosmos/EventHandler + # An example of https://www.mintscan.io/comdex/txs/6DB31FF17697FDB422EC885E184917C3EFAE1D522E47C654A093B6C7A62AD94D + filter: + type: coin_spent + messageFilter: + type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward diff --git a/CosmosHub/cosmoshub-starter/project-old.yaml b/CosmosHub/cosmoshub-starter/project-old.yaml new file mode 100644 index 000000000..632dcf083 --- /dev/null +++ b/CosmosHub/cosmoshub-starter/project-old.yaml @@ -0,0 +1,59 @@ +specVersion: 1.0.0 +name: cosmoshub-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Cosmos + Hub) based SubQuery project +repository: "https://github.com/subquery/juno-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: cosmoshub-4 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://cosmos-mainnet-archive.allthatnode.com:26657"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 5200791 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Cronos/cronos-evm-starter-via-eth/project-old.yaml b/Cronos/cronos-evm-starter-via-eth/project-old.yaml new file mode 100644 index 000000000..b44e113a9 --- /dev/null +++ b/Cronos/cronos-evm-starter-via-eth/project-old.yaml @@ -0,0 +1,59 @@ +specVersion: 1.0.0 + +name: cronos-evm-starter-via-eth +version: 0.0.1 +runner: + node: + name: "@subql/node-ethereum" + version: "*" + query: + name: "@subql/query" + version: "*" +description: "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Etheruem API" +repository: "https://github.com/subquery/cosmos-subql-starter/tree/main/Cronos/cronos-evm-starter-via-eth" +schema: + file: ./schema.graphql +network: + chainId: "25" + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + # Take a look here for some Cronos endpoints https://moonflow.solutions/rpc-servers + endpoint: ["https://evm.cronos.org/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary" +dataSources: + - kind: ethereum/Runtime + startBlock: 446 # Block that this contract was created + options: + abi: erc20 + address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23" # Wrapped CRO https://cronos.org/explorer/address/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23 + assets: + erc20: + file: "erc20.abi.json" + mapping: + file: "./dist/index.js" + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: ethereum/BlockHandler + - handler: handleTransaction + kind: ethereum/TransactionHandler + filter: + ## The function can either be the function fragment or signature + ## https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment + # function: '0x095ea7b3' + # function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' + function: approve(address guy, uint256 wad) + - handler: handleLog + kind: ethereum/LogHandler + filter: + topics: + # The topics filter follows the Ethereum JSON-PRC log filters + # https://docs.ethers.io/v5/concepts/events + # Example valid values: + # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' + # - Transfer(address,address,u256) + - Transfer(address src, address dst, uint256 wad) + # address: "0x60781C2586D68229fde47564546784ab3fACA982" diff --git a/Cronos/cronos-evm-starter-via-rpc/project-old.yaml b/Cronos/cronos-evm-starter-via-rpc/project-old.yaml new file mode 100644 index 000000000..c8b848d95 --- /dev/null +++ b/Cronos/cronos-evm-starter-via-rpc/project-old.yaml @@ -0,0 +1,74 @@ +specVersion: 1.0.0 +name: cronos-evm-starter-via-rpc +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Ethermint RPC API" +repository: "https://github.com/subquery/cosmos-subql-starter/tree/main/Cronos/cronos-evm-starter-via-rpc" +schema: + file: ./schema.graphql +network: + chainId: cronosmainnet_25-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + # Take a look here for some Cronos endpoints https://moonflow.solutions/rpc-servers + endpoint: ["https://rpc.cronos.org/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary" + chainTypes: + ethermint.evm.v1: + file: "./proto/ethermint/evm/v1/tx.proto" + messages: + - "MsgEthereumTx" + - "LegacyTx" + - "AccessListTx" + - "DynamicFeeTx" + ethermint.evm.v12: + file: "./proto/ethermint/evm/v1/evm.proto" + messages: + - "AccessTuple" + google.protobuf: + file: "./proto/google/protobuf/any.proto" + messages: + - "Any" + +dataSources: + - kind: cosmos/EthermintEvm + startBlock: 446 # Block that this contract was created + processor: + file: "./node_modules/@subql/ethermint-evm-processor/dist/bundle.js" + options: + abi: erc20 + address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23" # Wrapped CRO + assets: + erc20: + file: "./erc20.abi.json" + mapping: + file: "./dist/index.js" + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + - handler: handleEthermintEvmCall + kind: cosmos/EthermintEvmCall + filter: + # Either Function Signature strings or the function `sighash` to filter the function called on the contract + # ](https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment) + method: approve(address guy, uint256 wad) + - handler: handleEthermintEvmEvent + kind: cosmos/EthermintEvmEvent + filter: + topics: + # The topics filter follows the Ethereum JSON-PRC log filters + # https://docs.ethers.io/v5/concepts/events + # Example valid values: + # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' + # - Transfer(address,address,u256) + - Transfer(address src, address dst, uint256 wad) diff --git a/Evmos/evmos-starter/project-old.yaml b/Evmos/evmos-starter/project-old.yaml new file mode 100644 index 000000000..539abce40 --- /dev/null +++ b/Evmos/evmos-starter/project-old.yaml @@ -0,0 +1,62 @@ +specVersion: 1.0.0 +name: evmos-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos + (Evmos) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: evmos_9001-2 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + # You can get them from OnFinality for free https://app.onfinality.io + # https://documentation.onfinality.io/support/the-enhanced-api-service + endpoint: ["https://evmos.api.onfinality.io/public"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + #dictionary: "https://api.subquery.network/sq/subquery/cosmos-evmos-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 58701 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend \ No newline at end of file diff --git a/Evmos/evmos-testnet-starter/project-old.yaml b/Evmos/evmos-testnet-starter/project-old.yaml new file mode 100644 index 000000000..a664f61ff --- /dev/null +++ b/Evmos/evmos-testnet-starter/project-old.yaml @@ -0,0 +1,60 @@ +specVersion: 1.0.0 +name: evmos-testnet-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos + (Evmos Testnet) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: evmos_9000-4 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + # You can get them from OnFinality for free https://app.onfinality.io + # https://documentation.onfinality.io/support/the-enhanced-api-service + endpoint: ["https://eth.bd.evmos.dev"] + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 58701 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Fetch.ai/fetchhub-starter/project-old.yaml b/Fetch.ai/fetchhub-starter/project-old.yaml new file mode 100644 index 000000000..b7ae51ef1 --- /dev/null +++ b/Fetch.ai/fetchhub-starter/project-old.yaml @@ -0,0 +1,60 @@ +specVersion: 1.0.0 +name: fetchhub-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos + (Fetch.ai) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: fetchhub-4 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://rpc-fetchhub.fetch.ai"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-fetch-ai-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 5300201 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Injective/injective-starter/project-old.yaml b/Injective/injective-starter/project-old.yaml new file mode 100644 index 000000000..1f3f9113b --- /dev/null +++ b/Injective/injective-starter/project-old.yaml @@ -0,0 +1,54 @@ +specVersion: 1.0.0 +name: injective-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Injective) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: injective-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["http://archival-sentry-equinix-2.injective.dev:26657"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + # dictionary: "https://api.subquery.network/sq/subquery/injective-hub-dictionary" + chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + injective.exchange.v1beta1.MsgCreateSpotLimitOrder: # Key is not used, it matches the one above and is inferred from the file + file: ./proto/injective/exchange/v1beta1/tx.proto + messages: + - MsgCreateSpotLimitOrder + injective.exchange.v1beta1.SpotOrder: + file: ./proto/injective/exchange/v1beta1/exchange.proto + messages: + - SpotOrder +dataSources: + - kind: cosmos/Runtime + startBlock: 22186475 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # - handler: handleEvent + # kind: cosmos/EventHandler + # filter: + # type: transfer + # messageFilter: + # type: /injective.exchange.v1beta1.MsgCreateSpotLimitOrder + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /injective.exchange.v1beta1.MsgCreateSpotLimitOrder diff --git a/Juno/juno-starter/project-old.yaml b/Juno/juno-starter/project-old.yaml new file mode 100644 index 000000000..6e38a04ec --- /dev/null +++ b/Juno/juno-starter/project-old.yaml @@ -0,0 +1,61 @@ +specVersion: 1.0.0 +name: juno-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Juno) based SubQuery project +repository: https://github.com/subquery/juno-subql-starter +schema: + file: ./schema.graphql + +network: + chainId: juno-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + # You can get them from OnFinality for free https://app.onfinality.io + # https://documentation.onfinality.io/support/the-enhanced-api-service + endpoint: ["https://rpc-juno.whispernode.com"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-juno-dictionary" + # chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages + # cosmos.slashing.v1beta1: + # file: "./proto/cosmos/slashing/v1beta1/tx.proto" + # messages: + # - "MsgUnjail" +dataSources: + - kind: cosmos/Runtime + startBlock: 9700000 # Set this to the start block + mapping: + file: "./dist/index.js" + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: execute + messageFilter: + type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # contractCall field can be specified here too + #values: # A set of key/value pairs that are present in the message data + #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # Filter to only messages with the provide_liquidity function call + #contractCall: "provide_liquidity" # The name of the contract function that was called + #values: # A set of key/value pairs that are present in the message data + #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" diff --git a/Kava/kava-starter/project-old.yaml b/Kava/kava-starter/project-old.yaml new file mode 100644 index 000000000..73f3cfeee --- /dev/null +++ b/Kava/kava-starter/project-old.yaml @@ -0,0 +1,49 @@ +specVersion: 1.0.0 +name: kava-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: Indexing Cosmos chain (Kava) (with contribution from Tony) +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: kava_2222-10 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://kava-rpc.ibs.team"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + # dictionary: "https://api.subquery.network/sq/subquery/injective-hub-dictionary" + chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages + cosmos.bank.v1beta1.MsgSend: # Key is not used, it matches the one above and is inferred from the file + file: ./proto/cosmos/bank/v1beta1/tx.proto + messages: + - MsgSend + cosmos.base.v1beta1.Coin: + file: ./proto/cosmos/base/v1beta1/coin.proto + messages: + - Coin +dataSources: + - kind: cosmos/Runtime + startBlock: 5397233 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: coin_spent + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Mars/mars-starter/project-old.yaml b/Mars/mars-starter/project-old.yaml new file mode 100644 index 000000000..44360ffe1 --- /dev/null +++ b/Mars/mars-starter/project-old.yaml @@ -0,0 +1,58 @@ +specVersion: 1.0.0 +name: mars-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: mars-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://mars-rpc.publicnode.com"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/mars-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 3169377 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Migaloo/migaloo-starter/project-old.yaml b/Migaloo/migaloo-starter/project-old.yaml new file mode 100644 index 000000000..3ac4cca8b --- /dev/null +++ b/Migaloo/migaloo-starter/project-old.yaml @@ -0,0 +1,58 @@ +specVersion: 1.0.0 +name: migaloo-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Migaloo) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: migaloo-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://migaloo-rpc.cosmosrescue.com"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/migaloo-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 3082328 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Neutron/neutron-starter/project-old.yaml b/Neutron/neutron-starter/project-old.yaml new file mode 100644 index 000000000..53441c9e3 --- /dev/null +++ b/Neutron/neutron-starter/project-old.yaml @@ -0,0 +1,62 @@ +specVersion: 1.0.0 +name: neutron-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Neutron) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: neutron-1 + # This endpoint must be a public non-pruned archive node + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: + [ + "https://rpc-kralum.neutron-1.neutron.org", + "https://neutron-rpc.lavenderfive.com", + "https://rpc-neutron.whispernode.com", + ] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + # dictionary: "https://api.subquery.network/sq/subquery/cosmos-neutron-dictionary" + # chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + # cosmwasm.wasm.v1.MsgSetContractMetadata: + # file: ./proto/archway/rewards/v1/tx.proto + # messages: + #- MsgSetContractMetadata +dataSources: + - kind: cosmos/Runtime + startBlock: 1 # This contract was instantiated at genesis + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + # - handler: handleEvent + # kind: cosmos/EventHandler + # filter: + # type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # contractCall field can be specified here too + # values: # A set of key/value pairs that are present in the message data + # contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" + - handler: handleAirdropClaim + kind: cosmos/MessageHandler + filter: + # Filter to only messages with the MsgSetContractMetadata function call + # e.g. https://www.mintscan.io/neutron/txs/156FE31585BD75E06EE337CEA908C37EA0434CC49943B4860E7AABE2475B6B01?height=1437614 + type: "/cosmwasm.wasm.v1.MsgExecuteContract" + contractCall: "claim" + values: # A set of key/value pairs that are present in the message data + # This is the neutron airdrop contract + contract: "neutron198sxsrjvt2v2lln2ajn82ks76k97mj72mtgl7309jehd0vy8rezs7e6c56" diff --git a/OKX/okx-starter/project-old.yaml b/OKX/okx-starter/project-old.yaml new file mode 100644 index 000000000..aabaeae41 --- /dev/null +++ b/OKX/okx-starter/project-old.yaml @@ -0,0 +1,59 @@ +specVersion: 1.0.0 + +name: okx-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-ethereum" + version: "*" + query: + name: "@subql/query" + version: "*" +description: "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Etheruem API" +repository: "https://github.com/subquery/cosmos-subql-starter/tree/main/Cronos/cronos-evm-starter-via-eth" +schema: + file: ./schema.graphql +network: + chainId: "66" + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + # Take a look here for some Cronos endpoints https://moonflow.solutions/rpc-servers + endpoint: ["https://exchainrpc.okex.org/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + # dictionary: "https://api.subquery.network/sq/subquery/cosmos-okx-dictionary" +dataSources: + - kind: ethereum/Runtime + startBlock: 2348876 # Block that this contract was created + options: + abi: erc20 + address: "0x382bb369d343125bfb2117af9c149795c6c65c50" # USDT https://www.oklink.com/en/okc/address/0x382bb369d343125bfb2117af9c149795c6c65c50 + assets: + erc20: + file: "erc20.abi.json" + mapping: + file: "./dist/index.js" + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: ethereum/BlockHandler + - handler: handleTransaction + kind: ethereum/TransactionHandler + filter: + ## The function can either be the function fragment or signature + ## https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment + # function: '0x095ea7b3' + # function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' + function: approve(address spender, uint256 value) + - handler: handleLog + kind: ethereum/LogHandler + filter: + topics: + # The topics filter follows the Ethereum JSON-PRC log filters + # https://docs.ethers.io/v5/concepts/events + # Example valid values: + # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' + # - Transfer(address,address,u256) + - Transfer(address from, address to, uint256 value) + # address: "0x60781C2586D68229fde47564546784ab3fACA982" diff --git a/Omniflixhub/omniflixhub-starter/project-old.yaml b/Omniflixhub/omniflixhub-starter/project-old.yaml new file mode 100644 index 000000000..a83411824 --- /dev/null +++ b/Omniflixhub/omniflixhub-starter/project-old.yaml @@ -0,0 +1,58 @@ +specVersion: 1.0.0 +name: omniflixhub-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: omniflixhub-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://omniflix.rpc.stake2.me"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/omniflixhub-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 8279252 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Osmosis/osmosis-starter/project-old.yaml b/Osmosis/osmosis-starter/project-old.yaml new file mode 100644 index 000000000..ba9db1f14 --- /dev/null +++ b/Osmosis/osmosis-starter/project-old.yaml @@ -0,0 +1,59 @@ +specVersion: 1.0.0 +name: osmosis-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos + (Osmosis) based SubQuery project. This Cosmos Example Project indexes all swaps on Osmosis' on chain DEX +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: osmosis-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime. + # This is a public node that is rate limited, which will affect indexing speed. + # When developing your project we strongly suggest getting a private API key. + endpoint: ["https://osmosis.api.onfinality.io/public"] + dictionary: "https://api.subquery.network/sq/subquery/cosmos-osmosis-dictionary" + chainTypes: + osmosis.gamm.v1beta1: + file: "./proto/osmosis/gamm/v1beta1/tx.proto" + messages: + - MsgSwapExactAmountIn + osmosis.poolmanager.v1beta1: # needed by MsgSwapExactAmountIn + file: "./proto/osmosis/poolmanager/v1beta1/swap_route.proto" + messages: + - SwapAmountInRoute + cosmos.base.v1beta1: # needed by MsgSwapExactAmountIn + file: "./proto/cosmos/base/v1beta1/coin.proto" + messages: + - "Coin" +dataSources: + - kind: cosmos/Runtime + startBlock: 9798050 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every transaction + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + # - handler: handleEvent + # kind: cosmos/EventHandler + # filter: + # type: token_swapped + # messageFilter: + # type: /osmosis.gamm.v1beta1.MsgSwapExactAmountIn + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /osmosis.gamm.v1beta1.MsgSwapExactAmountIn diff --git a/Persistence/persistence-starter/project-old.yaml b/Persistence/persistence-starter/project-old.yaml new file mode 100644 index 000000000..a1f5ae292 --- /dev/null +++ b/Persistence/persistence-starter/project-old.yaml @@ -0,0 +1,45 @@ +specVersion: 1.0.0 +name: persistence-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Persistence) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: core-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: #CIRCUMVENTING VIA ORDER + file: ./proto/cosmos/distribution/v1beta1/tx.proto + messages: + - MsgWithdrawDelegatorReward +dataSources: + - kind: cosmos/Runtime + startBlock: 10737679 + mapping: + file: ./dist/index.js + handlers: + #- handler: handleMessage + # kind: cosmos/MessageHandler + # filter: + # type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward + - handler: handleEvent + kind: cosmos/EventHandler + # An example of https://www.mintscan.io/comdex/txs/6DB31FF17697FDB422EC885E184917C3EFAE1D522E47C654A093B6C7A62AD94D + filter: + type: coin_spent + messageFilter: + type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward diff --git a/Sei/sei-starter/project-old.yaml b/Sei/sei-starter/project-old.yaml new file mode 100644 index 000000000..524358a28 --- /dev/null +++ b/Sei/sei-starter/project-old.yaml @@ -0,0 +1,65 @@ +specVersion: 1.0.0 +name: sei-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Sei) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + #chainId: sei-devnet-3 + chainId: atlantic-2 + # This endpoint must be a public non-pruned archive node + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://rpc-sei-testnet.rhinostake.com/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary" + chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + cosmos.bank.v1beta1.MsgSend: + file: ./proto/cosmos/bank/v1beta1/tx.proto + messages: + - MsgSend +dataSources: + - kind: cosmos/Runtime + startBlock: 24596905 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + - handler: handleFundingRateChangeEvent + kind: cosmos/EventHandler + # https://sei.explorers.guru/transaction/9A5D1FB99CDFB03282459355E4C7221D93D9971160AE79E201FA2B2895952878 + filter: + type: wasm-funding-rate-change + messageFilter: + type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # contractCall field can be specified here too + #values: # A set of key/value pairs that are present in the message data + #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" + - handler: handleSpotPriceEvent + kind: cosmos/EventHandler + filter: + type: wasm-spot-price + messageFilter: + type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # - handler: handleMessage + # kind: cosmos/MessageHandler + # filter: + # type: "/cosmwasm.wasm.v1.MsgExecuteContract" + # Filter to only messages with the provide_liquidity function call + #contractCall: "provide_liquidity" # The name of the contract function that was called + #values: # A set of key/value pairs that are present in the message data + #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" diff --git a/Stargaze/stargaze-starter/project-old.yaml b/Stargaze/stargaze-starter/project-old.yaml new file mode 100644 index 000000000..4148f27c2 --- /dev/null +++ b/Stargaze/stargaze-starter/project-old.yaml @@ -0,0 +1,64 @@ +specVersion: 1.0.0 +name: stargaze-subql-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos + (Stargaze) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: stargaze-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["http://nodes.stargaze-1.publicawesome.dev:26657/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-stargaze-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption + publicawesome.stargaze.claim.v1beta1: + file: ./proto/stargaze/claim/v1beta1/tx.proto + messages: + - MsgInitialClaim +dataSources: + - kind: cosmos/Runtime + startBlock: 6000000 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # kind: cosmos/TransactionHandler + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: execute + messageFilter: + type: /cosmwasm.wasm.v1.MsgExecuteContract + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmwasm.wasm.v1.MsgExecuteContract diff --git a/Thorchain/thorchain-starter/project-old.yaml b/Thorchain/thorchain-starter/project-old.yaml new file mode 100644 index 000000000..4b48f8b13 --- /dev/null +++ b/Thorchain/thorchain-starter/project-old.yaml @@ -0,0 +1,62 @@ +specVersion: 1.0.0 +name: thorchain-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (Thorchain) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: thorchain-mainnet-v1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://rpc.ninerealms.com/"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + # dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary" + chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages + thorchain.message.observed.out: # Key is not used, it matches the one above and is inferred from the file + file: ./proto/thorchain/v1/x/thorchain/types/msg_observed_txout.proto + messages: + - MsgObservedTxOut + thorchain.message.deposit: # Key is not used, it matches the one above and is inferred from the file + file: ./proto/thorchain/v1/x/thorchain/types/msg_deposit.proto + messages: + - MsgDeposit + thorchain.types.observed.out: # Key is not used, it matches the one above and is inferred from the file + file: ./proto/thorchain/v1/x/thorchain/types/type_observed_tx.proto + messages: + - ObservedTx + common.Common: # Key is not used, it matches the one above and is inferred from the file + file: ./proto/thorchain/v1/common/common.proto + messages: + - Tx +dataSources: + - kind: cosmos/Runtime + startBlock: 7960001 # This is the lowest height on the current version of Thorchain + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + # - handler: handleEvent + # kind: cosmos/EventHandler + # filter: + # type: swap + # messageFilter: + # type: swap + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /types.MsgDeposit diff --git a/Umee/umee-starter/project-old.yaml b/Umee/umee-starter/project-old.yaml new file mode 100644 index 000000000..b552699cb --- /dev/null +++ b/Umee/umee-starter/project-old.yaml @@ -0,0 +1,58 @@ +specVersion: 1.0.0 +name: umee-starter +version: 0.0.1 +runner: + node: + name: "@subql/node-cosmos" + version: "*" + query: + name: "@subql/query" + version: "*" +description: >- + This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project +repository: "https://github.com/subquery/cosmos-subql-starter" +schema: + file: ./schema.graphql +network: + chainId: umee-1 + # This endpoint must be a public non-pruned archive node + # We recommend providing more than one endpoint for improved reliability, performance, and uptime + # Public nodes may be rate limited, which can affect indexing speed + # When developing your project we suggest getting a private API key + endpoint: ["https://rpc-1.umee.nodes.guru"] + # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/umee-dictionary" + chainTypes: + cosmos.slashing.v1beta1: + file: ./proto/cosmos/slashing/v1beta1/tx.proto + messages: + - MsgUnjail + cosmos.gov.v1beta1: + file: ./proto/cosmos/gov/v1beta1/tx.proto + messages: + - MsgVoteWeighted + cosmos.gov.v1beta1.gov: + file: ./proto/cosmos/gov/v1beta1/gov.proto + messages: + - WeightedVoteOption +dataSources: + - kind: cosmos/Runtime + startBlock: 8148041 + mapping: + file: ./dist/index.js + handlers: + # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to + # - handler: handleBlock + # kind: cosmos/BlockHandler + # Using transaction handlers without filters slows your project down as they can be executed with each and every block + # - handler: handleTransaction + - handler: handleEvent + kind: cosmos/EventHandler + filter: + type: transfer + messageFilter: + type: /cosmos.bank.v1beta1.MsgSend + - handler: handleMessage + kind: cosmos/MessageHandler + filter: + type: /cosmos.bank.v1beta1.MsgSend \ No newline at end of file From ece088e2bd0c30a387b60dbcbe8c2ac372661f5e Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:03:24 +1300 Subject: [PATCH 2/9] Replace project.ts with project.yaml, update postgres version --- .../scripts/ci.package.json | 0 .github/scripts/ci.tsconfig.json | 20 ++++ .github/scripts/copy-ts-config.sh | 13 +++ .github/workflows/pr.yaml | 9 +- Agoric/agoric-starter/.gitignore | 2 +- Agoric/agoric-starter/docker/pg-Dockerfile | 4 +- Agoric/agoric-starter/project.ts | 98 ---------------- .../{project-old.yaml => project.yaml} | 0 Akash/akash-starter/.gitignore | 2 +- Akash/akash-starter/docker/pg-Dockerfile | 4 +- Akash/akash-starter/project.ts | 79 ------------- .../{project-old.yaml => project.yaml} | 0 Archway/archway-starter/.gitignore | 2 +- Archway/archway-starter/docker/pg-Dockerfile | 4 +- Archway/archway-starter/project.ts | 99 ---------------- .../{project-old.yaml => project.yaml} | 0 Axelar/axelar-starter/.gitignore | 2 +- Axelar/axelar-starter/docker/pg-Dockerfile | 4 +- Axelar/axelar-starter/project.ts | 60 ---------- .../{project-old.yaml => project.yaml} | 0 Cheqd/cheqd-starter/.gitignore | 2 +- Cheqd/cheqd-starter/docker/pg-Dockerfile | 4 +- Cheqd/cheqd-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Comdex/comdex-starter/.gitignore | 2 +- Comdex/comdex-starter/docker/pg-Dockerfile | 4 +- Comdex/comdex-starter/project.ts | 72 ------------ .../{project-old.yaml => project.yaml} | 0 CosmosHub/cosmoshub-starter/.gitignore | 2 +- .../cosmoshub-starter/docker/pg-Dockerfile | 4 +- CosmosHub/cosmoshub-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Cronos/cronos-evm-starter-via-eth/.gitignore | 6 +- .../docker/pg-Dockerfile | 2 +- Cronos/cronos-evm-starter-via-eth/project.ts | 84 -------------- .../{project-old.yaml => project.yaml} | 0 Cronos/cronos-evm-starter-via-rpc/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +- Cronos/cronos-evm-starter-via-rpc/project.ts | 107 ------------------ .../{project-old.yaml => project.yaml} | 0 Evmos/evmos-starter/.gitignore | 2 +- Evmos/evmos-starter/docker/pg-Dockerfile | 4 +- Evmos/evmos-starter/project.ts | 91 --------------- .../{project-old.yaml => project.yaml} | 0 Evmos/evmos-testnet-starter/.gitignore | 2 +- .../docker/pg-Dockerfile | 4 +- Evmos/evmos-testnet-starter/project.ts | 91 --------------- .../{project-old.yaml => project.yaml} | 0 Fetch.ai/fetchhub-starter/.gitignore | 2 +- .../fetchhub-starter/docker/pg-Dockerfile | 4 +- Fetch.ai/fetchhub-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Injective/injective-starter/.gitignore | 2 +- .../injective-starter/docker/pg-Dockerfile | 4 +- Injective/injective-starter/project.ts | 75 ------------ .../{project-old.yaml => project.yaml} | 0 Juno/juno-starter/.gitignore | 2 +- Juno/juno-starter/docker/pg-Dockerfile | 4 +- Juno/juno-starter/project.ts | 70 ------------ .../{project-old.yaml => project.yaml} | 0 Kava/kava-starter/.gitignore | 2 +- Kava/kava-starter/docker/pg-Dockerfile | 4 +- Kava/kava-starter/project.ts | 77 ------------- .../{project-old.yaml => project.yaml} | 0 Mars/mars-starter/.gitignore | 2 +- Mars/mars-starter/docker/pg-Dockerfile | 4 +- Mars/mars-starter/project.ts | 92 --------------- .../{project-old.yaml => project.yaml} | 0 Migaloo/migaloo-starter/.gitignore | 2 +- Migaloo/migaloo-starter/docker/pg-Dockerfile | 4 +- Migaloo/migaloo-starter/project.ts | 93 --------------- .../{project-old.yaml => project.yaml} | 0 Neutron/neutron-starter/.gitignore | 2 +- Neutron/neutron-starter/docker/pg-Dockerfile | 4 +- Neutron/neutron-starter/project.ts | 67 ----------- .../{project-old.yaml => project.yaml} | 0 OKX/okx-starter/.gitignore | 6 +- OKX/okx-starter/docker/pg-Dockerfile | 2 +- OKX/okx-starter/project.ts | 86 -------------- .../{project-old.yaml => project.yaml} | 0 Omniflixhub/omniflixhub-starter/.gitignore | 2 +- .../omniflixhub-starter/docker/pg-Dockerfile | 4 +- Omniflixhub/omniflixhub-starter/project.ts | 95 ---------------- .../{project-old.yaml => project.yaml} | 0 Osmosis/osmosis-starter/.gitignore | 2 +- Osmosis/osmosis-starter/docker/pg-Dockerfile | 4 +- Osmosis/osmosis-starter/project.ts | 86 -------------- .../{project-old.yaml => project.yaml} | 0 Persistence/persistence-starter/.gitignore | 2 +- .../persistence-starter/docker/pg-Dockerfile | 4 +- Persistence/persistence-starter/project.ts | 72 ------------ .../{project-old.yaml => project.yaml} | 0 Sei/sei-starter/.gitignore | 2 +- Sei/sei-starter/docker/pg-Dockerfile | 4 +- Sei/sei-starter/project.ts | 85 -------------- .../{project-old.yaml => project.yaml} | 0 Stargaze/stargaze-starter/.gitignore | 2 +- .../stargaze-starter/docker/pg-Dockerfile | 4 +- Stargaze/stargaze-starter/project.ts | 99 ---------------- .../{project-old.yaml => project.yaml} | 0 Thorchain/thorchain-starter/.gitignore | 2 +- .../thorchain-starter/docker/pg-Dockerfile | 4 +- Thorchain/thorchain-starter/project.ts | 89 --------------- .../{project-old.yaml => project.yaml} | 0 Umee/umee-starter/.gitignore | 2 +- Umee/umee-starter/docker/pg-Dockerfile | 4 +- Umee/umee-starter/project.ts | 92 --------------- .../{project-old.yaml => project.yaml} | 0 108 files changed, 121 insertions(+), 2319 deletions(-) rename package.json => .github/scripts/ci.package.json (100%) create mode 100644 .github/scripts/ci.tsconfig.json create mode 100755 .github/scripts/copy-ts-config.sh delete mode 100644 Agoric/agoric-starter/project.ts rename Agoric/agoric-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Akash/akash-starter/project.ts rename Akash/akash-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Archway/archway-starter/project.ts rename Archway/archway-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Axelar/axelar-starter/project.ts rename Axelar/axelar-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Cheqd/cheqd-starter/project.ts rename Cheqd/cheqd-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Comdex/comdex-starter/project.ts rename Comdex/comdex-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 CosmosHub/cosmoshub-starter/project.ts rename CosmosHub/cosmoshub-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Cronos/cronos-evm-starter-via-eth/project.ts rename Cronos/cronos-evm-starter-via-eth/{project-old.yaml => project.yaml} (100%) delete mode 100644 Cronos/cronos-evm-starter-via-rpc/project.ts rename Cronos/cronos-evm-starter-via-rpc/{project-old.yaml => project.yaml} (100%) delete mode 100644 Evmos/evmos-starter/project.ts rename Evmos/evmos-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Evmos/evmos-testnet-starter/project.ts rename Evmos/evmos-testnet-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Fetch.ai/fetchhub-starter/project.ts rename Fetch.ai/fetchhub-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Injective/injective-starter/project.ts rename Injective/injective-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Juno/juno-starter/project.ts rename Juno/juno-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Kava/kava-starter/project.ts rename Kava/kava-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Mars/mars-starter/project.ts rename Mars/mars-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Migaloo/migaloo-starter/project.ts rename Migaloo/migaloo-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Neutron/neutron-starter/project.ts rename Neutron/neutron-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 OKX/okx-starter/project.ts rename OKX/okx-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Omniflixhub/omniflixhub-starter/project.ts rename Omniflixhub/omniflixhub-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Osmosis/osmosis-starter/project.ts rename Osmosis/osmosis-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Persistence/persistence-starter/project.ts rename Persistence/persistence-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Sei/sei-starter/project.ts rename Sei/sei-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Stargaze/stargaze-starter/project.ts rename Stargaze/stargaze-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Thorchain/thorchain-starter/project.ts rename Thorchain/thorchain-starter/{project-old.yaml => project.yaml} (100%) delete mode 100644 Umee/umee-starter/project.ts rename Umee/umee-starter/{project-old.yaml => project.yaml} (100%) diff --git a/package.json b/.github/scripts/ci.package.json similarity index 100% rename from package.json rename to .github/scripts/ci.package.json diff --git a/.github/scripts/ci.tsconfig.json b/.github/scripts/ci.tsconfig.json new file mode 100644 index 000000000..ed617d7ee --- /dev/null +++ b/.github/scripts/ci.tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "esModuleInterop": true, + "declaration": true, + "importHelpers": true, + "resolveJsonModule": true, + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "target": "es2017", + "strict": true + }, + "include": [ + "src/**/*", + "../../node_modules/@subql/types-core/dist/global.d.ts", + "../../node_modules/@subql/types-cosmos/dist/global.d.ts" + ] +} diff --git a/.github/scripts/copy-ts-config.sh b/.github/scripts/copy-ts-config.sh new file mode 100755 index 000000000..938c35264 --- /dev/null +++ b/.github/scripts/copy-ts-config.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# This file copies over a modified TS config that works with workspaces so we can build all projects + +set -e + +for DEST_PATH in ./*/*/; do + + SRC="./github/scripts/ci.tsconfig.json" + DEST="${DEST_PATH}tsconfig.json" + + [ -f "$DEST" ] && cp "$SRC" "$DEST" +done diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 8431e4702..941e09378 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -13,9 +13,12 @@ jobs: uses: actions/setup-node@v2 with: node-version: 18 + - name: setup workspace + run: cp ci.package.json package.json - run: yarn - name: codegen run: yarn codegen - # Need to update tsconfig inputs paths for this to work - # - name: build - # run: yarn build + - name: update tsconfigs for workspace + run: .github/scripts/copy-ts-config.sh + - name: build + run: yarn build diff --git a/Agoric/agoric-starter/.gitignore b/Agoric/agoric-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Agoric/agoric-starter/.gitignore +++ b/Agoric/agoric-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Agoric/agoric-starter/docker/pg-Dockerfile b/Agoric/agoric-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Agoric/agoric-starter/docker/pg-Dockerfile +++ b/Agoric/agoric-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Agoric/agoric-starter/project.ts b/Agoric/agoric-starter/project.ts deleted file mode 100644 index 5e0b9d04e..000000000 --- a/Agoric/agoric-starter/project.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "agoric-starter", - description: - "This project can be use as a starting point for developing your Cosmos agoric based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "agoric-3", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://agoric-rpc.stakely.io"], - dictionary: "https://api.subquery.network/sq/subquery/agoric-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 11628269, - mapping: { - file: "./dist/index.js", - handlers: [ - // { - // Using block handlers slows your project down as they can be executed with each and every block. - // Only use if you need to - // handler: 'handleEvent', - // kind: SubqlCosmosHandlerKind.Block, - // }, - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Agoric/agoric-starter/project-old.yaml b/Agoric/agoric-starter/project.yaml similarity index 100% rename from Agoric/agoric-starter/project-old.yaml rename to Agoric/agoric-starter/project.yaml diff --git a/Akash/akash-starter/.gitignore b/Akash/akash-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Akash/akash-starter/.gitignore +++ b/Akash/akash-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Akash/akash-starter/docker/pg-Dockerfile b/Akash/akash-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Akash/akash-starter/docker/pg-Dockerfile +++ b/Akash/akash-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Akash/akash-starter/project.ts b/Akash/akash-starter/project.ts deleted file mode 100644 index 741924ee4..000000000 --- a/Akash/akash-starter/project.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "akash-starter", - description: - "This project can be use as a starting point for developing your Cosmos Akash based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "akashnet-2", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: [ - "https://rpc-akash.ecostake.com:443", - "https://rpc.akashnet.net:443", - ], - // dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary", - chaintypes: new Map([ - [ - "akash.staking.v1beta3", - { - file: "./proto/akash/staking/v1beta3/params.proto", - messages: ["Params"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 11364001, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleReward", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "withdraw_rewards", - messageFilter: { - type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - }, - /* - contractCall field can be specified here too - values: # A set of key/value pairs that are present in the message data - contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - */ - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Akash/akash-starter/project-old.yaml b/Akash/akash-starter/project.yaml similarity index 100% rename from Akash/akash-starter/project-old.yaml rename to Akash/akash-starter/project.yaml diff --git a/Archway/archway-starter/.gitignore b/Archway/archway-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Archway/archway-starter/.gitignore +++ b/Archway/archway-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Archway/archway-starter/docker/pg-Dockerfile b/Archway/archway-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Archway/archway-starter/docker/pg-Dockerfile +++ b/Archway/archway-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Archway/archway-starter/project.ts b/Archway/archway-starter/project.ts deleted file mode 100644 index 05049deeb..000000000 --- a/Archway/archway-starter/project.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "archway-starter", - description: - " This project can be use as a starting point for developing your Cosmos (Archway) based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "archway-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: [ - "https://rpc.mainnet.archway.io:443", - // "https://rpc-archway.cosmos-spaces.cloud", - // "https://rpc-1.archway.nodes.guru", - ], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://api.subquery.network/sq/subquery/cosmos-archway-dictionary" - chaintypes: new Map([ - [ - "cosmwasm.wasm.v1.MsgSetContractMetadata", - { - file: "./proto/archway/rewards/v1/tx.proto", - messages: ["MsgSetContractMetadata"], - }, - ], - [ - "cosmwasm.wasm.v1.ContractMetadata", - { - file: "./proto/archway/rewards/v1/rewards.proto", - messages: ["ContractMetadata"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 1338, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleRewardsWithdrawEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "archway.rewards.v1.RewardsWithdrawEvent", - messageFilter: { - type: "/archway.rewards.v1.MsgWithdrawRewards", - }, - /* - contractCall field can be specified here too - values: # A set of key/value pairs that are present in the message data - contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - */ - }, - }, - { - handler: "handleSetContractMetadata", - kind: SubqlCosmosHandlerKind.Message, - filter: { - /* - Filter to only messages with the MsgSetContractMetadata function call - e.g. https://archway.explorers.guru/transaction/EBEE24728FCDA79EF167625D66F438236ED17579CAA7229A562C5AB84608B5A4 - */ - type: "/archway.rewards.v1.MsgSetContractMetadata", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Archway/archway-starter/project-old.yaml b/Archway/archway-starter/project.yaml similarity index 100% rename from Archway/archway-starter/project-old.yaml rename to Archway/archway-starter/project.yaml diff --git a/Axelar/axelar-starter/.gitignore b/Axelar/axelar-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Axelar/axelar-starter/.gitignore +++ b/Axelar/axelar-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Axelar/axelar-starter/docker/pg-Dockerfile b/Axelar/axelar-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Axelar/axelar-starter/docker/pg-Dockerfile +++ b/Axelar/axelar-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Axelar/axelar-starter/project.ts b/Axelar/axelar-starter/project.ts deleted file mode 100644 index 6f4f7f2bf..000000000 --- a/Axelar/axelar-starter/project.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "axelar-starter", - description: - " This project can be use as a starting point for developing your Cosmos Axelar based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "axelar-dojo-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://axelar-archrpc.chainode.tech/"], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - // dictionary: "https://api.subquery.network/sq/subquery/axelar-hub-dictionary" - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5262, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "depositConfirmation", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Axelar/axelar-starter/project-old.yaml b/Axelar/axelar-starter/project.yaml similarity index 100% rename from Axelar/axelar-starter/project-old.yaml rename to Axelar/axelar-starter/project.yaml diff --git a/Cheqd/cheqd-starter/.gitignore b/Cheqd/cheqd-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Cheqd/cheqd-starter/.gitignore +++ b/Cheqd/cheqd-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Cheqd/cheqd-starter/docker/pg-Dockerfile b/Cheqd/cheqd-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Cheqd/cheqd-starter/docker/pg-Dockerfile +++ b/Cheqd/cheqd-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Cheqd/cheqd-starter/project.ts b/Cheqd/cheqd-starter/project.ts deleted file mode 100644 index 79f756ad9..000000000 --- a/Cheqd/cheqd-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cheqd-starter", - description: - " This project can be use as a starting point for developing your Cosmos cheqd based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "cheqd-mainnet-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc.cheqd.nodestake.top"], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cheqd-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 9758950, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Cheqd/cheqd-starter/project-old.yaml b/Cheqd/cheqd-starter/project.yaml similarity index 100% rename from Cheqd/cheqd-starter/project-old.yaml rename to Cheqd/cheqd-starter/project.yaml diff --git a/Comdex/comdex-starter/.gitignore b/Comdex/comdex-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Comdex/comdex-starter/.gitignore +++ b/Comdex/comdex-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Comdex/comdex-starter/docker/pg-Dockerfile b/Comdex/comdex-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Comdex/comdex-starter/docker/pg-Dockerfile +++ b/Comdex/comdex-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Comdex/comdex-starter/project.ts b/Comdex/comdex-starter/project.ts deleted file mode 100644 index 616427dd8..000000000 --- a/Comdex/comdex-starter/project.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "comdex-starter", - description: - "This project can be use as a starting point for developing your Cosmos Comdex based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "comdex-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-comdex.zenchainlabs.io/"], - chaintypes: new Map([ - // This feature allows support for any Cosmos chain by importing the correct protobuf messages - [ - "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - { - //CIRCUMVENTING VIA ORDER - file: "./proto/cosmos/distribution/v1beta1/tx.proto", - messages: ["MsgWithdrawDelegatorReward"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 1, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "coin_spent", - messageFilter: { - type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Comdex/comdex-starter/project-old.yaml b/Comdex/comdex-starter/project.yaml similarity index 100% rename from Comdex/comdex-starter/project-old.yaml rename to Comdex/comdex-starter/project.yaml diff --git a/CosmosHub/cosmoshub-starter/.gitignore b/CosmosHub/cosmoshub-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/CosmosHub/cosmoshub-starter/.gitignore +++ b/CosmosHub/cosmoshub-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/CosmosHub/cosmoshub-starter/docker/pg-Dockerfile b/CosmosHub/cosmoshub-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/CosmosHub/cosmoshub-starter/docker/pg-Dockerfile +++ b/CosmosHub/cosmoshub-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/CosmosHub/cosmoshub-starter/project.ts b/CosmosHub/cosmoshub-starter/project.ts deleted file mode 100644 index f4925a8a0..000000000 --- a/CosmosHub/cosmoshub-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cosmoshub-starter", - description: - "This project can be use as a starting point for developing your Cosmos CosmosHub based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "cosmoshub-4", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://cosmos-mainnet-archive.allthatnode.com:26657"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5200791, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/CosmosHub/cosmoshub-starter/project-old.yaml b/CosmosHub/cosmoshub-starter/project.yaml similarity index 100% rename from CosmosHub/cosmoshub-starter/project-old.yaml rename to CosmosHub/cosmoshub-starter/project.yaml diff --git a/Cronos/cronos-evm-starter-via-eth/.gitignore b/Cronos/cronos-evm-starter-via-eth/.gitignore index 040e1989c..39161a936 100644 --- a/Cronos/cronos-evm-starter-via-eth/.gitignore +++ b/Cronos/cronos-evm-starter-via-eth/.gitignore @@ -1,3 +1,4 @@ + # These are some examples of commonly ignored file patterns. # You should customize this list as applicable to your project. # Learn more about .gitignore: @@ -27,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ @@ -54,4 +55,5 @@ Thumbs.db *.mov *.wmv -.data \ No newline at end of file +.data +dist diff --git a/Cronos/cronos-evm-starter-via-eth/docker/pg-Dockerfile b/Cronos/cronos-evm-starter-via-eth/docker/pg-Dockerfile index bb6537ff0..1f5594e66 100644 --- a/Cronos/cronos-evm-starter-via-eth/docker/pg-Dockerfile +++ b/Cronos/cronos-evm-starter-via-eth/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' diff --git a/Cronos/cronos-evm-starter-via-eth/project.ts b/Cronos/cronos-evm-starter-via-eth/project.ts deleted file mode 100644 index feb0cd1d7..000000000 --- a/Cronos/cronos-evm-starter-via-eth/project.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { - EthereumProject, - EthereumDatasourceKind, - EthereumHandlerKind, -} from "@subql/types-ethereum"; - -// Can expand the Datasource processor types via the generic param -const project: EthereumProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cronos-evm-starter-via-eth", - description: - "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Etheruem API", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - chainId: "25", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://evm.cronos.org/"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary", - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // Contract creation of Pangolin Token https://snowtrace.io/tx/0xfab84552e997848a43f05e440998617d641788d355e3195b6882e9006996d8f9 - startBlock: 446, - options: { - // Must be a key of assets - abi: "erc20", - address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23", - // Wrapped CRO https://cronos.org/explorer/address/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23 - }, - assets: new Map([["erc20", { file: "./erc20.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Call, - handler: "handleTransaction", - filter: { - /** - * The function can either be the function fragment or signature - * function: '0x095ea7b3' - * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - */ - function: "approve(address guy, uint256 wad)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - * address: "0x60781C2586D68229fde47564546784ab3fACA982" - */ - topics: ["Transfer(address src, address dst, uint256 wad)"], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -export default project; diff --git a/Cronos/cronos-evm-starter-via-eth/project-old.yaml b/Cronos/cronos-evm-starter-via-eth/project.yaml similarity index 100% rename from Cronos/cronos-evm-starter-via-eth/project-old.yaml rename to Cronos/cronos-evm-starter-via-eth/project.yaml diff --git a/Cronos/cronos-evm-starter-via-rpc/.gitignore b/Cronos/cronos-evm-starter-via-rpc/.gitignore index af37ddbf4..39161a936 100644 --- a/Cronos/cronos-evm-starter-via-rpc/.gitignore +++ b/Cronos/cronos-evm-starter-via-rpc/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Cronos/cronos-evm-starter-via-rpc/docker/pg-Dockerfile b/Cronos/cronos-evm-starter-via-rpc/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Cronos/cronos-evm-starter-via-rpc/docker/pg-Dockerfile +++ b/Cronos/cronos-evm-starter-via-rpc/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Cronos/cronos-evm-starter-via-rpc/project.ts b/Cronos/cronos-evm-starter-via-rpc/project.ts deleted file mode 100644 index 7194fa0b9..000000000 --- a/Cronos/cronos-evm-starter-via-rpc/project.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { CosmosProject } from "@subql/types-cosmos"; -import { EthermintEvmDatasource } from "@subql/ethermint-evm-processor"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "cronos-rpc-starter", - description: - "This project can be use as a starting point for developing your Cosmos Cronos based SubQuery project via Cosmos RPC API", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "cronosmainnet_25-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc.cronos.org/"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary", - chaintypes: new Map([ - [ - "ethermint.evm.v1", - { - file: "./proto/ethermint/evm/v1/tx.proto", - messages: [ - "MsgEthereumTx", - "LegacyTx", - "AccessListTx", - "DynamicFeeTx", - ], - }, - ], - [ - "ethermint.evm.v12", - { - file: "./proto/ethermint/evm/v1/evm.proto", - messages: ["AccessTuple"], - }, - ], - [ - "google.protobuf", - { - file: "./proto/google/protobuf/any.proto", - messages: ["Any"], - }, - ], - ]), - }, - dataSources: [ - { - kind: "cosmos/EthermintEvm", - startBlock: 446, - processor: { - file: "./node_modules/@subql/ethermint-evm-processor/dist/bundle.js", - options: { - abi: "erc20", - address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23", // Wrapped CRO - }, - }, - assets: new Map([["erc20", { file: "./erc20.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEthermintEvmCall", - kind: "cosmos/EthermintEvmCall", - filter: { - // Either Function Signature strings or the function `sighash` to filter the function called on the contract - // https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment - method: "approve(address guy, uint256 wad)", - }, - }, - { - handler: "handleEthermintEvmEvent", - kind: "cosmos/EthermintEvmEvent", - filter: { - // The topics filter follows the Ethereum JSON-PRC log filters - // https://docs.ethers.io/v5/concepts/events - // Example valid values: - // - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' - // - Transfer(address,address,u256) - topics: ["Transfer(address src, address dst, uint256 wad)"], - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Cronos/cronos-evm-starter-via-rpc/project-old.yaml b/Cronos/cronos-evm-starter-via-rpc/project.yaml similarity index 100% rename from Cronos/cronos-evm-starter-via-rpc/project-old.yaml rename to Cronos/cronos-evm-starter-via-rpc/project.yaml diff --git a/Evmos/evmos-starter/.gitignore b/Evmos/evmos-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Evmos/evmos-starter/.gitignore +++ b/Evmos/evmos-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Evmos/evmos-starter/docker/pg-Dockerfile b/Evmos/evmos-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Evmos/evmos-starter/docker/pg-Dockerfile +++ b/Evmos/evmos-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Evmos/evmos-starter/project.ts b/Evmos/evmos-starter/project.ts deleted file mode 100644 index a7dd540bc..000000000 --- a/Evmos/evmos-starter/project.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Evmos-starter", - description: - "This project can be use as a starting point for developing your Cosmos Evmos based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "evmos_9001-2", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://evmos.api.onfinality.io/public"], - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 58701, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Evmos/evmos-starter/project-old.yaml b/Evmos/evmos-starter/project.yaml similarity index 100% rename from Evmos/evmos-starter/project-old.yaml rename to Evmos/evmos-starter/project.yaml diff --git a/Evmos/evmos-testnet-starter/.gitignore b/Evmos/evmos-testnet-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Evmos/evmos-testnet-starter/.gitignore +++ b/Evmos/evmos-testnet-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Evmos/evmos-testnet-starter/docker/pg-Dockerfile b/Evmos/evmos-testnet-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Evmos/evmos-testnet-starter/docker/pg-Dockerfile +++ b/Evmos/evmos-testnet-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Evmos/evmos-testnet-starter/project.ts b/Evmos/evmos-testnet-starter/project.ts deleted file mode 100644 index 971f0de7a..000000000 --- a/Evmos/evmos-testnet-starter/project.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "emvos-testnet-starter", - description: - "This project can be use as a starting point for developing your Cosmos Evmos Testnet based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "evmos_9000-4", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://eth.bd.evmos.dev"], - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 58701, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Evmos/evmos-testnet-starter/project-old.yaml b/Evmos/evmos-testnet-starter/project.yaml similarity index 100% rename from Evmos/evmos-testnet-starter/project-old.yaml rename to Evmos/evmos-testnet-starter/project.yaml diff --git a/Fetch.ai/fetchhub-starter/.gitignore b/Fetch.ai/fetchhub-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Fetch.ai/fetchhub-starter/.gitignore +++ b/Fetch.ai/fetchhub-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Fetch.ai/fetchhub-starter/docker/pg-Dockerfile b/Fetch.ai/fetchhub-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Fetch.ai/fetchhub-starter/docker/pg-Dockerfile +++ b/Fetch.ai/fetchhub-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Fetch.ai/fetchhub-starter/project.ts b/Fetch.ai/fetchhub-starter/project.ts deleted file mode 100644 index 8ca7955e9..000000000 --- a/Fetch.ai/fetchhub-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Fetchhub-starter", - description: - "This project can be use as a starting point for developing your Cosmos Fetchhub based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "fetchhub-4", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-fetchhub.fetch.ai"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-fetch-ai-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5300201, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Fetch.ai/fetchhub-starter/project-old.yaml b/Fetch.ai/fetchhub-starter/project.yaml similarity index 100% rename from Fetch.ai/fetchhub-starter/project-old.yaml rename to Fetch.ai/fetchhub-starter/project.yaml diff --git a/Injective/injective-starter/.gitignore b/Injective/injective-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Injective/injective-starter/.gitignore +++ b/Injective/injective-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Injective/injective-starter/docker/pg-Dockerfile b/Injective/injective-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Injective/injective-starter/docker/pg-Dockerfile +++ b/Injective/injective-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Injective/injective-starter/project.ts b/Injective/injective-starter/project.ts deleted file mode 100644 index 3463d1a23..000000000 --- a/Injective/injective-starter/project.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Injective-starter", - description: - "This project can be use as a starting point for developing your Cosmos Injective based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "injective-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["http://archival-sentry-equinix-2.injective.dev:26657"], - chaintypes: new Map([ - [ - // Key is not used, it matches the one above and is inferred from the fil - "injective.exchange.v1beta1.MsgCreateSpotLimitOrder", - { - file: "./proto/injective/exchange/v1beta1/tx.proto", - messages: ["MsgCreateSpotLimitOrder"], - }, - ], - [ - "injective.exchange.v1beta1.SpotOrder", - { - file: "./proto/injective/exchange/v1beta1/exchange.proto", - messages: ["SpotOrder"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 22186475, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/injective.exchange.v1beta1.MsgCreateSpotLimitOrder", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Injective/injective-starter/project-old.yaml b/Injective/injective-starter/project.yaml similarity index 100% rename from Injective/injective-starter/project-old.yaml rename to Injective/injective-starter/project.yaml diff --git a/Juno/juno-starter/.gitignore b/Juno/juno-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Juno/juno-starter/.gitignore +++ b/Juno/juno-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Juno/juno-starter/docker/pg-Dockerfile b/Juno/juno-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Juno/juno-starter/docker/pg-Dockerfile +++ b/Juno/juno-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Juno/juno-starter/project.ts b/Juno/juno-starter/project.ts deleted file mode 100644 index cd75981f2..000000000 --- a/Juno/juno-starter/project.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "juno-starter", - description: - "This project can be use as a starting point for developing your Cosmos juno based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "juno-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-juno.whispernode.com"], - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-juno-dictionary", - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 9700000, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "execute", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Juno/juno-starter/project-old.yaml b/Juno/juno-starter/project.yaml similarity index 100% rename from Juno/juno-starter/project-old.yaml rename to Juno/juno-starter/project.yaml diff --git a/Kava/kava-starter/.gitignore b/Kava/kava-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Kava/kava-starter/.gitignore +++ b/Kava/kava-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Kava/kava-starter/docker/pg-Dockerfile b/Kava/kava-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Kava/kava-starter/docker/pg-Dockerfile +++ b/Kava/kava-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Kava/kava-starter/project.ts b/Kava/kava-starter/project.ts deleted file mode 100644 index c392746de..000000000 --- a/Kava/kava-starter/project.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "kava-starter", - description: - "This project can be use as a starting point for developing your Cosmos kava based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "kava_2222-10", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://kava-rpc.ibs.team"], - chaintypes: new Map([ - [ - "cosmos.bank.v1beta1.MsgSend", - { - file: "./proto/cosmos/bank/v1beta1/tx.proto", - messages: ["MsgSend"], - }, - ], - [ - "cosmos.base.v1beta1.Coin", - { - file: "./proto/cosmos/base/v1beta1/coin.proto", - messages: ["Coin"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 5397233, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "coin_spent", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Kava/kava-starter/project-old.yaml b/Kava/kava-starter/project.yaml similarity index 100% rename from Kava/kava-starter/project-old.yaml rename to Kava/kava-starter/project.yaml diff --git a/Mars/mars-starter/.gitignore b/Mars/mars-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Mars/mars-starter/.gitignore +++ b/Mars/mars-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Mars/mars-starter/docker/pg-Dockerfile b/Mars/mars-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Mars/mars-starter/docker/pg-Dockerfile +++ b/Mars/mars-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Mars/mars-starter/project.ts b/Mars/mars-starter/project.ts deleted file mode 100644 index c357647e7..000000000 --- a/Mars/mars-starter/project.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Mars-starter", - description: - "This project can be use as a starting point for developing your Cosmos Mars based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "mars-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://mars-rpc.publicnode.com"], - dictionary: "https://api.subquery.network/sq/subquery/mars-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 3169377, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Mars/mars-starter/project-old.yaml b/Mars/mars-starter/project.yaml similarity index 100% rename from Mars/mars-starter/project-old.yaml rename to Mars/mars-starter/project.yaml diff --git a/Migaloo/migaloo-starter/.gitignore b/Migaloo/migaloo-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Migaloo/migaloo-starter/.gitignore +++ b/Migaloo/migaloo-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Migaloo/migaloo-starter/docker/pg-Dockerfile b/Migaloo/migaloo-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Migaloo/migaloo-starter/docker/pg-Dockerfile +++ b/Migaloo/migaloo-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Migaloo/migaloo-starter/project.ts b/Migaloo/migaloo-starter/project.ts deleted file mode 100644 index ff2ca051e..000000000 --- a/Migaloo/migaloo-starter/project.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "migaloo-starter", - description: - "This project can be use as a starting point for developing your Cosmos migaloo based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "migaloo-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://migaloo-rpc.cosmosrescue.com"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/migaloo-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 3082328, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Migaloo/migaloo-starter/project-old.yaml b/Migaloo/migaloo-starter/project.yaml similarity index 100% rename from Migaloo/migaloo-starter/project-old.yaml rename to Migaloo/migaloo-starter/project.yaml diff --git a/Neutron/neutron-starter/.gitignore b/Neutron/neutron-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Neutron/neutron-starter/.gitignore +++ b/Neutron/neutron-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Neutron/neutron-starter/docker/pg-Dockerfile b/Neutron/neutron-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Neutron/neutron-starter/docker/pg-Dockerfile +++ b/Neutron/neutron-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Neutron/neutron-starter/project.ts b/Neutron/neutron-starter/project.ts deleted file mode 100644 index f3867bb04..000000000 --- a/Neutron/neutron-starter/project.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "neutron-starter", - description: - "This project can be use as a starting point for developing your Cosmos neutron based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "neutron-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: [ - "https://rpc-kralum.neutron-1.neutron.org", - "https://neutron-rpc.lavenderfive.com", - "https://rpc-neutron.whispernode.com", - ], - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 1, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleAirdropClaim", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - contractCall: "claim", - values: { - contract: - "neutron198sxsrjvt2v2lln2ajn82ks76k97mj72mtgl7309jehd0vy8rezs7e6c56", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Neutron/neutron-starter/project-old.yaml b/Neutron/neutron-starter/project.yaml similarity index 100% rename from Neutron/neutron-starter/project-old.yaml rename to Neutron/neutron-starter/project.yaml diff --git a/OKX/okx-starter/.gitignore b/OKX/okx-starter/.gitignore index 040e1989c..39161a936 100644 --- a/OKX/okx-starter/.gitignore +++ b/OKX/okx-starter/.gitignore @@ -1,3 +1,4 @@ + # These are some examples of commonly ignored file patterns. # You should customize this list as applicable to your project. # Learn more about .gitignore: @@ -27,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ @@ -54,4 +55,5 @@ Thumbs.db *.mov *.wmv -.data \ No newline at end of file +.data +dist diff --git a/OKX/okx-starter/docker/pg-Dockerfile b/OKX/okx-starter/docker/pg-Dockerfile index bb6537ff0..1f5594e66 100644 --- a/OKX/okx-starter/docker/pg-Dockerfile +++ b/OKX/okx-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' diff --git a/OKX/okx-starter/project.ts b/OKX/okx-starter/project.ts deleted file mode 100644 index 551a34b24..000000000 --- a/OKX/okx-starter/project.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { - EthereumProject, - EthereumDatasourceKind, - EthereumHandlerKind, -} from "@subql/types-ethereum"; - -// Can expand the Datasource processor types via the generic param -const project: EthereumProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "OKX-starter-via-eth", - description: - "This project can be use as a starting point for developing your Cosmos (OKX) based SubQuery project via the Etheruem API", - runner: { - node: { - name: "@subql/node-ethereum", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - chainId: "66", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://exchainrpc.okex.org/"], - // dictionary: "https://api.subquery.network/sq/subquery/cosmos-okx-dictionary" - }, - dataSources: [ - { - kind: EthereumDatasourceKind.Runtime, - // Contract creation of Pangolin Token https://snowtrace.io/tx/0xfab84552e997848a43f05e440998617d641788d355e3195b6882e9006996d8f9 - startBlock: 446, - options: { - // Must be a key of assets - abi: "erc20", - address: "0x382bb369d343125bfb2117af9c149795c6c65c50", // USDT https://www.oklink.com/en/okc/address/0x382bb369d343125bfb2117af9c149795c6c65c50 - }, - assets: new Map([["erc20", { file: "./erc20.abi.json" }]]), - mapping: { - file: "./dist/index.js", - handlers: [ - { - kind: EthereumHandlerKind.Call, - handler: "handleTransaction", - filter: { - /** - * The function can either be the function fragment or signature - * function: '0x095ea7b3' - * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - */ - function: "approve(address spender, uint256 value)", - }, - }, - { - kind: EthereumHandlerKind.Event, - handler: "handleLog", - filter: { - /** - * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ - # The topics filter follows the Ethereum JSON-PRC log filters - # https://docs.ethers.io/v5/concepts/events - # Example valid values: - # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' - # - Transfer(address,address,u256) - */ - topics: ["Transfer(address from, address to, uint256 value)"], - }, - }, - ], - }, - }, - ], - repository: "https://github.com/subquery/ethereum-subql-starter", -}; - -export default project; diff --git a/OKX/okx-starter/project-old.yaml b/OKX/okx-starter/project.yaml similarity index 100% rename from OKX/okx-starter/project-old.yaml rename to OKX/okx-starter/project.yaml diff --git a/Omniflixhub/omniflixhub-starter/.gitignore b/Omniflixhub/omniflixhub-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Omniflixhub/omniflixhub-starter/.gitignore +++ b/Omniflixhub/omniflixhub-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Omniflixhub/omniflixhub-starter/docker/pg-Dockerfile b/Omniflixhub/omniflixhub-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Omniflixhub/omniflixhub-starter/docker/pg-Dockerfile +++ b/Omniflixhub/omniflixhub-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Omniflixhub/omniflixhub-starter/project.ts b/Omniflixhub/omniflixhub-starter/project.ts deleted file mode 100644 index a95f5e998..000000000 --- a/Omniflixhub/omniflixhub-starter/project.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "omniflixhub-starter", - description: - "This project can be use as a starting point for developing your Cosmos omniflixhub based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "omniflixhub-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://omniflix.rpc.stake2.me"], - - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://api.subquery.network/sq/subquery/omniflixhub-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 8279252, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Omniflixhub/omniflixhub-starter/project-old.yaml b/Omniflixhub/omniflixhub-starter/project.yaml similarity index 100% rename from Omniflixhub/omniflixhub-starter/project-old.yaml rename to Omniflixhub/omniflixhub-starter/project.yaml diff --git a/Osmosis/osmosis-starter/.gitignore b/Osmosis/osmosis-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Osmosis/osmosis-starter/.gitignore +++ b/Osmosis/osmosis-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Osmosis/osmosis-starter/docker/pg-Dockerfile b/Osmosis/osmosis-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Osmosis/osmosis-starter/docker/pg-Dockerfile +++ b/Osmosis/osmosis-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Osmosis/osmosis-starter/project.ts b/Osmosis/osmosis-starter/project.ts deleted file mode 100644 index 31d8566f5..000000000 --- a/Osmosis/osmosis-starter/project.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "osmosis-starter", - description: - "This project can be use as a starting point for developing your Cosmos osmosis based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "osmosis-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://osmosis.api.onfinality.io/public"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-osmosis-dictionary", - chaintypes: new Map([ - [ - "osmosis.gamm.v1beta1", - { - file: "./proto/osmosis/gamm/v1beta1/tx.proto", - messages: ["MsgSwapExactAmountIn"], - }, - ], - [ - " osmosis.poolmanager.v1beta1", - { - // needed by MsgSwapExactAmountIn - file: "./proto/osmosis/poolmanager/v1beta1/swap_route.proto", - messages: ["SwapAmountInRoute"], - }, - ], - [ - "cosmos.base.v1beta1", - { - // needed by MsgSwapExactAmountIn - file: "./proto/cosmos/base/v1beta1/coin.proto", - messages: ["Coin"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 9798050, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Osmosis/osmosis-starter/project-old.yaml b/Osmosis/osmosis-starter/project.yaml similarity index 100% rename from Osmosis/osmosis-starter/project-old.yaml rename to Osmosis/osmosis-starter/project.yaml diff --git a/Persistence/persistence-starter/.gitignore b/Persistence/persistence-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Persistence/persistence-starter/.gitignore +++ b/Persistence/persistence-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Persistence/persistence-starter/docker/pg-Dockerfile b/Persistence/persistence-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Persistence/persistence-starter/docker/pg-Dockerfile +++ b/Persistence/persistence-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Persistence/persistence-starter/project.ts b/Persistence/persistence-starter/project.ts deleted file mode 100644 index 9b76f961e..000000000 --- a/Persistence/persistence-starter/project.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "persistence-starter", - description: - "This project can be use as a starting point for developing your Cosmos persistence based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "core-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chaintypes: new Map([ - [ - "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - { - // CIRCUMVENTING VIA ORDER - file: "./proto/cosmos/distribution/v1beta1/tx.proto", - messages: ["MsgWithdrawDelegatorReward"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 10737679, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "coin_spent", - messageFilter: { - type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Persistence/persistence-starter/project-old.yaml b/Persistence/persistence-starter/project.yaml similarity index 100% rename from Persistence/persistence-starter/project-old.yaml rename to Persistence/persistence-starter/project.yaml diff --git a/Sei/sei-starter/.gitignore b/Sei/sei-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Sei/sei-starter/.gitignore +++ b/Sei/sei-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Sei/sei-starter/docker/pg-Dockerfile b/Sei/sei-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Sei/sei-starter/docker/pg-Dockerfile +++ b/Sei/sei-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Sei/sei-starter/project.ts b/Sei/sei-starter/project.ts deleted file mode 100644 index 31354b934..000000000 --- a/Sei/sei-starter/project.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "sei-starter", - description: - "This project can be use as a starting point for developing your Cosmos sei based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "atlantic-2", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-sei-testnet.rhinostake.com/"], - // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: - "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary", - chaintypes: new Map([ - // This feature allows support for any Cosmos chain by importing the correct protobuf messages - [ - "cosmos.bank.v1beta1.MsgSend", - { - file: "./proto/cosmos/bank/v1beta1/tx.proto", - messages: ["MsgSend"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 24596905, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleFundingRateChangeEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - // https://sei.explorers.guru/transaction/9A5D1FB99CDFB03282459355E4C7221D93D9971160AE79E201FA2B2895952878 - type: "wasm-funding-rate-change", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - { - handler: "handleSpotPriceEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "wasm-spot-price", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Sei/sei-starter/project-old.yaml b/Sei/sei-starter/project.yaml similarity index 100% rename from Sei/sei-starter/project-old.yaml rename to Sei/sei-starter/project.yaml diff --git a/Stargaze/stargaze-starter/.gitignore b/Stargaze/stargaze-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Stargaze/stargaze-starter/.gitignore +++ b/Stargaze/stargaze-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Stargaze/stargaze-starter/docker/pg-Dockerfile b/Stargaze/stargaze-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Stargaze/stargaze-starter/docker/pg-Dockerfile +++ b/Stargaze/stargaze-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Stargaze/stargaze-starter/project.ts b/Stargaze/stargaze-starter/project.ts deleted file mode 100644 index ca95b91d2..000000000 --- a/Stargaze/stargaze-starter/project.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "stargaze-starter", - description: - "This project can be use as a starting point for developing your Cosmos persistence based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "stargaze-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"], - // # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - [ - "publicawesome.stargaze.claim.v1beta1", - { - file: "./proto/stargaze/claim/v1beta1/tx.proto", - messages: ["MsgInitialClaim"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 6000000, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "execute", - messageFilter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - }, - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmwasm.wasm.v1.MsgExecuteContract", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Stargaze/stargaze-starter/project-old.yaml b/Stargaze/stargaze-starter/project.yaml similarity index 100% rename from Stargaze/stargaze-starter/project-old.yaml rename to Stargaze/stargaze-starter/project.yaml diff --git a/Thorchain/thorchain-starter/.gitignore b/Thorchain/thorchain-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Thorchain/thorchain-starter/.gitignore +++ b/Thorchain/thorchain-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Thorchain/thorchain-starter/docker/pg-Dockerfile b/Thorchain/thorchain-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Thorchain/thorchain-starter/docker/pg-Dockerfile +++ b/Thorchain/thorchain-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Thorchain/thorchain-starter/project.ts b/Thorchain/thorchain-starter/project.ts deleted file mode 100644 index 1fdffb5b9..000000000 --- a/Thorchain/thorchain-starter/project.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "thorchain-starter", - description: - "This project can be use as a starting point for developing your Cosmos thorchain based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "thorchain-mainnet-v1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc.ninerealms.com/"], - chaintypes: new Map([ - // This feature allows support for any Cosmos chain by importing the correct protobuf messages - [ - "thorchain.message.observed.out", - { - file: "./proto/thorchain/v1/x/thorchain/types/msg_observed_txout.proto", - messages: ["MsgObservedTxOut"], - }, - ], - [ - "thorchain.message.deposit", - { - file: "./proto/thorchain/v1/x/thorchain/types/msg_deposit.proto", - messages: ["MsgDeposit"], - }, - ], - [ - "thorchain.types.observed.out", - { - file: "./proto/thorchain/v1/x/thorchain/types/type_observed_tx.proto", - messages: ["ObservedTx"], - }, - ], - [ - "common.Common", - { - file: "./proto/thorchain/v1/common/common.proto", - messages: ["Tx"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 7960001, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/types.MsgDeposit", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Thorchain/thorchain-starter/project-old.yaml b/Thorchain/thorchain-starter/project.yaml similarity index 100% rename from Thorchain/thorchain-starter/project-old.yaml rename to Thorchain/thorchain-starter/project.yaml diff --git a/Umee/umee-starter/.gitignore b/Umee/umee-starter/.gitignore index af37ddbf4..39161a936 100644 --- a/Umee/umee-starter/.gitignore +++ b/Umee/umee-starter/.gitignore @@ -28,7 +28,7 @@ package-lock.json target/ dist/ src/types -project.yaml +# project.yaml # JetBrains IDE .idea/ diff --git a/Umee/umee-starter/docker/pg-Dockerfile b/Umee/umee-starter/docker/pg-Dockerfile index ab2ace1d6..1f5594e66 100644 --- a/Umee/umee-starter/docker/pg-Dockerfile +++ b/Umee/umee-starter/docker/pg-Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:12-alpine +FROM postgres:16-alpine # Variables needed at runtime to configure postgres and run the initdb scripts ENV POSTGRES_DB 'postgres' @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres' COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/ # Convert line endings to LF -RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh \ No newline at end of file +RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh diff --git a/Umee/umee-starter/project.ts b/Umee/umee-starter/project.ts deleted file mode 100644 index 378ee4dce..000000000 --- a/Umee/umee-starter/project.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { - SubqlCosmosDatasourceKind, - SubqlCosmosHandlerKind, - CosmosProject, -} from "@subql/types-cosmos"; - -// Can expand the Datasource processor types via the genreic param -const project: CosmosProject = { - specVersion: "1.0.0", - version: "0.0.1", - name: "Umee-starter", - description: - "This project can be use as a starting point for developing your Cosmos Umee based SubQuery project", - runner: { - node: { - name: "@subql/node-cosmos", - version: ">=3.0.0", - }, - query: { - name: "@subql/query", - version: "*", - }, - }, - schema: { - file: "./schema.graphql", - }, - network: { - /* The genesis hash of the network (hash of block 0) */ - chainId: "umee-1", - /** - * These endpoint(s) should be non-pruned archive nodes - * Public nodes may be rate limited, which can affect indexing speed - * When developing your project we suggest getting a private API key - * We suggest providing an array of endpoints for increased speed and reliability - */ - endpoint: ["https://rpc-1.umee.nodes.guru"], - dictionary: "https://api.subquery.network/sq/subquery/umee-dictionary", - chaintypes: new Map([ - [ - "cosmos.slashing.v1beta1", - { - file: "./proto/cosmos/slashing/v1beta1/tx.proto", - messages: ["MsgUnjail"], - }, - ], - [ - "cosmos.gov.v1beta1", - { - file: "./proto/cosmos/gov/v1beta1/tx.proto", - messages: ["MsgVoteWeighted"], - }, - ], - [ - "cosmos.gov.v1beta1.gov", - { - file: "./proto/cosmos/gov/v1beta1/gov.proto", - messages: ["WeightedVoteOption"], - }, - ], - ]), - }, - dataSources: [ - { - kind: SubqlCosmosDatasourceKind.Runtime, - startBlock: 8148041, - mapping: { - file: "./dist/index.js", - handlers: [ - { - handler: "handleEvent", - kind: SubqlCosmosHandlerKind.Event, - filter: { - type: "transfer", - messageFilter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - }, - { - handler: "handleMessage", - kind: SubqlCosmosHandlerKind.Message, - filter: { - type: "/cosmos.bank.v1beta1.MsgSend", - }, - }, - ], - }, - }, - ], -}; - -export default project; diff --git a/Umee/umee-starter/project-old.yaml b/Umee/umee-starter/project.yaml similarity index 100% rename from Umee/umee-starter/project-old.yaml rename to Umee/umee-starter/project.yaml From d55072996a1d348b990245aed07852d0f18a3018 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:05:25 +1300 Subject: [PATCH 3/9] Fix CI path --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 941e09378..7d865bb8b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -14,7 +14,7 @@ jobs: with: node-version: 18 - name: setup workspace - run: cp ci.package.json package.json + run: cp .github/scripts/ci.package.json package.json - run: yarn - name: codegen run: yarn codegen From 4dfec9cfc6c30fe00bab63bb381762a08a98d065 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:09:48 +1300 Subject: [PATCH 4/9] Update path --- .github/scripts/copy-ts-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/copy-ts-config.sh b/.github/scripts/copy-ts-config.sh index 938c35264..719e42bdb 100755 --- a/.github/scripts/copy-ts-config.sh +++ b/.github/scripts/copy-ts-config.sh @@ -6,7 +6,7 @@ set -e for DEST_PATH in ./*/*/; do - SRC="./github/scripts/ci.tsconfig.json" + SRC=".github/scripts/ci.tsconfig.json" DEST="${DEST_PATH}tsconfig.json" [ -f "$DEST" ] && cp "$SRC" "$DEST" From ff65129a038c1ccb48465e867dc62bf40ac97734 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:20:02 +1300 Subject: [PATCH 5/9] Update paths --- .github/scripts/copy-ts-config.sh | 2 +- .github/workflows/pr.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/copy-ts-config.sh b/.github/scripts/copy-ts-config.sh index 719e42bdb..433144739 100755 --- a/.github/scripts/copy-ts-config.sh +++ b/.github/scripts/copy-ts-config.sh @@ -6,7 +6,7 @@ set -e for DEST_PATH in ./*/*/; do - SRC=".github/scripts/ci.tsconfig.json" + SRC="./.github/scripts/ci.tsconfig.json" DEST="${DEST_PATH}tsconfig.json" [ -f "$DEST" ] && cp "$SRC" "$DEST" diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 7d865bb8b..cd8793dfc 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -19,6 +19,6 @@ jobs: - name: codegen run: yarn codegen - name: update tsconfigs for workspace - run: .github/scripts/copy-ts-config.sh + run: ./.github/scripts/copy-ts-config.sh - name: build run: yarn build From b56c4ce0bae84d7698b062b48422453b164dd125 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:22:46 +1300 Subject: [PATCH 6/9] Update CI step order --- .github/workflows/pr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index cd8793dfc..9cf868231 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,10 +15,10 @@ jobs: node-version: 18 - name: setup workspace run: cp .github/scripts/ci.package.json package.json + - name: update tsconfigs for workspace + run: ./.github/scripts/copy-ts-config.sh - run: yarn - name: codegen run: yarn codegen - - name: update tsconfigs for workspace - run: ./.github/scripts/copy-ts-config.sh - name: build run: yarn build From 57dd330c38dc8a7146b2b75f580069320dab51a8 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 14:53:43 +1300 Subject: [PATCH 7/9] Fix casing of chainTypes to chaintypes --- .github/workflows/pr.yaml | 1 + Agoric/agoric-starter/project.yaml | 2 +- Akash/akash-starter/project.yaml | 2 +- Archway/archway-starter/project.yaml | 2 +- Cheqd/cheqd-starter/project.yaml | 2 +- Comdex/comdex-starter/project.yaml | 2 +- CosmosHub/cosmoshub-starter/project.yaml | 2 +- Cronos/cronos-evm-starter-via-rpc/project.yaml | 2 +- Evmos/evmos-starter/project.yaml | 4 ++-- Evmos/evmos-testnet-starter/project.yaml | 2 +- Fetch.ai/fetchhub-starter/project.yaml | 2 +- Injective/injective-starter/project.yaml | 2 +- Kava/kava-starter/project.yaml | 2 +- Mars/mars-starter/project.yaml | 2 +- Migaloo/migaloo-starter/project.yaml | 2 +- Omniflixhub/omniflixhub-starter/project.yaml | 2 +- Osmosis/osmosis-starter/project.yaml | 2 +- Persistence/persistence-starter/project.yaml | 2 +- Sei/sei-starter/project.yaml | 2 +- Stargaze/stargaze-starter/project.yaml | 2 +- Thorchain/thorchain-starter/project.yaml | 2 +- Umee/umee-starter/project.yaml | 4 ++-- 22 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 9cf868231..bea8d889e 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,6 +15,7 @@ jobs: 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 diff --git a/Agoric/agoric-starter/project.yaml b/Agoric/agoric-starter/project.yaml index 0d301b820..8473cca6e 100644 --- a/Agoric/agoric-starter/project.yaml +++ b/Agoric/agoric-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://agoric-rpc.stakely.io"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/agoric-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Akash/akash-starter/project.yaml b/Akash/akash-starter/project.yaml index f5fc5774a..819b2c4a1 100644 --- a/Akash/akash-starter/project.yaml +++ b/Akash/akash-starter/project.yaml @@ -25,7 +25,7 @@ network: - https://rpc.akashnet.net:443 # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing # dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary" - chainTypes: + chaintypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages akash.staking.v1beta3: file: ./proto/akash/staking/v1beta3/params.proto diff --git a/Archway/archway-starter/project.yaml b/Archway/archway-starter/project.yaml index 6c1431fe9..9873a0b18 100644 --- a/Archway/archway-starter/project.yaml +++ b/Archway/archway-starter/project.yaml @@ -25,7 +25,7 @@ network: ] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing # dictionary: "https://api.subquery.network/sq/subquery/cosmos-archway-dictionary" - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + chaintypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages cosmwasm.wasm.v1.MsgSetContractMetadata: file: ./proto/archway/rewards/v1/tx.proto messages: diff --git a/Cheqd/cheqd-starter/project.yaml b/Cheqd/cheqd-starter/project.yaml index 2463c38d0..1988b69c8 100644 --- a/Cheqd/cheqd-starter/project.yaml +++ b/Cheqd/cheqd-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://rpc.cheqd.nodestake.top"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/cheqd-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Comdex/comdex-starter/project.yaml b/Comdex/comdex-starter/project.yaml index 6e4de4ea9..b598d9ca4 100644 --- a/Comdex/comdex-starter/project.yaml +++ b/Comdex/comdex-starter/project.yaml @@ -21,7 +21,7 @@ network: # When developing your project we suggest getting a private API key endpoint: ["https://rpc-comdex.zenchainlabs.io/"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + chaintypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: #CIRCUMVENTING VIA ORDER file: ./proto/cosmos/distribution/v1beta1/tx.proto messages: diff --git a/CosmosHub/cosmoshub-starter/project.yaml b/CosmosHub/cosmoshub-starter/project.yaml index 632dcf083..49aac1c09 100644 --- a/CosmosHub/cosmoshub-starter/project.yaml +++ b/CosmosHub/cosmoshub-starter/project.yaml @@ -23,7 +23,7 @@ network: endpoint: ["https://cosmos-mainnet-archive.allthatnode.com:26657"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Cronos/cronos-evm-starter-via-rpc/project.yaml b/Cronos/cronos-evm-starter-via-rpc/project.yaml index c8b848d95..def9fe861 100644 --- a/Cronos/cronos-evm-starter-via-rpc/project.yaml +++ b/Cronos/cronos-evm-starter-via-rpc/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://rpc.cronos.org/"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary" - chainTypes: + chaintypes: ethermint.evm.v1: file: "./proto/ethermint/evm/v1/tx.proto" messages: diff --git a/Evmos/evmos-starter/project.yaml b/Evmos/evmos-starter/project.yaml index 539abce40..00191dd73 100644 --- a/Evmos/evmos-starter/project.yaml +++ b/Evmos/evmos-starter/project.yaml @@ -25,7 +25,7 @@ network: endpoint: ["https://evmos.api.onfinality.io/public"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing #dictionary: "https://api.subquery.network/sq/subquery/cosmos-evmos-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: @@ -59,4 +59,4 @@ dataSources: - handler: handleMessage kind: cosmos/MessageHandler filter: - type: /cosmos.bank.v1beta1.MsgSend \ No newline at end of file + type: /cosmos.bank.v1beta1.MsgSend diff --git a/Evmos/evmos-testnet-starter/project.yaml b/Evmos/evmos-testnet-starter/project.yaml index a664f61ff..0f7b61588 100644 --- a/Evmos/evmos-testnet-starter/project.yaml +++ b/Evmos/evmos-testnet-starter/project.yaml @@ -23,7 +23,7 @@ network: # You can get them from OnFinality for free https://app.onfinality.io # https://documentation.onfinality.io/support/the-enhanced-api-service endpoint: ["https://eth.bd.evmos.dev"] - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Fetch.ai/fetchhub-starter/project.yaml b/Fetch.ai/fetchhub-starter/project.yaml index b7ae51ef1..7df9ca37d 100644 --- a/Fetch.ai/fetchhub-starter/project.yaml +++ b/Fetch.ai/fetchhub-starter/project.yaml @@ -23,7 +23,7 @@ network: endpoint: ["https://rpc-fetchhub.fetch.ai"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/cosmos-fetch-ai-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Injective/injective-starter/project.yaml b/Injective/injective-starter/project.yaml index 1f3f9113b..f9a2cfc29 100644 --- a/Injective/injective-starter/project.yaml +++ b/Injective/injective-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["http://archival-sentry-equinix-2.injective.dev:26657"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing # dictionary: "https://api.subquery.network/sq/subquery/injective-hub-dictionary" - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + chaintypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages injective.exchange.v1beta1.MsgCreateSpotLimitOrder: # Key is not used, it matches the one above and is inferred from the file file: ./proto/injective/exchange/v1beta1/tx.proto messages: diff --git a/Kava/kava-starter/project.yaml b/Kava/kava-starter/project.yaml index 73f3cfeee..d65406eff 100644 --- a/Kava/kava-starter/project.yaml +++ b/Kava/kava-starter/project.yaml @@ -21,7 +21,7 @@ network: endpoint: ["https://kava-rpc.ibs.team"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing # dictionary: "https://api.subquery.network/sq/subquery/injective-hub-dictionary" - chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages + chaintypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages cosmos.bank.v1beta1.MsgSend: # Key is not used, it matches the one above and is inferred from the file file: ./proto/cosmos/bank/v1beta1/tx.proto messages: diff --git a/Mars/mars-starter/project.yaml b/Mars/mars-starter/project.yaml index 44360ffe1..820bf6886 100644 --- a/Mars/mars-starter/project.yaml +++ b/Mars/mars-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://mars-rpc.publicnode.com"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/mars-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Migaloo/migaloo-starter/project.yaml b/Migaloo/migaloo-starter/project.yaml index 3ac4cca8b..88ae471cc 100644 --- a/Migaloo/migaloo-starter/project.yaml +++ b/Migaloo/migaloo-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://migaloo-rpc.cosmosrescue.com"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/migaloo-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Omniflixhub/omniflixhub-starter/project.yaml b/Omniflixhub/omniflixhub-starter/project.yaml index a83411824..91a84e88f 100644 --- a/Omniflixhub/omniflixhub-starter/project.yaml +++ b/Omniflixhub/omniflixhub-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://omniflix.rpc.stake2.me"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/omniflixhub-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Osmosis/osmosis-starter/project.yaml b/Osmosis/osmosis-starter/project.yaml index ba9db1f14..3ae490e71 100644 --- a/Osmosis/osmosis-starter/project.yaml +++ b/Osmosis/osmosis-starter/project.yaml @@ -22,7 +22,7 @@ network: # When developing your project we strongly suggest getting a private API key. endpoint: ["https://osmosis.api.onfinality.io/public"] dictionary: "https://api.subquery.network/sq/subquery/cosmos-osmosis-dictionary" - chainTypes: + chaintypes: osmosis.gamm.v1beta1: file: "./proto/osmosis/gamm/v1beta1/tx.proto" messages: diff --git a/Persistence/persistence-starter/project.yaml b/Persistence/persistence-starter/project.yaml index a1f5ae292..280a3693c 100644 --- a/Persistence/persistence-starter/project.yaml +++ b/Persistence/persistence-starter/project.yaml @@ -21,7 +21,7 @@ network: # When developing your project we suggest getting a private API key endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + chaintypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: #CIRCUMVENTING VIA ORDER file: ./proto/cosmos/distribution/v1beta1/tx.proto messages: diff --git a/Sei/sei-starter/project.yaml b/Sei/sei-starter/project.yaml index 524358a28..4b9c4a438 100644 --- a/Sei/sei-starter/project.yaml +++ b/Sei/sei-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://rpc-sei-testnet.rhinostake.com/"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary" - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages + chaintypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages cosmos.bank.v1beta1.MsgSend: file: ./proto/cosmos/bank/v1beta1/tx.proto messages: diff --git a/Stargaze/stargaze-starter/project.yaml b/Stargaze/stargaze-starter/project.yaml index 4148f27c2..3cae6f82e 100644 --- a/Stargaze/stargaze-starter/project.yaml +++ b/Stargaze/stargaze-starter/project.yaml @@ -23,7 +23,7 @@ network: endpoint: ["http://nodes.stargaze-1.publicawesome.dev:26657/"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/cosmos-stargaze-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: diff --git a/Thorchain/thorchain-starter/project.yaml b/Thorchain/thorchain-starter/project.yaml index 4b48f8b13..06fd38e9f 100644 --- a/Thorchain/thorchain-starter/project.yaml +++ b/Thorchain/thorchain-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://rpc.ninerealms.com/"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing # dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary" - chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages + chaintypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages thorchain.message.observed.out: # Key is not used, it matches the one above and is inferred from the file file: ./proto/thorchain/v1/x/thorchain/types/msg_observed_txout.proto messages: diff --git a/Umee/umee-starter/project.yaml b/Umee/umee-starter/project.yaml index b552699cb..d2e7370ae 100644 --- a/Umee/umee-starter/project.yaml +++ b/Umee/umee-starter/project.yaml @@ -22,7 +22,7 @@ network: endpoint: ["https://rpc-1.umee.nodes.guru"] # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing dictionary: "https://api.subquery.network/sq/subquery/umee-dictionary" - chainTypes: + chaintypes: cosmos.slashing.v1beta1: file: ./proto/cosmos/slashing/v1beta1/tx.proto messages: @@ -55,4 +55,4 @@ dataSources: - handler: handleMessage kind: cosmos/MessageHandler filter: - type: /cosmos.bank.v1beta1.MsgSend \ No newline at end of file + type: /cosmos.bank.v1beta1.MsgSend From 6f0379ac621cf0c872a4b0f3cfb409a5ca70d418 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 9 Oct 2023 15:03:42 +1300 Subject: [PATCH 8/9] Fix build issue --- OKX/okx-starter/src/mappings/mappingHandlers.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OKX/okx-starter/src/mappings/mappingHandlers.ts b/OKX/okx-starter/src/mappings/mappingHandlers.ts index 0ff57e805..58b80772e 100644 --- a/OKX/okx-starter/src/mappings/mappingHandlers.ts +++ b/OKX/okx-starter/src/mappings/mappingHandlers.ts @@ -1,3 +1,4 @@ +import assert from "assert"; import { Approval, Transaction } from "../types"; import { ApproveTransaction, @@ -6,6 +7,7 @@ import { export async function handleLog(transferLog: TransferLog): Promise { logger.info("transaction: " + transferLog.transactionHash); + assert(transferLog.args, "Expected args to exist"); const transaction = Transaction.create({ id: transferLog.transactionHash, value: transferLog.args.value.toBigInt(), @@ -21,6 +23,7 @@ export async function handleTransaction( approveCallTransaction: ApproveTransaction ): Promise { logger.info("approval: " + approveCallTransaction.hash); + assert(approveCallTransaction.args, "Expected args to exist"); const approval = Approval.create({ id: approveCallTransaction.hash, owner: approveCallTransaction.from, From f829d08231c1b178ccddb2ef94a27bda65d5af62 Mon Sep 17 00:00:00 2001 From: James Bayly Date: Mon, 9 Oct 2023 13:35:27 +0700 Subject: [PATCH 9/9] Update manifest --- Agoric/agoric-starter/project.ts | 1 + Akash/akash-starter/project.ts | 1 + Archway/archway-starter/project.ts | 1 + Axelar/axelar-starter/project.ts | 1 + Cheqd/cheqd-starter/project.ts | 1 + Comdex/comdex-starter/project.ts | 1 + CosmosHub/cosmoshub-starter/project.ts | 1 + Cronos/cronos-evm-starter-via-eth/project.ts | 1 + Cronos/cronos-evm-starter-via-rpc/project.ts | 1 + Evmos/evmos-starter/project.ts | 1 + Evmos/evmos-testnet-starter/project.ts | 1 + Fetch.ai/fetchhub-starter/project.ts | 1 + Injective/injective-starter/project.ts | 1 + Juno/juno-starter/project.ts | 1 + Kava/kava-starter/project.ts | 1 + Mars/mars-starter/project.ts | 1 + Migaloo/migaloo-starter/project.ts | 1 + Neutron/neutron-starter/project.ts | 1 + OKX/okx-starter/project.ts | 1 + Omniflixhub/omniflixhub-starter/project.ts | 1 + Osmosis/osmosis-starter/project.ts | 1 + Persistence/persistence-starter/project.ts | 1 + Sei/sei-starter/project.ts | 1 + Stargaze/stargaze-starter/project.ts | 1 + Thorchain/thorchain-starter/project.ts | 1 + Umee/umee-starter/project.ts | 1 + 26 files changed, 26 insertions(+) diff --git a/Agoric/agoric-starter/project.ts b/Agoric/agoric-starter/project.ts index 5e0b9d04e..4535eeeff 100644 --- a/Agoric/agoric-starter/project.ts +++ b/Agoric/agoric-starter/project.ts @@ -95,4 +95,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Akash/akash-starter/project.ts b/Akash/akash-starter/project.ts index 741924ee4..1a5392e96 100644 --- a/Akash/akash-starter/project.ts +++ b/Akash/akash-starter/project.ts @@ -76,4 +76,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Archway/archway-starter/project.ts b/Archway/archway-starter/project.ts index 05049deeb..839598d6e 100644 --- a/Archway/archway-starter/project.ts +++ b/Archway/archway-starter/project.ts @@ -96,4 +96,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Axelar/axelar-starter/project.ts b/Axelar/axelar-starter/project.ts index 6f4f7f2bf..29cc65cd1 100644 --- a/Axelar/axelar-starter/project.ts +++ b/Axelar/axelar-starter/project.ts @@ -57,4 +57,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Cheqd/cheqd-starter/project.ts b/Cheqd/cheqd-starter/project.ts index 79f756ad9..503f57dc3 100644 --- a/Cheqd/cheqd-starter/project.ts +++ b/Cheqd/cheqd-starter/project.ts @@ -90,4 +90,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Comdex/comdex-starter/project.ts b/Comdex/comdex-starter/project.ts index 616427dd8..e929a32b5 100644 --- a/Comdex/comdex-starter/project.ts +++ b/Comdex/comdex-starter/project.ts @@ -69,4 +69,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/CosmosHub/cosmoshub-starter/project.ts b/CosmosHub/cosmoshub-starter/project.ts index f4925a8a0..5c15ff988 100644 --- a/CosmosHub/cosmoshub-starter/project.ts +++ b/CosmosHub/cosmoshub-starter/project.ts @@ -90,4 +90,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Cronos/cronos-evm-starter-via-eth/project.ts b/Cronos/cronos-evm-starter-via-eth/project.ts index feb0cd1d7..e58f8947f 100644 --- a/Cronos/cronos-evm-starter-via-eth/project.ts +++ b/Cronos/cronos-evm-starter-via-eth/project.ts @@ -81,4 +81,5 @@ const project: EthereumProject = { repository: "https://github.com/subquery/ethereum-subql-starter", }; +// Must set default to the project instance export default project; diff --git a/Cronos/cronos-evm-starter-via-rpc/project.ts b/Cronos/cronos-evm-starter-via-rpc/project.ts index 7194fa0b9..91f6880ce 100644 --- a/Cronos/cronos-evm-starter-via-rpc/project.ts +++ b/Cronos/cronos-evm-starter-via-rpc/project.ts @@ -104,4 +104,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Evmos/evmos-starter/project.ts b/Evmos/evmos-starter/project.ts index a7dd540bc..bcfabe87b 100644 --- a/Evmos/evmos-starter/project.ts +++ b/Evmos/evmos-starter/project.ts @@ -88,4 +88,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Evmos/evmos-testnet-starter/project.ts b/Evmos/evmos-testnet-starter/project.ts index 971f0de7a..d81e104eb 100644 --- a/Evmos/evmos-testnet-starter/project.ts +++ b/Evmos/evmos-testnet-starter/project.ts @@ -88,4 +88,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Fetch.ai/fetchhub-starter/project.ts b/Fetch.ai/fetchhub-starter/project.ts index 8ca7955e9..aa5aa69ba 100644 --- a/Fetch.ai/fetchhub-starter/project.ts +++ b/Fetch.ai/fetchhub-starter/project.ts @@ -90,4 +90,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Injective/injective-starter/project.ts b/Injective/injective-starter/project.ts index 3463d1a23..6feda1057 100644 --- a/Injective/injective-starter/project.ts +++ b/Injective/injective-starter/project.ts @@ -72,4 +72,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Juno/juno-starter/project.ts b/Juno/juno-starter/project.ts index cd75981f2..469e8a443 100644 --- a/Juno/juno-starter/project.ts +++ b/Juno/juno-starter/project.ts @@ -67,4 +67,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Kava/kava-starter/project.ts b/Kava/kava-starter/project.ts index c392746de..2f95fcdff 100644 --- a/Kava/kava-starter/project.ts +++ b/Kava/kava-starter/project.ts @@ -74,4 +74,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Mars/mars-starter/project.ts b/Mars/mars-starter/project.ts index c357647e7..56e32549e 100644 --- a/Mars/mars-starter/project.ts +++ b/Mars/mars-starter/project.ts @@ -89,4 +89,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Migaloo/migaloo-starter/project.ts b/Migaloo/migaloo-starter/project.ts index ff2ca051e..55f005ed6 100644 --- a/Migaloo/migaloo-starter/project.ts +++ b/Migaloo/migaloo-starter/project.ts @@ -90,4 +90,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Neutron/neutron-starter/project.ts b/Neutron/neutron-starter/project.ts index f3867bb04..06ef6113c 100644 --- a/Neutron/neutron-starter/project.ts +++ b/Neutron/neutron-starter/project.ts @@ -64,4 +64,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/OKX/okx-starter/project.ts b/OKX/okx-starter/project.ts index 551a34b24..54b3dbefa 100644 --- a/OKX/okx-starter/project.ts +++ b/OKX/okx-starter/project.ts @@ -83,4 +83,5 @@ const project: EthereumProject = { repository: "https://github.com/subquery/ethereum-subql-starter", }; +// Must set default to the project instance export default project; diff --git a/Omniflixhub/omniflixhub-starter/project.ts b/Omniflixhub/omniflixhub-starter/project.ts index a95f5e998..67f3cab99 100644 --- a/Omniflixhub/omniflixhub-starter/project.ts +++ b/Omniflixhub/omniflixhub-starter/project.ts @@ -92,4 +92,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Osmosis/osmosis-starter/project.ts b/Osmosis/osmosis-starter/project.ts index 31d8566f5..83248fa89 100644 --- a/Osmosis/osmosis-starter/project.ts +++ b/Osmosis/osmosis-starter/project.ts @@ -83,4 +83,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Persistence/persistence-starter/project.ts b/Persistence/persistence-starter/project.ts index 9b76f961e..c7c87726d 100644 --- a/Persistence/persistence-starter/project.ts +++ b/Persistence/persistence-starter/project.ts @@ -69,4 +69,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Sei/sei-starter/project.ts b/Sei/sei-starter/project.ts index 31354b934..c7d48c878 100644 --- a/Sei/sei-starter/project.ts +++ b/Sei/sei-starter/project.ts @@ -82,4 +82,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Stargaze/stargaze-starter/project.ts b/Stargaze/stargaze-starter/project.ts index ca95b91d2..878941db2 100644 --- a/Stargaze/stargaze-starter/project.ts +++ b/Stargaze/stargaze-starter/project.ts @@ -96,4 +96,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Thorchain/thorchain-starter/project.ts b/Thorchain/thorchain-starter/project.ts index 1fdffb5b9..c3503bb6d 100644 --- a/Thorchain/thorchain-starter/project.ts +++ b/Thorchain/thorchain-starter/project.ts @@ -86,4 +86,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project; diff --git a/Umee/umee-starter/project.ts b/Umee/umee-starter/project.ts index 378ee4dce..2426fa7c7 100644 --- a/Umee/umee-starter/project.ts +++ b/Umee/umee-starter/project.ts @@ -89,4 +89,5 @@ const project: CosmosProject = { ], }; +// Must set default to the project instance export default project;