Skip to content

Commit f506c96

Browse files
committed
Sever the @api3/chains dependency
1 parent 799e1fa commit f506c96

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

deploy/1_deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { CHAINS } from '@api3/chains';
21
import { deployments, ethers, network } from 'hardhat';
32

43
import {
@@ -8,6 +7,7 @@ import {
87
chainsSupportedByOevAuctions,
98
} from '../data/chain-support.json';
109
import * as managerMultisigMetadata from '../data/manager-multisig-metadata.json';
10+
import { CHAINS } from '../src/index';
1111
import type { Api3ReaderProxyV1Factory, OwnableCallForwarder } from '../src/index';
1212

1313
const MAXIMUM_SUBSCRIPTION_QUEUE_LENGTH = 10;

hardhat.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import * as fs from 'node:fs';
22

3-
import { hardhatConfig } from '@api3/chains';
43
import { glob } from 'glob';
54
import type { HardhatUserConfig } from 'hardhat/config';
65
import '@nomicfoundation/hardhat-toolbox';
76
import 'hardhat-deploy';
87
import 'dotenv/config';
98
import { task } from 'hardhat/config';
109

10+
import { hardhatConfig } from './src/index';
11+
1112
const config: HardhatUserConfig = {
1213
etherscan: hardhatConfig.etherscan(),
1314
gasReporter: {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"zod": "^3.24.1"
9797
},
9898
"dependencies": {
99-
"@api3/chains": "^11.8.0",
10099
"ethers": "^6.13.2",
101100
"viem": "^2.23.2",
102101
"yargs": "^17.7.2"

scripts/check-deployment-config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import { CHAINS } from '@api3/chains';
2-
31
import {
42
chainsSupportedByManagerMultisig,
53
chainsSupportedByDapis,
64
chainsSupportedByMarket,
75
chainsSupportedByOevAuctions,
86
} from '../data/chain-support.json';
7+
import { CHAINS } from '../src/index';
98

109
function main() {
1110
const chainAliases = new Set(CHAINS.map((chain) => chain.alias));

scripts/survey-roles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import * as fs from 'node:fs';
66
import { join } from 'node:path';
77

8-
import { CHAINS } from '@api3/chains';
98
import { go } from '@api3/promise-utils';
109
import { config, ethers } from 'hardhat';
1110

1211
import { chainsSupportedByManagerMultisig, chainsSupportedByDapis } from '../data/chain-support.json';
12+
import { CHAINS } from '../src/index';
1313

1414
import { goAsyncOptions } from './constants';
1515

scripts/validate-deployments.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as fs from 'node:fs';
22
import { join } from 'node:path';
33

4-
import { CHAINS } from '@api3/chains';
54
import { go } from '@api3/promise-utils';
65
import { config, ethers } from 'hardhat';
76

@@ -23,7 +22,7 @@ import type {
2322
OevAuctionHouse,
2423
OwnableCallForwarder,
2524
} from '../src/index';
26-
import { computeApi3ReaderProxyV1Address } from '../src/index';
25+
import { CHAINS, computeApi3ReaderProxyV1Address } from '../src/index';
2726

2827
import { goAsyncOptions, skippedChainAliasesInOevAuctionHouseNativeCurrencyRateValidation } from './constants';
2928

scripts/verify-deployments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import * as fs from 'node:fs';
88
import { join } from 'node:path';
99

10-
import { CHAINS } from '@api3/chains';
1110
import { go } from '@api3/promise-utils';
1211
import { config, deployments, ethers } from 'hardhat';
1312
import type { Deployment } from 'hardhat-deploy/dist/types';
@@ -18,6 +17,7 @@ import {
1817
chainsSupportedByMarket,
1918
chainsSupportedByOevAuctions,
2019
} from '../data/chain-support.json';
20+
import { CHAINS } from '../src/index';
2121

2222
import { goAsyncOptions } from './constants';
2323

scripts/write-example-env-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from 'node:fs';
22

3-
import { hardhatConfig } from '@api3/chains';
3+
import { hardhatConfig } from '../src/index';
44

55
fs.writeFileSync(
66
'example.env',

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-disable no-console */
2-
import { CHAINS } from '@api3/chains';
32
import * as ethers from 'ethers';
43
import yargs from 'yargs';
54
import { hideBin } from 'yargs/helpers';
65

76
import {
87
type Api3ServerV1,
98
Api3ServerV1__factory,
9+
CHAINS,
1010
computeDappSpecificApi3ReaderProxyV1Address,
1111
deploymentAddresses,
1212
} from './index';

0 commit comments

Comments
 (0)