diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 3bc894e4f96..e455a283f5d 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -301,6 +301,8 @@ export default defineUserConfig({ "/run_publish/aggregate.html": "/run_publish/query/aggregate.html", "/run_publish/subscription.html": "/run_publish/query/subscription.html", + "/quickstart/quickstart_chains/astar-zkatana.html": + "/quickstart/quickstart_chains/astar-zkevm.html", }; return { ...redirects, diff --git a/docs/.vuepress/sidebar.ts b/docs/.vuepress/sidebar.ts index 3a064d6a06a..07c74c365da 100644 --- a/docs/.vuepress/sidebar.ts +++ b/docs/.vuepress/sidebar.ts @@ -25,8 +25,8 @@ export const getSidebar = (locale: string) => link: `${locale}/quickstart/quickstart_chains/arbitrum.md`, }, { - text: "Astar zKatana", - link: `${locale}/quickstart/quickstart_chains/astar-zkatana.md`, + text: "Astar zkEVM", + link: `${locale}/quickstart/quickstart_chains/astar-zkevm.md`, }, { text: "Avalanche", diff --git a/docs/quickstart/quickstart_chains/astar-zkatana.md b/docs/quickstart/quickstart_chains/astar-zkevm.md similarity index 84% rename from docs/quickstart/quickstart_chains/astar-zkatana.md rename to docs/quickstart/quickstart_chains/astar-zkevm.md index 45cd622a283..30495070426 100644 --- a/docs/quickstart/quickstart_chains/astar-zkatana.md +++ b/docs/quickstart/quickstart_chains/astar-zkevm.md @@ -1,18 +1,18 @@ -# Astar zKatana Testnet Quick Start +# Astar zkEVM Mainnet Quick Start -The goal of this quick start guide is to index all transfers and approval events from the [GACHA Token](https://zkatana.blockscout.com/token/0x28687c2A4638149745A0999D523f813f63b4786F) on Astar's zKatana Test Network. +The goal of this quick start guide is to index all transfers and approval events from the [USDC Token](https://astar-zkevm.explorer.startale.com/address/0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035) on Astar's zkEVM Mainnet. ::: tip Note -The final code of this project can be found [here](https://github.com/subquery/ethereum-subql-starter/tree/main/Astar/astar-zkevm-testnet-starter). +The final code of this project can be found [here](https://github.com/subquery/ethereum-subql-starter/tree/main/Astar/astar-zkevm-starter). ::: -We use Ethereum packages, runtimes, and handlers (e.g. `@subql/node-ethereum`, `ethereum/Runtime`, and `ethereum/*Hander`) for Astar zKatana. Since Astar zKatana is an EVM-compatible layer-2 scaling solution, we can use the core Ethereum framework to index it. +We use Ethereum packages, runtimes, and handlers (e.g. `@subql/node-ethereum`, `ethereum/Runtime`, and `ethereum/*Hander`) for Astar zkEVM. Since Astar zkEVM is an EVM-compatible layer-2 scaling solution, we can use the core Ethereum framework to index it. -As we are indexing all transfers and approvals from the GACHA contract on Astar zKatana test network, the first step is to import the contract abi definition which can be obtained from from any standard [ERC-20 contract](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/). Copy the entire contract ABI and save it as a file called `erc20.abi.json` in the `/abis` directory. +As we are indexing all transfers and approvals from the USDC contract on Astar's zkEVM network, the first step is to import the contract abi definition which can be obtained from from any standard [ERC-20 contract](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/). Copy the entire contract ABI and save it as a file called `erc20.abi.json` in the `/abis` directory. **Update the `datasources` section as follows:** @@ -21,12 +21,12 @@ As we are indexing all transfers and approvals from the GACHA contract on Astar dataSources: [ { kind: EthereumDatasourceKind.Runtime, - startBlock: 53, // This is the block that the contract was deployed on https://zkatana.blockscout.com/tx/0x625fd9f365a1601486c4176bc34cf0fdf04bf06b2393fd5dd43e8dd7a62d9ec5 + startBlock: 101596, // This is the block that the contract was deployed on https://astar-zkevm.explorer.startale.com/tx/0x7035568194509ffe6e7d4707ce34bf7523a98a7b7f8a580ea7321d9849f995c9 options: { // Must be a key of assets abi: "erc20", - // This is the contract address for GACHA Token https://zkatana.blockscout.com/token/0x28687c2A4638149745A0999D523f813f63b4786F - address: "0x28687c2A4638149745A0999D523f813f63b4786F", + // This is the contract address for USDC Token https://astar-zkevm.explorer.startale.com/address/0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035 + address: "0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035", }, assets: new Map([["erc20", { file: "./abis/erc20.abi.json" }]]), mapping: { @@ -64,9 +64,9 @@ As we are indexing all transfers and approvals from the GACHA contract on Astar } ``` -The above code indicates that you will be running a `handleTransaction` mapping function whenever there is a `approve` method being called on any transaction from the [GACHA Token](https://zkatana.blockscout.com/token/0x28687c2A4638149745A0999D523f813f63b4786F) on Astar's zKatana Test Network. +The above code indicates that you will be running a `handleTransaction` mapping function whenever there is a `approve` method being called on any transaction from the [USDC Token](https://astar-zkevm.explorer.startale.com/address/0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035) on Astar's zkEVM Network. -The code also indicates that you will be running a `handleLog` mapping function whenever there is a `Transfer` event being emitted from the [GACHA Token](https://zkatana.blockscout.com/token/0x28687c2A4638149745A0999D523f813f63b4786F) on Astar's zKatana Test Network. +The code also indicates that you will be running a `handleLog` mapping function whenever there is a `Transfer` event being emitted from the [USDC Token](https://astar-zkevm.explorer.startale.com/address/0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035) on Astar's zkEVM Network. @@ -240,7 +240,7 @@ You will see the result similar to below: ``` ::: tip Note -The final code of this project can be found [here](https://github.com/subquery/ethereum-subql-starter/tree/main/Astar/astar-zkevm-testnet-starter). +The final code of this project can be found [here](https://github.com/subquery/ethereum-subql-starter/tree/main/Astar/astar-zkevm-starter). :::