@across-protocol/contracts 3.0.4 → 3.0.5
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.
package/dist/deploy/consts.js
CHANGED
|
@@ -129,6 +129,11 @@ exports.L1_ADDRESS_MAP = {
|
|
|
129
129
|
// https://docs.lisk.com/contracts
|
|
130
130
|
liskCrossDomainMessenger: "0x857824E6234f7733ecA4e9A76804fd1afa1A3A2C",
|
|
131
131
|
liskStandardBridge: "0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5",
|
|
132
|
+
// https://docs.blast.io/building/contracts
|
|
133
|
+
l1BlastBridge: "0xc644cc19d2A9388b71dd1dEde07cFFC73237Dca8",
|
|
134
|
+
blastCrossDomainMessenger: "0x9338F298F29D3918D5D1Feb209aeB9915CC96333",
|
|
135
|
+
blastStandardBridge: "0xDeDa8D3CCf044fE2A16217846B6e1f1cfD8e122f",
|
|
136
|
+
l1Usdb: "0x7f11f79DEA8CE904ed0249a23930f2e59b43a385",
|
|
132
137
|
},
|
|
133
138
|
};
|
|
134
139
|
exports.L2_ADDRESS_MAP = {
|
|
@@ -259,6 +264,9 @@ exports.L2_ADDRESS_MAP = {
|
|
|
259
264
|
34443: {
|
|
260
265
|
l2Weth: "0x4200000000000000000000000000000000000006",
|
|
261
266
|
},
|
|
267
|
+
168587773: {
|
|
268
|
+
usdb: "0x4200000000000000000000000000000000000022",
|
|
269
|
+
},
|
|
262
270
|
};
|
|
263
271
|
exports.POLYGON_CHAIN_IDS = {
|
|
264
272
|
1: 137,
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"SpokePoolVerifier": { "address": "0xB4A8d45647445EA9FC3E1058096142390683dBC2", "blockNumber": 19510875 },
|
|
21
21
|
"Mode_Adapter": { "address": "0xf1B59868697f3925b72889ede818B9E7ba0316d0", "blockNumber": 19914094 },
|
|
22
22
|
"MulticallHandler": { "address": "0xA18cD406a857e174397814F32c0Ef7cC68Ddc20F", "blockNumber": 20120771 },
|
|
23
|
-
"Lisk_Adapter": { "address": "0x8229E812f20537caA1e8Fb41749b4887B8a75C3B", "blockNumber": 20184545 }
|
|
23
|
+
"Lisk_Adapter": { "address": "0x8229E812f20537caA1e8Fb41749b4887B8a75C3B", "blockNumber": 20184545 },
|
|
24
|
+
"Blast_Adapter": { "address": "0xF2bEf5E905AAE0295003ab14872F811E914EdD81", "blockNumber": 20221494 }
|
|
24
25
|
},
|
|
25
26
|
"4": {
|
|
26
27
|
"Arbitrum_Adapter": { "address": "0x18F4D98C7CeA6Ab934F2976c2a98009A529d8F49", "blockNumber": 10367195 },
|
|
@@ -137,6 +138,11 @@
|
|
|
137
138
|
"SpokePool": { "address": "0xd08baaE74D6d2eAb1F3320B2E1a53eeb391ce8e5", "blockNumber": 7529960 },
|
|
138
139
|
"MulticallHandler": { "address": "0xF2720cc7391D237876A17E10914e9b7188009957", "blockNumber": 8776056 }
|
|
139
140
|
},
|
|
141
|
+
"168587773": { "SpokePool": { "address": "0x5545092553Cf5Bf786e87a87192E902D50D8f022", "blockNumber": 7634204 } },
|
|
142
|
+
"81457": {
|
|
143
|
+
"SpokePool": { "address": "0x2D509190Ed0172ba588407D4c2df918F955Cc6E1", "blockNumber": 5574280 },
|
|
144
|
+
"SpokePoolVerifier": { "address": "0xB4A8d45647445EA9FC3E1058096142390683dBC2", "blockNumber": 5574513 }
|
|
145
|
+
},
|
|
140
146
|
"421611": { "SpokePool": { "address": "0x3BED21dAe767e4Df894B31b14aD32369cE4bad8b", "blockNumber": 10523275 } },
|
|
141
147
|
"421613": { "SpokePool": { "address": "0xd08baaE74D6d2eAb1F3320B2E1a53eeb391ce8e5", "blockNumber": 30397192 } },
|
|
142
148
|
"421614": {
|
|
@@ -151,6 +157,7 @@
|
|
|
151
157
|
"SpokePool": { "address": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", "blockNumber": 5288470 },
|
|
152
158
|
"PolygonTokenBridger": { "address": "0x4e3737679081c4D3029D88cA560918094f2e0284", "blockNumber": 5984560 },
|
|
153
159
|
"Polygon_Adapter": { "address": "0x540029039E493b1B843653f93C3064A956931747", "blockNumber": 5984591 },
|
|
154
|
-
"Lisk_Adapter": { "address": "0x13a8B1D6443016424e2b8Bac40dD884Ee679AFc4", "blockNumber": 6226289 }
|
|
160
|
+
"Lisk_Adapter": { "address": "0x13a8B1D6443016424e2b8Bac40dD884Ee679AFc4", "blockNumber": 6226289 },
|
|
161
|
+
"Blast_Adapter": { "address": "0x09500Ffd743e01B4146a4BA795231Ca7Ca37819f", "blockNumber": 6233857 }
|
|
155
162
|
}
|
|
156
163
|
}
|
package/dist/hardhat.config.js
CHANGED
|
@@ -329,6 +329,20 @@ const config = {
|
|
|
329
329
|
accounts: { mnemonic },
|
|
330
330
|
companionNetworks: { l1: "sepolia" },
|
|
331
331
|
},
|
|
332
|
+
blast: {
|
|
333
|
+
chainId: 81457,
|
|
334
|
+
url: "https://rpc.blast.io",
|
|
335
|
+
saveDeployments: true,
|
|
336
|
+
accounts: { mnemonic },
|
|
337
|
+
companionNetworks: { l1: "mainnet" },
|
|
338
|
+
},
|
|
339
|
+
"blast-sepolia": {
|
|
340
|
+
chainId: 168587773,
|
|
341
|
+
url: "https://sepolia.blast.io",
|
|
342
|
+
saveDeployments: true,
|
|
343
|
+
accounts: { mnemonic },
|
|
344
|
+
companionNetworks: { l1: "sepolia" },
|
|
345
|
+
},
|
|
332
346
|
},
|
|
333
347
|
gasReporter: { enabled: process.env.REPORT_GAS !== undefined, currency: "USD" },
|
|
334
348
|
etherscan: {
|
|
@@ -358,6 +372,8 @@ const config = {
|
|
|
358
372
|
"mode-sepolia": process.env.MODE_ETHERSCAN_API_KEY,
|
|
359
373
|
lisk: process.env.LISK_ETHERSCAN_API_KEY,
|
|
360
374
|
"lisk-sepolia": process.env.LISK_ETHERSCAN_API_KEY,
|
|
375
|
+
blast: process.env.BLAST_ETHERSCAN_API_KEY,
|
|
376
|
+
"blast-sepolia": process.env.BLAST_ETHERSCAN_API_KEY,
|
|
361
377
|
},
|
|
362
378
|
customChains: [
|
|
363
379
|
{
|
|
@@ -488,6 +504,22 @@ const config = {
|
|
|
488
504
|
browserURL: "https://sepolia-blockscout.lisk.com",
|
|
489
505
|
},
|
|
490
506
|
},
|
|
507
|
+
{
|
|
508
|
+
network: "blast",
|
|
509
|
+
chainId: 81457,
|
|
510
|
+
urls: {
|
|
511
|
+
apiURL: "https://api.blastscan.io/api",
|
|
512
|
+
browserURL: "https://blastscan.io",
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
network: "blast-sepolia",
|
|
517
|
+
chainId: 168587773,
|
|
518
|
+
urls: {
|
|
519
|
+
apiURL: "https://api-sepolia.blastscan.io/api",
|
|
520
|
+
browserURL: "https://sepolia.blastscan.io",
|
|
521
|
+
},
|
|
522
|
+
},
|
|
491
523
|
],
|
|
492
524
|
},
|
|
493
525
|
namedAccounts: { deployer: 0 },
|
|
@@ -7,7 +7,7 @@ const config_1 = require("hardhat/config");
|
|
|
7
7
|
const assert_1 = __importDefault(require("assert"));
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
9
|
const constants_1 = require("../utils/constants");
|
|
10
|
-
const enabledChainIds = [1, 10, 137, 42161, 324,
|
|
10
|
+
const enabledChainIds = [1, 10, 137, 42161, 324, 1135, 8453, 34443, 59144, 81457]; // Supported mainnet chain IDs.
|
|
11
11
|
const getChainsFromList = (taskArgInput) => taskArgInput
|
|
12
12
|
?.replace(/\s/g, "")
|
|
13
13
|
?.split(",")
|
|
@@ -68,6 +68,9 @@ const getChainsFromList = (taskArgInput) => taskArgInput
|
|
|
68
68
|
throw new Error(`Could not find token address on chain ${chainId} in TOKEN_SYMBOLS_MAP for USDC.e or Native USDC`);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
else if (matchedSymbol === "DAI" && chainId === constants_1.CHAIN_IDs.BLAST) {
|
|
72
|
+
return constants_1.TOKEN_SYMBOLS_MAP.USDB.addresses[chainId]; // DAI maps to USDB on Blast.
|
|
73
|
+
}
|
|
71
74
|
const l2Address = constants_1.TOKEN_SYMBOLS_MAP[matchedSymbol].addresses[chainId];
|
|
72
75
|
if (l2Address === undefined) {
|
|
73
76
|
throw new Error(`Could not find token address on chain ${chainId} in TOKEN_SYMBOLS_MAP`);
|
package/dist/utils/utils.hre.js
CHANGED
|
@@ -30,14 +30,14 @@ async function deployNewProxy(name, constructorArgs, initArgs, implementationOnl
|
|
|
30
30
|
instance = (await upgrades.deployImplementation(await (0, utils_1.getContractFactory)(name, {}), {
|
|
31
31
|
constructorArgs,
|
|
32
32
|
kind: "uups",
|
|
33
|
-
unsafeAllow: ["delegatecall"],
|
|
33
|
+
unsafeAllow: ["delegatecall", "state-variable-immutable"],
|
|
34
34
|
}));
|
|
35
35
|
console.log(`New ${name} implementation deployed @ ${instance}`);
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
38
|
const proxy = await upgrades.deployProxy(await (0, utils_1.getContractFactory)(name, {}), initArgs, {
|
|
39
39
|
kind: "uups",
|
|
40
|
-
unsafeAllow: ["delegatecall"],
|
|
40
|
+
unsafeAllow: ["delegatecall", "state-variable-immutable"],
|
|
41
41
|
constructorArgs,
|
|
42
42
|
initializer: "initialize",
|
|
43
43
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@across-protocol/contracts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"author": "UMA Team",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepublish": "yarn build && hardhat export --export-all ./cache/massExport.json && ts-node ./scripts/processHardhatExport.ts && prettier --write ./deployments/deployments.json && yarn generate-contract-types"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@across-protocol/constants": "^3.1.
|
|
35
|
+
"@across-protocol/constants": "^3.1.5",
|
|
36
36
|
"@defi-wonderland/smock": "^2.3.4",
|
|
37
37
|
"@eth-optimism/contracts": "^0.5.40",
|
|
38
38
|
"@ethersproject/abstract-provider": "5.7.0",
|