@across-protocol/contracts 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,7 +81,7 @@ exports.OP_STACK_ADDRESS_MAP = {
81
81
  L1CrossDomainMessenger: "0x5D4472f31Bd9385709ec61305AFc749F0fA8e9d0",
82
82
  L1StandardBridge: "0x697402166Fbf2F22E970df8a6486Ef171dbfc524",
83
83
  },
84
- [utils_1.CHAIN_IDs.DOCTOR_WHO]: {
84
+ [utils_1.CHAIN_IDs.UNICHAIN]: {
85
85
  L1CrossDomainMessenger: "0x9A3D64E386C18Cb1d6d5179a9596A4B5736e98A6",
86
86
  L1StandardBridge: "0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA",
87
87
  },
@@ -143,6 +143,10 @@ exports.OP_STACK_ADDRESS_MAP = {
143
143
  L1CrossDomainMessenger: "0x58Cc85b8D04EA49cC6DBd3CbFFd00B4B8D6cb3ef",
144
144
  L1StandardBridge: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1",
145
145
  },
146
+ [utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: {
147
+ L1CrossDomainMessenger: "0x448A37330A60494E666F6DD60aD48d930AEbA381",
148
+ L1StandardBridge: "0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2",
149
+ },
146
150
  },
147
151
  };
