From 606f4bc2e95e0fd17949b111fd60b3df4019db1f Mon Sep 17 00:00:00 2001 From: toyvo Date: Sun, 21 Jan 2024 18:38:33 -0500 Subject: [PATCH] startblock --- .github/workflows/ci.yml | 6 +++--- sources/FactoryPool.ts | 4 ++-- sources/MetaPool.ts | 4 ++-- sources/ThreePoolAssetManager.ts | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8141baa..36eb1cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest env: NETWORK_NAME: mainnet - START_BLOCK_NUMBER: 17265505 + START_BLOCK_NUMBER: 14265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -59,7 +59,7 @@ jobs: if: github.ref == 'refs/heads/dev' env: NETWORK_NAME: mainnet - START_BLOCK_NUMBER: 17265505 + START_BLOCK_NUMBER: 14265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -105,7 +105,7 @@ jobs: if: github.ref == 'refs/heads/main' env: NETWORK_NAME: mainnet - START_BLOCK_NUMBER: 17265505 + START_BLOCK_NUMBER: 14265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 diff --git a/sources/FactoryPool.ts b/sources/FactoryPool.ts index 0abb6e5..1480874 100644 --- a/sources/FactoryPool.ts +++ b/sources/FactoryPool.ts @@ -6,7 +6,7 @@ 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 = startBlockNumber): DataSource { +export function createFactoryPool(name: string, address: string, block: number): DataSource { return { name, network: networkName, @@ -32,7 +32,7 @@ export function createFactoryPool(name: string, address: string, block: number = source: { abi: 'FactoryPool', address, - startBlock: startBlockNumber, + startBlock: block, }, }; } diff --git a/sources/MetaPool.ts b/sources/MetaPool.ts index e47543e..ca7da38 100644 --- a/sources/MetaPool.ts +++ b/sources/MetaPool.ts @@ -6,7 +6,7 @@ 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 = startBlockNumber): DataSource { +export function createMetaPool(name: string, address: string, block: number): DataSource { return { name, network: networkName, @@ -32,7 +32,7 @@ export function createMetaPool(name: string, address: string, block: number = st source: { abi: 'MetaPool', address, - startBlock: startBlockNumber, + startBlock: block, }, }; } diff --git a/sources/ThreePoolAssetManager.ts b/sources/ThreePoolAssetManager.ts index 7240ac4..4b014c5 100644 --- a/sources/ThreePoolAssetManager.ts +++ b/sources/ThreePoolAssetManager.ts @@ -8,7 +8,7 @@ const ThreePoolAssetManagerEvents = Object.values(ThreePoolAssetManagerInterface export function createThreePoolAssetManager( name: string, - block: number = startBlockNumber, + block: number, address: string = deploymentAddress(name), ): DataSource { return { @@ -36,7 +36,7 @@ export function createThreePoolAssetManager( source: { abi: 'ThreePoolAssetManager', address, - startBlock: startBlockNumber, + startBlock: block, }, }; }