diff --git a/.env.example b/.env.example index 47cd384..34e73b5 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ -NETWORK_NAME=testnet +NETWORK_NAME=MAINNET JSONRPC_ENDPOINT=https://3.138.194.94:443 # TODO: Extract the start block number from the receipt -START_BLOCK_NUMBER=14265505 +START_BLOCK_NUMBER_MAINNET=14265505 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36eb1cd..0589083 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: name: Builds the subgraph to ensure it compiles correctly runs-on: ubuntu-latest env: - NETWORK_NAME: mainnet - START_BLOCK_NUMBER: 14265505 + NETWORK_NAME: MAINNET + START_BLOCK_NUMBER_MAINNET: 17265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -58,8 +58,8 @@ jobs: runs-on: ubuntu-latest if: github.ref == 'refs/heads/dev' env: - NETWORK_NAME: mainnet - START_BLOCK_NUMBER: 14265505 + NETWORK_NAME: MAINNET + START_BLOCK_NUMBER_MAINNET: 17265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -104,8 +104,8 @@ jobs: runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' env: - NETWORK_NAME: mainnet - START_BLOCK_NUMBER: 14265505 + NETWORK_NAME: MAINNET + START_BLOCK_NUMBER_MAINNET: 17265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 diff --git a/manifests/manifest.eth.ts b/manifests/manifest.eth.ts index a94daa0..43018b8 100644 --- a/manifests/manifest.eth.ts +++ b/manifests/manifest.eth.ts @@ -24,7 +24,7 @@ export default { createTransmuter('TransmuterV2_ETH'), createTransmuterBuffer('TransmuterBuffer_alUSD'), createTransmuterBuffer('TransmuterBuffer_alETH'), - createThreePoolAssetManager('ThreePoolAssetManager_alUSD', 14543500, '0x9735F7d3Ea56b454b24fFD74C58E9bD85cfaD31B'), + createThreePoolAssetManager('ThreePoolAssetManager_alUSD', 17265505, '0x9735F7d3Ea56b454b24fFD74C58E9bD85cfaD31B'), createEthAssetManager('EthAssetManager', 14573961, '0xe761bf731A06fE8259FeE05897B2687D56933110'), createMetaPool('alUSDMetaPool', '0x43b4fdfd4ff969587185cdb6f0bd875c5fc83f8c', 11955332), createFactoryPool('alETHFactoryPool', '0xc4c319e2d4d66cca4464c0c2b32c9bd23ebe784e', 13227440), diff --git a/sources/Alchemist.ts b/sources/Alchemist.ts index 07a552e..665e54a 100644 --- a/sources/Alchemist.ts +++ b/sources/Alchemist.ts @@ -36,7 +36,7 @@ export function createAlchemist( source: { abi: 'Alchemist', address, - startBlock: 16265505, + startBlock: startBlockNumber, }, }; } diff --git a/sources/EthAssetManager.ts b/sources/EthAssetManager.ts index 25acda6..effb170 100644 --- a/sources/EthAssetManager.ts +++ b/sources/EthAssetManager.ts @@ -36,7 +36,7 @@ export function createEthAssetManager( source: { abi: 'EthAssetManager', address, - startBlock: 16265505, + startBlock: startBlockNumber, }, }; } diff --git a/sources/FactoryPool.ts b/sources/FactoryPool.ts index f30487a..0abb6e5 100644 --- a/sources/FactoryPool.ts +++ b/sources/FactoryPool.ts @@ -1,12 +1,12 @@ import { utils } from 'ethers'; import { eventDeclarations } from './utils/abis'; -import { networkName } from './utils/constants'; +import { networkName, startBlockNumber } from './utils/constants'; import { DataSource } from './utils/types'; const FactoryPoolInterface = new utils.Interface(require('../abis/FactoryPool.json')); const FactoryPoolEvents = Object.values(FactoryPoolInterface.events); -export function createFactoryPool(name: string, address: string, block: number): DataSource { +export function createFactoryPool(name: string, address: string, block: number = startBlockNumber): DataSource { return { name, network: networkName, @@ -32,7 +32,7 @@ export function createFactoryPool(name: string, address: string, block: number): source: { abi: 'FactoryPool', address, - startBlock: 16265505, + startBlock: startBlockNumber, }, }; } diff --git a/sources/MetaPool.ts b/sources/MetaPool.ts index 2fc8a13..e47543e 100644 --- a/sources/MetaPool.ts +++ b/sources/MetaPool.ts @@ -1,12 +1,12 @@ import { utils } from 'ethers'; import { eventDeclarations } from './utils/abis'; -import { networkName } from './utils/constants'; +import { networkName, startBlockNumber } from './utils/constants'; import { DataSource } from './utils/types'; const MetaPoolInterface = new utils.Interface(require('../abis/MetaPool.json')); const MetaPoolEvents = Object.values(MetaPoolInterface.events); -export function createMetaPool(name: string, address: string, block: number): DataSource { +export function createMetaPool(name: string, address: string, block: number = startBlockNumber): DataSource { return { name, network: networkName, @@ -32,7 +32,7 @@ export function createMetaPool(name: string, address: string, block: number): Da source: { abi: 'MetaPool', address, - startBlock: 16265505, + startBlock: startBlockNumber, }, }; } diff --git a/sources/ThreePoolAssetManager.ts b/sources/ThreePoolAssetManager.ts index 29d4840..7240ac4 100644 --- a/sources/ThreePoolAssetManager.ts +++ b/sources/ThreePoolAssetManager.ts @@ -36,7 +36,7 @@ export function createThreePoolAssetManager( source: { abi: 'ThreePoolAssetManager', address, - startBlock: 16265505, + startBlock: startBlockNumber, }, }; } diff --git a/sources/Transmuter.ts b/sources/Transmuter.ts index 552a2ab..89fd48b 100644 --- a/sources/Transmuter.ts +++ b/sources/Transmuter.ts @@ -36,7 +36,7 @@ export function createTransmuter( source: { abi: 'Transmuter', address, - startBlock: 16265505, + startBlock: startBlockNumber, }, }; } diff --git a/sources/TransmuterBuffer.ts b/sources/TransmuterBuffer.ts index b4ad7d9..faba9e9 100644 --- a/sources/TransmuterBuffer.ts +++ b/sources/TransmuterBuffer.ts @@ -36,7 +36,7 @@ export function createTransmuterBuffer( source: { abi: 'TransmuterBuffer', address, - startBlock: 16265505, + startBlock: startBlockNumber, }, }; }