Skip to content

Commit

Permalink
startblock
Browse files Browse the repository at this point in the history
  • Loading branch information
toyv0 committed Jan 21, 2024
1 parent 16fd41f commit 606f4bc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sources/FactoryPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -32,7 +32,7 @@ export function createFactoryPool(name: string, address: string, block: number =
source: {
abi: 'FactoryPool',
address,
startBlock: startBlockNumber,
startBlock: block,
},
};
}
4 changes: 2 additions & 2 deletions sources/MetaPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -32,7 +32,7 @@ export function createMetaPool(name: string, address: string, block: number = st
source: {
abi: 'MetaPool',
address,
startBlock: startBlockNumber,
startBlock: block,
},
};
}
4 changes: 2 additions & 2 deletions sources/ThreePoolAssetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -36,7 +36,7 @@ export function createThreePoolAssetManager(
source: {
abi: 'ThreePoolAssetManager',
address,
startBlock: startBlockNumber,
startBlock: block,
},
};
}

0 comments on commit 606f4bc

Please sign in to comment.