148
152
  exports.L2_ADDRESS_MAP = {
@@ -222,10 +226,14 @@ exports.L2_ADDRESS_MAP = {
222
226
  l2Weth: "0x3ab6C7AEb93A1CFC64AEEa8BF0f00c176EE42A2C",
223
227
  polygonZkEvmBridge: "0xF6BEEeBB578e214CA9E23B0e9683454Ff88Ed2A7",
224
228
  },
225
- [utils_1.CHAIN_IDs.DOCTOR_WHO]: {
229
+ [utils_1.CHAIN_IDs.UNICHAIN]: {
226
230
  cctpTokenMessenger: "0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",
227
231
  cctpMessageTransmitter: "0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",
228
232
  },
233
+ [utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: {
234
+ cctpTokenMessenger: "0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",
235
+ cctpMessageTransmitter: "0xbc498c326533d675cf571B90A2Ced265ACb7d086",
236
+ },
229
237
  };
230
238
  exports.POLYGON_CHAIN_IDS = {
231
239
  [utils_1.CHAIN_IDs.MAINNET]: utils_1.CHAIN_IDs.POLYGON,
@@ -242,10 +250,12 @@ exports.CIRCLE_DOMAIN_IDs = {
242
250
  [utils_1.CHAIN_IDs.ARBITRUM]: 3,
243
251
  [utils_1.CHAIN_IDs.BASE]: 6,
244
252
  [utils_1.CHAIN_IDs.POLYGON]: 7,
253
+ [utils_1.CHAIN_IDs.UNICHAIN]: 10,
245
254
  // Testnet
246
255
  [utils_1.CHAIN_IDs.SEPOLIA]: 0,
247
256
  [utils_1.CHAIN_IDs.OPTIMISM_SEPOLIA]: 2,
248
257
  [utils_1.CHAIN_IDs.ARBITRUM_SEPOLIA]: 3,
249
258
  [utils_1.CHAIN_IDs.BASE_SEPOLIA]: 6,
250
259
  [utils_1.CHAIN_IDs.POLYGON_AMOY]: 7,
260
+ [utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: 10,
251
261
  };
@@ -156,7 +156,8 @@
156
156
  "Polygon_Adapter": { "address": "0x540029039E493b1B843653f93C3064A956931747", "blockNumber": 5984591 },
157
157
  "Lisk_Adapter": { "address": "0x13a8B1D6443016424e2b8Bac40dD884Ee679AFc4", "blockNumber": 6226289 },
158
158
  "Lens_Adapter": { "address": "0x8fac6F764ae0b4F632FE2E6c938ED5637E629ff2", "blockNumber": 7448085 },
159
- "Blast_Adapter": { "address": "0x09500Ffd743e01B4146a4BA795231Ca7Ca37819f", "blockNumber": 6233857 }
159
+ "Blast_Adapter": { "address": "0x09500Ffd743e01B4146a4BA795231Ca7Ca37819f", "blockNumber": 6233857 },
160
+ "DoctorWho_Adapter": { "address": "0x2b482aFb675e1F231521d5E56770ce4aac592246", "blockNumber": 7698546 }
160
161
  },
161
162
  "37111": {
162
163
  "SpokePool": { "address": "0x6A0a7f39530923911832Dd60667CE5da5449967B", "blockNumber": 156275 },
@@ -178,5 +179,9 @@
178
179
  "130": {
179
180
  "SpokePool": { "address": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", "blockNumber": 7915488 },
180
181
  "MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 7930191 }
182
+ },
183
+ "1301": {
184
+ "SpokePool": { "address": "0x6999526e507Cc3b03b180BbE05E1Ff938259A874", "blockNumber": 12593713 },
185
+ "MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 12594561 }
181
186
  }
182
187
  }
@@ -337,13 +337,20 @@ const config = {
337
337
  accounts: { mnemonic },
338
338
  companionNetworks: { l1: "mainnet" },
339
339
  },
340
- doctorwho: {
341
- chainId: constants_1.CHAIN_IDs.DOCTOR_WHO,
342
- url: "https://doctor-who-mainnet.g.alchemy.com/public",
340
+ unichain: {
341
+ chainId: constants_1.CHAIN_IDs.UNICHAIN,
342
+ url: "https://mainnet.unichain.org",
343
343
  saveDeployments: true,
344
344
  accounts: { mnemonic },
345
345
  companionNetworks: { l1: "mainnet" },
346
346
  },
347
+ "unichain-sepolia": {
348
+ chainId: constants_1.CHAIN_IDs.UNICHAIN_SEPOLIA,
349
+ url: "https://sepolia.unichain.org",
350
+ saveDeployments: true,
351
+ accounts: { mnemonic },
352
+ companionNetworks: { l1: "sepolia" },
353
+ },
347
354
  },
348
355
  gasReporter: { enabled: process.env.REPORT_GAS !== undefined, currency: "USD" },
349
356
  etherscan: {
@@ -375,7 +382,8 @@ const config = {
375
382
  alephzero: "blockscout",
376
383
  ink: "blockscout",
377
384
  soneium: "blockscout",
378
- doctorwho: "blockscout",
385
+ unichain: process.env.UNICHAIN_ETHERSCAN_API_KEY,
386
+ "unichain-sepolia": process.env.UNICHAIN_ETHERSCAN_API_KEY,
379
387
  },
380
388
  customChains: [
381
389
  {
@@ -563,11 +571,19 @@ const config = {
563
571
  },
564
572
  },
565
573
  {
566
- network: "doctorwho",
567
- chainId: constants_1.CHAIN_IDs.DOCTOR_WHO,
574
+ network: "unichain",
575
+ chainId: constants_1.CHAIN_IDs.UNICHAIN,
576
+ urls: {
577
+ apiURL: "https://api.uniscan.xyz/api",
578
+ browserURL: "https://uniscan.xyz",
579
+ },
580
+ },
581
+ {
582
+ network: "unichain-sepolia",
583
+ chainId: constants_1.CHAIN_IDs.UNICHAIN_SEPOLIA,
568
584
  urls: {
569
- apiURL: "https://doctor-who.blockscout.com/api",
570
- browserURL: "https://doctorwho.blockscout.com",
585
+ apiURL: "https://api-sepolia.uniscan.xyz/api",
586
+ browserURL: "https://sepolia.uniscan.xyz",
571
587
  },
572
588
  },
573
589
  ],
@@ -1,4 +1,4 @@
1
- export { CHAIN_IDs, MAINNET_CHAIN_IDs, TOKEN_SYMBOLS_MAP } from "@across-protocol/constants";
1
+ export { CHAIN_IDs, MAINNET_CHAIN_IDs, PRODUCTION_NETWORKS, TOKEN_SYMBOLS_MAP } from "@across-protocol/constants";
2
2
  export declare const FillStatus: {
3
3
  Unfilled: number;
4
4
  RequestedSlowFill: number;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FillStatus = exports.TOKEN_SYMBOLS_MAP = exports.MAINNET_CHAIN_IDs = exports.CHAIN_IDs = void 0;
3
+ exports.FillStatus = exports.TOKEN_SYMBOLS_MAP = exports.PRODUCTION_NETWORKS = exports.MAINNET_CHAIN_IDs = exports.CHAIN_IDs = void 0;
4
4
  var constants_1 = require("@across-protocol/constants");
5
5
  Object.defineProperty(exports, "CHAIN_IDs", { enumerable: true, get: function () { return constants_1.CHAIN_IDs; } });
6
6
  Object.defineProperty(exports, "MAINNET_CHAIN_IDs", { enumerable: true, get: function () { return constants_1.MAINNET_CHAIN_IDs; } });
7
+ Object.defineProperty(exports, "PRODUCTION_NETWORKS", { enumerable: true, get: function () { return constants_1.PRODUCTION_NETWORKS; } });
7
8
  Object.defineProperty(exports, "TOKEN_SYMBOLS_MAP", { enumerable: true, get: function () { return constants_1.TOKEN_SYMBOLS_MAP; } });
8
9
  exports.FillStatus = {
9
10
  Unfilled: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@across-protocol/contracts",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "author": "UMA Team",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "pre-commit-hook": "sh scripts/preCommitHook.sh"
43
43
  },
44
44
  "dependencies": {
45
- "@across-protocol/constants": "^3.1.32",
45
+ "@across-protocol/constants": "^3.1.35",
46
46
  "@coral-xyz/anchor": "^0.30.1",
47
47
  "@defi-wonderland/smock": "^2.3.4",
48
48
  "@eth-optimism/contracts": "^0.5.40",