@gearbox-protocol/deploy-tools 2.0.4 → 2.1.0
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/index.js +1351 -465
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __reflectGet = Reflect.get;
|
|
9
10
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
11
|
var __esm = (fn, res) => function __init() {
|
|
11
12
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
@@ -68,6 +69,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
68
69
|
__accessCheck(obj, member, "access private method");
|
|
69
70
|
return method;
|
|
70
71
|
};
|
|
72
|
+
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
71
73
|
|
|
72
74
|
// ../../node_modules/dotenv/package.json
|
|
73
75
|
var require_package = __commonJS({
|
|
@@ -95123,7 +95125,7 @@ var require_constants7 = __commonJS({
|
|
|
95123
95125
|
"../../node_modules/@gearbox-protocol/sdk-gov/lib/core/constants.js"(exports2) {
|
|
95124
95126
|
"use strict";
|
|
95125
95127
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95126
|
-
exports2.NOT_DEPLOYED = exports2.DUMB_ADDRESS4 = exports2.DUMB_ADDRESS3 = exports2.DUMB_ADDRESS2 = exports2.DUMB_ADDRESS = exports2.ADDRESS_0X0 = exports2.SLIPPAGE_DECIMALS = exports2.LEVERAGE_DECIMALS = exports2.timeRanges = exports2.PERCENTAGE_FACTOR = exports2.PERCENTAGE_DECIMALS = exports2.MS_PER_YEAR = exports2.SECONDS_PER_YEAR = exports2.PRICE_DECIMALS = exports2.PRICE_DECIMALS_POW = exports2.WAD = exports2.WAD_DECIMALS_POW = exports2.halfRAY = exports2.RAY = exports2.RAY_DECIMALS_POW = exports2.MAX_INT = void 0;
|
|
95128
|
+
exports2.FIRST_EPOCH_TIMESTAMP = exports2.NOT_DEPLOYED = exports2.DUMB_ADDRESS4 = exports2.DUMB_ADDRESS3 = exports2.DUMB_ADDRESS2 = exports2.DUMB_ADDRESS = exports2.ADDRESS_0X0 = exports2.SLIPPAGE_DECIMALS = exports2.LEVERAGE_DECIMALS = exports2.timeRanges = exports2.PERCENTAGE_FACTOR = exports2.PERCENTAGE_DECIMALS = exports2.MS_PER_YEAR = exports2.SECONDS_PER_YEAR = exports2.PRICE_DECIMALS = exports2.PRICE_DECIMALS_POW = exports2.WAD = exports2.WAD_DECIMALS_POW = exports2.halfRAY = exports2.RAY = exports2.RAY_DECIMALS_POW = exports2.MAX_INT = void 0;
|
|
95127
95129
|
exports2.MAX_INT = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
95128
95130
|
exports2.RAY_DECIMALS_POW = 27;
|
|
95129
95131
|
exports2.RAY = 10n ** BigInt(exports2.RAY_DECIMALS_POW);
|
|
@@ -95151,6 +95153,7 @@ var require_constants7 = __commonJS({
|
|
|
95151
95153
|
exports2.DUMB_ADDRESS3 = "0x822293548EB8453A49c4fF2c4375B7DE8AF5a38A";
|
|
95152
95154
|
exports2.DUMB_ADDRESS4 = "0x498222C4Ff2C4393548eb8453a75B7dE8AF5A38a";
|
|
95153
95155
|
exports2.NOT_DEPLOYED = "NOT DEPLOYED";
|
|
95156
|
+
exports2.FIRST_EPOCH_TIMESTAMP = 1702900800;
|
|
95154
95157
|
}
|
|
95155
95158
|
});
|
|
95156
95159
|
|
|
@@ -95197,6 +95200,8 @@ var require_decimals = __commonJS({
|
|
|
95197
95200
|
RPL: 18,
|
|
95198
95201
|
APE: 18,
|
|
95199
95202
|
AURA: 18,
|
|
95203
|
+
WLD: 18,
|
|
95204
|
+
OP: 18,
|
|
95200
95205
|
"3Crv": 18,
|
|
95201
95206
|
crvFRAX: 18,
|
|
95202
95207
|
OHMFRAXBP: 18,
|
|
@@ -95210,6 +95215,7 @@ var require_decimals = __commonJS({
|
|
|
95210
95215
|
crvCVXETH: 18,
|
|
95211
95216
|
crvUSDTWBTCWETH: 18,
|
|
95212
95217
|
LDOETH: 18,
|
|
95218
|
+
wstETHCRV: 18,
|
|
95213
95219
|
crvUSD: 18,
|
|
95214
95220
|
crvUSDUSDC: 18,
|
|
95215
95221
|
crvUSDUSDT: 18,
|
|
@@ -95251,6 +95257,8 @@ var require_decimals = __commonJS({
|
|
|
95251
95257
|
stkcvxcrvUSDETHCRV: 18,
|
|
95252
95258
|
yvDAI: 18,
|
|
95253
95259
|
yvUSDC: 6,
|
|
95260
|
+
yvUSDT: 6,
|
|
95261
|
+
yvOP: 18,
|
|
95254
95262
|
yvWETH: 18,
|
|
95255
95263
|
yvWBTC: 8,
|
|
95256
95264
|
yvCurve_stETH: 18,
|
|
@@ -95272,6 +95280,16 @@ var require_decimals = __commonJS({
|
|
|
95272
95280
|
"50OHM_50WETH": 18,
|
|
95273
95281
|
OHM_wstETH: 18,
|
|
95274
95282
|
USDC_DAI_USDT: 18,
|
|
95283
|
+
BPT_rETH_ETH: 18,
|
|
95284
|
+
BPT_ROAD: 18,
|
|
95285
|
+
BPT_WSTETH_ETH: 18,
|
|
95286
|
+
B_rETH_STABLE: 18,
|
|
95287
|
+
auraB_rETH_STABLE: 18,
|
|
95288
|
+
auraB_rETH_STABLE_vault: 18,
|
|
95289
|
+
auraBPT_rETH_ETH: 18,
|
|
95290
|
+
auraBPT_rETH_ETH_vault: 18,
|
|
95291
|
+
auraBPT_WSTETH_ETH: 18,
|
|
95292
|
+
auraBPT_WSTETH_ETH_vault: 18,
|
|
95275
95293
|
aDAI: 18,
|
|
95276
95294
|
aUSDC: 6,
|
|
95277
95295
|
aUSDT: 6,
|
|
@@ -95290,10 +95308,7 @@ var require_decimals = __commonJS({
|
|
|
95290
95308
|
sDAI: 18,
|
|
95291
95309
|
YieldETH: 18,
|
|
95292
95310
|
rETH: 18,
|
|
95293
|
-
rETH_f: 18
|
|
95294
|
-
B_rETH_STABLE: 18,
|
|
95295
|
-
auraB_rETH_STABLE: 18,
|
|
95296
|
-
auraB_rETH_STABLE_vault: 18
|
|
95311
|
+
rETH_f: 18
|
|
95297
95312
|
};
|
|
95298
95313
|
}
|
|
95299
95314
|
});
|
|
@@ -95357,25 +95372,33 @@ var require_aave = __commonJS({
|
|
|
95357
95372
|
aDAI: {
|
|
95358
95373
|
name: "AaveV2 aDAI",
|
|
95359
95374
|
symbol: "aDAI",
|
|
95360
|
-
type:
|
|
95375
|
+
type: {
|
|
95376
|
+
AllNetworks: tokenType_1.TokenType.AAVE_V2_A_TOKEN
|
|
95377
|
+
},
|
|
95361
95378
|
underlying: "DAI"
|
|
95362
95379
|
},
|
|
95363
95380
|
aUSDC: {
|
|
95364
95381
|
name: "AaveV2 aUSDC",
|
|
95365
95382
|
symbol: "aUSDC",
|
|
95366
|
-
type:
|
|
95383
|
+
type: {
|
|
95384
|
+
AllNetworks: tokenType_1.TokenType.AAVE_V2_A_TOKEN
|
|
95385
|
+
},
|
|
95367
95386
|
underlying: "USDC"
|
|
95368
95387
|
},
|
|
95369
95388
|
aUSDT: {
|
|
95370
95389
|
name: "AaveV2 aUSDT",
|
|
95371
95390
|
symbol: "aUSDT",
|
|
95372
|
-
type:
|
|
95391
|
+
type: {
|
|
95392
|
+
AllNetworks: tokenType_1.TokenType.AAVE_V2_A_TOKEN
|
|
95393
|
+
},
|
|
95373
95394
|
underlying: "USDT"
|
|
95374
95395
|
},
|
|
95375
95396
|
aWETH: {
|
|
95376
95397
|
name: "AaveV2 aWETH",
|
|
95377
95398
|
symbol: "aWETH",
|
|
95378
|
-
type:
|
|
95399
|
+
type: {
|
|
95400
|
+
AllNetworks: tokenType_1.TokenType.AAVE_V2_A_TOKEN
|
|
95401
|
+
},
|
|
95379
95402
|
underlying: "WETH"
|
|
95380
95403
|
}
|
|
95381
95404
|
};
|
|
@@ -95383,25 +95406,33 @@ var require_aave = __commonJS({
|
|
|
95383
95406
|
waDAI: {
|
|
95384
95407
|
name: "Wrapped AaveV2 aDAI",
|
|
95385
95408
|
symbol: "waDAI",
|
|
95386
|
-
type:
|
|
95409
|
+
type: {
|
|
95410
|
+
AllNetworks: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN
|
|
95411
|
+
},
|
|
95387
95412
|
underlying: "aDAI"
|
|
95388
95413
|
},
|
|
95389
95414
|
waUSDC: {
|
|
95390
95415
|
name: "Wrapped AaveV2 aUSDC",
|
|
95391
95416
|
symbol: "waUSDC",
|
|
95392
|
-
type:
|
|
95417
|
+
type: {
|
|
95418
|
+
AllNetworks: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN
|
|
95419
|
+
},
|
|
95393
95420
|
underlying: "aUSDC"
|
|
95394
95421
|
},
|
|
95395
95422
|
waUSDT: {
|
|
95396
95423
|
name: "Wrapped AaveV2 aUSDT",
|
|
95397
95424
|
symbol: "waUSDT",
|
|
95398
|
-
type:
|
|
95425
|
+
type: {
|
|
95426
|
+
AllNetworks: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN
|
|
95427
|
+
},
|
|
95399
95428
|
underlying: "aUSDT"
|
|
95400
95429
|
},
|
|
95401
95430
|
waWETH: {
|
|
95402
95431
|
name: "Wrapped AaveV2 aWETH",
|
|
95403
95432
|
symbol: "waWETH",
|
|
95404
|
-
type:
|
|
95433
|
+
type: {
|
|
95434
|
+
AllNetworks: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN
|
|
95435
|
+
},
|
|
95405
95436
|
underlying: "aWETH"
|
|
95406
95437
|
}
|
|
95407
95438
|
};
|
|
@@ -95464,7 +95495,9 @@ var require_aura = __commonJS({
|
|
|
95464
95495
|
auraB_rETH_STABLE: {
|
|
95465
95496
|
name: "Balancer rETH Stable Pool Aura Deposit",
|
|
95466
95497
|
symbol: "auraB_rETH_STABLE",
|
|
95467
|
-
type:
|
|
95498
|
+
type: {
|
|
95499
|
+
AllNetworks: tokenType_1.TokenType.AURA_LP_TOKEN
|
|
95500
|
+
},
|
|
95468
95501
|
pool: "AURA_B_RETH_STABLE_POOL",
|
|
95469
95502
|
pid: 109,
|
|
95470
95503
|
underlying: "B_rETH_STABLE",
|
|
@@ -95481,30 +95514,90 @@ var require_aura = __commonJS({
|
|
|
95481
95514
|
tokenOut: "auraB_rETH_STABLE_vault"
|
|
95482
95515
|
}
|
|
95483
95516
|
]
|
|
95517
|
+
},
|
|
95518
|
+
auraBPT_rETH_ETH: {
|
|
95519
|
+
name: "BeethovenX rETH-ETH Aura Deposit",
|
|
95520
|
+
symbol: "auraBPT_rETH_ETH",
|
|
95521
|
+
type: {
|
|
95522
|
+
AllNetworks: tokenType_1.TokenType.AURA_LP_TOKEN
|
|
95523
|
+
},
|
|
95524
|
+
pool: "AURA_BPT_RETH_ETH_POOL",
|
|
95525
|
+
pid: 0,
|
|
95526
|
+
underlying: "BPT_rETH_ETH",
|
|
95527
|
+
stakedToken: "auraBPT_rETH_ETH_vault",
|
|
95528
|
+
lpActions: [
|
|
95529
|
+
{
|
|
95530
|
+
type: tradeTypes_1.TradeType.AuraWithdrawLP,
|
|
95531
|
+
contract: "AURA_BOOSTER",
|
|
95532
|
+
tokenOut: "BPT_rETH_ETH"
|
|
95533
|
+
},
|
|
95534
|
+
{
|
|
95535
|
+
type: tradeTypes_1.TradeType.AuraStake,
|
|
95536
|
+
contract: "AURA_BPT_RETH_ETH_POOL",
|
|
95537
|
+
tokenOut: "auraBPT_rETH_ETH_vault"
|
|
95538
|
+
}
|
|
95539
|
+
]
|
|
95540
|
+
},
|
|
95541
|
+
auraBPT_WSTETH_ETH: {
|
|
95542
|
+
name: "BeethovenX wstETH-ETH Aura Deposit",
|
|
95543
|
+
symbol: "auraBPT_WSTETH_ETH",
|
|
95544
|
+
type: {
|
|
95545
|
+
AllNetworks: tokenType_1.TokenType.AURA_LP_TOKEN
|
|
95546
|
+
},
|
|
95547
|
+
pool: "AURA_BPT_WSTETH_ETH_POOL",
|
|
95548
|
+
pid: 4,
|
|
95549
|
+
underlying: "BPT_WSTETH_ETH",
|
|
95550
|
+
stakedToken: "auraBPT_WSTETH_ETH_vault",
|
|
95551
|
+
lpActions: [
|
|
95552
|
+
{
|
|
95553
|
+
type: tradeTypes_1.TradeType.AuraWithdrawLP,
|
|
95554
|
+
contract: "AURA_BOOSTER",
|
|
95555
|
+
tokenOut: "BPT_WSTETH_ETH"
|
|
95556
|
+
},
|
|
95557
|
+
{
|
|
95558
|
+
type: tradeTypes_1.TradeType.AuraStake,
|
|
95559
|
+
contract: "AURA_BPT_WSTETH_ETH_POOL",
|
|
95560
|
+
tokenOut: "auraBPT_WSTETH_ETH_vault"
|
|
95561
|
+
}
|
|
95562
|
+
]
|
|
95484
95563
|
}
|
|
95485
95564
|
};
|
|
95486
95565
|
exports2.auraStakedTokens = {
|
|
95487
95566
|
auraB_rETH_STABLE_vault: {
|
|
95488
95567
|
name: "Aura B_rETH_STABLE_vault",
|
|
95489
95568
|
symbol: "auraB_rETH_STABLE_vault",
|
|
95490
|
-
type:
|
|
95569
|
+
type: {
|
|
95570
|
+
AllNetworks: tokenType_1.TokenType.AURA_STAKED_TOKEN
|
|
95571
|
+
},
|
|
95491
95572
|
pool: "AURA_B_RETH_STABLE_POOL",
|
|
95492
95573
|
pid: 149,
|
|
95493
95574
|
underlying: "B_rETH_STABLE",
|
|
95494
95575
|
lpToken: "auraB_rETH_STABLE",
|
|
95495
|
-
lpActions: [
|
|
95496
|
-
|
|
95497
|
-
|
|
95498
|
-
|
|
95499
|
-
|
|
95500
|
-
|
|
95501
|
-
|
|
95502
|
-
|
|
95503
|
-
|
|
95504
|
-
|
|
95505
|
-
|
|
95506
|
-
|
|
95507
|
-
]
|
|
95576
|
+
lpActions: []
|
|
95577
|
+
},
|
|
95578
|
+
auraBPT_rETH_ETH_vault: {
|
|
95579
|
+
name: "Aura BPT_rETH_ETH vault",
|
|
95580
|
+
symbol: "auraBPT_rETH_ETH_vault",
|
|
95581
|
+
type: {
|
|
95582
|
+
AllNetworks: tokenType_1.TokenType.AURA_STAKED_TOKEN
|
|
95583
|
+
},
|
|
95584
|
+
pool: "AURA_BPT_RETH_ETH_POOL",
|
|
95585
|
+
pid: 0,
|
|
95586
|
+
underlying: "BPT_rETH_ETH",
|
|
95587
|
+
lpToken: "auraBPT_rETH_ETH",
|
|
95588
|
+
lpActions: []
|
|
95589
|
+
},
|
|
95590
|
+
auraBPT_WSTETH_ETH_vault: {
|
|
95591
|
+
name: "Aura BPT_WSTETH_ETH vault",
|
|
95592
|
+
symbol: "auraBPT_WSTETH_ETH_vault",
|
|
95593
|
+
type: {
|
|
95594
|
+
AllNetworks: tokenType_1.TokenType.AURA_STAKED_TOKEN
|
|
95595
|
+
},
|
|
95596
|
+
pool: "AURA_BPT_WSTETH_ETH_POOL",
|
|
95597
|
+
pid: 0,
|
|
95598
|
+
underlying: "BPT_WSTETH_ETH",
|
|
95599
|
+
lpToken: "auraBPT_WSTETH_ETH",
|
|
95600
|
+
lpActions: []
|
|
95508
95601
|
}
|
|
95509
95602
|
};
|
|
95510
95603
|
exports2.auraTokens = {
|
|
@@ -95539,37 +95632,74 @@ var require_balancer = __commonJS({
|
|
|
95539
95632
|
"50OHM_50DAI": {
|
|
95540
95633
|
name: "Balancer 50OHM_50DAI",
|
|
95541
95634
|
symbol: "50OHM_50DAI",
|
|
95542
|
-
type:
|
|
95635
|
+
type: {
|
|
95636
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95637
|
+
},
|
|
95543
95638
|
underlying: ["OHM", "DAI"],
|
|
95544
95639
|
poolId: "0x76fcf0e8c7ff37a47a799fa2cd4c13cde0d981c90002000000000000000003d2"
|
|
95545
95640
|
},
|
|
95546
95641
|
"50OHM_50WETH": {
|
|
95547
95642
|
name: "Balancer 50OHM_50WETH",
|
|
95548
95643
|
symbol: "50OHM_50WETH",
|
|
95549
|
-
type:
|
|
95644
|
+
type: {
|
|
95645
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95646
|
+
},
|
|
95550
95647
|
underlying: ["OHM", "WETH"],
|
|
95551
95648
|
poolId: "0xd1ec5e215e8148d76f4460e4097fd3d5ae0a35580002000000000000000003d3"
|
|
95552
95649
|
},
|
|
95553
95650
|
OHM_wstETH: {
|
|
95554
95651
|
name: "Balancer OHM_wstETH",
|
|
95555
95652
|
symbol: "OHM_wstETH",
|
|
95556
|
-
type:
|
|
95653
|
+
type: {
|
|
95654
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95655
|
+
},
|
|
95557
95656
|
underlying: ["OHM", "wstETH"],
|
|
95558
95657
|
poolId: "0xd4f79ca0ac83192693bce4699d0c10c66aa6cf0f00020000000000000000047e"
|
|
95559
95658
|
},
|
|
95560
95659
|
USDC_DAI_USDT: {
|
|
95561
95660
|
name: "Balancer USDC_DAI_USDT",
|
|
95562
95661
|
symbol: "USDC_DAI_USDT",
|
|
95563
|
-
type:
|
|
95662
|
+
type: {
|
|
95663
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95664
|
+
},
|
|
95564
95665
|
underlying: ["USDC", "DAI", "USDT"],
|
|
95565
95666
|
poolId: "0x79c58f70905f734641735bc61e45c19dd9ad60bc0000000000000000000004e7"
|
|
95566
95667
|
},
|
|
95567
95668
|
B_rETH_STABLE: {
|
|
95568
95669
|
name: "Balancer rETH Stable Pool",
|
|
95569
95670
|
symbol: "B_rETH_STABLE",
|
|
95570
|
-
type:
|
|
95671
|
+
type: {
|
|
95672
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95673
|
+
},
|
|
95571
95674
|
underlying: ["rETH", "WETH"],
|
|
95572
95675
|
poolId: "0x1e19cf2d73a72ef1332c882f20534b6519be0276000200000000000000000112"
|
|
95676
|
+
},
|
|
95677
|
+
BPT_rETH_ETH: {
|
|
95678
|
+
name: "BeethovenX rETH-ETH Pool",
|
|
95679
|
+
symbol: "BPT_rETH_ETH",
|
|
95680
|
+
type: {
|
|
95681
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95682
|
+
},
|
|
95683
|
+
underlying: ["WETH", "rETH"],
|
|
95684
|
+
poolId: "0x4fd63966879300cafafbb35d157dc5229278ed2300020000000000000000002b"
|
|
95685
|
+
},
|
|
95686
|
+
BPT_WSTETH_ETH: {
|
|
95687
|
+
name: "BeethovenX wstETH-ETH Pool",
|
|
95688
|
+
symbol: "BPT_WSTETH_ETH",
|
|
95689
|
+
type: {
|
|
95690
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95691
|
+
},
|
|
95692
|
+
underlying: ["wstETH", "WETH"],
|
|
95693
|
+
poolId: "0x7b50775383d3d6f0215a8f290f2c9e2eebbeceb200020000000000000000008b"
|
|
95694
|
+
},
|
|
95695
|
+
BPT_ROAD: {
|
|
95696
|
+
name: "BeethovenX WETH-OP-USDC Pool",
|
|
95697
|
+
symbol: "BPT_ROAD",
|
|
95698
|
+
type: {
|
|
95699
|
+
AllNetworks: tokenType_1.TokenType.BALANCER_LP_TOKEN
|
|
95700
|
+
},
|
|
95701
|
+
underlying: ["WETH", "OP", "USDC"],
|
|
95702
|
+
poolId: "0x39965c9dab5448482cf7e002f583c812ceb53046000100000000000000000003"
|
|
95573
95703
|
}
|
|
95574
95704
|
};
|
|
95575
95705
|
var isBalancerLPToken = (t) => typeof t === "string" && !!exports2.balancerLpTokens[t];
|
|
@@ -95588,37 +95718,49 @@ var require_compound = __commonJS({
|
|
|
95588
95718
|
cDAI: {
|
|
95589
95719
|
name: "CompoundV2 cDAI",
|
|
95590
95720
|
symbol: "cDAI",
|
|
95591
|
-
type:
|
|
95721
|
+
type: {
|
|
95722
|
+
AllNetworks: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN
|
|
95723
|
+
},
|
|
95592
95724
|
underlying: "DAI"
|
|
95593
95725
|
},
|
|
95594
95726
|
cUSDC: {
|
|
95595
95727
|
name: "CompoundV2 cUSDC",
|
|
95596
95728
|
symbol: "cUSDC",
|
|
95597
|
-
type:
|
|
95729
|
+
type: {
|
|
95730
|
+
AllNetworks: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN
|
|
95731
|
+
},
|
|
95598
95732
|
underlying: "USDC"
|
|
95599
95733
|
},
|
|
95600
95734
|
cUSDT: {
|
|
95601
95735
|
name: "CompoundV2 cUSDT",
|
|
95602
95736
|
symbol: "cUSDT",
|
|
95603
|
-
type:
|
|
95737
|
+
type: {
|
|
95738
|
+
AllNetworks: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN
|
|
95739
|
+
},
|
|
95604
95740
|
underlying: "USDT"
|
|
95605
95741
|
},
|
|
95606
95742
|
cETH: {
|
|
95607
95743
|
name: "CompoundV2 cETH",
|
|
95608
95744
|
symbol: "cETH",
|
|
95609
|
-
type:
|
|
95745
|
+
type: {
|
|
95746
|
+
AllNetworks: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN
|
|
95747
|
+
},
|
|
95610
95748
|
underlying: "WETH"
|
|
95611
95749
|
},
|
|
95612
95750
|
cLINK: {
|
|
95613
95751
|
name: "CompoundV2 cLINK",
|
|
95614
95752
|
symbol: "cLINK",
|
|
95615
|
-
type:
|
|
95753
|
+
type: {
|
|
95754
|
+
AllNetworks: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN
|
|
95755
|
+
},
|
|
95616
95756
|
underlying: "LINK"
|
|
95617
95757
|
},
|
|
95618
95758
|
fUSDC: {
|
|
95619
95759
|
name: "Flux fUSDC",
|
|
95620
95760
|
symbol: "fUSDC",
|
|
95621
|
-
type:
|
|
95761
|
+
type: {
|
|
95762
|
+
AllNetworks: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN
|
|
95763
|
+
},
|
|
95622
95764
|
underlying: "USDC"
|
|
95623
95765
|
}
|
|
95624
95766
|
};
|
|
@@ -95638,7 +95780,9 @@ var require_convex = __commonJS({
|
|
|
95638
95780
|
cvx3Crv: {
|
|
95639
95781
|
name: "Convex cvx3Crv",
|
|
95640
95782
|
symbol: "cvx3Crv",
|
|
95641
|
-
type:
|
|
95783
|
+
type: {
|
|
95784
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95785
|
+
},
|
|
95642
95786
|
pool: "CONVEX_3CRV_POOL",
|
|
95643
95787
|
pid: 9,
|
|
95644
95788
|
underlying: "3Crv",
|
|
@@ -95647,7 +95791,9 @@ var require_convex = __commonJS({
|
|
|
95647
95791
|
cvxcrvFRAX: {
|
|
95648
95792
|
name: "Convex cvxcrvFRAX",
|
|
95649
95793
|
symbol: "cvxcrvFRAX",
|
|
95650
|
-
type:
|
|
95794
|
+
type: {
|
|
95795
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95796
|
+
},
|
|
95651
95797
|
pool: "CONVEX_FRAX_USDC_POOL",
|
|
95652
95798
|
pid: 100,
|
|
95653
95799
|
underlying: "crvFRAX",
|
|
@@ -95656,7 +95802,9 @@ var require_convex = __commonJS({
|
|
|
95656
95802
|
cvxsteCRV: {
|
|
95657
95803
|
name: "Convex cvxsteCRV",
|
|
95658
95804
|
symbol: "cvxsteCRV",
|
|
95659
|
-
type:
|
|
95805
|
+
type: {
|
|
95806
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95807
|
+
},
|
|
95660
95808
|
pool: "CONVEX_STECRV_POOL",
|
|
95661
95809
|
pid: 25,
|
|
95662
95810
|
underlying: "steCRV",
|
|
@@ -95665,7 +95813,9 @@ var require_convex = __commonJS({
|
|
|
95665
95813
|
cvxFRAX3CRV: {
|
|
95666
95814
|
name: "Convex cvxFRAX3CRV-f",
|
|
95667
95815
|
symbol: "cvxFRAX3CRV",
|
|
95668
|
-
type:
|
|
95816
|
+
type: {
|
|
95817
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95818
|
+
},
|
|
95669
95819
|
pool: "CONVEX_FRAX3CRV_POOL",
|
|
95670
95820
|
pid: 32,
|
|
95671
95821
|
underlying: "FRAX3CRV",
|
|
@@ -95674,7 +95824,9 @@ var require_convex = __commonJS({
|
|
|
95674
95824
|
cvxLUSD3CRV: {
|
|
95675
95825
|
name: "Convex cvxLUSD3CRV-f",
|
|
95676
95826
|
symbol: "cvxLUSD3CRV",
|
|
95677
|
-
type:
|
|
95827
|
+
type: {
|
|
95828
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95829
|
+
},
|
|
95678
95830
|
pool: "CONVEX_LUSD3CRV_POOL",
|
|
95679
95831
|
pid: 33,
|
|
95680
95832
|
underlying: "LUSD3CRV",
|
|
@@ -95683,7 +95835,9 @@ var require_convex = __commonJS({
|
|
|
95683
95835
|
cvxcrvPlain3andSUSD: {
|
|
95684
95836
|
name: "Convex cvxcrvPlain3andSUSD",
|
|
95685
95837
|
symbol: "cvxcrvPlain3andSUSD",
|
|
95686
|
-
type:
|
|
95838
|
+
type: {
|
|
95839
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95840
|
+
},
|
|
95687
95841
|
pool: "CONVEX_SUSD_POOL",
|
|
95688
95842
|
pid: 4,
|
|
95689
95843
|
underlying: "crvPlain3andSUSD",
|
|
@@ -95692,7 +95846,9 @@ var require_convex = __commonJS({
|
|
|
95692
95846
|
cvxgusd3CRV: {
|
|
95693
95847
|
name: "Convex cvxgusd3CRV",
|
|
95694
95848
|
symbol: "cvxgusd3CRV",
|
|
95695
|
-
type:
|
|
95849
|
+
type: {
|
|
95850
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95851
|
+
},
|
|
95696
95852
|
pool: "CONVEX_GUSD_POOL",
|
|
95697
95853
|
pid: 10,
|
|
95698
95854
|
underlying: "gusd3CRV",
|
|
@@ -95701,7 +95857,9 @@ var require_convex = __commonJS({
|
|
|
95701
95857
|
cvxOHMFRAXBP: {
|
|
95702
95858
|
name: "Convex cvxOHMFRAXBP",
|
|
95703
95859
|
symbol: "cvxOHMFRAXBP",
|
|
95704
|
-
type:
|
|
95860
|
+
type: {
|
|
95861
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95862
|
+
},
|
|
95705
95863
|
pool: "CONVEX_OHMFRAXBP_POOL",
|
|
95706
95864
|
pid: 138,
|
|
95707
95865
|
underlying: "OHMFRAXBP",
|
|
@@ -95710,7 +95868,9 @@ var require_convex = __commonJS({
|
|
|
95710
95868
|
cvxMIM_3LP3CRV: {
|
|
95711
95869
|
name: "Convex cvxMIM-3LP3CRV-f",
|
|
95712
95870
|
symbol: "cvxMIM_3LP3CRV",
|
|
95713
|
-
type:
|
|
95871
|
+
type: {
|
|
95872
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95873
|
+
},
|
|
95714
95874
|
pool: "CONVEX_MIM3CRV_POOL",
|
|
95715
95875
|
pid: 40,
|
|
95716
95876
|
underlying: "MIM_3LP3CRV",
|
|
@@ -95719,7 +95879,9 @@ var require_convex = __commonJS({
|
|
|
95719
95879
|
cvxcrvCRVETH: {
|
|
95720
95880
|
name: "Convex cvxcrvCRVETH",
|
|
95721
95881
|
symbol: "cvxcrvCRVETH",
|
|
95722
|
-
type:
|
|
95882
|
+
type: {
|
|
95883
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95884
|
+
},
|
|
95723
95885
|
pool: "CONVEX_CRVETH_POOL",
|
|
95724
95886
|
pid: 61,
|
|
95725
95887
|
underlying: "crvCRVETH",
|
|
@@ -95728,7 +95890,9 @@ var require_convex = __commonJS({
|
|
|
95728
95890
|
cvxcrvCVXETH: {
|
|
95729
95891
|
name: "Convex cvxcrvCVXETH",
|
|
95730
95892
|
symbol: "cvxcrvCVXETH",
|
|
95731
|
-
type:
|
|
95893
|
+
type: {
|
|
95894
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95895
|
+
},
|
|
95732
95896
|
pool: "CONVEX_CVXETH_POOL",
|
|
95733
95897
|
pid: 64,
|
|
95734
95898
|
underlying: "crvCVXETH",
|
|
@@ -95737,7 +95901,9 @@ var require_convex = __commonJS({
|
|
|
95737
95901
|
cvxcrvUSDTWBTCWETH: {
|
|
95738
95902
|
name: "Convex cvxcrvUSDTWBTCWETH",
|
|
95739
95903
|
symbol: "cvxcrvUSDTWBTCWETH",
|
|
95740
|
-
type:
|
|
95904
|
+
type: {
|
|
95905
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95906
|
+
},
|
|
95741
95907
|
pool: "CONVEX_3CRYPTO_POOL",
|
|
95742
95908
|
pid: 188,
|
|
95743
95909
|
underlying: "crvUSDTWBTCWETH",
|
|
@@ -95746,7 +95912,9 @@ var require_convex = __commonJS({
|
|
|
95746
95912
|
cvxLDOETH: {
|
|
95747
95913
|
name: "Convex cvxLDOETH",
|
|
95748
95914
|
symbol: "cvxLDOETH",
|
|
95749
|
-
type:
|
|
95915
|
+
type: {
|
|
95916
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95917
|
+
},
|
|
95750
95918
|
pool: "CONVEX_LDOETH_POOL",
|
|
95751
95919
|
pid: 149,
|
|
95752
95920
|
underlying: "LDOETH",
|
|
@@ -95755,7 +95923,9 @@ var require_convex = __commonJS({
|
|
|
95755
95923
|
cvxcrvUSDUSDC: {
|
|
95756
95924
|
name: "Convex cvxcrvUSDUSDC",
|
|
95757
95925
|
symbol: "cvxcrvUSDUSDC",
|
|
95758
|
-
type:
|
|
95926
|
+
type: {
|
|
95927
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95928
|
+
},
|
|
95759
95929
|
pool: "CONVEX_CRVUSD_USDC_POOL",
|
|
95760
95930
|
pid: 182,
|
|
95761
95931
|
underlying: "crvUSDUSDC",
|
|
@@ -95764,7 +95934,9 @@ var require_convex = __commonJS({
|
|
|
95764
95934
|
cvxcrvUSDUSDT: {
|
|
95765
95935
|
name: "Convex cvxcrvUSDUSDT",
|
|
95766
95936
|
symbol: "cvxcrvUSDUSDT",
|
|
95767
|
-
type:
|
|
95937
|
+
type: {
|
|
95938
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95939
|
+
},
|
|
95768
95940
|
pool: "CONVEX_CRVUSD_USDT_POOL",
|
|
95769
95941
|
pid: 179,
|
|
95770
95942
|
underlying: "crvUSDUSDT",
|
|
@@ -95773,7 +95945,9 @@ var require_convex = __commonJS({
|
|
|
95773
95945
|
cvxcrvUSDFRAX: {
|
|
95774
95946
|
name: "Convex cvxcrvUSDFRAX",
|
|
95775
95947
|
symbol: "cvxcrvUSDFRAX",
|
|
95776
|
-
type:
|
|
95948
|
+
type: {
|
|
95949
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95950
|
+
},
|
|
95777
95951
|
pool: "CONVEX_CRVUSD_FRAX_POOL",
|
|
95778
95952
|
pid: 187,
|
|
95779
95953
|
underlying: "crvUSDFRAX",
|
|
@@ -95782,7 +95956,9 @@ var require_convex = __commonJS({
|
|
|
95782
95956
|
cvxcrvUSDETHCRV: {
|
|
95783
95957
|
name: "Convex cvxcrvUSDETHCRV",
|
|
95784
95958
|
symbol: "cvxcrvUSDETHCRV",
|
|
95785
|
-
type:
|
|
95959
|
+
type: {
|
|
95960
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_LP_TOKEN
|
|
95961
|
+
},
|
|
95786
95962
|
pool: "CONVEX_TRI_CRV_POOL",
|
|
95787
95963
|
pid: 211,
|
|
95788
95964
|
underlying: "crvUSDETHCRV",
|
|
@@ -95793,7 +95969,9 @@ var require_convex = __commonJS({
|
|
|
95793
95969
|
stkcvx3Crv: {
|
|
95794
95970
|
name: "Convex stkcvx3Crv",
|
|
95795
95971
|
symbol: "stkcvx3Crv",
|
|
95796
|
-
type:
|
|
95972
|
+
type: {
|
|
95973
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
95974
|
+
},
|
|
95797
95975
|
pool: "CONVEX_3CRV_POOL",
|
|
95798
95976
|
pid: 9,
|
|
95799
95977
|
underlying: "3Crv",
|
|
@@ -95802,7 +95980,9 @@ var require_convex = __commonJS({
|
|
|
95802
95980
|
stkcvxcrvFRAX: {
|
|
95803
95981
|
name: "Convex stkcvxcrvFRAX",
|
|
95804
95982
|
symbol: "stkcvxcrvFRAX",
|
|
95805
|
-
type:
|
|
95983
|
+
type: {
|
|
95984
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
95985
|
+
},
|
|
95806
95986
|
pool: "CONVEX_FRAX_USDC_POOL",
|
|
95807
95987
|
pid: 100,
|
|
95808
95988
|
underlying: "crvFRAX",
|
|
@@ -95811,7 +95991,9 @@ var require_convex = __commonJS({
|
|
|
95811
95991
|
stkcvxsteCRV: {
|
|
95812
95992
|
name: "Convex stkcvxsteCRV",
|
|
95813
95993
|
symbol: "stkcvxsteCRV",
|
|
95814
|
-
type:
|
|
95994
|
+
type: {
|
|
95995
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
95996
|
+
},
|
|
95815
95997
|
pool: "CONVEX_STECRV_POOL",
|
|
95816
95998
|
pid: 25,
|
|
95817
95999
|
underlying: "steCRV",
|
|
@@ -95820,7 +96002,9 @@ var require_convex = __commonJS({
|
|
|
95820
96002
|
stkcvxFRAX3CRV: {
|
|
95821
96003
|
name: "Convex stkcvxFRAX3CRV-f",
|
|
95822
96004
|
symbol: "stkcvxFRAX3CRV",
|
|
95823
|
-
type:
|
|
96005
|
+
type: {
|
|
96006
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96007
|
+
},
|
|
95824
96008
|
pool: "CONVEX_FRAX3CRV_POOL",
|
|
95825
96009
|
pid: 32,
|
|
95826
96010
|
underlying: "FRAX3CRV",
|
|
@@ -95829,7 +96013,9 @@ var require_convex = __commonJS({
|
|
|
95829
96013
|
stkcvxLUSD3CRV: {
|
|
95830
96014
|
name: "Convex stkcvxLUSD3CRV-f",
|
|
95831
96015
|
symbol: "stkcvxLUSD3CRV",
|
|
95832
|
-
type:
|
|
96016
|
+
type: {
|
|
96017
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96018
|
+
},
|
|
95833
96019
|
pool: "CONVEX_LUSD3CRV_POOL",
|
|
95834
96020
|
pid: 33,
|
|
95835
96021
|
underlying: "LUSD3CRV",
|
|
@@ -95838,7 +96024,9 @@ var require_convex = __commonJS({
|
|
|
95838
96024
|
stkcvxcrvPlain3andSUSD: {
|
|
95839
96025
|
name: "Convex stkcvxcrvPlain3andSUSD",
|
|
95840
96026
|
symbol: "stkcvxcrvPlain3andSUSD",
|
|
95841
|
-
type:
|
|
96027
|
+
type: {
|
|
96028
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96029
|
+
},
|
|
95842
96030
|
pool: "CONVEX_SUSD_POOL",
|
|
95843
96031
|
pid: 4,
|
|
95844
96032
|
underlying: "crvPlain3andSUSD",
|
|
@@ -95847,7 +96035,9 @@ var require_convex = __commonJS({
|
|
|
95847
96035
|
stkcvxgusd3CRV: {
|
|
95848
96036
|
name: "Convex stkcvxgusd3CRV",
|
|
95849
96037
|
symbol: "stkcvxgusd3CRV",
|
|
95850
|
-
type:
|
|
96038
|
+
type: {
|
|
96039
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96040
|
+
},
|
|
95851
96041
|
pool: "CONVEX_GUSD_POOL",
|
|
95852
96042
|
pid: 10,
|
|
95853
96043
|
underlying: "gusd3CRV",
|
|
@@ -95856,7 +96046,9 @@ var require_convex = __commonJS({
|
|
|
95856
96046
|
stkcvxOHMFRAXBP: {
|
|
95857
96047
|
name: "Convex stkcvxOHMFRAXBP",
|
|
95858
96048
|
symbol: "stkcvxOHMFRAXBP",
|
|
95859
|
-
type:
|
|
96049
|
+
type: {
|
|
96050
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96051
|
+
},
|
|
95860
96052
|
pool: "CONVEX_OHMFRAXBP_POOL",
|
|
95861
96053
|
pid: 138,
|
|
95862
96054
|
underlying: "OHMFRAXBP",
|
|
@@ -95865,7 +96057,9 @@ var require_convex = __commonJS({
|
|
|
95865
96057
|
stkcvxMIM_3LP3CRV: {
|
|
95866
96058
|
name: "Convex stkcvxMIM_3LP3CRV-f",
|
|
95867
96059
|
symbol: "stkcvxMIM_3LP3CRV",
|
|
95868
|
-
type:
|
|
96060
|
+
type: {
|
|
96061
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96062
|
+
},
|
|
95869
96063
|
pool: "CONVEX_MIM3CRV_POOL",
|
|
95870
96064
|
pid: 40,
|
|
95871
96065
|
underlying: "MIM_3LP3CRV",
|
|
@@ -95874,7 +96068,9 @@ var require_convex = __commonJS({
|
|
|
95874
96068
|
stkcvxcrvCRVETH: {
|
|
95875
96069
|
name: "Convex stkcvxcrvCRVETH",
|
|
95876
96070
|
symbol: "stkcvxcrvCRVETH",
|
|
95877
|
-
type:
|
|
96071
|
+
type: {
|
|
96072
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96073
|
+
},
|
|
95878
96074
|
pool: "CONVEX_CRVETH_POOL",
|
|
95879
96075
|
pid: 61,
|
|
95880
96076
|
underlying: "crvCRVETH",
|
|
@@ -95883,7 +96079,9 @@ var require_convex = __commonJS({
|
|
|
95883
96079
|
stkcvxcrvCVXETH: {
|
|
95884
96080
|
name: "Convex stkcvxcrvCVXETH",
|
|
95885
96081
|
symbol: "stkcvxcrvCVXETH",
|
|
95886
|
-
type:
|
|
96082
|
+
type: {
|
|
96083
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96084
|
+
},
|
|
95887
96085
|
pool: "CONVEX_CVXETH_POOL",
|
|
95888
96086
|
pid: 64,
|
|
95889
96087
|
underlying: "crvCVXETH",
|
|
@@ -95892,7 +96090,9 @@ var require_convex = __commonJS({
|
|
|
95892
96090
|
stkcvxcrvUSDTWBTCWETH: {
|
|
95893
96091
|
name: "Convex stkcvxcrv3crypto",
|
|
95894
96092
|
symbol: "stkcvxcrvUSDTWBTCWETH",
|
|
95895
|
-
type:
|
|
96093
|
+
type: {
|
|
96094
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96095
|
+
},
|
|
95896
96096
|
pool: "CONVEX_3CRYPTO_POOL",
|
|
95897
96097
|
pid: 188,
|
|
95898
96098
|
underlying: "crvUSDTWBTCWETH",
|
|
@@ -95901,7 +96101,9 @@ var require_convex = __commonJS({
|
|
|
95901
96101
|
stkcvxLDOETH: {
|
|
95902
96102
|
name: "Convex stkcvxLDOETH",
|
|
95903
96103
|
symbol: "stkcvxLDOETH",
|
|
95904
|
-
type:
|
|
96104
|
+
type: {
|
|
96105
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96106
|
+
},
|
|
95905
96107
|
pool: "CONVEX_LDOETH_POOL",
|
|
95906
96108
|
pid: 149,
|
|
95907
96109
|
underlying: "LDOETH",
|
|
@@ -95910,7 +96112,9 @@ var require_convex = __commonJS({
|
|
|
95910
96112
|
stkcvxcrvUSDUSDC: {
|
|
95911
96113
|
name: "Convex stkcvxcrvUSDUSDC",
|
|
95912
96114
|
symbol: "stkcvxcrvUSDUSDC",
|
|
95913
|
-
type:
|
|
96115
|
+
type: {
|
|
96116
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96117
|
+
},
|
|
95914
96118
|
pool: "CONVEX_CRVUSD_USDC_POOL",
|
|
95915
96119
|
pid: 182,
|
|
95916
96120
|
underlying: "crvUSDUSDC",
|
|
@@ -95919,7 +96123,9 @@ var require_convex = __commonJS({
|
|
|
95919
96123
|
stkcvxcrvUSDUSDT: {
|
|
95920
96124
|
name: "Convex stkcvxcrvUSDUSDT",
|
|
95921
96125
|
symbol: "stkcvxcrvUSDUSDT",
|
|
95922
|
-
type:
|
|
96126
|
+
type: {
|
|
96127
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96128
|
+
},
|
|
95923
96129
|
pool: "CONVEX_CRVUSD_USDT_POOL",
|
|
95924
96130
|
pid: 179,
|
|
95925
96131
|
underlying: "crvUSDUSDT",
|
|
@@ -95928,7 +96134,9 @@ var require_convex = __commonJS({
|
|
|
95928
96134
|
stkcvxcrvUSDFRAX: {
|
|
95929
96135
|
name: "Convex stkcvxcrvUSDFRAX",
|
|
95930
96136
|
symbol: "stkcvxcrvUSDFRAX",
|
|
95931
|
-
type:
|
|
96137
|
+
type: {
|
|
96138
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96139
|
+
},
|
|
95932
96140
|
pool: "CONVEX_CRVUSD_FRAX_POOL",
|
|
95933
96141
|
pid: 187,
|
|
95934
96142
|
underlying: "crvUSDFRAX",
|
|
@@ -95937,7 +96145,9 @@ var require_convex = __commonJS({
|
|
|
95937
96145
|
stkcvxcrvUSDETHCRV: {
|
|
95938
96146
|
name: "Convex stkcvxcrvUSDETHCRV",
|
|
95939
96147
|
symbol: "stkcvxcrvUSDETHCRV",
|
|
95940
|
-
type:
|
|
96148
|
+
type: {
|
|
96149
|
+
AllNetworks: tokenType_1.TokenType.CONVEX_STAKED_TOKEN
|
|
96150
|
+
},
|
|
95941
96151
|
pool: "CONVEX_TRI_CRV_POOL",
|
|
95942
96152
|
pid: 211,
|
|
95943
96153
|
underlying: "crvUSDETHCRV",
|
|
@@ -193489,35 +193699,35 @@ var require_curveLP = __commonJS({
|
|
|
193489
193699
|
FRAX3CRV: {
|
|
193490
193700
|
name: "Curve FRAX3CRV-f",
|
|
193491
193701
|
symbol: "FRAX3CRV",
|
|
193492
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193702
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193493
193703
|
pool: "CURVE_FRAX_POOL",
|
|
193494
193704
|
tokenOut: ["FRAX", "3Crv"]
|
|
193495
193705
|
},
|
|
193496
193706
|
LUSD3CRV: {
|
|
193497
193707
|
name: "Curve LUSD3CRV-f",
|
|
193498
193708
|
symbol: "LUSD3CRV",
|
|
193499
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193709
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193500
193710
|
pool: "CURVE_LUSD_POOL",
|
|
193501
193711
|
tokenOut: ["LUSD", "3Crv"]
|
|
193502
193712
|
},
|
|
193503
193713
|
gusd3CRV: {
|
|
193504
193714
|
name: "Curve gusd3CRV",
|
|
193505
193715
|
symbol: "gusd3CRV",
|
|
193506
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193716
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193507
193717
|
pool: "CURVE_GUSD_POOL",
|
|
193508
193718
|
tokenOut: ["GUSD", "3Crv"]
|
|
193509
193719
|
},
|
|
193510
193720
|
MIM_3LP3CRV: {
|
|
193511
193721
|
name: "Curve MIM_3LP3CRV",
|
|
193512
193722
|
symbol: "MIM_3LP3CRV",
|
|
193513
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193723
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193514
193724
|
pool: "CURVE_MIM_POOL",
|
|
193515
193725
|
tokenOut: ["MIM", "3Crv"]
|
|
193516
193726
|
},
|
|
193517
193727
|
OHMFRAXBP: {
|
|
193518
193728
|
name: "Curve.fi Factory Crypto Pool: OHM/FRAXBP",
|
|
193519
193729
|
symbol: "OHMFRAXBP",
|
|
193520
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193730
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193521
193731
|
pool: "CURVE_OHMFRAXBP_POOL",
|
|
193522
193732
|
tokenOut: ["OHM", "FRAX", "USDC"]
|
|
193523
193733
|
}
|
|
@@ -193527,28 +193737,28 @@ var require_curveLP = __commonJS({
|
|
|
193527
193737
|
"3Crv": {
|
|
193528
193738
|
name: "Curve 3Crv",
|
|
193529
193739
|
symbol: "3Crv",
|
|
193530
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193740
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193531
193741
|
pool: "CURVE_3CRV_POOL",
|
|
193532
193742
|
tokenOut: ["DAI", "USDC", "USDT"]
|
|
193533
193743
|
},
|
|
193534
193744
|
crvFRAX: {
|
|
193535
193745
|
name: "Curve.fi FRAX/USDC",
|
|
193536
193746
|
symbol: "crvFRAX",
|
|
193537
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193747
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193538
193748
|
pool: "CURVE_FRAX_USDC_POOL",
|
|
193539
193749
|
tokenOut: ["FRAX", "USDC"]
|
|
193540
193750
|
},
|
|
193541
193751
|
steCRV: {
|
|
193542
193752
|
name: "Curve steCRV",
|
|
193543
193753
|
symbol: "steCRV",
|
|
193544
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193754
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193545
193755
|
pool: "CURVE_STETH_GATEWAY",
|
|
193546
193756
|
tokenOut: ["STETH", "WETH"]
|
|
193547
193757
|
},
|
|
193548
193758
|
crvPlain3andSUSD: {
|
|
193549
193759
|
name: "Curve crvPlain3andSUSD",
|
|
193550
193760
|
symbol: "crvPlain3andSUSD",
|
|
193551
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193761
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193552
193762
|
pool: "CURVE_SUSD_POOL",
|
|
193553
193763
|
wrapper: "CURVE_SUSD_DEPOSIT",
|
|
193554
193764
|
tokenOut: ["DAI", "USDC", "USDT", "sUSD"]
|
|
@@ -193556,66 +193766,73 @@ var require_curveLP = __commonJS({
|
|
|
193556
193766
|
crvCRVETH: {
|
|
193557
193767
|
name: "Curve CRV-ETH",
|
|
193558
193768
|
symbol: "crvCRVETH",
|
|
193559
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193769
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193560
193770
|
pool: "CURVE_CRVETH_POOL",
|
|
193561
193771
|
tokenOut: ["WETH", "CRV"]
|
|
193562
193772
|
},
|
|
193563
193773
|
crvCVXETH: {
|
|
193564
193774
|
name: "Curve CVX-ETH",
|
|
193565
193775
|
symbol: "crvCVXETH",
|
|
193566
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193776
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193567
193777
|
pool: "CURVE_CVXETH_POOL",
|
|
193568
193778
|
tokenOut: ["WETH", "CVX"]
|
|
193569
193779
|
},
|
|
193570
193780
|
crvUSDTWBTCWETH: {
|
|
193571
193781
|
name: "Curve USDT/WBTC/WETH",
|
|
193572
193782
|
symbol: "crvUSDTWBTCWETH",
|
|
193573
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193783
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193574
193784
|
pool: "CURVE_3CRYPTO_POOL",
|
|
193575
193785
|
tokenOut: ["USDT", "WBTC", "WETH"]
|
|
193576
193786
|
},
|
|
193577
193787
|
LDOETH: {
|
|
193578
193788
|
name: "Curve LDOETH",
|
|
193579
193789
|
symbol: "LDOETH",
|
|
193580
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193790
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193581
193791
|
pool: "CURVE_LDOETH_POOL",
|
|
193582
193792
|
tokenOut: ["LDO", "WETH"]
|
|
193583
193793
|
},
|
|
193584
193794
|
crvUSDUSDC: {
|
|
193585
193795
|
name: "Curve crvUSDUSDC",
|
|
193586
193796
|
symbol: "crvUSDUSDC",
|
|
193587
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193797
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193588
193798
|
pool: "CURVE_CRVUSD_USDC_POOL",
|
|
193589
193799
|
tokenOut: ["crvUSD", "USDC"]
|
|
193590
193800
|
},
|
|
193591
193801
|
crvUSDUSDT: {
|
|
193592
193802
|
name: "Curve crvUSDUSDT",
|
|
193593
193803
|
symbol: "crvUSDUSDT",
|
|
193594
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193804
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193595
193805
|
pool: "CURVE_CRVUSD_USDT_POOL",
|
|
193596
193806
|
tokenOut: ["crvUSD", "USDT"]
|
|
193597
193807
|
},
|
|
193598
193808
|
crvUSDFRAX: {
|
|
193599
193809
|
name: "Curve crvUSDFRAX",
|
|
193600
193810
|
symbol: "crvUSDFRAX",
|
|
193601
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193811
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193602
193812
|
pool: "CURVE_CRVUSD_FRAX_POOL",
|
|
193603
193813
|
tokenOut: ["crvUSD", "FRAX"]
|
|
193604
193814
|
},
|
|
193605
193815
|
crvUSDETHCRV: {
|
|
193606
193816
|
name: "Curve crvUSDETHCRV",
|
|
193607
193817
|
symbol: "crvUSDETHCRV",
|
|
193608
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193818
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193609
193819
|
pool: "CURVE_TRI_CRV_POOL",
|
|
193610
193820
|
tokenOut: ["crvUSD", "WETH", "CRV"]
|
|
193611
193821
|
},
|
|
193612
193822
|
rETH_f: {
|
|
193613
193823
|
name: "Curve.fi Factory Crypto Pool: Rocketpool rETH/ETH",
|
|
193614
193824
|
symbol: "rETH_f",
|
|
193615
|
-
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
193825
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193616
193826
|
pool: "CURVE_RETH_ETH_POOL",
|
|
193617
193827
|
tokenOut: ["rETH", "WETH"]
|
|
193618
193828
|
},
|
|
193829
|
+
wstETHCRV: {
|
|
193830
|
+
name: "Curve wstETHCRV",
|
|
193831
|
+
symbol: "wstETHCRV",
|
|
193832
|
+
type: { AllNetworks: tokenType_1.TokenType.CURVE_LP_TOKEN },
|
|
193833
|
+
pool: "CURVE_ETH_WSTETH_GATEWAY",
|
|
193834
|
+
tokenOut: ["WETH", "wstETH"]
|
|
193835
|
+
},
|
|
193619
193836
|
...exports2.curveMetaTokens
|
|
193620
193837
|
};
|
|
193621
193838
|
var isCurveLPToken = (t) => typeof t === "string" && !!exports2.curveTokens[t];
|
|
@@ -193637,14 +193854,14 @@ var require_erc4626 = __commonJS({
|
|
|
193637
193854
|
sDAI: {
|
|
193638
193855
|
name: "Maker DSR",
|
|
193639
193856
|
symbol: "sDAI",
|
|
193640
|
-
type: tokenType_1.TokenType.ERC4626_VAULT_TOKEN,
|
|
193857
|
+
type: { AllNetworks: tokenType_1.TokenType.ERC4626_VAULT_TOKEN },
|
|
193641
193858
|
underlying: "DAI",
|
|
193642
193859
|
vault: "MAKER_DSR_VAULT"
|
|
193643
193860
|
},
|
|
193644
193861
|
YieldETH: {
|
|
193645
193862
|
name: "Yearn yvUSDC",
|
|
193646
193863
|
symbol: "YieldETH",
|
|
193647
|
-
type: tokenType_1.TokenType.ERC4626_VAULT_TOKEN,
|
|
193864
|
+
type: { AllNetworks: tokenType_1.TokenType.ERC4626_VAULT_TOKEN },
|
|
193648
193865
|
underlying: "WETH",
|
|
193649
193866
|
vault: "YIELD_ETH_VAULT"
|
|
193650
193867
|
}
|
|
@@ -193665,51 +193882,51 @@ var require_gear = __commonJS({
|
|
|
193665
193882
|
dDAI: {
|
|
193666
193883
|
name: "dDAI",
|
|
193667
193884
|
symbol: "dDAI",
|
|
193668
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN
|
|
193885
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN }
|
|
193669
193886
|
},
|
|
193670
193887
|
dUSDC: {
|
|
193671
193888
|
name: "dUSDC",
|
|
193672
193889
|
symbol: "dUSDC",
|
|
193673
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN
|
|
193890
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN }
|
|
193674
193891
|
},
|
|
193675
193892
|
dWBTC: {
|
|
193676
193893
|
name: "dWBTC",
|
|
193677
193894
|
symbol: "dWBTC",
|
|
193678
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN
|
|
193895
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN }
|
|
193679
193896
|
},
|
|
193680
193897
|
dWETH: {
|
|
193681
193898
|
name: "dWETH",
|
|
193682
193899
|
symbol: "dWETH",
|
|
193683
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN
|
|
193900
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN }
|
|
193684
193901
|
},
|
|
193685
193902
|
dwstETH: {
|
|
193686
193903
|
name: "dwstETH",
|
|
193687
193904
|
symbol: "dwstETH",
|
|
193688
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN
|
|
193905
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN }
|
|
193689
193906
|
},
|
|
193690
193907
|
dFRAX: {
|
|
193691
193908
|
name: "dFRAX",
|
|
193692
193909
|
symbol: "dFRAX",
|
|
193693
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN
|
|
193910
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN }
|
|
193694
193911
|
}
|
|
193695
193912
|
};
|
|
193696
193913
|
var dieselWithStkTokens = {
|
|
193697
193914
|
dUSDCV3: {
|
|
193698
193915
|
name: "dUSDCV3",
|
|
193699
193916
|
symbol: "dUSDCV3",
|
|
193700
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
|
|
193917
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN },
|
|
193701
193918
|
stakedToken: "sdUSDCV3"
|
|
193702
193919
|
},
|
|
193703
193920
|
dWBTCV3: {
|
|
193704
193921
|
name: "dWBTCV3",
|
|
193705
193922
|
symbol: "dWBTCV3",
|
|
193706
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
|
|
193923
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN },
|
|
193707
193924
|
stakedToken: "sdWBTCV3"
|
|
193708
193925
|
},
|
|
193709
193926
|
dWETHV3: {
|
|
193710
193927
|
name: "dWETHV3",
|
|
193711
193928
|
symbol: "dWETHV3",
|
|
193712
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
|
|
193929
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN },
|
|
193713
193930
|
stakedToken: "sdWETHV3"
|
|
193714
193931
|
}
|
|
193715
193932
|
};
|
|
@@ -193718,19 +193935,19 @@ var require_gear = __commonJS({
|
|
|
193718
193935
|
sdUSDCV3: {
|
|
193719
193936
|
name: "sdUSDCV3",
|
|
193720
193937
|
symbol: "sdUSDCV3",
|
|
193721
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
|
|
193938
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN },
|
|
193722
193939
|
underlying: "dUSDCV3"
|
|
193723
193940
|
},
|
|
193724
193941
|
sdWBTCV3: {
|
|
193725
193942
|
name: "sdWBTCV3",
|
|
193726
193943
|
symbol: "sdWBTCV3",
|
|
193727
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
|
|
193944
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN },
|
|
193728
193945
|
underlying: "dWBTCV3"
|
|
193729
193946
|
},
|
|
193730
193947
|
sdWETHV3: {
|
|
193731
193948
|
name: "sdWETHV3",
|
|
193732
193949
|
symbol: "sdWETHV3",
|
|
193733
|
-
type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
|
|
193950
|
+
type: { AllNetworks: tokenType_1.TokenType.DIESEL_LP_TOKEN },
|
|
193734
193951
|
underlying: "dWETHV3"
|
|
193735
193952
|
}
|
|
193736
193953
|
};
|
|
@@ -193740,7 +193957,7 @@ var require_gear = __commonJS({
|
|
|
193740
193957
|
GEAR: {
|
|
193741
193958
|
name: "GEAR",
|
|
193742
193959
|
symbol: "GEAR",
|
|
193743
|
-
type: tokenType_1.TokenType.GEAR_TOKEN
|
|
193960
|
+
type: { AllNetworks: tokenType_1.TokenType.GEAR_TOKEN }
|
|
193744
193961
|
}
|
|
193745
193962
|
};
|
|
193746
193963
|
var isDieselToken = (t) => typeof t === "string" && !!dieselTokens[t];
|
|
@@ -193765,193 +193982,203 @@ var require_normal = __commonJS({
|
|
|
193765
193982
|
"1INCH": {
|
|
193766
193983
|
name: "1INCH",
|
|
193767
193984
|
symbol: "1INCH",
|
|
193768
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
193985
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193769
193986
|
},
|
|
193770
193987
|
AAVE: {
|
|
193771
193988
|
name: "AAVE",
|
|
193772
193989
|
symbol: "AAVE",
|
|
193773
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
193990
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193774
193991
|
},
|
|
193775
193992
|
COMP: {
|
|
193776
193993
|
name: "COMP",
|
|
193777
193994
|
symbol: "COMP",
|
|
193778
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
193995
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193779
193996
|
},
|
|
193780
193997
|
CRV: {
|
|
193781
193998
|
name: "CRV",
|
|
193782
193999
|
symbol: "CRV",
|
|
193783
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194000
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193784
194001
|
},
|
|
193785
194002
|
DAI: {
|
|
193786
194003
|
name: "DAI",
|
|
193787
194004
|
symbol: "DAI",
|
|
193788
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194005
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193789
194006
|
},
|
|
193790
194007
|
DPI: {
|
|
193791
194008
|
name: "DPI",
|
|
193792
194009
|
symbol: "DPI",
|
|
193793
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194010
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193794
194011
|
},
|
|
193795
194012
|
FEI: {
|
|
193796
194013
|
name: "FEI",
|
|
193797
194014
|
symbol: "FEI",
|
|
193798
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194015
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193799
194016
|
},
|
|
193800
194017
|
LINK: {
|
|
193801
194018
|
name: "LINK",
|
|
193802
194019
|
symbol: "LINK",
|
|
193803
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194020
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193804
194021
|
},
|
|
193805
194022
|
SNX: {
|
|
193806
194023
|
name: "SNX",
|
|
193807
194024
|
symbol: "SNX",
|
|
193808
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194025
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193809
194026
|
},
|
|
193810
194027
|
UNI: {
|
|
193811
194028
|
name: "UNI",
|
|
193812
194029
|
symbol: "UNI",
|
|
193813
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194030
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193814
194031
|
},
|
|
193815
194032
|
USDC: {
|
|
193816
194033
|
name: "USDC",
|
|
193817
194034
|
symbol: "USDC",
|
|
193818
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194035
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193819
194036
|
},
|
|
193820
194037
|
USDT: {
|
|
193821
194038
|
name: "USDT",
|
|
193822
194039
|
symbol: "USDT",
|
|
193823
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194040
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193824
194041
|
},
|
|
193825
194042
|
WBTC: {
|
|
193826
194043
|
name: "WBTC",
|
|
193827
194044
|
symbol: "WBTC",
|
|
193828
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194045
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193829
194046
|
},
|
|
193830
194047
|
WETH: {
|
|
193831
194048
|
name: "WETH",
|
|
193832
194049
|
symbol: "WETH",
|
|
193833
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194050
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193834
194051
|
},
|
|
193835
194052
|
YFI: {
|
|
193836
194053
|
name: "YFI",
|
|
193837
194054
|
symbol: "YFI",
|
|
193838
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194055
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
194056
|
+
},
|
|
194057
|
+
WLD: {
|
|
194058
|
+
name: "WLD",
|
|
194059
|
+
symbol: "WLD",
|
|
194060
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
194061
|
+
},
|
|
194062
|
+
OP: {
|
|
194063
|
+
name: "OP",
|
|
194064
|
+
symbol: "OP",
|
|
194065
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193839
194066
|
},
|
|
193840
194067
|
/// UPDATE
|
|
193841
194068
|
STETH: {
|
|
193842
194069
|
name: "stETH",
|
|
193843
194070
|
symbol: "STETH",
|
|
193844
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194071
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193845
194072
|
},
|
|
193846
194073
|
CVX: {
|
|
193847
194074
|
name: "CVX",
|
|
193848
194075
|
symbol: "CVX",
|
|
193849
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194076
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193850
194077
|
},
|
|
193851
194078
|
FRAX: {
|
|
193852
194079
|
name: "FRAX",
|
|
193853
194080
|
symbol: "FRAX",
|
|
193854
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194081
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193855
194082
|
},
|
|
193856
194083
|
FXS: {
|
|
193857
194084
|
name: "FXS",
|
|
193858
194085
|
symbol: "FXS",
|
|
193859
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194086
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193860
194087
|
},
|
|
193861
194088
|
LDO: {
|
|
193862
194089
|
name: "LDO",
|
|
193863
194090
|
symbol: "LDO",
|
|
193864
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194091
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193865
194092
|
},
|
|
193866
194093
|
LUSD: {
|
|
193867
194094
|
name: "LUSD",
|
|
193868
194095
|
symbol: "LUSD",
|
|
193869
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194096
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193870
194097
|
},
|
|
193871
194098
|
sUSD: {
|
|
193872
194099
|
name: "sUSD",
|
|
193873
194100
|
symbol: "sUSD",
|
|
193874
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194101
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193875
194102
|
},
|
|
193876
194103
|
GUSD: {
|
|
193877
194104
|
name: "GUSD",
|
|
193878
194105
|
symbol: "GUSD",
|
|
193879
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194106
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193880
194107
|
},
|
|
193881
194108
|
LQTY: {
|
|
193882
194109
|
name: "LQTY",
|
|
193883
194110
|
symbol: "LQTY",
|
|
193884
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194111
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193885
194112
|
},
|
|
193886
194113
|
OHM: {
|
|
193887
194114
|
name: "OHM",
|
|
193888
194115
|
symbol: "OHM",
|
|
193889
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194116
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193890
194117
|
},
|
|
193891
194118
|
MIM: {
|
|
193892
194119
|
name: "MIM",
|
|
193893
194120
|
symbol: "MIM",
|
|
193894
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194121
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193895
194122
|
},
|
|
193896
194123
|
SPELL: {
|
|
193897
194124
|
name: "SPELL",
|
|
193898
194125
|
symbol: "SPELL",
|
|
193899
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194126
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193900
194127
|
},
|
|
193901
194128
|
GMX: {
|
|
193902
194129
|
name: "GMX",
|
|
193903
194130
|
symbol: "GMX",
|
|
193904
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194131
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193905
194132
|
},
|
|
193906
194133
|
ARB: {
|
|
193907
194134
|
name: "ARB",
|
|
193908
194135
|
symbol: "ARB",
|
|
193909
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194136
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193910
194137
|
},
|
|
193911
194138
|
RDNT: {
|
|
193912
194139
|
name: "RDNT",
|
|
193913
194140
|
symbol: "RDNT",
|
|
193914
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194141
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193915
194142
|
},
|
|
193916
194143
|
BAL: {
|
|
193917
194144
|
name: "BAL",
|
|
193918
194145
|
symbol: "BAL",
|
|
193919
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194146
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193920
194147
|
},
|
|
193921
194148
|
SHIB: {
|
|
193922
194149
|
name: "SHIB",
|
|
193923
194150
|
symbol: "SHIB",
|
|
193924
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194151
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193925
194152
|
},
|
|
193926
194153
|
crvUSD: {
|
|
193927
194154
|
name: "crvUSD",
|
|
193928
194155
|
symbol: "crvUSD",
|
|
193929
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194156
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193930
194157
|
},
|
|
193931
194158
|
MKR: {
|
|
193932
194159
|
name: "MKR",
|
|
193933
194160
|
symbol: "MKR",
|
|
193934
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194161
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193935
194162
|
},
|
|
193936
194163
|
RPL: {
|
|
193937
194164
|
name: "RPL",
|
|
193938
194165
|
symbol: "RPL",
|
|
193939
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194166
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193940
194167
|
},
|
|
193941
194168
|
APE: {
|
|
193942
194169
|
name: "APE",
|
|
193943
194170
|
symbol: "APE",
|
|
193944
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194171
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193945
194172
|
},
|
|
193946
194173
|
rETH: {
|
|
193947
194174
|
name: "Rocket Pool ETH",
|
|
193948
194175
|
symbol: "rETH",
|
|
193949
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194176
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193950
194177
|
},
|
|
193951
194178
|
AURA: {
|
|
193952
194179
|
name: "Aura Token",
|
|
193953
194180
|
symbol: "AURA",
|
|
193954
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194181
|
+
type: { AllNetworks: tokenType_1.TokenType.NORMAL_TOKEN }
|
|
193955
194182
|
}
|
|
193956
194183
|
};
|
|
193957
194184
|
var isNormalToken = (t) => typeof t === "string" && !!exports2.normalTokens[t];
|
|
@@ -193970,7 +194197,11 @@ var require_wrapped = __commonJS({
|
|
|
193970
194197
|
wstETH: {
|
|
193971
194198
|
name: "wstETH",
|
|
193972
194199
|
symbol: "wstETH",
|
|
193973
|
-
type:
|
|
194200
|
+
type: {
|
|
194201
|
+
Mainnet: tokenType_1.TokenType.WRAPPED_TOKEN,
|
|
194202
|
+
Arbitrum: tokenType_1.TokenType.NORMAL_TOKEN,
|
|
194203
|
+
Optimism: tokenType_1.TokenType.NORMAL_TOKEN
|
|
194204
|
+
}
|
|
193974
194205
|
}
|
|
193975
194206
|
};
|
|
193976
194207
|
}
|
|
@@ -193988,43 +194219,57 @@ var require_yearn = __commonJS({
|
|
|
193988
194219
|
yvDAI: {
|
|
193989
194220
|
name: "Yearn yvDAI",
|
|
193990
194221
|
symbol: "yvDAI",
|
|
193991
|
-
type: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN,
|
|
194222
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN },
|
|
193992
194223
|
underlying: "DAI",
|
|
193993
194224
|
vault: "YEARN_DAI_VAULT"
|
|
193994
194225
|
},
|
|
193995
194226
|
yvUSDC: {
|
|
193996
194227
|
name: "Yearn yvUSDC",
|
|
193997
194228
|
symbol: "yvUSDC",
|
|
193998
|
-
type: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN,
|
|
194229
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN },
|
|
193999
194230
|
underlying: "USDC",
|
|
194000
194231
|
vault: "YEARN_USDC_VAULT"
|
|
194001
194232
|
},
|
|
194002
194233
|
yvWETH: {
|
|
194003
194234
|
name: "Yearn yvWETH",
|
|
194004
194235
|
symbol: "yvWETH",
|
|
194005
|
-
type: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN,
|
|
194236
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN },
|
|
194006
194237
|
underlying: "WETH",
|
|
194007
194238
|
vault: "YEARN_WETH_VAULT"
|
|
194008
194239
|
},
|
|
194009
194240
|
yvWBTC: {
|
|
194010
194241
|
name: "Yearn yvWBTC",
|
|
194011
194242
|
symbol: "yvWBTC",
|
|
194012
|
-
type: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN,
|
|
194243
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN },
|
|
194013
194244
|
underlying: "WBTC",
|
|
194014
194245
|
vault: "YEARN_WBTC_VAULT"
|
|
194015
194246
|
},
|
|
194247
|
+
yvUSDT: {
|
|
194248
|
+
name: "Yearn yvUSDT",
|
|
194249
|
+
symbol: "yvUSDT",
|
|
194250
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN },
|
|
194251
|
+
underlying: "USDT",
|
|
194252
|
+
vault: "YEARN_USDT_VAULT"
|
|
194253
|
+
},
|
|
194254
|
+
yvOP: {
|
|
194255
|
+
name: "Yearn yvOP",
|
|
194256
|
+
symbol: "yvOP",
|
|
194257
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_NORMAL_TOKEN },
|
|
194258
|
+
underlying: "OP",
|
|
194259
|
+
vault: "YEARN_OP_VAULT"
|
|
194260
|
+
},
|
|
194016
194261
|
// YEARN- CURVE TOKENS
|
|
194017
194262
|
yvCurve_stETH: {
|
|
194018
194263
|
name: "Yearn yvCurve-stETH",
|
|
194019
194264
|
symbol: "yvCurve_stETH",
|
|
194020
|
-
type: tokenType_1.TokenType.YEARN_ON_CURVE_TOKEN,
|
|
194265
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_CURVE_TOKEN },
|
|
194021
194266
|
underlying: "steCRV",
|
|
194022
194267
|
vault: "YEARN_CURVE_STETH_VAULT"
|
|
194023
194268
|
},
|
|
194024
194269
|
yvCurve_FRAX: {
|
|
194025
194270
|
name: "Yearn yvCurve-FRAX",
|
|
194026
194271
|
symbol: "yvCurve_FRAX",
|
|
194027
|
-
type: tokenType_1.TokenType.YEARN_ON_CURVE_TOKEN,
|
|
194272
|
+
type: { AllNetworks: tokenType_1.TokenType.YEARN_ON_CURVE_TOKEN },
|
|
194028
194273
|
underlying: "FRAX3CRV",
|
|
194029
194274
|
vault: "YEARN_CURVE_FRAX_VAULT"
|
|
194030
194275
|
}
|
|
@@ -194115,6 +194360,8 @@ var require_token = __commonJS({
|
|
|
194115
194360
|
APE: "0x4d224452801ACEd8B2F0aebE155379bb5D594381",
|
|
194116
194361
|
rETH: "0xae78736Cd615f374D3085123A210448E74Fc6393",
|
|
194117
194362
|
AURA: "0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF",
|
|
194363
|
+
WLD: "0x163f8C2467924be0ae7B5347228CABF260318753",
|
|
194364
|
+
OP: constants_1.NOT_DEPLOYED,
|
|
194118
194365
|
// CURVE LP TOKENS
|
|
194119
194366
|
"3Crv": "0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490",
|
|
194120
194367
|
crvFRAX: "0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC",
|
|
@@ -194135,6 +194382,7 @@ var require_token = __commonJS({
|
|
|
194135
194382
|
crvUSDFRAX: "0x0CD6f267b2086bea681E922E19D40512511BE538",
|
|
194136
194383
|
crvUSDETHCRV: "0x4eBdF703948ddCEA3B11f675B4D1Fba9d2414A14",
|
|
194137
194384
|
rETH_f: "0x6c38cE8984a890F5e46e6dF6117C26b3F1EcfC9C",
|
|
194385
|
+
wstETHCRV: constants_1.NOT_DEPLOYED,
|
|
194138
194386
|
// CONVEX LP TOKENS
|
|
194139
194387
|
cvx3Crv: "0x30D9410ED1D5DA1F6C8391af5338C93ab8d4035C",
|
|
194140
194388
|
cvxcrvFRAX: "0x117A0bab81F25e60900787d98061cCFae023560c",
|
|
@@ -194176,17 +194424,26 @@ var require_token = __commonJS({
|
|
|
194176
194424
|
yvUSDC: "0xa354F35829Ae975e850e23e9615b11Da1B3dC4DE",
|
|
194177
194425
|
yvWETH: "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
|
|
194178
194426
|
yvWBTC: "0xA696a63cc78DfFa1a63E9E50587C197387FF6C7E",
|
|
194427
|
+
yvUSDT: "0x3B27F92C0e212C671EA351827EDF93DB27cc0c65",
|
|
194179
194428
|
yvCurve_stETH: "0xdCD90C7f6324cfa40d7169ef80b12031770B4325",
|
|
194180
194429
|
yvCurve_FRAX: "0xB4AdA607B9d6b2c9Ee07A275e9616B84AC560139",
|
|
194430
|
+
yvOP: constants_1.NOT_DEPLOYED,
|
|
194181
194431
|
// BALANCER TOKENS
|
|
194182
194432
|
"50OHM_50DAI": "0x76FCf0e8C7Ff37A47a799FA2cd4c13cDe0D981C9",
|
|
194183
194433
|
"50OHM_50WETH": "0xD1eC5e215E8148D76F4460e4097FD3d5ae0A3558",
|
|
194184
194434
|
OHM_wstETH: "0xd4f79CA0Ac83192693bce4699d0c10C66Aa6Cf0F",
|
|
194185
194435
|
USDC_DAI_USDT: "0x79c58f70905F734641735BC61e45c19dD9Ad60bC",
|
|
194186
194436
|
B_rETH_STABLE: "0x1E19CF2D73a72Ef1332C882F20534B6519Be0276",
|
|
194437
|
+
BPT_rETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194438
|
+
BPT_WSTETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194439
|
+
BPT_ROAD: constants_1.NOT_DEPLOYED,
|
|
194187
194440
|
// AURA
|
|
194188
194441
|
auraB_rETH_STABLE: "0x9497df26e5bD669Cb925eC68E730492b9300c482",
|
|
194442
|
+
auraBPT_rETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194443
|
+
auraBPT_WSTETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194189
194444
|
auraB_rETH_STABLE_vault: "0xDd1fE5AD401D4777cE89959b7fa587e569Bf125D",
|
|
194445
|
+
auraBPT_rETH_ETH_vault: constants_1.NOT_DEPLOYED,
|
|
194446
|
+
auraBPT_WSTETH_ETH_vault: constants_1.NOT_DEPLOYED,
|
|
194190
194447
|
// GEARBOX
|
|
194191
194448
|
dDAI: "0x6CFaF95457d7688022FC53e7AbE052ef8DFBbdBA",
|
|
194192
194449
|
dUSDC: "0xc411dB5f5Eb3f7d552F9B8454B2D74097ccdE6E3",
|
|
@@ -194238,7 +194495,7 @@ var require_token = __commonJS({
|
|
|
194238
194495
|
SNX: "0xcBA56Cd8216FCBBF3fA6DF6137F3147cBcA37D60",
|
|
194239
194496
|
UNI: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0",
|
|
194240
194497
|
USDT: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
|
|
194241
|
-
USDC: "
|
|
194498
|
+
USDC: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
|
|
194242
194499
|
WBTC: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
194243
194500
|
WETH: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
194244
194501
|
YFI: "0x82e3A8F066a6989666b031d916c43672085b1582",
|
|
@@ -194265,6 +194522,8 @@ var require_token = __commonJS({
|
|
|
194265
194522
|
RPL: constants_1.NOT_DEPLOYED,
|
|
194266
194523
|
APE: constants_1.NOT_DEPLOYED,
|
|
194267
194524
|
rETH: constants_1.NOT_DEPLOYED,
|
|
194525
|
+
WLD: constants_1.NOT_DEPLOYED,
|
|
194526
|
+
OP: constants_1.NOT_DEPLOYED,
|
|
194268
194527
|
// REDSTONE
|
|
194269
194528
|
SHIB: constants_1.NOT_DEPLOYED,
|
|
194270
194529
|
// YEARN TOKENS
|
|
@@ -194272,10 +194531,13 @@ var require_token = __commonJS({
|
|
|
194272
194531
|
yvUSDC: constants_1.NOT_DEPLOYED,
|
|
194273
194532
|
yvWETH: constants_1.NOT_DEPLOYED,
|
|
194274
194533
|
yvWBTC: constants_1.NOT_DEPLOYED,
|
|
194534
|
+
yvUSDT: constants_1.NOT_DEPLOYED,
|
|
194535
|
+
yvOP: constants_1.NOT_DEPLOYED,
|
|
194275
194536
|
yvCurve_stETH: constants_1.NOT_DEPLOYED,
|
|
194276
194537
|
yvCurve_FRAX: constants_1.NOT_DEPLOYED,
|
|
194277
194538
|
// CURVE LP TOKENS
|
|
194278
194539
|
"3Crv": constants_1.NOT_DEPLOYED,
|
|
194540
|
+
wstETHCRV: constants_1.NOT_DEPLOYED,
|
|
194279
194541
|
crvFRAX: constants_1.NOT_DEPLOYED,
|
|
194280
194542
|
steCRV: constants_1.NOT_DEPLOYED,
|
|
194281
194543
|
FRAX3CRV: constants_1.NOT_DEPLOYED,
|
|
@@ -194336,9 +194598,16 @@ var require_token = __commonJS({
|
|
|
194336
194598
|
OHM_wstETH: constants_1.NOT_DEPLOYED,
|
|
194337
194599
|
USDC_DAI_USDT: constants_1.NOT_DEPLOYED,
|
|
194338
194600
|
B_rETH_STABLE: constants_1.NOT_DEPLOYED,
|
|
194601
|
+
BPT_rETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194602
|
+
BPT_WSTETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194603
|
+
BPT_ROAD: constants_1.NOT_DEPLOYED,
|
|
194339
194604
|
// AURA
|
|
194340
194605
|
auraB_rETH_STABLE: constants_1.NOT_DEPLOYED,
|
|
194606
|
+
auraBPT_rETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194607
|
+
auraBPT_WSTETH_ETH: constants_1.NOT_DEPLOYED,
|
|
194341
194608
|
auraB_rETH_STABLE_vault: constants_1.NOT_DEPLOYED,
|
|
194609
|
+
auraBPT_rETH_ETH_vault: constants_1.NOT_DEPLOYED,
|
|
194610
|
+
auraBPT_WSTETH_ETH_vault: constants_1.NOT_DEPLOYED,
|
|
194342
194611
|
// GEARBOX
|
|
194343
194612
|
dDAI: constants_1.NOT_DEPLOYED,
|
|
194344
194613
|
dUSDC: constants_1.NOT_DEPLOYED,
|
|
@@ -194370,6 +194639,168 @@ var require_token = __commonJS({
|
|
|
194370
194639
|
fUSDC: constants_1.NOT_DEPLOYED,
|
|
194371
194640
|
sDAI: constants_1.NOT_DEPLOYED,
|
|
194372
194641
|
YieldETH: constants_1.NOT_DEPLOYED
|
|
194642
|
+
},
|
|
194643
|
+
///
|
|
194644
|
+
///
|
|
194645
|
+
/// OPTIMISM
|
|
194646
|
+
///
|
|
194647
|
+
///
|
|
194648
|
+
Optimism: {
|
|
194649
|
+
"1INCH": constants_1.NOT_DEPLOYED,
|
|
194650
|
+
AAVE: "0x76FB31fb4af56892A25e32cFC43De717950c9278",
|
|
194651
|
+
COMP: constants_1.NOT_DEPLOYED,
|
|
194652
|
+
CRV: "0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53",
|
|
194653
|
+
DAI: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
194654
|
+
DPI: constants_1.NOT_DEPLOYED,
|
|
194655
|
+
FEI: constants_1.NOT_DEPLOYED,
|
|
194656
|
+
LINK: "0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6",
|
|
194657
|
+
SNX: "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4",
|
|
194658
|
+
UNI: "0x6fd9d7AD17242c41f7131d257212c54A0e816691",
|
|
194659
|
+
USDT: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
|
|
194660
|
+
USDC: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
|
|
194661
|
+
WBTC: "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
|
|
194662
|
+
WETH: "0x4200000000000000000000000000000000000006",
|
|
194663
|
+
YFI: "0x9046D36440290FfDE54FE0DD84Db8b1CfEE9107B",
|
|
194664
|
+
OHM: constants_1.NOT_DEPLOYED,
|
|
194665
|
+
MIM: "0xB153FB3d196A8eB25522705560ac152eeEc57901",
|
|
194666
|
+
SPELL: constants_1.NOT_DEPLOYED,
|
|
194667
|
+
GMX: constants_1.NOT_DEPLOYED,
|
|
194668
|
+
ARB: constants_1.NOT_DEPLOYED,
|
|
194669
|
+
RDNT: constants_1.NOT_DEPLOYED,
|
|
194670
|
+
BAL: "0xFE8B128bA8C78aabC59d4c64cEE7fF28e9379921",
|
|
194671
|
+
AURA: "0x1509706a6c66CA549ff0cB464de88231DDBe213B",
|
|
194672
|
+
WLD: "0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1",
|
|
194673
|
+
OP: "0x4200000000000000000000000000000000000042",
|
|
194674
|
+
/// UPDATE
|
|
194675
|
+
STETH: constants_1.NOT_DEPLOYED,
|
|
194676
|
+
wstETH: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
|
|
194677
|
+
CVX: constants_1.NOT_DEPLOYED,
|
|
194678
|
+
FRAX: "0x2E3D870790dC77A83DD1d18184Acc7439A53f475",
|
|
194679
|
+
FXS: "0x67CCEA5bb16181E7b4109c9c2143c24a1c2205Be",
|
|
194680
|
+
LDO: "0xFdb794692724153d1488CcdBE0C56c252596735F",
|
|
194681
|
+
LUSD: "0xc40F949F8a4e094D1b49a23ea9241D289B7b2819",
|
|
194682
|
+
sUSD: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
|
|
194683
|
+
GUSD: constants_1.NOT_DEPLOYED,
|
|
194684
|
+
LQTY: constants_1.NOT_DEPLOYED,
|
|
194685
|
+
MKR: constants_1.NOT_DEPLOYED,
|
|
194686
|
+
RPL: "0xC81D1F0EB955B0c020E5d5b264E1FF72c14d1401",
|
|
194687
|
+
APE: constants_1.NOT_DEPLOYED,
|
|
194688
|
+
rETH: "0x9Bcef72be871e61ED4fBbc7630889beE758eb81D",
|
|
194689
|
+
// REDSTONE
|
|
194690
|
+
SHIB: constants_1.NOT_DEPLOYED,
|
|
194691
|
+
// YEARN TOKENS
|
|
194692
|
+
yvDAI: "0x65343F414FFD6c97b0f6add33d16F6845Ac22BAc",
|
|
194693
|
+
yvUSDC: "0xaD17A225074191d5c8a37B50FdA1AE278a2EE6A2",
|
|
194694
|
+
yvUSDT: "0xFaee21D0f0Af88EE72BB6d68E54a90E6EC2616de",
|
|
194695
|
+
yvWETH: "0x5B977577Eb8a480f63e11FC615D6753adB8652Ae",
|
|
194696
|
+
yvWBTC: "0x7Edf16076e56FA4c111055fbA1fF5556b8757cFB",
|
|
194697
|
+
yvOP: "0x7D2382b1f8Af621229d33464340541Db362B4907",
|
|
194698
|
+
yvCurve_stETH: constants_1.NOT_DEPLOYED,
|
|
194699
|
+
yvCurve_FRAX: constants_1.NOT_DEPLOYED,
|
|
194700
|
+
// CURVE LP TOKENS
|
|
194701
|
+
"3Crv": "0x1337BedC9D22ecbe766dF105c9623922A27963EC",
|
|
194702
|
+
wstETHCRV: "0xEfDE221f306152971D8e9f181bFe998447975810",
|
|
194703
|
+
crvFRAX: constants_1.NOT_DEPLOYED,
|
|
194704
|
+
steCRV: constants_1.NOT_DEPLOYED,
|
|
194705
|
+
FRAX3CRV: constants_1.NOT_DEPLOYED,
|
|
194706
|
+
LUSD3CRV: constants_1.NOT_DEPLOYED,
|
|
194707
|
+
crvPlain3andSUSD: constants_1.NOT_DEPLOYED,
|
|
194708
|
+
gusd3CRV: constants_1.NOT_DEPLOYED,
|
|
194709
|
+
OHMFRAXBP: constants_1.NOT_DEPLOYED,
|
|
194710
|
+
MIM_3LP3CRV: constants_1.NOT_DEPLOYED,
|
|
194711
|
+
crvCRVETH: constants_1.NOT_DEPLOYED,
|
|
194712
|
+
crvCVXETH: constants_1.NOT_DEPLOYED,
|
|
194713
|
+
crvUSDTWBTCWETH: constants_1.NOT_DEPLOYED,
|
|
194714
|
+
LDOETH: constants_1.NOT_DEPLOYED,
|
|
194715
|
+
crvUSDUSDC: constants_1.NOT_DEPLOYED,
|
|
194716
|
+
crvUSDUSDT: constants_1.NOT_DEPLOYED,
|
|
194717
|
+
crvUSDFRAX: constants_1.NOT_DEPLOYED,
|
|
194718
|
+
crvUSDETHCRV: constants_1.NOT_DEPLOYED,
|
|
194719
|
+
rETH_f: constants_1.NOT_DEPLOYED,
|
|
194720
|
+
// CONVEX LP TOKENS
|
|
194721
|
+
cvx3Crv: constants_1.NOT_DEPLOYED,
|
|
194722
|
+
cvxcrvFRAX: constants_1.NOT_DEPLOYED,
|
|
194723
|
+
cvxsteCRV: constants_1.NOT_DEPLOYED,
|
|
194724
|
+
cvxcrvPlain3andSUSD: constants_1.NOT_DEPLOYED,
|
|
194725
|
+
cvxFRAX3CRV: constants_1.NOT_DEPLOYED,
|
|
194726
|
+
cvxLUSD3CRV: constants_1.NOT_DEPLOYED,
|
|
194727
|
+
cvxgusd3CRV: constants_1.NOT_DEPLOYED,
|
|
194728
|
+
cvxOHMFRAXBP: constants_1.NOT_DEPLOYED,
|
|
194729
|
+
cvxMIM_3LP3CRV: constants_1.NOT_DEPLOYED,
|
|
194730
|
+
cvxcrvCRVETH: constants_1.NOT_DEPLOYED,
|
|
194731
|
+
cvxcrvCVXETH: constants_1.NOT_DEPLOYED,
|
|
194732
|
+
cvxcrvUSDTWBTCWETH: constants_1.NOT_DEPLOYED,
|
|
194733
|
+
cvxLDOETH: constants_1.NOT_DEPLOYED,
|
|
194734
|
+
cvxcrvUSDUSDC: constants_1.NOT_DEPLOYED,
|
|
194735
|
+
cvxcrvUSDUSDT: constants_1.NOT_DEPLOYED,
|
|
194736
|
+
cvxcrvUSDFRAX: constants_1.NOT_DEPLOYED,
|
|
194737
|
+
cvxcrvUSDETHCRV: constants_1.NOT_DEPLOYED,
|
|
194738
|
+
crvUSD: constants_1.NOT_DEPLOYED,
|
|
194739
|
+
// CONVEX PHANTOM TOKEN ADDRESSES
|
|
194740
|
+
stkcvx3Crv: constants_1.NOT_DEPLOYED,
|
|
194741
|
+
stkcvxcrvFRAX: constants_1.NOT_DEPLOYED,
|
|
194742
|
+
stkcvxFRAX3CRV: constants_1.NOT_DEPLOYED,
|
|
194743
|
+
stkcvxgusd3CRV: constants_1.NOT_DEPLOYED,
|
|
194744
|
+
stkcvxsteCRV: constants_1.NOT_DEPLOYED,
|
|
194745
|
+
stkcvxcrvPlain3andSUSD: constants_1.NOT_DEPLOYED,
|
|
194746
|
+
stkcvxLUSD3CRV: constants_1.NOT_DEPLOYED,
|
|
194747
|
+
stkcvxOHMFRAXBP: constants_1.NOT_DEPLOYED,
|
|
194748
|
+
stkcvxMIM_3LP3CRV: constants_1.NOT_DEPLOYED,
|
|
194749
|
+
stkcvxcrvCRVETH: constants_1.NOT_DEPLOYED,
|
|
194750
|
+
stkcvxcrvCVXETH: constants_1.NOT_DEPLOYED,
|
|
194751
|
+
stkcvxcrvUSDTWBTCWETH: constants_1.NOT_DEPLOYED,
|
|
194752
|
+
stkcvxLDOETH: constants_1.NOT_DEPLOYED,
|
|
194753
|
+
stkcvxcrvUSDUSDC: constants_1.NOT_DEPLOYED,
|
|
194754
|
+
stkcvxcrvUSDUSDT: constants_1.NOT_DEPLOYED,
|
|
194755
|
+
stkcvxcrvUSDFRAX: constants_1.NOT_DEPLOYED,
|
|
194756
|
+
stkcvxcrvUSDETHCRV: constants_1.NOT_DEPLOYED,
|
|
194757
|
+
// BALANCER TOKENS
|
|
194758
|
+
"50OHM_50DAI": constants_1.NOT_DEPLOYED,
|
|
194759
|
+
"50OHM_50WETH": constants_1.NOT_DEPLOYED,
|
|
194760
|
+
OHM_wstETH: constants_1.NOT_DEPLOYED,
|
|
194761
|
+
USDC_DAI_USDT: constants_1.NOT_DEPLOYED,
|
|
194762
|
+
B_rETH_STABLE: constants_1.NOT_DEPLOYED,
|
|
194763
|
+
BPT_rETH_ETH: "0x4Fd63966879300caFafBB35D157dC5229278Ed23",
|
|
194764
|
+
BPT_WSTETH_ETH: "0x7B50775383d3D6f0215A8F290f2C9e2eEBBEceb2",
|
|
194765
|
+
BPT_ROAD: "0x39965c9dAb5448482Cf7e002F583c812Ceb53046",
|
|
194766
|
+
// AURA
|
|
194767
|
+
auraB_rETH_STABLE: constants_1.NOT_DEPLOYED,
|
|
194768
|
+
auraBPT_rETH_ETH: "0x094C6846Fb2801b4753182ADFac336AAE8030A46",
|
|
194769
|
+
auraBPT_WSTETH_ETH: "0x4c7E79c921144eBf7eBdbf0D3156bf192cDBe5f5",
|
|
194770
|
+
auraB_rETH_STABLE_vault: constants_1.NOT_DEPLOYED,
|
|
194771
|
+
auraBPT_rETH_ETH_vault: "0x61ac9315a1Ae71633E95Fb35601B59180eC8d61d",
|
|
194772
|
+
auraBPT_WSTETH_ETH_vault: "0xe110b862E4D076596707892c0C5163BC183eb161",
|
|
194773
|
+
// GEARBOX
|
|
194774
|
+
dDAI: constants_1.NOT_DEPLOYED,
|
|
194775
|
+
dUSDC: constants_1.NOT_DEPLOYED,
|
|
194776
|
+
dWBTC: constants_1.NOT_DEPLOYED,
|
|
194777
|
+
dWETH: constants_1.NOT_DEPLOYED,
|
|
194778
|
+
dwstETH: constants_1.NOT_DEPLOYED,
|
|
194779
|
+
dFRAX: constants_1.NOT_DEPLOYED,
|
|
194780
|
+
dUSDCV3: constants_1.NOT_DEPLOYED,
|
|
194781
|
+
dWBTCV3: constants_1.NOT_DEPLOYED,
|
|
194782
|
+
dWETHV3: constants_1.NOT_DEPLOYED,
|
|
194783
|
+
sdUSDCV3: constants_1.NOT_DEPLOYED,
|
|
194784
|
+
sdWBTCV3: constants_1.NOT_DEPLOYED,
|
|
194785
|
+
sdWETHV3: constants_1.NOT_DEPLOYED,
|
|
194786
|
+
GEAR: constants_1.NOT_DEPLOYED,
|
|
194787
|
+
// AAVE
|
|
194788
|
+
aUSDC: constants_1.NOT_DEPLOYED,
|
|
194789
|
+
aDAI: constants_1.NOT_DEPLOYED,
|
|
194790
|
+
aUSDT: constants_1.NOT_DEPLOYED,
|
|
194791
|
+
aWETH: constants_1.NOT_DEPLOYED,
|
|
194792
|
+
waDAI: constants_1.NOT_DEPLOYED,
|
|
194793
|
+
waUSDC: constants_1.NOT_DEPLOYED,
|
|
194794
|
+
waUSDT: constants_1.NOT_DEPLOYED,
|
|
194795
|
+
waWETH: constants_1.NOT_DEPLOYED,
|
|
194796
|
+
cDAI: constants_1.NOT_DEPLOYED,
|
|
194797
|
+
cUSDC: constants_1.NOT_DEPLOYED,
|
|
194798
|
+
cUSDT: constants_1.NOT_DEPLOYED,
|
|
194799
|
+
cETH: constants_1.NOT_DEPLOYED,
|
|
194800
|
+
cLINK: constants_1.NOT_DEPLOYED,
|
|
194801
|
+
fUSDC: constants_1.NOT_DEPLOYED,
|
|
194802
|
+
sDAI: constants_1.NOT_DEPLOYED,
|
|
194803
|
+
YieldETH: constants_1.NOT_DEPLOYED
|
|
194373
194804
|
}
|
|
194374
194805
|
};
|
|
194375
194806
|
exports2.tokenSymbolByAddress = mappers_1.TypedObjectUtils.entries(exports2.tokenDataByNetwork).reduce((acc, [, tokens]) => ({
|
|
@@ -194493,6 +194924,7 @@ var require_contracts = __commonJS({
|
|
|
194493
194924
|
CURVE_CVXETH_POOL: "0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4",
|
|
194494
194925
|
CURVE_3CRYPTO_POOL: token_1.tokenDataByNetwork.Mainnet.crvUSDTWBTCWETH,
|
|
194495
194926
|
CURVE_LDOETH_POOL: "0x9409280DC1e6D33AB7A8C6EC03e5763FB61772B5",
|
|
194927
|
+
CURVE_ETH_WSTETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
194496
194928
|
CURVE_GEAR_POOL: "0x0E9B5B092caD6F1c5E6bc7f89Ffe1abb5c95F1C2",
|
|
194497
194929
|
CURVE_CRVUSD_USDC_POOL: token_1.tokenDataByNetwork.Mainnet.crvUSDUSDC,
|
|
194498
194930
|
CURVE_CRVUSD_USDT_POOL: token_1.tokenDataByNetwork.Mainnet.crvUSDUSDT,
|
|
@@ -194504,6 +194936,8 @@ var require_contracts = __commonJS({
|
|
|
194504
194936
|
YEARN_USDC_VAULT: token_1.tokenDataByNetwork.Mainnet.yvUSDC,
|
|
194505
194937
|
YEARN_WETH_VAULT: token_1.tokenDataByNetwork.Mainnet.yvWETH,
|
|
194506
194938
|
YEARN_WBTC_VAULT: token_1.tokenDataByNetwork.Mainnet.yvWBTC,
|
|
194939
|
+
YEARN_USDT_VAULT: token_1.tokenDataByNetwork.Mainnet.yvUSDT,
|
|
194940
|
+
YEARN_OP_VAULT: token_1.tokenDataByNetwork.Mainnet.yvOP,
|
|
194507
194941
|
YEARN_CURVE_FRAX_VAULT: token_1.tokenDataByNetwork.Mainnet.yvCurve_FRAX,
|
|
194508
194942
|
YEARN_CURVE_STETH_VAULT: token_1.tokenDataByNetwork.Mainnet.yvCurve_stETH,
|
|
194509
194943
|
// ERC4626
|
|
@@ -194528,8 +194962,11 @@ var require_contracts = __commonJS({
|
|
|
194528
194962
|
CONVEX_CRVUSD_USDT_POOL: "0xD1DdB0a0815fD28932fBb194C84003683AF8a824",
|
|
194529
194963
|
CONVEX_CRVUSD_FRAX_POOL: "0x3CfB4B26dc96B124D15A6f360503d028cF2a3c00",
|
|
194530
194964
|
CONVEX_TRI_CRV_POOL: "0xF956a46DbA1A0a567168db8655bc18E9050C7738",
|
|
194965
|
+
// AURA
|
|
194531
194966
|
AURA_BOOSTER: "0xA57b8d98dAE62B26Ec3bcC4a365338157060B234",
|
|
194532
194967
|
AURA_B_RETH_STABLE_POOL: token_1.tokenDataByNetwork.Mainnet.auraB_rETH_STABLE_vault,
|
|
194968
|
+
AURA_BPT_RETH_ETH_POOL: token_1.tokenDataByNetwork.Mainnet.auraBPT_rETH_ETH_vault,
|
|
194969
|
+
AURA_BPT_WSTETH_ETH_POOL: token_1.tokenDataByNetwork.Mainnet.auraBPT_WSTETH_ETH_vault,
|
|
194533
194970
|
// LIDO
|
|
194534
194971
|
LIDO_STETH_GATEWAY: "0x6f4b4aB5142787c05b7aB9A9692A0f46b997C29D",
|
|
194535
194972
|
LIDO_WSTETH: token_1.tokenDataByNetwork.Mainnet.wstETH,
|
|
@@ -194579,6 +195016,7 @@ var require_contracts = __commonJS({
|
|
|
194579
195016
|
CURVE_CVXETH_POOL: constants_1.NOT_DEPLOYED,
|
|
194580
195017
|
CURVE_3CRYPTO_POOL: constants_1.NOT_DEPLOYED,
|
|
194581
195018
|
CURVE_LDOETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195019
|
+
CURVE_ETH_WSTETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
194582
195020
|
CURVE_GEAR_POOL: constants_1.NOT_DEPLOYED,
|
|
194583
195021
|
CURVE_CRVUSD_USDC_POOL: token_1.tokenDataByNetwork.Mainnet.crvUSDUSDC,
|
|
194584
195022
|
CURVE_CRVUSD_USDT_POOL: token_1.tokenDataByNetwork.Mainnet.crvUSDUSDT,
|
|
@@ -194590,6 +195028,8 @@ var require_contracts = __commonJS({
|
|
|
194590
195028
|
YEARN_USDC_VAULT: token_1.tokenDataByNetwork.Arbitrum.yvUSDC,
|
|
194591
195029
|
YEARN_WETH_VAULT: token_1.tokenDataByNetwork.Arbitrum.yvWETH,
|
|
194592
195030
|
YEARN_WBTC_VAULT: token_1.tokenDataByNetwork.Arbitrum.yvWBTC,
|
|
195031
|
+
YEARN_USDT_VAULT: token_1.tokenDataByNetwork.Arbitrum.yvUSDT,
|
|
195032
|
+
YEARN_OP_VAULT: token_1.tokenDataByNetwork.Arbitrum.yvOP,
|
|
194593
195033
|
YEARN_CURVE_FRAX_VAULT: token_1.tokenDataByNetwork.Arbitrum.yvCurve_FRAX,
|
|
194594
195034
|
YEARN_CURVE_STETH_VAULT: token_1.tokenDataByNetwork.Arbitrum.yvCurve_stETH,
|
|
194595
195035
|
/// ERC4626
|
|
@@ -194615,7 +195055,9 @@ var require_contracts = __commonJS({
|
|
|
194615
195055
|
CONVEX_CRVUSD_FRAX_POOL: constants_1.NOT_DEPLOYED,
|
|
194616
195056
|
CONVEX_TRI_CRV_POOL: constants_1.NOT_DEPLOYED,
|
|
194617
195057
|
AURA_BOOSTER: constants_1.NOT_DEPLOYED,
|
|
194618
|
-
AURA_B_RETH_STABLE_POOL:
|
|
195058
|
+
AURA_B_RETH_STABLE_POOL: token_1.tokenDataByNetwork.Arbitrum.auraB_rETH_STABLE_vault,
|
|
195059
|
+
AURA_BPT_RETH_ETH_POOL: token_1.tokenDataByNetwork.Arbitrum.auraBPT_rETH_ETH_vault,
|
|
195060
|
+
AURA_BPT_WSTETH_ETH_POOL: token_1.tokenDataByNetwork.Arbitrum.auraBPT_WSTETH_ETH_vault,
|
|
194619
195061
|
// LIDO
|
|
194620
195062
|
LIDO_STETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
194621
195063
|
LIDO_WSTETH: token_1.tokenDataByNetwork.Arbitrum.wstETH,
|
|
@@ -194635,6 +195077,98 @@ var require_contracts = __commonJS({
|
|
|
194635
195077
|
COMPOUND_V2_LINK_POOL: token_1.tokenDataByNetwork.Arbitrum.cLINK,
|
|
194636
195078
|
COMPOUND_V2_ETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
194637
195079
|
FLUX_USDC_POOL: token_1.tokenDataByNetwork.Arbitrum.fUSDC
|
|
195080
|
+
},
|
|
195081
|
+
//
|
|
195082
|
+
//
|
|
195083
|
+
//
|
|
195084
|
+
//
|
|
195085
|
+
// OPTIMISM
|
|
195086
|
+
//
|
|
195087
|
+
//
|
|
195088
|
+
//
|
|
195089
|
+
//
|
|
195090
|
+
Optimism: {
|
|
195091
|
+
UNISWAP_V2_ROUTER: constants_1.NOT_DEPLOYED,
|
|
195092
|
+
UNISWAP_V3_ROUTER: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
195093
|
+
SUSHISWAP_ROUTER: constants_1.NOT_DEPLOYED,
|
|
195094
|
+
FRAXSWAP_ROUTER: "0xB9A55F455e46e8D717eEA5E47D2c449416A0437F",
|
|
195095
|
+
// CURVE
|
|
195096
|
+
CURVE_3CRV_POOL: "0x1337BedC9D22ecbe766dF105c9623922A27963EC",
|
|
195097
|
+
CURVE_FRAX_USDC_POOL: constants_1.NOT_DEPLOYED,
|
|
195098
|
+
CURVE_STETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
195099
|
+
CURVE_FRAX_POOL: token_1.tokenDataByNetwork.Arbitrum.FRAX3CRV,
|
|
195100
|
+
CURVE_LUSD_POOL: token_1.tokenDataByNetwork.Arbitrum.LUSD3CRV,
|
|
195101
|
+
CURVE_SUSD_POOL: constants_1.NOT_DEPLOYED,
|
|
195102
|
+
CURVE_SUSD_DEPOSIT: constants_1.NOT_DEPLOYED,
|
|
195103
|
+
CURVE_GUSD_POOL: constants_1.NOT_DEPLOYED,
|
|
195104
|
+
CURVE_MIM_POOL: token_1.tokenDataByNetwork.Arbitrum.MIM_3LP3CRV,
|
|
195105
|
+
CURVE_OHMFRAXBP_POOL: constants_1.NOT_DEPLOYED,
|
|
195106
|
+
CURVE_CRVETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195107
|
+
CURVE_CVXETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195108
|
+
CURVE_3CRYPTO_POOL: constants_1.NOT_DEPLOYED,
|
|
195109
|
+
CURVE_LDOETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195110
|
+
CURVE_ETH_WSTETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
195111
|
+
CURVE_GEAR_POOL: constants_1.NOT_DEPLOYED,
|
|
195112
|
+
CURVE_CRVUSD_USDC_POOL: token_1.tokenDataByNetwork.Optimism.crvUSDUSDC,
|
|
195113
|
+
CURVE_CRVUSD_USDT_POOL: token_1.tokenDataByNetwork.Optimism.crvUSDUSDT,
|
|
195114
|
+
CURVE_CRVUSD_FRAX_POOL: token_1.tokenDataByNetwork.Optimism.crvUSDFRAX,
|
|
195115
|
+
CURVE_TRI_CRV_POOL: token_1.tokenDataByNetwork.Optimism.crvUSDETHCRV,
|
|
195116
|
+
CURVE_RETH_ETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195117
|
+
// YEARN
|
|
195118
|
+
YEARN_DAI_VAULT: token_1.tokenDataByNetwork.Optimism.yvDAI,
|
|
195119
|
+
YEARN_USDC_VAULT: token_1.tokenDataByNetwork.Optimism.yvUSDC,
|
|
195120
|
+
YEARN_WETH_VAULT: token_1.tokenDataByNetwork.Optimism.yvWETH,
|
|
195121
|
+
YEARN_WBTC_VAULT: token_1.tokenDataByNetwork.Optimism.yvWBTC,
|
|
195122
|
+
YEARN_USDT_VAULT: token_1.tokenDataByNetwork.Optimism.yvUSDT,
|
|
195123
|
+
YEARN_OP_VAULT: token_1.tokenDataByNetwork.Optimism.yvOP,
|
|
195124
|
+
YEARN_CURVE_FRAX_VAULT: token_1.tokenDataByNetwork.Optimism.yvCurve_FRAX,
|
|
195125
|
+
YEARN_CURVE_STETH_VAULT: token_1.tokenDataByNetwork.Optimism.yvCurve_stETH,
|
|
195126
|
+
/// ERC4626
|
|
195127
|
+
MAKER_DSR_VAULT: token_1.tokenDataByNetwork.Optimism.sDAI,
|
|
195128
|
+
YIELD_ETH_VAULT: token_1.tokenDataByNetwork.Optimism.YieldETH,
|
|
195129
|
+
// CONVEX
|
|
195130
|
+
CONVEX_BOOSTER: constants_1.NOT_DEPLOYED,
|
|
195131
|
+
CONVEX_3CRV_POOL: constants_1.NOT_DEPLOYED,
|
|
195132
|
+
CONVEX_FRAX_USDC_POOL: constants_1.NOT_DEPLOYED,
|
|
195133
|
+
CONVEX_STECRV_POOL: constants_1.NOT_DEPLOYED,
|
|
195134
|
+
CONVEX_SUSD_POOL: constants_1.NOT_DEPLOYED,
|
|
195135
|
+
CONVEX_FRAX3CRV_POOL: constants_1.NOT_DEPLOYED,
|
|
195136
|
+
CONVEX_LUSD3CRV_POOL: constants_1.NOT_DEPLOYED,
|
|
195137
|
+
CONVEX_GUSD_POOL: constants_1.NOT_DEPLOYED,
|
|
195138
|
+
CONVEX_OHMFRAXBP_POOL: constants_1.NOT_DEPLOYED,
|
|
195139
|
+
CONVEX_MIM3CRV_POOL: constants_1.NOT_DEPLOYED,
|
|
195140
|
+
CONVEX_CRVETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195141
|
+
CONVEX_CVXETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195142
|
+
CONVEX_3CRYPTO_POOL: constants_1.NOT_DEPLOYED,
|
|
195143
|
+
CONVEX_LDOETH_POOL: constants_1.NOT_DEPLOYED,
|
|
195144
|
+
CONVEX_CRVUSD_USDC_POOL: constants_1.NOT_DEPLOYED,
|
|
195145
|
+
CONVEX_CRVUSD_USDT_POOL: constants_1.NOT_DEPLOYED,
|
|
195146
|
+
CONVEX_CRVUSD_FRAX_POOL: constants_1.NOT_DEPLOYED,
|
|
195147
|
+
CONVEX_TRI_CRV_POOL: constants_1.NOT_DEPLOYED,
|
|
195148
|
+
// AURA
|
|
195149
|
+
AURA_BOOSTER: "0x98Ef32edd24e2c92525E59afc4475C1242a30184",
|
|
195150
|
+
AURA_B_RETH_STABLE_POOL: token_1.tokenDataByNetwork.Optimism.auraB_rETH_STABLE_vault,
|
|
195151
|
+
AURA_BPT_RETH_ETH_POOL: token_1.tokenDataByNetwork.Optimism.auraBPT_rETH_ETH_vault,
|
|
195152
|
+
AURA_BPT_WSTETH_ETH_POOL: token_1.tokenDataByNetwork.Optimism.auraBPT_WSTETH_ETH_vault,
|
|
195153
|
+
// LIDO
|
|
195154
|
+
LIDO_STETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
195155
|
+
LIDO_WSTETH: constants_1.NOT_DEPLOYED,
|
|
195156
|
+
// BALANCER
|
|
195157
|
+
BALANCER_VAULT: "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
|
|
195158
|
+
// GEARBOX
|
|
195159
|
+
UNIVERSAL_ADAPTER: "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
|
195160
|
+
// AAVE
|
|
195161
|
+
AAVE_V2_LENDING_POOL: constants_1.NOT_DEPLOYED,
|
|
195162
|
+
AAVE_V2_DAI_TOKEN_WRAPPER: token_1.tokenDataByNetwork.Arbitrum.waDAI,
|
|
195163
|
+
AAVE_V2_USDC_TOKEN_WRAPPER: token_1.tokenDataByNetwork.Arbitrum.waUSDC,
|
|
195164
|
+
AAVE_V2_USDT_TOKEN_WRAPPER: token_1.tokenDataByNetwork.Arbitrum.waUSDT,
|
|
195165
|
+
AAVE_V2_WETH_TOKEN_WRAPPER: token_1.tokenDataByNetwork.Arbitrum.waWETH,
|
|
195166
|
+
COMPOUND_V2_DAI_POOL: token_1.tokenDataByNetwork.Arbitrum.cDAI,
|
|
195167
|
+
COMPOUND_V2_USDC_POOL: token_1.tokenDataByNetwork.Arbitrum.cUSDC,
|
|
195168
|
+
COMPOUND_V2_USDT_POOL: token_1.tokenDataByNetwork.Arbitrum.cUSDT,
|
|
195169
|
+
COMPOUND_V2_LINK_POOL: token_1.tokenDataByNetwork.Arbitrum.cLINK,
|
|
195170
|
+
COMPOUND_V2_ETH_GATEWAY: constants_1.NOT_DEPLOYED,
|
|
195171
|
+
FLUX_USDC_POOL: token_1.tokenDataByNetwork.Arbitrum.fUSDC
|
|
194638
195172
|
}
|
|
194639
195173
|
};
|
|
194640
195174
|
exports2.UNISWAP_V3_QUOTER = constants_1.NOT_DEPLOYED;
|
|
@@ -194683,12 +195217,25 @@ var require_contracts = __commonJS({
|
|
|
194683
195217
|
version: 10,
|
|
194684
195218
|
pool: {
|
|
194685
195219
|
Mainnet: "0xDC24316b9AE028F1497c275EB9192a3Ea0f67022",
|
|
194686
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
194687
|
-
|
|
195220
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195221
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
194688
195222
|
},
|
|
194689
195223
|
tokens: ["WETH", "STETH"],
|
|
194690
195224
|
lpToken: "steCRV"
|
|
194691
195225
|
},
|
|
195226
|
+
CURVE_ETH_WSTETH_GATEWAY: {
|
|
195227
|
+
name: "Curve wstETH Gateway",
|
|
195228
|
+
protocol: protocols_1.Protocols.Curve,
|
|
195229
|
+
type: adapters_1.AdapterInterface.CURVE_V1_STECRV_POOL,
|
|
195230
|
+
version: 10,
|
|
195231
|
+
pool: {
|
|
195232
|
+
Mainnet: constants_1.NOT_DEPLOYED,
|
|
195233
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195234
|
+
Optimism: "0xb90b9b1f91a01ea22a182cd84c1e22222e39b415"
|
|
195235
|
+
},
|
|
195236
|
+
tokens: ["WETH", "STETH"],
|
|
195237
|
+
lpToken: "wstETHCRV"
|
|
195238
|
+
},
|
|
194692
195239
|
CURVE_GEAR_POOL: {
|
|
194693
195240
|
name: "Curve GEAR",
|
|
194694
195241
|
protocol: protocols_1.Protocols.Curve,
|
|
@@ -194696,7 +195243,8 @@ var require_contracts = __commonJS({
|
|
|
194696
195243
|
version: 10,
|
|
194697
195244
|
pool: {
|
|
194698
195245
|
Mainnet: "0x0E9B5B092caD6F1c5E6bc7f89Ffe1abb5c95F1C2",
|
|
194699
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195246
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195247
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
194700
195248
|
},
|
|
194701
195249
|
tokens: ["GEAR", "WETH"],
|
|
194702
195250
|
lpToken: "GEAR"
|
|
@@ -194859,6 +195407,18 @@ var require_contracts = __commonJS({
|
|
|
194859
195407
|
type: adapters_1.AdapterInterface.YEARN_V2,
|
|
194860
195408
|
shareToken: "yvWBTC"
|
|
194861
195409
|
},
|
|
195410
|
+
YEARN_USDT_VAULT: {
|
|
195411
|
+
name: "Yearn USDT",
|
|
195412
|
+
protocol: protocols_1.Protocols.Yearn,
|
|
195413
|
+
type: adapters_1.AdapterInterface.YEARN_V2,
|
|
195414
|
+
shareToken: "yvUSDT"
|
|
195415
|
+
},
|
|
195416
|
+
YEARN_OP_VAULT: {
|
|
195417
|
+
name: "Yearn OP",
|
|
195418
|
+
protocol: protocols_1.Protocols.Yearn,
|
|
195419
|
+
type: adapters_1.AdapterInterface.YEARN_V2,
|
|
195420
|
+
shareToken: "yvOP"
|
|
195421
|
+
},
|
|
194862
195422
|
YEARN_CURVE_FRAX_VAULT: {
|
|
194863
195423
|
name: "Yearn Curve FRAX",
|
|
194864
195424
|
protocol: protocols_1.Protocols.Yearn,
|
|
@@ -194919,8 +195479,8 @@ var require_contracts = __commonJS({
|
|
|
194919
195479
|
rewardToken: "SNX",
|
|
194920
195480
|
poolAddress: {
|
|
194921
195481
|
Mainnet: "0x81fCe3E10D12Da6c7266a1A169c4C96813435263",
|
|
194922
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
194923
|
-
|
|
195482
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195483
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
194924
195484
|
}
|
|
194925
195485
|
}
|
|
194926
195486
|
]
|
|
@@ -194935,8 +195495,8 @@ var require_contracts = __commonJS({
|
|
|
194935
195495
|
rewardToken: "LDO",
|
|
194936
195496
|
poolAddress: {
|
|
194937
195497
|
Mainnet: "0x008aEa5036b819B4FEAEd10b2190FBb3954981E8",
|
|
194938
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
194939
|
-
|
|
195498
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195499
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
194940
195500
|
}
|
|
194941
195501
|
}
|
|
194942
195502
|
]
|
|
@@ -194951,8 +195511,8 @@ var require_contracts = __commonJS({
|
|
|
194951
195511
|
rewardToken: "FXS",
|
|
194952
195512
|
poolAddress: {
|
|
194953
195513
|
Mainnet: "0xcDEC6714eB482f28f4889A0c122868450CDBF0b0",
|
|
194954
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
194955
|
-
|
|
195514
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195515
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
194956
195516
|
}
|
|
194957
195517
|
}
|
|
194958
195518
|
]
|
|
@@ -194967,8 +195527,8 @@ var require_contracts = __commonJS({
|
|
|
194967
195527
|
rewardToken: "LQTY",
|
|
194968
195528
|
poolAddress: {
|
|
194969
195529
|
Mainnet: "0x55d59b791f06dc519B176791c4E037E8Cf2f6361",
|
|
194970
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
194971
|
-
|
|
195530
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195531
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
194972
195532
|
}
|
|
194973
195533
|
}
|
|
194974
195534
|
]
|
|
@@ -194983,7 +195543,8 @@ var require_contracts = __commonJS({
|
|
|
194983
195543
|
rewardToken: "SPELL",
|
|
194984
195544
|
poolAddress: {
|
|
194985
195545
|
Mainnet: "0x69a92f1656cd2e193797546cFe2EaF32EACcf6f7",
|
|
194986
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195546
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195547
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
194987
195548
|
}
|
|
194988
195549
|
}
|
|
194989
195550
|
]
|
|
@@ -195005,7 +195566,8 @@ var require_contracts = __commonJS({
|
|
|
195005
195566
|
rewardToken: "CVX",
|
|
195006
195567
|
poolAddress: {
|
|
195007
195568
|
Mainnet: "0xE1eCBB4181378E2346EAC90Eb5606c01Aa08f052",
|
|
195008
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195569
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195570
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195009
195571
|
}
|
|
195010
195572
|
}
|
|
195011
195573
|
]
|
|
@@ -195020,7 +195582,8 @@ var require_contracts = __commonJS({
|
|
|
195020
195582
|
rewardToken: "CVX",
|
|
195021
195583
|
poolAddress: {
|
|
195022
195584
|
Mainnet: "0x834B9147Fd23bF131644aBC6e557Daf99C5cDa15",
|
|
195023
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195585
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195586
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195024
195587
|
}
|
|
195025
195588
|
}
|
|
195026
195589
|
]
|
|
@@ -195042,7 +195605,8 @@ var require_contracts = __commonJS({
|
|
|
195042
195605
|
rewardToken: "LDO",
|
|
195043
195606
|
poolAddress: {
|
|
195044
195607
|
Mainnet: "0x95e6092449a0f3946A5a0f308Ead4adcff244E2B",
|
|
195045
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195608
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195609
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195046
195610
|
}
|
|
195047
195611
|
}
|
|
195048
195612
|
]
|
|
@@ -195057,7 +195621,8 @@ var require_contracts = __commonJS({
|
|
|
195057
195621
|
rewardToken: "CVX",
|
|
195058
195622
|
poolAddress: {
|
|
195059
195623
|
Mainnet: "0xac183F7cd62d5b04Fa40362EB67249A80339541A",
|
|
195060
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195624
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195625
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195061
195626
|
}
|
|
195062
195627
|
}
|
|
195063
195628
|
]
|
|
@@ -195072,7 +195637,8 @@ var require_contracts = __commonJS({
|
|
|
195072
195637
|
rewardToken: "CVX",
|
|
195073
195638
|
poolAddress: {
|
|
195074
195639
|
Mainnet: "0xD490178B568b07c6DDbDfBBfaF9043772209Ec01",
|
|
195075
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195640
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195641
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195076
195642
|
}
|
|
195077
195643
|
}
|
|
195078
195644
|
]
|
|
@@ -195087,7 +195653,8 @@ var require_contracts = __commonJS({
|
|
|
195087
195653
|
rewardToken: "CVX",
|
|
195088
195654
|
poolAddress: {
|
|
195089
195655
|
Mainnet: "0x749cFfCb53e008841d7387ba37f9284BDeCEe0A9",
|
|
195090
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195656
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195657
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195091
195658
|
}
|
|
195092
195659
|
}
|
|
195093
195660
|
]
|
|
@@ -195102,7 +195669,8 @@ var require_contracts = __commonJS({
|
|
|
195102
195669
|
rewardToken: "CVX",
|
|
195103
195670
|
poolAddress: {
|
|
195104
195671
|
Mainnet: "0x01eC96F1eEBF470E3fEAEEfB843fbC63424e668d",
|
|
195105
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195672
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195673
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195106
195674
|
}
|
|
195107
195675
|
}
|
|
195108
195676
|
]
|
|
@@ -195117,7 +195685,64 @@ var require_contracts = __commonJS({
|
|
|
195117
195685
|
protocol: protocols_1.Protocols.Aura,
|
|
195118
195686
|
type: adapters_1.AdapterInterface.CONVEX_V1_BASE_REWARD_POOL,
|
|
195119
195687
|
stakedToken: "auraB_rETH_STABLE_vault",
|
|
195120
|
-
extraRewards: [
|
|
195688
|
+
extraRewards: [
|
|
195689
|
+
{
|
|
195690
|
+
rewardToken: "AURA",
|
|
195691
|
+
poolAddress: {
|
|
195692
|
+
Mainnet: "0xf66a72886749c96b18526E8E124cC2e18b7c72D2",
|
|
195693
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195694
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195695
|
+
}
|
|
195696
|
+
}
|
|
195697
|
+
]
|
|
195698
|
+
},
|
|
195699
|
+
AURA_BPT_RETH_ETH_POOL: {
|
|
195700
|
+
name: "BeethovenX rETH-ETH Pool Aura Deposit",
|
|
195701
|
+
protocol: protocols_1.Protocols.Aura,
|
|
195702
|
+
type: adapters_1.AdapterInterface.CONVEX_V1_BASE_REWARD_POOL,
|
|
195703
|
+
stakedToken: "auraBPT_rETH_ETH_vault",
|
|
195704
|
+
extraRewards: [
|
|
195705
|
+
{
|
|
195706
|
+
rewardToken: "OP",
|
|
195707
|
+
poolAddress: {
|
|
195708
|
+
Mainnet: constants_1.NOT_DEPLOYED,
|
|
195709
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195710
|
+
Optimism: "0x0A22Ae9D9D149C14f6c15A235e715bB6C1Cfa739"
|
|
195711
|
+
}
|
|
195712
|
+
},
|
|
195713
|
+
{
|
|
195714
|
+
rewardToken: "AURA",
|
|
195715
|
+
poolAddress: {
|
|
195716
|
+
Mainnet: constants_1.NOT_DEPLOYED,
|
|
195717
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195718
|
+
Optimism: "0x81673Cdd00c2839440f31575cCFa5B6ca4a87B2B"
|
|
195719
|
+
}
|
|
195720
|
+
}
|
|
195721
|
+
]
|
|
195722
|
+
},
|
|
195723
|
+
AURA_BPT_WSTETH_ETH_POOL: {
|
|
195724
|
+
name: "BeethovenX wstETH-ETH Pool Aura Deposit",
|
|
195725
|
+
protocol: protocols_1.Protocols.Aura,
|
|
195726
|
+
type: adapters_1.AdapterInterface.CONVEX_V1_BASE_REWARD_POOL,
|
|
195727
|
+
stakedToken: "auraBPT_WSTETH_ETH_vault",
|
|
195728
|
+
extraRewards: [
|
|
195729
|
+
{
|
|
195730
|
+
rewardToken: "OP",
|
|
195731
|
+
poolAddress: {
|
|
195732
|
+
Mainnet: constants_1.NOT_DEPLOYED,
|
|
195733
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195734
|
+
Optimism: "0x903d716fe68e7e091eCC43AA93c0F8cfD7e7BC0a"
|
|
195735
|
+
}
|
|
195736
|
+
},
|
|
195737
|
+
{
|
|
195738
|
+
rewardToken: "AURA",
|
|
195739
|
+
poolAddress: {
|
|
195740
|
+
Mainnet: constants_1.NOT_DEPLOYED,
|
|
195741
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195742
|
+
Optimism: "0xb0709c230C06BE6e2A84b2Ba877094EB9a4fA014"
|
|
195743
|
+
}
|
|
195744
|
+
}
|
|
195745
|
+
]
|
|
195121
195746
|
},
|
|
195122
195747
|
LIDO_STETH_GATEWAY: {
|
|
195123
195748
|
name: "Lido STETH",
|
|
@@ -195125,8 +195750,8 @@ var require_contracts = __commonJS({
|
|
|
195125
195750
|
type: adapters_1.AdapterInterface.LIDO_V1,
|
|
195126
195751
|
oracle: {
|
|
195127
195752
|
Mainnet: "0x442af784A788A5bd6F42A01Ebe9F287a871243fb",
|
|
195128
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195129
|
-
|
|
195753
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195754
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195130
195755
|
},
|
|
195131
195756
|
lpToken: "steCRV"
|
|
195132
195757
|
},
|
|
@@ -195146,7 +195771,8 @@ var require_contracts = __commonJS({
|
|
|
195146
195771
|
type: adapters_1.AdapterInterface.BALANCER_VAULT,
|
|
195147
195772
|
queries: {
|
|
195148
195773
|
Mainnet: "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5",
|
|
195149
|
-
Arbitrum: "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5"
|
|
195774
|
+
Arbitrum: "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5",
|
|
195775
|
+
Optimism: "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5"
|
|
195150
195776
|
}
|
|
195151
195777
|
},
|
|
195152
195778
|
AAVE_V2_LENDING_POOL: {
|
|
@@ -195229,35 +195855,52 @@ var require_utilsContracts = __commonJS({
|
|
|
195229
195855
|
"../../node_modules/@gearbox-protocol/sdk-gov/lib/contracts/utilsContracts.js"(exports2) {
|
|
195230
195856
|
"use strict";
|
|
195231
195857
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
195232
|
-
exports2.TREASURY = exports2.MULTISIG = exports2.CREATE2FACTORY = exports2.DEGEN_NFT = exports2.BLACKLIST_HELPER = exports2.TIMELOCK = exports2.ADDRESS_PROVIDER = void 0;
|
|
195858
|
+
exports2.TREASURY = exports2.VETO_ADMIN = exports2.MULTISIG = exports2.CREATE2FACTORY = exports2.DEGEN_NFT = exports2.BLACKLIST_HELPER = exports2.GOVERNOR = exports2.TIMELOCK = exports2.ADDRESS_PROVIDER = void 0;
|
|
195233
195859
|
var constants_1 = require_constants7();
|
|
195234
195860
|
exports2.ADDRESS_PROVIDER = {
|
|
195235
195861
|
Mainnet: "0x9ea7b04Da02a5373317D745c1571c84aaD03321D",
|
|
195236
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195862
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195863
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195237
195864
|
};
|
|
195238
195865
|
exports2.TIMELOCK = {
|
|
195239
195866
|
Mainnet: "0xa133C9A92Fb8dDB962Af1cbae58b2723A0bdf23b",
|
|
195240
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195867
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195868
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195869
|
+
};
|
|
195870
|
+
exports2.GOVERNOR = {
|
|
195871
|
+
Mainnet: "0x29B97F37B3E0C704bCFD785F5b7bBa2A0B7df2c7",
|
|
195872
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195873
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195241
195874
|
};
|
|
195242
195875
|
exports2.BLACKLIST_HELPER = {
|
|
195243
195876
|
Mainnet: "0xFfbF344741654a1B9Ab1286Cf05A42f275F67839",
|
|
195244
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195877
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195878
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195245
195879
|
};
|
|
195246
195880
|
exports2.DEGEN_NFT = {
|
|
195247
195881
|
Mainnet: "0xB829a5b349b01fc71aFE46E50dD6Ec0222A6E599",
|
|
195248
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195882
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195883
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195249
195884
|
};
|
|
195250
195885
|
exports2.CREATE2FACTORY = {
|
|
195251
195886
|
Mainnet: "0x45d146CAA25aa565Cfc7434926633f4F1C97c873",
|
|
195252
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195887
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195888
|
+
Optimism: constants_1.NOT_DEPLOYED
|
|
195253
195889
|
};
|
|
195254
195890
|
exports2.MULTISIG = {
|
|
195255
195891
|
Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
|
|
195256
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195892
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195893
|
+
Optimism: "0x8bA8cd6D00919ceCc19D9B4A2c8669a524883C4c"
|
|
195894
|
+
};
|
|
195895
|
+
exports2.VETO_ADMIN = {
|
|
195896
|
+
Mainnet: "0xbb803559B4D58b75E12dd74641AB955e8B0Df40E",
|
|
195897
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195898
|
+
Optimism: "0x9744f76dc5239Eb4DC2CE8D5538e1BA89C8FA90f"
|
|
195257
195899
|
};
|
|
195258
195900
|
exports2.TREASURY = {
|
|
195259
195901
|
Mainnet: "0x7b065fcb0760df0cea8cfd144e08554f3cea73d1",
|
|
195260
|
-
Arbitrum: constants_1.NOT_DEPLOYED
|
|
195902
|
+
Arbitrum: constants_1.NOT_DEPLOYED,
|
|
195903
|
+
Optimism: "0x1ACc5BC353f23B901801f3Ba48e1E51a14263808"
|
|
195261
195904
|
};
|
|
195262
195905
|
}
|
|
195263
195906
|
});
|
|
@@ -195971,13 +196614,13 @@ var require_chains = __commonJS({
|
|
|
195971
196614
|
Optimism: exports2.OPTIMISM_NETWORK,
|
|
195972
196615
|
Polygon: exports2.POLYGON_NETWORK
|
|
195973
196616
|
};
|
|
195974
|
-
exports2.supportedChains = ["Mainnet", "Arbitrum"];
|
|
196617
|
+
exports2.supportedChains = ["Mainnet", "Arbitrum", "Optimism"];
|
|
195975
196618
|
var SUPPORTED_CHAINS = {
|
|
195976
196619
|
[exports2.CHAINS.Mainnet]: "Mainnet",
|
|
195977
196620
|
[exports2.CHAINS.Arbitrum]: "Arbitrum",
|
|
195978
196621
|
[exports2.CHAINS.Local]: "Mainnet",
|
|
195979
|
-
[exports2.CHAINS.Tenderly]: "Mainnet"
|
|
195980
|
-
|
|
196622
|
+
[exports2.CHAINS.Tenderly]: "Mainnet",
|
|
196623
|
+
[exports2.CHAINS.Optimism]: "Optimism"
|
|
195981
196624
|
// [CHAINS.Polygon]: "Polygon",
|
|
195982
196625
|
};
|
|
195983
196626
|
var getNetworkType = (chainId, localAs = "Mainnet") => {
|
|
@@ -195996,8 +196639,10 @@ var require_chains = __commonJS({
|
|
|
195996
196639
|
const usdcABI = ["function symbol() view returns (string)"];
|
|
195997
196640
|
const mainnetUSDC = token_1.tokenDataByNetwork.Mainnet["USDC"];
|
|
195998
196641
|
const arbitrumUSDC = token_1.tokenDataByNetwork.Arbitrum["USDC"];
|
|
196642
|
+
const optimismUSDC = token_1.tokenDataByNetwork.Optimism["USDC"];
|
|
195999
196643
|
const mainnetUSDCContract = new ethers_1.ethers.Contract(mainnetUSDC, usdcABI, provider);
|
|
196000
196644
|
const arbitrumUSDCContract = new ethers_1.ethers.Contract(arbitrumUSDC, usdcABI, provider);
|
|
196645
|
+
const optimismUSDCContract = new ethers_1.ethers.Contract(optimismUSDC, usdcABI, provider);
|
|
196001
196646
|
try {
|
|
196002
196647
|
await mainnetUSDCContract.symbol();
|
|
196003
196648
|
return "Mainnet";
|
|
@@ -196008,6 +196653,11 @@ var require_chains = __commonJS({
|
|
|
196008
196653
|
return "Arbitrum";
|
|
196009
196654
|
} catch {
|
|
196010
196655
|
}
|
|
196656
|
+
try {
|
|
196657
|
+
await optimismUSDCContract.symbol();
|
|
196658
|
+
return "Optimism";
|
|
196659
|
+
} catch {
|
|
196660
|
+
}
|
|
196011
196661
|
throw new Error("Unsupported network");
|
|
196012
196662
|
};
|
|
196013
196663
|
exports2.detectNetwork = detectNetwork;
|
|
@@ -196019,7 +196669,7 @@ var require_pricefeedType = __commonJS({
|
|
|
196019
196669
|
"../../node_modules/@gearbox-protocol/sdk-gov/lib/oracles/pricefeedType.js"(exports2) {
|
|
196020
196670
|
"use strict";
|
|
196021
196671
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
196022
|
-
exports2.HOUR_1_BUFFERED = exports2.HOUR_24_BUFFERED = exports2.FOUR_MINUTES = exports2.HOUR_24 = exports2.HOUR_1 = exports2.lpPriceFeedTypes = exports2.PriceFeedType = void 0;
|
|
196672
|
+
exports2.HOUR_24_BUFFERED_L2 = exports2.MINUTES_20_BUFFERED_L2 = exports2.HOUR_1_BUFFERED = exports2.HOUR_24_BUFFERED = exports2.FOUR_MINUTES = exports2.HOUR_24 = exports2.HOUR_1 = exports2.lpPriceFeedTypes = exports2.PriceFeedType = void 0;
|
|
196023
196673
|
var PriceFeedType;
|
|
196024
196674
|
(function(PriceFeedType2) {
|
|
196025
196675
|
PriceFeedType2[PriceFeedType2["CHAINLINK_ORACLE"] = 0] = "CHAINLINK_ORACLE";
|
|
@@ -196062,6 +196712,9 @@ var require_pricefeedType = __commonJS({
|
|
|
196062
196712
|
var ANSWER_UPDATE_DELAY = 15 * 60;
|
|
196063
196713
|
exports2.HOUR_24_BUFFERED = 24 * exports2.HOUR_1 + ANSWER_UPDATE_DELAY;
|
|
196064
196714
|
exports2.HOUR_1_BUFFERED = exports2.HOUR_1 + ANSWER_UPDATE_DELAY;
|
|
196715
|
+
var L2_ANSWER_UPDATE_DELAY = 2 * 60;
|
|
196716
|
+
exports2.MINUTES_20_BUFFERED_L2 = 20 * 60 + L2_ANSWER_UPDATE_DELAY;
|
|
196717
|
+
exports2.HOUR_24_BUFFERED_L2 = 24 * exports2.HOUR_1 + L2_ANSWER_UPDATE_DELAY;
|
|
196065
196718
|
}
|
|
196066
196719
|
});
|
|
196067
196720
|
|
|
@@ -196185,6 +196838,14 @@ var require_priceFeeds = __commonJS({
|
|
|
196185
196838
|
address: "0xc5C8E77B397E531B8EC06BFb0048328B30E9eCfB",
|
|
196186
196839
|
trusted: false
|
|
196187
196840
|
}
|
|
196841
|
+
},
|
|
196842
|
+
Optimism: {
|
|
196843
|
+
Main: {
|
|
196844
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
196845
|
+
address: "0x8dBa75e83DA73cc766A7e5a0ee71F656BAb470d6",
|
|
196846
|
+
trusted: false,
|
|
196847
|
+
stalenessPeriod: pricefeedType_1.HOUR_24_BUFFERED_L2
|
|
196848
|
+
}
|
|
196188
196849
|
}
|
|
196189
196850
|
},
|
|
196190
196851
|
DPI: {
|
|
@@ -196257,6 +196918,14 @@ var require_priceFeeds = __commonJS({
|
|
|
196257
196918
|
address: "0x86E53CF1B870786351Da77A57575e79CB55812CB",
|
|
196258
196919
|
trusted: false
|
|
196259
196920
|
}
|
|
196921
|
+
},
|
|
196922
|
+
Optimism: {
|
|
196923
|
+
Main: {
|
|
196924
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
196925
|
+
address: "0xCc232dcFAAE6354cE191Bd574108c1aD03f86450",
|
|
196926
|
+
trusted: false,
|
|
196927
|
+
stalenessPeriod: pricefeedType_1.MINUTES_20_BUFFERED_L2
|
|
196928
|
+
}
|
|
196260
196929
|
}
|
|
196261
196930
|
},
|
|
196262
196931
|
SNX: {
|
|
@@ -196273,6 +196942,33 @@ var require_priceFeeds = __commonJS({
|
|
|
196273
196942
|
address: "0x054296f0D036b95531B4E14aFB578B80CFb41252",
|
|
196274
196943
|
trusted: false
|
|
196275
196944
|
}
|
|
196945
|
+
},
|
|
196946
|
+
Optimism: {
|
|
196947
|
+
Main: {
|
|
196948
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
196949
|
+
address: "0x2FCF37343e916eAEd1f1DdaaF84458a359b53877",
|
|
196950
|
+
trusted: false,
|
|
196951
|
+
stalenessPeriod: pricefeedType_1.MINUTES_20_BUFFERED_L2
|
|
196952
|
+
}
|
|
196953
|
+
}
|
|
196954
|
+
},
|
|
196955
|
+
WLD: {
|
|
196956
|
+
Optimism: {
|
|
196957
|
+
Main: {
|
|
196958
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
196959
|
+
address: "0x4e1C6B168DCFD7758bC2Ab9d2865f1895813D236",
|
|
196960
|
+
trusted: false
|
|
196961
|
+
}
|
|
196962
|
+
}
|
|
196963
|
+
},
|
|
196964
|
+
OP: {
|
|
196965
|
+
Optimism: {
|
|
196966
|
+
Main: {
|
|
196967
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
196968
|
+
address: "0x0D276FC14719f9292D5C1eA2198673d1f4269246",
|
|
196969
|
+
trusted: false,
|
|
196970
|
+
stalenessPeriod: pricefeedType_1.MINUTES_20_BUFFERED_L2
|
|
196971
|
+
}
|
|
196276
196972
|
}
|
|
196277
196973
|
},
|
|
196278
196974
|
UNI: {
|
|
@@ -196321,6 +197017,14 @@ var require_priceFeeds = __commonJS({
|
|
|
196321
197017
|
address: "0x50834F3163758fcC1Df9973b6e91f0F0F0434aD3",
|
|
196322
197018
|
trusted: false
|
|
196323
197019
|
}
|
|
197020
|
+
},
|
|
197021
|
+
Optimism: {
|
|
197022
|
+
Main: {
|
|
197023
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
197024
|
+
address: "0x16a9FA2FDa030272Ce99B29CF780dFA30361E0f3",
|
|
197025
|
+
trusted: false,
|
|
197026
|
+
stalenessPeriod: pricefeedType_1.HOUR_24_BUFFERED_L2
|
|
197027
|
+
}
|
|
196324
197028
|
}
|
|
196325
197029
|
},
|
|
196326
197030
|
USDT: {
|
|
@@ -196345,6 +197049,14 @@ var require_priceFeeds = __commonJS({
|
|
|
196345
197049
|
address: "0x3f3f5dF88dC9F13eac63DF89EC16ef6e7E25DdE7",
|
|
196346
197050
|
trusted: false
|
|
196347
197051
|
}
|
|
197052
|
+
},
|
|
197053
|
+
Optimism: {
|
|
197054
|
+
Main: {
|
|
197055
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
197056
|
+
address: "0xECef79E109e997bCA29c1c0897ec9d7b03647F5E",
|
|
197057
|
+
trusted: false,
|
|
197058
|
+
stalenessPeriod: pricefeedType_1.HOUR_24_BUFFERED_L2
|
|
197059
|
+
}
|
|
196348
197060
|
}
|
|
196349
197061
|
},
|
|
196350
197062
|
WBTC: {
|
|
@@ -196372,6 +197084,14 @@ var require_priceFeeds = __commonJS({
|
|
|
196372
197084
|
baseToUsdPriceFeed: "0x6ce185860a4963106506C203335A2910413708e9",
|
|
196373
197085
|
trusted: false
|
|
196374
197086
|
}
|
|
197087
|
+
},
|
|
197088
|
+
Optimism: {
|
|
197089
|
+
Main: {
|
|
197090
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
197091
|
+
address: "0x718A5788b89454aAE3A028AE9c111A29Be6c2a6F",
|
|
197092
|
+
trusted: false,
|
|
197093
|
+
stalenessPeriod: pricefeedType_1.MINUTES_20_BUFFERED_L2
|
|
197094
|
+
}
|
|
196375
197095
|
}
|
|
196376
197096
|
},
|
|
196377
197097
|
WETH: {
|
|
@@ -196396,6 +197116,14 @@ var require_priceFeeds = __commonJS({
|
|
|
196396
197116
|
address: "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612",
|
|
196397
197117
|
trusted: false
|
|
196398
197118
|
}
|
|
197119
|
+
},
|
|
197120
|
+
Optimism: {
|
|
197121
|
+
Main: {
|
|
197122
|
+
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
197123
|
+
address: "0x13e3Ee699D1909E989722E753853AE30b17e08c5",
|
|
197124
|
+
trusted: true,
|
|
197125
|
+
stalenessPeriod: pricefeedType_1.MINUTES_20_BUFFERED_L2
|
|
197126
|
+
}
|
|
196399
197127
|
}
|
|
196400
197128
|
},
|
|
196401
197129
|
YFI: {
|
|
@@ -196456,6 +197184,16 @@ var require_priceFeeds = __commonJS({
|
|
|
196456
197184
|
baseToUsdPriceFeed: constants_1.NOT_DEPLOYED,
|
|
196457
197185
|
trusted: false
|
|
196458
197186
|
}
|
|
197187
|
+
},
|
|
197188
|
+
Optimism: {
|
|
197189
|
+
Main: {
|
|
197190
|
+
type: pricefeedType_1.PriceFeedType.COMPOSITE_ORACLE,
|
|
197191
|
+
targetToBasePriceFeed: "0x524299Ab0987a7c4B3c8022a35669DdcdC715a10",
|
|
197192
|
+
baseToUsdPriceFeed: "0x13e3Ee699D1909E989722E753853AE30b17e08c5",
|
|
197193
|
+
targetStalenessPeriod: pricefeedType_1.HOUR_24_BUFFERED_L2,
|
|
197194
|
+
baseStalenessPeriod: pricefeedType_1.MINUTES_20_BUFFERED_L2,
|
|
197195
|
+
trusted: false
|
|
197196
|
+
}
|
|
196459
197197
|
}
|
|
196460
197198
|
},
|
|
196461
197199
|
CVX: {
|
|
@@ -196731,6 +197469,16 @@ var require_priceFeeds = __commonJS({
|
|
|
196731
197469
|
address: constants_1.NOT_DEPLOYED,
|
|
196732
197470
|
trusted: false
|
|
196733
197471
|
}
|
|
197472
|
+
},
|
|
197473
|
+
Optimism: {
|
|
197474
|
+
Main: {
|
|
197475
|
+
type: pricefeedType_1.PriceFeedType.COMPOSITE_ORACLE,
|
|
197476
|
+
targetToBasePriceFeed: "0xb429DE60943a8e6DeD356dca2F93Cd31201D9ed0",
|
|
197477
|
+
baseToUsdPriceFeed: "0x13e3Ee699D1909E989722E753853AE30b17e08c5",
|
|
197478
|
+
targetStalenessPeriod: pricefeedType_1.HOUR_24_BUFFERED_L2,
|
|
197479
|
+
baseStalenessPeriod: pricefeedType_1.MINUTES_20_BUFFERED_L2,
|
|
197480
|
+
trusted: false
|
|
197481
|
+
}
|
|
196734
197482
|
}
|
|
196735
197483
|
},
|
|
196736
197484
|
AURA: {
|
|
@@ -196745,6 +197493,12 @@ var require_priceFeeds = __commonJS({
|
|
|
196745
197493
|
type: pricefeedType_1.PriceFeedType.ZERO_ORACLE,
|
|
196746
197494
|
trusted: false
|
|
196747
197495
|
}
|
|
197496
|
+
},
|
|
197497
|
+
Optimism: {
|
|
197498
|
+
Main: {
|
|
197499
|
+
type: pricefeedType_1.PriceFeedType.ZERO_ORACLE,
|
|
197500
|
+
trusted: false
|
|
197501
|
+
}
|
|
196748
197502
|
}
|
|
196749
197503
|
},
|
|
196750
197504
|
yvDAI: {
|
|
@@ -196765,6 +197519,15 @@ var require_priceFeeds = __commonJS({
|
|
|
196765
197519
|
}
|
|
196766
197520
|
}
|
|
196767
197521
|
},
|
|
197522
|
+
yvUSDT: {
|
|
197523
|
+
AllNetworks: {
|
|
197524
|
+
Main: {
|
|
197525
|
+
type: pricefeedType_1.PriceFeedType.YEARN_ORACLE,
|
|
197526
|
+
token: "USDT",
|
|
197527
|
+
trusted: false
|
|
197528
|
+
}
|
|
197529
|
+
}
|
|
197530
|
+
},
|
|
196768
197531
|
yvWETH: {
|
|
196769
197532
|
AllNetworks: {
|
|
196770
197533
|
Main: {
|
|
@@ -196783,6 +197546,15 @@ var require_priceFeeds = __commonJS({
|
|
|
196783
197546
|
}
|
|
196784
197547
|
}
|
|
196785
197548
|
},
|
|
197549
|
+
yvOP: {
|
|
197550
|
+
AllNetworks: {
|
|
197551
|
+
Main: {
|
|
197552
|
+
type: pricefeedType_1.PriceFeedType.YEARN_ORACLE,
|
|
197553
|
+
token: "OP",
|
|
197554
|
+
trusted: false
|
|
197555
|
+
}
|
|
197556
|
+
}
|
|
197557
|
+
},
|
|
196786
197558
|
// CURVE LP TOKENS
|
|
196787
197559
|
"3Crv": {
|
|
196788
197560
|
AllNetworks: {
|
|
@@ -196944,6 +197716,15 @@ var require_priceFeeds = __commonJS({
|
|
|
196944
197716
|
}
|
|
196945
197717
|
}
|
|
196946
197718
|
},
|
|
197719
|
+
wstETHCRV: {
|
|
197720
|
+
AllNetworks: {
|
|
197721
|
+
Main: {
|
|
197722
|
+
type: pricefeedType_1.PriceFeedType.CURVE_2LP_ORACLE,
|
|
197723
|
+
assets: ["WETH", "wstETH"],
|
|
197724
|
+
trusted: false
|
|
197725
|
+
}
|
|
197726
|
+
}
|
|
197727
|
+
},
|
|
196947
197728
|
crvUSDETHCRV: {
|
|
196948
197729
|
AllNetworks: {
|
|
196949
197730
|
Main: {
|
|
@@ -197334,6 +198115,33 @@ var require_priceFeeds = __commonJS({
|
|
|
197334
198115
|
}
|
|
197335
198116
|
}
|
|
197336
198117
|
},
|
|
198118
|
+
BPT_rETH_ETH: {
|
|
198119
|
+
AllNetworks: {
|
|
198120
|
+
Main: {
|
|
198121
|
+
type: pricefeedType_1.PriceFeedType.BALANCER_STABLE_LP_ORACLE,
|
|
198122
|
+
assets: ["rETH", "WETH"],
|
|
198123
|
+
trusted: false
|
|
198124
|
+
}
|
|
198125
|
+
}
|
|
198126
|
+
},
|
|
198127
|
+
BPT_WSTETH_ETH: {
|
|
198128
|
+
AllNetworks: {
|
|
198129
|
+
Main: {
|
|
198130
|
+
type: pricefeedType_1.PriceFeedType.BALANCER_STABLE_LP_ORACLE,
|
|
198131
|
+
assets: ["wstETH", "WETH"],
|
|
198132
|
+
trusted: false
|
|
198133
|
+
}
|
|
198134
|
+
}
|
|
198135
|
+
},
|
|
198136
|
+
BPT_ROAD: {
|
|
198137
|
+
AllNetworks: {
|
|
198138
|
+
Main: {
|
|
198139
|
+
type: pricefeedType_1.PriceFeedType.BALANCER_WEIGHTED_LP_ORACLE,
|
|
198140
|
+
assets: ["WETH", "OP", "USDC"],
|
|
198141
|
+
trusted: false
|
|
198142
|
+
}
|
|
198143
|
+
}
|
|
198144
|
+
},
|
|
197337
198145
|
// GEARBOX
|
|
197338
198146
|
dDAI: {
|
|
197339
198147
|
Mainnet: {
|
|
@@ -197764,6 +198572,42 @@ var require_priceFeeds = __commonJS({
|
|
|
197764
198572
|
trusted: false
|
|
197765
198573
|
}
|
|
197766
198574
|
}
|
|
198575
|
+
},
|
|
198576
|
+
auraBPT_rETH_ETH: {
|
|
198577
|
+
AllNetworks: {
|
|
198578
|
+
Main: {
|
|
198579
|
+
type: pricefeedType_1.PriceFeedType.THE_SAME_AS,
|
|
198580
|
+
token: "BPT_rETH_ETH",
|
|
198581
|
+
trusted: false
|
|
198582
|
+
}
|
|
198583
|
+
}
|
|
198584
|
+
},
|
|
198585
|
+
auraBPT_rETH_ETH_vault: {
|
|
198586
|
+
AllNetworks: {
|
|
198587
|
+
Main: {
|
|
198588
|
+
type: pricefeedType_1.PriceFeedType.THE_SAME_AS,
|
|
198589
|
+
token: "BPT_rETH_ETH",
|
|
198590
|
+
trusted: false
|
|
198591
|
+
}
|
|
198592
|
+
}
|
|
198593
|
+
},
|
|
198594
|
+
auraBPT_WSTETH_ETH: {
|
|
198595
|
+
AllNetworks: {
|
|
198596
|
+
Main: {
|
|
198597
|
+
type: pricefeedType_1.PriceFeedType.THE_SAME_AS,
|
|
198598
|
+
token: "BPT_WSTETH_ETH",
|
|
198599
|
+
trusted: false
|
|
198600
|
+
}
|
|
198601
|
+
}
|
|
198602
|
+
},
|
|
198603
|
+
auraBPT_WSTETH_ETH_vault: {
|
|
198604
|
+
AllNetworks: {
|
|
198605
|
+
Main: {
|
|
198606
|
+
type: pricefeedType_1.PriceFeedType.THE_SAME_AS,
|
|
198607
|
+
token: "BPT_WSTETH_ETH",
|
|
198608
|
+
trusted: false
|
|
198609
|
+
}
|
|
198610
|
+
}
|
|
197767
198611
|
}
|
|
197768
198612
|
};
|
|
197769
198613
|
}
|
|
@@ -200169,7 +201013,8 @@ var require_tokenData = __commonJS({
|
|
|
200169
201013
|
var token_1 = require_token();
|
|
200170
201014
|
exports2.connectors = {
|
|
200171
201015
|
Mainnet: ["WETH", "DAI", "USDC", "FRAX"],
|
|
200172
|
-
Arbitrum: ["WETH", "DAI", "USDC", "
|
|
201016
|
+
Arbitrum: ["WETH", "DAI", "USDC", "USDT"],
|
|
201017
|
+
Optimism: ["WETH", "USDC", "USDT"]
|
|
200173
201018
|
};
|
|
200174
201019
|
function getConnectors(networkType) {
|
|
200175
201020
|
return exports2.connectors[networkType].map((e) => {
|
|
@@ -214460,22 +215305,6 @@ var require_audits2 = __commonJS({
|
|
|
214460
215305
|
}
|
|
214461
215306
|
});
|
|
214462
215307
|
|
|
214463
|
-
// ../../packages/lib/dist/constants.js
|
|
214464
|
-
var require_constants9 = __commonJS({
|
|
214465
|
-
"../../packages/lib/dist/constants.js"(exports2) {
|
|
214466
|
-
"use strict";
|
|
214467
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
214468
|
-
exports2.ADDRESS_PROVIDER_V3_ADDRESS = exports2.ADDRESS_PROVIDER_V1_ADDRESS = exports2.TIMELOCK_ADDRESS = exports2.CREATE2_FACTORY_ADDRESS = exports2.GOVERNOR_V3_ADDRESS = exports2.FIRST_GEARBOX_BLOCK = void 0;
|
|
214469
|
-
var sdk_gov_1 = require_lib226();
|
|
214470
|
-
exports2.FIRST_GEARBOX_BLOCK = 13810899;
|
|
214471
|
-
exports2.GOVERNOR_V3_ADDRESS = "0x29B97F37B3E0C704bCFD785F5b7bBa2A0B7df2c7";
|
|
214472
|
-
exports2.CREATE2_FACTORY_ADDRESS = sdk_gov_1.CREATE2FACTORY.Mainnet;
|
|
214473
|
-
exports2.TIMELOCK_ADDRESS = sdk_gov_1.TIMELOCK.Mainnet;
|
|
214474
|
-
exports2.ADDRESS_PROVIDER_V1_ADDRESS = "0xcF64698AFF7E5f27A11dff868AF228653ba53be0";
|
|
214475
|
-
exports2.ADDRESS_PROVIDER_V3_ADDRESS = sdk_gov_1.ADDRESS_PROVIDER.Mainnet;
|
|
214476
|
-
}
|
|
214477
|
-
});
|
|
214478
|
-
|
|
214479
215308
|
// ../../packages/lib/dist/helpers/fs.js
|
|
214480
215309
|
var require_fs = __commonJS({
|
|
214481
215310
|
"../../packages/lib/dist/helpers/fs.js"(exports2) {
|
|
@@ -214515,7 +215344,6 @@ var require_batches = __commonJS({
|
|
|
214515
215344
|
var node_path_1 = require("path");
|
|
214516
215345
|
var deploy_suite_1 = require_dist3();
|
|
214517
215346
|
var ethers_1 = require_lib2();
|
|
214518
|
-
var constants_1 = require_constants9();
|
|
214519
215347
|
var fs_1 = require_fs();
|
|
214520
215348
|
async function loadBatchDir(dir) {
|
|
214521
215349
|
const files = await (0, fs_1.readDirectory)(dir);
|
|
@@ -214591,7 +215419,10 @@ var require_batches = __commonJS({
|
|
|
214591
215419
|
exports2.loadBatchDir = loadBatchDir;
|
|
214592
215420
|
function normalizeMultisigTx(tx) {
|
|
214593
215421
|
return tx.transactions.map((t) => {
|
|
214594
|
-
if (
|
|
215422
|
+
if (
|
|
215423
|
+
// t.to === GOVERNOR_V3_ADDRESS &&
|
|
215424
|
+
t.contractMethod.name === "startBatch"
|
|
215425
|
+
) {
|
|
214595
215426
|
return {
|
|
214596
215427
|
target: t.to,
|
|
214597
215428
|
value: t.value,
|
|
@@ -271937,7 +272768,7 @@ var require_config2 = __commonJS({
|
|
|
271937
272768
|
});
|
|
271938
272769
|
|
|
271939
272770
|
// ../../node_modules/@safe-global/protocol-kit/dist/src/utils/constants.js
|
|
271940
|
-
var
|
|
272771
|
+
var require_constants9 = __commonJS({
|
|
271941
272772
|
"../../node_modules/@safe-global/protocol-kit/dist/src/utils/constants.js"(exports2) {
|
|
271942
272773
|
"use strict";
|
|
271943
272774
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -272216,7 +273047,7 @@ var require_externals = __commonJS({
|
|
|
272216
273047
|
});
|
|
272217
273048
|
|
|
272218
273049
|
// ../../node_modules/ethereumjs-util/dist/constants.js
|
|
272219
|
-
var
|
|
273050
|
+
var require_constants10 = __commonJS({
|
|
272220
273051
|
"../../node_modules/ethereumjs-util/dist/constants.js"(exports2) {
|
|
272221
273052
|
"use strict";
|
|
272222
273053
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -276993,7 +277824,7 @@ var require_account2 = __commonJS({
|
|
|
276993
277824
|
var externals_1 = require_externals();
|
|
276994
277825
|
var secp256k1_1 = require_secp256k16();
|
|
276995
277826
|
var internal_1 = require_internal();
|
|
276996
|
-
var constants_1 =
|
|
277827
|
+
var constants_1 = require_constants10();
|
|
276997
277828
|
var bytes_1 = require_bytes8();
|
|
276998
277829
|
var hash_1 = require_hash8();
|
|
276999
277830
|
var helpers_1 = require_helpers2();
|
|
@@ -277548,7 +278379,7 @@ var require_dist7 = __commonJS({
|
|
|
277548
278379
|
};
|
|
277549
278380
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
277550
278381
|
exports2.isHexString = exports2.getKeys = exports2.fromAscii = exports2.fromUtf8 = exports2.toAscii = exports2.arrayContainsArray = exports2.getBinarySize = exports2.padToEven = exports2.stripHexPrefix = exports2.isHexPrefixed = void 0;
|
|
277551
|
-
__exportStar2(
|
|
278382
|
+
__exportStar2(require_constants10(), exports2);
|
|
277552
278383
|
__exportStar2(require_account2(), exports2);
|
|
277553
278384
|
__exportStar2(require_address12(), exports2);
|
|
277554
278385
|
__exportStar2(require_hash8(), exports2);
|
|
@@ -278263,7 +279094,7 @@ var require_parse_options = __commonJS({
|
|
|
278263
279094
|
});
|
|
278264
279095
|
|
|
278265
279096
|
// ../../node_modules/semver/internal/constants.js
|
|
278266
|
-
var
|
|
279097
|
+
var require_constants11 = __commonJS({
|
|
278267
279098
|
"../../node_modules/semver/internal/constants.js"(exports2, module2) {
|
|
278268
279099
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
278269
279100
|
var MAX_LENGTH = 256;
|
|
@@ -278309,7 +279140,7 @@ var require_re = __commonJS({
|
|
|
278309
279140
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
278310
279141
|
MAX_SAFE_BUILD_LENGTH,
|
|
278311
279142
|
MAX_LENGTH
|
|
278312
|
-
} =
|
|
279143
|
+
} = require_constants11();
|
|
278313
279144
|
var debug = require_debug2();
|
|
278314
279145
|
exports2 = module2.exports = {};
|
|
278315
279146
|
var re = exports2.re = [];
|
|
@@ -278409,7 +279240,7 @@ var require_identifiers = __commonJS({
|
|
|
278409
279240
|
var require_semver = __commonJS({
|
|
278410
279241
|
"../../node_modules/semver/classes/semver.js"(exports2, module2) {
|
|
278411
279242
|
var debug = require_debug2();
|
|
278412
|
-
var { MAX_LENGTH, MAX_SAFE_INTEGER } =
|
|
279243
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants11();
|
|
278413
279244
|
var { safeRe: re, t } = require_re();
|
|
278414
279245
|
var parseOptions = require_parse_options();
|
|
278415
279246
|
var { compareIdentifiers } = require_identifiers();
|
|
@@ -279009,7 +279840,7 @@ var require_range = __commonJS({
|
|
|
279009
279840
|
tildeTrimReplace,
|
|
279010
279841
|
caretTrimReplace
|
|
279011
279842
|
} = require_re();
|
|
279012
|
-
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } =
|
|
279843
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants11();
|
|
279013
279844
|
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
279014
279845
|
var isAny = (c) => c.value === "";
|
|
279015
279846
|
var isSatisfiable = (comparators, options) => {
|
|
@@ -290260,7 +291091,7 @@ var require_utils38 = __commonJS({
|
|
|
290260
291091
|
var ethers_1 = require_lib2();
|
|
290261
291092
|
var sha3_1 = require_sha34();
|
|
290262
291093
|
var config_1 = require_config2();
|
|
290263
|
-
var constants_1 =
|
|
291094
|
+
var constants_1 = require_constants9();
|
|
290264
291095
|
var memoized_1 = require_memoized();
|
|
290265
291096
|
var ethereumjs_util_1 = require_dist7();
|
|
290266
291097
|
var satisfies_1 = __importDefault2(require_satisfies());
|
|
@@ -290522,7 +291353,7 @@ var require_address13 = __commonJS({
|
|
|
290522
291353
|
"use strict";
|
|
290523
291354
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
290524
291355
|
exports2.isRestrictedAddress = exports2.isZeroAddress = exports2.sameString = void 0;
|
|
290525
|
-
var constants_1 =
|
|
291356
|
+
var constants_1 = require_constants9();
|
|
290526
291357
|
function sameString(str1, str2) {
|
|
290527
291358
|
return str1.toLowerCase() === str2.toLowerCase();
|
|
290528
291359
|
}
|
|
@@ -296587,7 +297418,7 @@ var require_utf813 = __commonJS({
|
|
|
296587
297418
|
});
|
|
296588
297419
|
|
|
296589
297420
|
// ../../node_modules/@ethereumjs/util/dist/constants.js
|
|
296590
|
-
var
|
|
297421
|
+
var require_constants12 = __commonJS({
|
|
296591
297422
|
"../../node_modules/@ethereumjs/util/dist/constants.js"(exports2) {
|
|
296592
297423
|
"use strict";
|
|
296593
297424
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -296992,7 +297823,7 @@ var require_account3 = __commonJS({
|
|
|
296992
297823
|
var secp256k1_1 = require_secp256k13();
|
|
296993
297824
|
var utils_1 = require_utils7();
|
|
296994
297825
|
var bytes_1 = require_bytes9();
|
|
296995
|
-
var constants_1 =
|
|
297826
|
+
var constants_1 = require_constants12();
|
|
296996
297827
|
var helpers_1 = require_helpers3();
|
|
296997
297828
|
var internal_1 = require_internal2();
|
|
296998
297829
|
var _0n7 = BigInt(0);
|
|
@@ -297481,7 +298312,7 @@ var require_signature5 = __commonJS({
|
|
|
297481
298312
|
var keccak_1 = require_keccak2();
|
|
297482
298313
|
var secp256k1_1 = require_secp256k13();
|
|
297483
298314
|
var bytes_1 = require_bytes9();
|
|
297484
|
-
var constants_1 =
|
|
298315
|
+
var constants_1 = require_constants12();
|
|
297485
298316
|
var helpers_1 = require_helpers3();
|
|
297486
298317
|
function ecsign(msgHash, privateKey, chainId) {
|
|
297487
298318
|
const sig = secp256k1_1.secp256k1.sign(msgHash, privateKey);
|
|
@@ -298143,7 +298974,7 @@ var require_dist9 = __commonJS({
|
|
|
298143
298974
|
};
|
|
298144
298975
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
298145
298976
|
exports2.toAscii = exports2.stripHexPrefix = exports2.padToEven = exports2.isHexString = exports2.isHexPrefixed = exports2.getKeys = exports2.getBinarySize = exports2.fromUtf8 = exports2.fromAscii = exports2.arrayContainsArray = void 0;
|
|
298146
|
-
__exportStar2(
|
|
298977
|
+
__exportStar2(require_constants12(), exports2);
|
|
298147
298978
|
__exportStar2(require_units2(), exports2);
|
|
298148
298979
|
__exportStar2(require_account3(), exports2);
|
|
298149
298980
|
__exportStar2(require_address14(), exports2);
|
|
@@ -299533,7 +300364,7 @@ var require_gas = __commonJS({
|
|
|
299533
300364
|
exports2.estimateSafeDeploymentGas = exports2.estimateSafeTxGas = exports2.estimateTxBaseGas = exports2.estimateTxGas = exports2.estimateGas = void 0;
|
|
299534
300365
|
var safe_core_sdk_types_1 = require_src3();
|
|
299535
300366
|
var satisfies_1 = __importDefault2(require_satisfies());
|
|
299536
|
-
var constants_1 =
|
|
300367
|
+
var constants_1 = require_constants9();
|
|
299537
300368
|
var safeDeploymentContracts_1 = require_safeDeploymentContracts();
|
|
299538
300369
|
var CALL_DATA_ZERO_BYTE_GAS_COST = 4;
|
|
299539
300370
|
var CALL_DATA_BYTE_GAS_COST = 16;
|
|
@@ -299883,7 +300714,7 @@ var require_utils42 = __commonJS({
|
|
|
299883
300714
|
var ethers_1 = require_lib2();
|
|
299884
300715
|
var config_1 = require_config2();
|
|
299885
300716
|
var utils_1 = require_utils43();
|
|
299886
|
-
var constants_1 =
|
|
300717
|
+
var constants_1 = require_constants9();
|
|
299887
300718
|
var safe_core_sdk_types_1 = require_src3();
|
|
299888
300719
|
var satisfies_1 = __importDefault2(require_satisfies());
|
|
299889
300720
|
var web3_utils_1 = require_lib231();
|
|
@@ -300076,7 +300907,7 @@ var require_fallbackHandlerManager = __commonJS({
|
|
|
300076
300907
|
var _FallbackHandlerManager_slot;
|
|
300077
300908
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
300078
300909
|
var utils_1 = require_utils43();
|
|
300079
|
-
var constants_1 =
|
|
300910
|
+
var constants_1 = require_constants9();
|
|
300080
300911
|
var FallbackHandlerManager = class {
|
|
300081
300912
|
constructor(ethAdapter, safeContract) {
|
|
300082
300913
|
_FallbackHandlerManager_ethAdapter.set(this, void 0);
|
|
@@ -300160,7 +300991,7 @@ var require_guardManager = __commonJS({
|
|
|
300160
300991
|
var _GuardManager_slot;
|
|
300161
300992
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
300162
300993
|
var utils_1 = require_utils43();
|
|
300163
|
-
var constants_1 =
|
|
300994
|
+
var constants_1 = require_constants9();
|
|
300164
300995
|
var GuardManager = class {
|
|
300165
300996
|
constructor(ethAdapter, safeContract) {
|
|
300166
300997
|
_GuardManager_ethAdapter.set(this, void 0);
|
|
@@ -300243,7 +301074,7 @@ var require_moduleManager = __commonJS({
|
|
|
300243
301074
|
var _ModuleManager_safeContract;
|
|
300244
301075
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
300245
301076
|
var address_1 = require_address13();
|
|
300246
|
-
var constants_1 =
|
|
301077
|
+
var constants_1 = require_constants9();
|
|
300247
301078
|
var ModuleManager = class {
|
|
300248
301079
|
constructor(ethAdapter, safeContract) {
|
|
300249
301080
|
_ModuleManager_ethAdapter.set(this, void 0);
|
|
@@ -300333,7 +301164,7 @@ var require_ownerManager = __commonJS({
|
|
|
300333
301164
|
var _OwnerManager_safeContract;
|
|
300334
301165
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
300335
301166
|
var address_1 = require_address13();
|
|
300336
|
-
var constants_1 =
|
|
301167
|
+
var constants_1 = require_constants9();
|
|
300337
301168
|
var OwnerManager = class {
|
|
300338
301169
|
constructor(ethAdapter, safeContract) {
|
|
300339
301170
|
_OwnerManager_ethAdapter.set(this, void 0);
|
|
@@ -308637,7 +309468,7 @@ var require_MultiSendCallOnlyContract_V1_4_1_Ethers = __commonJS({
|
|
|
308637
309468
|
});
|
|
308638
309469
|
|
|
308639
309470
|
// ../../node_modules/@safe-global/protocol-kit/dist/src/adapters/ethers/utils/constants.js
|
|
308640
|
-
var
|
|
309471
|
+
var require_constants13 = __commonJS({
|
|
308641
309472
|
"../../node_modules/@safe-global/protocol-kit/dist/src/adapters/ethers/utils/constants.js"(exports2) {
|
|
308642
309473
|
"use strict";
|
|
308643
309474
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -308754,7 +309585,7 @@ var require_SafeContract_V1_0_0_Ethers = __commonJS({
|
|
|
308754
309585
|
};
|
|
308755
309586
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
308756
309587
|
var utils_1 = require_utils44();
|
|
308757
|
-
var constants_1 =
|
|
309588
|
+
var constants_1 = require_constants13();
|
|
308758
309589
|
var SafeContractEthers_1 = __importDefault2(require_SafeContractEthers());
|
|
308759
309590
|
var SafeContract_V1_0_0_Ethers = class extends SafeContractEthers_1.default {
|
|
308760
309591
|
constructor(contract) {
|
|
@@ -308793,7 +309624,7 @@ var require_SafeContract_V1_1_1_Ethers = __commonJS({
|
|
|
308793
309624
|
};
|
|
308794
309625
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
308795
309626
|
var utils_1 = require_utils44();
|
|
308796
|
-
var constants_1 =
|
|
309627
|
+
var constants_1 = require_constants13();
|
|
308797
309628
|
var SafeContractEthers_1 = __importDefault2(require_SafeContractEthers());
|
|
308798
309629
|
var SafeContract_V1_1_1_Ethers = class extends SafeContractEthers_1.default {
|
|
308799
309630
|
constructor(contract) {
|
|
@@ -308832,7 +309663,7 @@ var require_SafeContract_V1_2_0_Ethers = __commonJS({
|
|
|
308832
309663
|
};
|
|
308833
309664
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
308834
309665
|
var utils_1 = require_utils44();
|
|
308835
|
-
var constants_1 =
|
|
309666
|
+
var constants_1 = require_constants13();
|
|
308836
309667
|
var SafeContractEthers_1 = __importDefault2(require_SafeContractEthers());
|
|
308837
309668
|
var SafeContract_V1_2_0_Ethers = class extends SafeContractEthers_1.default {
|
|
308838
309669
|
constructor(contract) {
|
|
@@ -308869,7 +309700,7 @@ var require_SafeContract_V1_3_0_Ethers = __commonJS({
|
|
|
308869
309700
|
};
|
|
308870
309701
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
308871
309702
|
var utils_1 = require_utils44();
|
|
308872
|
-
var constants_1 =
|
|
309703
|
+
var constants_1 = require_constants13();
|
|
308873
309704
|
var SafeContractEthers_1 = __importDefault2(require_SafeContractEthers());
|
|
308874
309705
|
var SafeContract_V1_3_0_Ethers = class extends SafeContractEthers_1.default {
|
|
308875
309706
|
constructor(contract) {
|
|
@@ -308907,7 +309738,7 @@ var require_SafeContract_V1_4_1_Ethers = __commonJS({
|
|
|
308907
309738
|
};
|
|
308908
309739
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
308909
309740
|
var utils_1 = require_utils44();
|
|
308910
|
-
var constants_1 =
|
|
309741
|
+
var constants_1 = require_constants13();
|
|
308911
309742
|
var SafeContractEthers_1 = __importDefault2(require_SafeContractEthers());
|
|
308912
309743
|
var SafeContract_V1_4_1_Ethers = class extends SafeContractEthers_1.default {
|
|
308913
309744
|
constructor(contract) {
|
|
@@ -309905,7 +310736,7 @@ var require_MultiSendCallOnlyContract_V1_4_1_Web3 = __commonJS({
|
|
|
309905
310736
|
});
|
|
309906
310737
|
|
|
309907
310738
|
// ../../node_modules/@safe-global/protocol-kit/dist/src/adapters/web3/utils/constants.js
|
|
309908
|
-
var
|
|
310739
|
+
var require_constants14 = __commonJS({
|
|
309909
310740
|
"../../node_modules/@safe-global/protocol-kit/dist/src/adapters/web3/utils/constants.js"(exports2) {
|
|
309910
310741
|
"use strict";
|
|
309911
310742
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -310021,7 +310852,7 @@ var require_SafeContract_V1_0_0_Web3 = __commonJS({
|
|
|
310021
310852
|
};
|
|
310022
310853
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
310023
310854
|
var utils_1 = require_utils45();
|
|
310024
|
-
var constants_1 =
|
|
310855
|
+
var constants_1 = require_constants14();
|
|
310025
310856
|
var SafeContractWeb3_1 = __importDefault2(require_SafeContractWeb3());
|
|
310026
310857
|
var SafeContract_V1_0_0_Web3 = class extends SafeContractWeb3_1.default {
|
|
310027
310858
|
constructor(contract) {
|
|
@@ -310060,7 +310891,7 @@ var require_SafeContract_V1_1_1_Web3 = __commonJS({
|
|
|
310060
310891
|
};
|
|
310061
310892
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
310062
310893
|
var utils_1 = require_utils45();
|
|
310063
|
-
var constants_1 =
|
|
310894
|
+
var constants_1 = require_constants14();
|
|
310064
310895
|
var SafeContractWeb3_1 = __importDefault2(require_SafeContractWeb3());
|
|
310065
310896
|
var SafeContract_V1_1_1_Web3 = class extends SafeContractWeb3_1.default {
|
|
310066
310897
|
constructor(contract) {
|
|
@@ -310099,7 +310930,7 @@ var require_SafeContract_V1_2_0_Web3 = __commonJS({
|
|
|
310099
310930
|
};
|
|
310100
310931
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
310101
310932
|
var utils_1 = require_utils45();
|
|
310102
|
-
var constants_1 =
|
|
310933
|
+
var constants_1 = require_constants14();
|
|
310103
310934
|
var SafeContractWeb3_1 = __importDefault2(require_SafeContractWeb3());
|
|
310104
310935
|
var SafeContract_V1_2_0_Web3 = class extends SafeContractWeb3_1.default {
|
|
310105
310936
|
constructor(contract) {
|
|
@@ -310136,7 +310967,7 @@ var require_SafeContract_V1_3_0_Web3 = __commonJS({
|
|
|
310136
310967
|
};
|
|
310137
310968
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
310138
310969
|
var utils_1 = require_utils45();
|
|
310139
|
-
var constants_1 =
|
|
310970
|
+
var constants_1 = require_constants14();
|
|
310140
310971
|
var SafeContractWeb3_1 = __importDefault2(require_SafeContractWeb3());
|
|
310141
310972
|
var SafeContract_V1_3_0_Web3 = class extends SafeContractWeb3_1.default {
|
|
310142
310973
|
constructor(contract) {
|
|
@@ -310174,7 +311005,7 @@ var require_SafeContract_V1_4_1_Web3 = __commonJS({
|
|
|
310174
311005
|
};
|
|
310175
311006
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
310176
311007
|
var utils_1 = require_utils45();
|
|
310177
|
-
var constants_1 =
|
|
311008
|
+
var constants_1 = require_constants14();
|
|
310178
311009
|
var SafeContractWeb3_1 = __importDefault2(require_SafeContractWeb3());
|
|
310179
311010
|
var SafeContract_V1_4_1_Web3 = class extends SafeContractWeb3_1.default {
|
|
310180
311011
|
constructor(contract) {
|
|
@@ -310987,7 +311818,7 @@ var require_erc_20 = __commonJS({
|
|
|
310987
311818
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
310988
311819
|
exports2.createERC20TokenTransferTransaction = exports2.isGasTokenCompatibleWithHandlePayment = exports2.getERC20Decimals = void 0;
|
|
310989
311820
|
var ethers_1 = require_lib2();
|
|
310990
|
-
var constants_1 =
|
|
311821
|
+
var constants_1 = require_constants9();
|
|
310991
311822
|
var ERC20_ABI = [
|
|
310992
311823
|
"function transfer(address recipient, uint256 amount) returns (bool)",
|
|
310993
311824
|
"function decimals() view returns (uint8)"
|
|
@@ -311778,26 +312609,55 @@ var require_src8 = __commonJS({
|
|
|
311778
312609
|
}
|
|
311779
312610
|
});
|
|
311780
312611
|
|
|
311781
|
-
// ../../packages/lib/dist/
|
|
311782
|
-
var
|
|
311783
|
-
"../../packages/lib/dist/
|
|
312612
|
+
// ../../packages/lib/dist/ProviderBase.js
|
|
312613
|
+
var require_ProviderBase = __commonJS({
|
|
312614
|
+
"../../packages/lib/dist/ProviderBase.js"(exports2) {
|
|
311784
312615
|
"use strict";
|
|
311785
312616
|
var __importDefault2 = exports2 && exports2.__importDefault || function(mod2) {
|
|
311786
312617
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
311787
312618
|
};
|
|
311788
312619
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
311789
|
-
exports2.
|
|
312620
|
+
exports2.ProviderBase = void 0;
|
|
311790
312621
|
var deploy_suite_1 = require_dist3();
|
|
312622
|
+
var sdk_gov_1 = require_lib226();
|
|
311791
312623
|
var api_kit_1 = __importDefault2(require_src8());
|
|
311792
|
-
var
|
|
311793
|
-
|
|
311794
|
-
|
|
311795
|
-
|
|
311796
|
-
|
|
311797
|
-
|
|
311798
|
-
|
|
311799
|
-
|
|
311800
|
-
|
|
312624
|
+
var ethers_1 = require_lib2();
|
|
312625
|
+
var log_1 = __importDefault2(require_log());
|
|
312626
|
+
var utilityContracts = {
|
|
312627
|
+
ADDRESS_PROVIDER: sdk_gov_1.ADDRESS_PROVIDER,
|
|
312628
|
+
TIMELOCK: sdk_gov_1.TIMELOCK,
|
|
312629
|
+
GOVERNOR: sdk_gov_1.GOVERNOR,
|
|
312630
|
+
BLACKLIST_HELPER: sdk_gov_1.BLACKLIST_HELPER,
|
|
312631
|
+
DEGEN_NFT: sdk_gov_1.DEGEN_NFT,
|
|
312632
|
+
CREATE2FACTORY: sdk_gov_1.CREATE2FACTORY,
|
|
312633
|
+
MULTISIG: sdk_gov_1.MULTISIG,
|
|
312634
|
+
VETO_ADMIN: sdk_gov_1.VETO_ADMIN,
|
|
312635
|
+
TREASURY: sdk_gov_1.TREASURY
|
|
312636
|
+
};
|
|
312637
|
+
var _service, _initialized, _provider5, _network3, _chainId3;
|
|
312638
|
+
var ProviderBase2 = class {
|
|
312639
|
+
constructor(rpcUrl) {
|
|
312640
|
+
__publicField(this, "logger", log_1.default.getSubLogger());
|
|
312641
|
+
__privateAdd(this, _service, void 0);
|
|
312642
|
+
__privateAdd(this, _initialized, false);
|
|
312643
|
+
__privateAdd(this, _provider5, void 0);
|
|
312644
|
+
__privateAdd(this, _network3, void 0);
|
|
312645
|
+
__privateAdd(this, _chainId3, void 0);
|
|
312646
|
+
__privateSet(this, _provider5, new ethers_1.JsonRpcProvider(rpcUrl, void 0, {
|
|
312647
|
+
staticNetwork: true,
|
|
312648
|
+
batchMaxCount: 1,
|
|
312649
|
+
cacheTimeout: -1
|
|
312650
|
+
}));
|
|
312651
|
+
__privateGet(this, _provider5)._isProvider = true;
|
|
312652
|
+
}
|
|
312653
|
+
async init() {
|
|
312654
|
+
__privateSet(this, _network3, await (0, sdk_gov_1.detectNetwork)(__privateGet(this, _provider5)));
|
|
312655
|
+
__privateSet(this, _chainId3, sdk_gov_1.CHAINS[__privateGet(this, _network3)]);
|
|
312656
|
+
__privateSet(this, _service, new api_kit_1.default({
|
|
312657
|
+
chainId: BigInt(__privateGet(this, _chainId3))
|
|
312658
|
+
}));
|
|
312659
|
+
__privateSet(this, _initialized, true);
|
|
312660
|
+
this.logger.info(`initialized with network ${__privateGet(this, _network3)} and chain id ${__privateGet(this, _chainId3)}`);
|
|
311801
312661
|
}
|
|
311802
312662
|
/**
|
|
311803
312663
|
* Returns transactions from Safe API
|
|
@@ -311806,10 +312666,46 @@ var require_SafeBase = __commonJS({
|
|
|
311806
312666
|
* @returns
|
|
311807
312667
|
*/
|
|
311808
312668
|
async getSafeTransactions(hashes) {
|
|
311809
|
-
return hashes ? Promise.all(hashes.map((hash2) => this.service.getTransaction(hash2))) : this.service.getPendingTransactions(this.
|
|
312669
|
+
return hashes ? Promise.all(hashes.map((hash2) => this.service.getTransaction(hash2))) : this.service.getPendingTransactions(this.address("MULTISIG")).then((l) => (0, deploy_suite_1.getTransactionsToExecute)(l));
|
|
312670
|
+
}
|
|
312671
|
+
get provider() {
|
|
312672
|
+
if (!__privateGet(this, _initialized)) {
|
|
312673
|
+
throw new Error("provider base not initialized");
|
|
312674
|
+
}
|
|
312675
|
+
return __privateGet(this, _provider5);
|
|
312676
|
+
}
|
|
312677
|
+
get network() {
|
|
312678
|
+
if (!__privateGet(this, _network3) || !__privateGet(this, _initialized)) {
|
|
312679
|
+
throw new Error("provider base not initialized");
|
|
312680
|
+
}
|
|
312681
|
+
return __privateGet(this, _network3);
|
|
312682
|
+
}
|
|
312683
|
+
get chainId() {
|
|
312684
|
+
if (!__privateGet(this, _chainId3) || !__privateGet(this, _initialized)) {
|
|
312685
|
+
throw new Error("provider base not initialized");
|
|
312686
|
+
}
|
|
312687
|
+
return __privateGet(this, _chainId3);
|
|
312688
|
+
}
|
|
312689
|
+
get service() {
|
|
312690
|
+
if (!__privateGet(this, _service)) {
|
|
312691
|
+
throw new Error("safe api service not initialized");
|
|
312692
|
+
}
|
|
312693
|
+
return __privateGet(this, _service);
|
|
312694
|
+
}
|
|
312695
|
+
address(contract) {
|
|
312696
|
+
const addr = utilityContracts[contract][this.network];
|
|
312697
|
+
if (addr === sdk_gov_1.NOT_DEPLOYED) {
|
|
312698
|
+
throw new Error(`${contract} is not deployed on ${this.network}`);
|
|
312699
|
+
}
|
|
312700
|
+
return addr;
|
|
311810
312701
|
}
|
|
311811
312702
|
};
|
|
311812
|
-
|
|
312703
|
+
_service = new WeakMap();
|
|
312704
|
+
_initialized = new WeakMap();
|
|
312705
|
+
_provider5 = new WeakMap();
|
|
312706
|
+
_network3 = new WeakMap();
|
|
312707
|
+
_chainId3 = new WeakMap();
|
|
312708
|
+
exports2.ProviderBase = ProviderBase2;
|
|
311813
312709
|
}
|
|
311814
312710
|
});
|
|
311815
312711
|
|
|
@@ -311860,38 +312756,28 @@ var require_Deployer2 = __commonJS({
|
|
|
311860
312756
|
var deploy_suite_1 = require_dist3();
|
|
311861
312757
|
var deploy_tools_types_1 = require_dist5();
|
|
311862
312758
|
var chalk_1 = __importDefault2(require_source());
|
|
311863
|
-
var ethers_1 = require_lib2();
|
|
311864
|
-
var constants_1 = require_constants9();
|
|
311865
312759
|
var git_1 = require_git();
|
|
311866
312760
|
var helpers_1 = require_helpers();
|
|
311867
|
-
var
|
|
311868
|
-
var
|
|
311869
|
-
var
|
|
311870
|
-
var Deployer2 = class extends SafeBase_1.SafeBase {
|
|
312761
|
+
var ProviderBase_1 = require_ProviderBase();
|
|
312762
|
+
var _tenderly, _governor, _testnetExecutor, _deployerAddress, _bypassEta, _sandboxDir, _deploy, deploy_fn, _init, init_fn;
|
|
312763
|
+
var _Deployer = class _Deployer extends ProviderBase_1.ProviderBase {
|
|
311871
312764
|
constructor(options) {
|
|
311872
|
-
|
|
311873
|
-
super({ multisig, safeApi });
|
|
312765
|
+
super(options.rpcUrl);
|
|
311874
312766
|
/**
|
|
311875
312767
|
* Executes all found pending transactions, returns array of safe tx hashes
|
|
311876
312768
|
*/
|
|
311877
312769
|
__privateAdd(this, _deploy);
|
|
311878
312770
|
__privateAdd(this, _init);
|
|
311879
|
-
__privateAdd(this, _logger, log_1.default.getSubLogger({ name: "deployer" }));
|
|
311880
|
-
__privateAdd(this, _provider5, void 0);
|
|
311881
312771
|
__privateAdd(this, _tenderly, void 0);
|
|
311882
312772
|
__privateAdd(this, _governor, void 0);
|
|
311883
312773
|
__privateAdd(this, _testnetExecutor, void 0);
|
|
311884
312774
|
__privateAdd(this, _deployerAddress, void 0);
|
|
311885
|
-
__privateAdd(this,
|
|
312775
|
+
__privateAdd(this, _bypassEta, void 0);
|
|
311886
312776
|
__privateAdd(this, _sandboxDir, void 0);
|
|
311887
|
-
|
|
311888
|
-
|
|
311889
|
-
batchMaxCount: 1,
|
|
311890
|
-
cacheTimeout: -1
|
|
311891
|
-
}));
|
|
311892
|
-
__privateSet(this, _tenderly, rpcUrl.includes("tenderly"));
|
|
312777
|
+
this.logger = this.logger.getSubLogger({ name: "deployer" });
|
|
312778
|
+
__privateSet(this, _tenderly, options.rpcUrl.includes("tenderly"));
|
|
311893
312779
|
__privateSet(this, _deployerAddress, options.deployerAddress);
|
|
311894
|
-
__privateSet(this,
|
|
312780
|
+
__privateSet(this, _bypassEta, options.bypassEta);
|
|
311895
312781
|
__privateSet(this, _sandboxDir, node_path_1.default.resolve(options.sandboxDir, "deployer"));
|
|
311896
312782
|
(0, node_fs_1.mkdirSync)(__privateGet(this, _sandboxDir), { recursive: true });
|
|
311897
312783
|
}
|
|
@@ -311901,10 +312787,10 @@ var require_Deployer2 = __commonJS({
|
|
|
311901
312787
|
* @returns
|
|
311902
312788
|
*/
|
|
311903
312789
|
async deployFromMultisig(hashes) {
|
|
311904
|
-
|
|
312790
|
+
this.logger.trace(`deploying from multisig`);
|
|
311905
312791
|
const pending = await this.getSafeTransactions(hashes);
|
|
311906
312792
|
if (pending.length === 0) {
|
|
311907
|
-
|
|
312793
|
+
this.logger.warn(`no transactions to deploy`);
|
|
311908
312794
|
return [];
|
|
311909
312795
|
}
|
|
311910
312796
|
const [queue, execute] = [
|
|
@@ -311925,7 +312811,7 @@ var require_Deployer2 = __commonJS({
|
|
|
311925
312811
|
const execute = [];
|
|
311926
312812
|
for (const f of files) {
|
|
311927
312813
|
const p = (0, node_path_1.resolve)(dir, f);
|
|
311928
|
-
|
|
312814
|
+
this.logger.trace(`reading ${p}`);
|
|
311929
312815
|
const content = await (0, promises_1.readFile)(p, "utf-8").then(deploy_suite_1.json_parse);
|
|
311930
312816
|
if (f.endsWith(".queue.json")) {
|
|
311931
312817
|
queue.push(content);
|
|
@@ -311949,18 +312835,16 @@ var require_Deployer2 = __commonJS({
|
|
|
311949
312835
|
destDir: node_path_1.default.join(repo, committish)
|
|
311950
312836
|
});
|
|
311951
312837
|
const batchDir = node_path_1.default.resolve(__privateGet(this, _sandboxDir), repo, committish, dir);
|
|
311952
|
-
|
|
312838
|
+
this.logger.debug(`will deploy batches from ${batchDir}`);
|
|
311953
312839
|
await this.deployFromBatchDir(batchDir);
|
|
311954
312840
|
await (0, promises_1.rm)(__privateGet(this, _sandboxDir), { force: true, recursive: true });
|
|
311955
312841
|
}
|
|
311956
312842
|
};
|
|
311957
|
-
_logger = new WeakMap();
|
|
311958
|
-
_provider5 = new WeakMap();
|
|
311959
312843
|
_tenderly = new WeakMap();
|
|
311960
312844
|
_governor = new WeakMap();
|
|
311961
312845
|
_testnetExecutor = new WeakMap();
|
|
311962
312846
|
_deployerAddress = new WeakMap();
|
|
311963
|
-
|
|
312847
|
+
_bypassEta = new WeakMap();
|
|
311964
312848
|
_sandboxDir = new WeakMap();
|
|
311965
312849
|
_deploy = new WeakSet();
|
|
311966
312850
|
deploy_fn = async function(queue, execute) {
|
|
@@ -311969,49 +312853,57 @@ var require_Deployer2 = __commonJS({
|
|
|
311969
312853
|
console.log(chalk_1.default.red("running on tenderly"));
|
|
311970
312854
|
}
|
|
311971
312855
|
await __privateMethod(this, _init, init_fn).call(this);
|
|
311972
|
-
|
|
311973
|
-
|
|
311974
|
-
|
|
311975
|
-
|
|
311976
|
-
|
|
312856
|
+
if (__privateGet(this, _bypassEta)) {
|
|
312857
|
+
await this.provider.send("anvil_setBlockTimestampInterval", [1]);
|
|
312858
|
+
const timelockAddress = this.address("TIMELOCK");
|
|
312859
|
+
this.logger.debug(`bypassing ETA: setting timelock.delay to 0 on ${timelockAddress}`);
|
|
312860
|
+
const timelockCaller = await (0, helpers_1.impersonate)(this.provider, timelockAddress);
|
|
312861
|
+
const timelockContract = deploy_tools_types_1.ITimeLock__factory.connect(timelockAddress, timelockCaller);
|
|
312862
|
+
await timelockContract.setDelay(0);
|
|
312863
|
+
this.logger.info("bypassed ETA: set timelock.delay to 0");
|
|
312864
|
+
}
|
|
311977
312865
|
let i = 0;
|
|
311978
|
-
const head = await
|
|
312866
|
+
const head = await this.provider.getBlock("latest");
|
|
311979
312867
|
if (!head) {
|
|
311980
312868
|
throw new Error(`cannot get latest block`);
|
|
311981
312869
|
}
|
|
311982
312870
|
const fakeETA = head.timestamp + queue.length;
|
|
311983
|
-
|
|
312871
|
+
this.logger.debug(`current block timestamp: ${head.timestamp}, fake ETA: ${fakeETA}`);
|
|
311984
312872
|
for (const q of queue) {
|
|
311985
|
-
const tx = __privateGet(this,
|
|
311986
|
-
|
|
312873
|
+
const tx = __privateGet(this, _bypassEta) ? (0, helpers_1.replaceETA)(q, fakeETA) : q;
|
|
312874
|
+
this.logger.debug(`executing multisig tx ${++i}/${queue.length}, eta: ${tx.transactions[0].contractInputsValues.eta}`);
|
|
311987
312875
|
await ((_a = __privateGet(this, _testnetExecutor)) == null ? void 0 : _a.callMultisigBatch(tx));
|
|
311988
312876
|
}
|
|
311989
312877
|
i = 0;
|
|
311990
312878
|
for (const e of execute) {
|
|
311991
|
-
const tx = __privateGet(this,
|
|
312879
|
+
const tx = __privateGet(this, _bypassEta) ? (0, helpers_1.replaceETA)(e, fakeETA) : e;
|
|
311992
312880
|
const eta = parseInt(tx[0].eta, 10);
|
|
311993
|
-
|
|
311994
|
-
if (__privateGet(this,
|
|
311995
|
-
await (0, helpers_1.warpTime)(
|
|
312881
|
+
this.logger.debug(`executing governor tx ${++i}/${execute.length}, eta ${eta}`);
|
|
312882
|
+
if (!__privateGet(this, _bypassEta)) {
|
|
312883
|
+
await (0, helpers_1.warpTime)(this.provider, eta + 1, __privateGet(this, _tenderly));
|
|
311996
312884
|
}
|
|
311997
312885
|
await __privateGet(this, _governor).callGovernorExecutionBatch(tx, void 0, void 0, 29e6);
|
|
311998
312886
|
}
|
|
311999
|
-
|
|
312887
|
+
if (__privateGet(this, _bypassEta)) {
|
|
312888
|
+
await this.provider.send("anvil_removeBlockTimestampInterval", []);
|
|
312889
|
+
}
|
|
312000
312890
|
};
|
|
312001
312891
|
_init = new WeakSet();
|
|
312002
312892
|
init_fn = async function() {
|
|
312003
|
-
|
|
312893
|
+
await __superGet(_Deployer.prototype, this, "init").call(this);
|
|
312894
|
+
const signer = await (0, helpers_1.impersonate)(this.provider, __privateGet(this, _deployerAddress));
|
|
312004
312895
|
__privateSet(this, _testnetExecutor, await deploy_suite_1.TestnetExecutor.create({
|
|
312005
312896
|
signer,
|
|
312006
|
-
provider:
|
|
312007
|
-
multisigAddress: this.
|
|
312897
|
+
provider: this.provider,
|
|
312898
|
+
multisigAddress: this.address("MULTISIG")
|
|
312008
312899
|
}));
|
|
312009
312900
|
__privateSet(this, _governor, new deploy_suite_1.GovernorExecutor({
|
|
312010
312901
|
signer,
|
|
312011
|
-
governorAddress:
|
|
312902
|
+
governorAddress: this.address("GOVERNOR"),
|
|
312012
312903
|
testnet: true
|
|
312013
312904
|
}));
|
|
312014
312905
|
};
|
|
312906
|
+
var Deployer2 = _Deployer;
|
|
312015
312907
|
exports2.Deployer = Deployer2;
|
|
312016
312908
|
}
|
|
312017
312909
|
});
|
|
@@ -312676,6 +313568,16 @@ var init_queue = __esm({
|
|
|
312676
313568
|
}
|
|
312677
313569
|
});
|
|
312678
313570
|
|
|
313571
|
+
// ../../packages/lib/dist/constants.js
|
|
313572
|
+
var require_constants15 = __commonJS({
|
|
313573
|
+
"../../packages/lib/dist/constants.js"(exports2) {
|
|
313574
|
+
"use strict";
|
|
313575
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
313576
|
+
exports2.FIRST_GEARBOX_BLOCK = void 0;
|
|
313577
|
+
exports2.FIRST_GEARBOX_BLOCK = 13810899;
|
|
313578
|
+
}
|
|
313579
|
+
});
|
|
313580
|
+
|
|
312679
313581
|
// ../../packages/lib/dist/types/addresses.js
|
|
312680
313582
|
var require_addresses15 = __commonJS({
|
|
312681
313583
|
"../../packages/lib/dist/types/addresses.js"(exports2) {
|
|
@@ -313557,7 +314459,7 @@ var require_subset = __commonJS({
|
|
|
313557
314459
|
var require_semver2 = __commonJS({
|
|
313558
314460
|
"../../node_modules/semver/index.js"(exports2, module2) {
|
|
313559
314461
|
var internalRe = require_re();
|
|
313560
|
-
var constants =
|
|
314462
|
+
var constants = require_constants11();
|
|
313561
314463
|
var SemVer = require_semver();
|
|
313562
314464
|
var identifiers = require_identifiers();
|
|
313563
314465
|
var parse3 = require_parse();
|
|
@@ -337121,7 +338023,7 @@ var require_CreditConfiguratorV2Visitor = __commonJS({
|
|
|
337121
338023
|
};
|
|
337122
338024
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337123
338025
|
var deploy_tools_types_1 = require_dist5();
|
|
337124
|
-
var constants_1 =
|
|
338026
|
+
var constants_1 = require_constants15();
|
|
337125
338027
|
var helpers_1 = require_helpers();
|
|
337126
338028
|
var types_1 = require_types30();
|
|
337127
338029
|
var AbstractVisitor_1 = __importDefault2(require_AbstractVisitor());
|
|
@@ -337202,7 +338104,7 @@ var require_CreditConfiguratorV3Visitor = __commonJS({
|
|
|
337202
338104
|
};
|
|
337203
338105
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337204
338106
|
var deploy_tools_types_1 = require_dist5();
|
|
337205
|
-
var constants_1 =
|
|
338107
|
+
var constants_1 = require_constants15();
|
|
337206
338108
|
var helpers_1 = require_helpers();
|
|
337207
338109
|
var types_1 = require_types30();
|
|
337208
338110
|
var AbstractVisitor_1 = __importDefault2(require_AbstractVisitor());
|
|
@@ -337291,7 +338193,7 @@ var require_CreditFacadeV2Visitor = __commonJS({
|
|
|
337291
338193
|
};
|
|
337292
338194
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337293
338195
|
var deploy_tools_types_1 = require_dist5();
|
|
337294
|
-
var constants_1 =
|
|
338196
|
+
var constants_1 = require_constants15();
|
|
337295
338197
|
var helpers_1 = require_helpers();
|
|
337296
338198
|
var types_1 = require_types30();
|
|
337297
338199
|
var AbstractVisitor_1 = __importDefault2(require_AbstractVisitor());
|
|
@@ -337355,7 +338257,7 @@ var require_CreditFacadeV3Visitor = __commonJS({
|
|
|
337355
338257
|
};
|
|
337356
338258
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337357
338259
|
var deploy_tools_types_1 = require_dist5();
|
|
337358
|
-
var constants_1 =
|
|
338260
|
+
var constants_1 = require_constants15();
|
|
337359
338261
|
var helpers_1 = require_helpers();
|
|
337360
338262
|
var types_1 = require_types30();
|
|
337361
338263
|
var AbstractVisitor_1 = __importDefault2(require_AbstractVisitor());
|
|
@@ -337410,7 +338312,7 @@ var require_CreditFilterVisitor = __commonJS({
|
|
|
337410
338312
|
};
|
|
337411
338313
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337412
338314
|
var deploy_tools_types_1 = require_dist5();
|
|
337413
|
-
var constants_1 =
|
|
338315
|
+
var constants_1 = require_constants15();
|
|
337414
338316
|
var helpers_1 = require_helpers();
|
|
337415
338317
|
var types_1 = require_types30();
|
|
337416
338318
|
var AbstractVisitor_1 = __importDefault2(require_AbstractVisitor());
|
|
@@ -337722,7 +338624,7 @@ var require_PoolV3Visitor = __commonJS({
|
|
|
337722
338624
|
};
|
|
337723
338625
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337724
338626
|
var deploy_tools_types_1 = require_dist5();
|
|
337725
|
-
var constants_1 =
|
|
338627
|
+
var constants_1 = require_constants15();
|
|
337726
338628
|
var helpers_1 = require_helpers();
|
|
337727
338629
|
var types_1 = require_types30();
|
|
337728
338630
|
var AbstractVisitor_1 = __importDefault2(require_AbstractVisitor());
|
|
@@ -337861,7 +338763,7 @@ var require_PriceOracleV3Visitor = __commonJS({
|
|
|
337861
338763
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337862
338764
|
var deploy_tools_types_1 = require_dist5();
|
|
337863
338765
|
var sdk_gov_1 = require_lib226();
|
|
337864
|
-
var constants_1 =
|
|
338766
|
+
var constants_1 = require_constants15();
|
|
337865
338767
|
var helpers_1 = require_helpers();
|
|
337866
338768
|
var types_1 = require_types30();
|
|
337867
338769
|
var AbstractVisitor_1 = __importDefault2(require_AbstractVisitor());
|
|
@@ -338049,24 +338951,22 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338049
338951
|
var node_path_1 = __importDefault2(require("path"));
|
|
338050
338952
|
var deploy_suite_1 = require_dist3();
|
|
338051
338953
|
var sdk_gov_1 = require_lib226();
|
|
338052
|
-
var ethers_1 = require_lib2();
|
|
338053
338954
|
var queue_1 = __importDefault2((init_queue(), __toCommonJS(queue_exports)));
|
|
338054
338955
|
var Auditor_1 = require_Auditor();
|
|
338055
|
-
var constants_1 =
|
|
338956
|
+
var constants_1 = require_constants15();
|
|
338056
338957
|
var EtherscanVerifier_1 = require_EtherscanVerifier();
|
|
338057
|
-
var
|
|
338958
|
+
var ProviderBase_1 = require_ProviderBase();
|
|
338058
338959
|
var types_1 = require_types30();
|
|
338059
338960
|
var Verifier_1 = __importDefault2(require_Verifier());
|
|
338060
338961
|
var visitors_1 = require_visitors();
|
|
338061
|
-
var
|
|
338062
|
-
var _GearboxAddressTree = class _GearboxAddressTree {
|
|
338962
|
+
var _etherscan, _verifier, _auditor, _outFile, _cachePolicy, _queue, _visited, _create2, _loadCache, loadCache_fn, _saveCache, saveCache_fn, _process2, process_fn, _addToQueue, addToQueue_fn;
|
|
338963
|
+
var _GearboxAddressTree = class _GearboxAddressTree extends ProviderBase_1.ProviderBase {
|
|
338063
338964
|
constructor(options) {
|
|
338965
|
+
super(options.rpcUrl);
|
|
338064
338966
|
__privateAdd(this, _loadCache);
|
|
338065
338967
|
__privateAdd(this, _saveCache);
|
|
338066
338968
|
__privateAdd(this, _process2);
|
|
338067
338969
|
__privateAdd(this, _addToQueue);
|
|
338068
|
-
__privateAdd(this, _logger, log_1.default.getSubLogger({ name: "tree" }));
|
|
338069
|
-
__privateAdd(this, _provider5, void 0);
|
|
338070
338970
|
__privateAdd(this, _etherscan, void 0);
|
|
338071
338971
|
__privateAdd(this, _verifier, void 0);
|
|
338072
338972
|
__privateAdd(this, _auditor, void 0);
|
|
@@ -338075,11 +338975,7 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338075
338975
|
__privateAdd(this, _queue, new queue_1.default({ concurrency: 5 }));
|
|
338076
338976
|
__privateAdd(this, _visited, /* @__PURE__ */ new Map());
|
|
338077
338977
|
__privateAdd(this, _create2, /* @__PURE__ */ new Map());
|
|
338078
|
-
|
|
338079
|
-
staticNetwork: true,
|
|
338080
|
-
batchMaxCount: 1,
|
|
338081
|
-
cacheTimeout: -1
|
|
338082
|
-
}));
|
|
338978
|
+
this.logger = this.logger.getSubLogger({ name: "tree" });
|
|
338083
338979
|
__privateSet(this, _outFile, node_path_1.default.resolve(options.sandboxDir, "tree.json"));
|
|
338084
338980
|
__privateSet(this, _etherscan, new EtherscanVerifier_1.EtherscanVerifier(options));
|
|
338085
338981
|
__privateSet(this, _verifier, new Verifier_1.default());
|
|
@@ -338087,14 +338983,15 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338087
338983
|
__privateSet(this, _cachePolicy, options.cachePolicy);
|
|
338088
338984
|
}
|
|
338089
338985
|
async build() {
|
|
338986
|
+
await this.init();
|
|
338090
338987
|
await __privateGet(this, _auditor).setup();
|
|
338091
338988
|
let queued = await __privateMethod(this, _loadCache, loadCache_fn).call(this);
|
|
338092
338989
|
if (__privateGet(this, _cachePolicy) === "only") {
|
|
338093
338990
|
queued.forEach((a) => __privateGet(this, _visited).set(a.address.toLowerCase(), a));
|
|
338094
|
-
|
|
338991
|
+
this.logger.info(`cache policy set to 'only' will use ${__privateGet(this, _visited).size} cached addresses only`);
|
|
338095
338992
|
return;
|
|
338096
338993
|
}
|
|
338097
|
-
const block = await
|
|
338994
|
+
const block = await this.provider.getBlock("finalized");
|
|
338098
338995
|
if (!block) {
|
|
338099
338996
|
throw new Error("cannot get finalized block");
|
|
338100
338997
|
}
|
|
@@ -338102,58 +338999,55 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338102
338999
|
if (queued.length === 0) {
|
|
338103
339000
|
queued = [
|
|
338104
339001
|
{
|
|
338105
|
-
address:
|
|
338106
|
-
contract: "ADDRESS_PROVIDER_V1",
|
|
338107
|
-
version: 1,
|
|
338108
|
-
discoveryBlock: constants_1.FIRST_GEARBOX_BLOCK
|
|
338109
|
-
},
|
|
338110
|
-
{
|
|
338111
|
-
address: constants_1.ADDRESS_PROVIDER_V3_ADDRESS,
|
|
339002
|
+
address: this.address("ADDRESS_PROVIDER"),
|
|
338112
339003
|
contract: "ADDRESS_PROVIDER_V3",
|
|
338113
339004
|
version: 300,
|
|
338114
339005
|
discoveryBlock: 18433056
|
|
338115
339006
|
},
|
|
338116
339007
|
{
|
|
338117
|
-
address:
|
|
339008
|
+
address: this.address("CREATE2FACTORY"),
|
|
338118
339009
|
contract: "CREATE2_FACTORY",
|
|
338119
339010
|
version: types_1.VERSION_UNVERSIONED
|
|
338120
339011
|
},
|
|
338121
339012
|
{
|
|
338122
|
-
address:
|
|
338123
|
-
contract: "CREATE2_FACTORY",
|
|
338124
|
-
version: types_1.VERSION_UNVERSIONED
|
|
338125
|
-
},
|
|
338126
|
-
{
|
|
338127
|
-
address: constants_1.GOVERNOR_V3_ADDRESS,
|
|
339013
|
+
address: this.address("GOVERNOR"),
|
|
338128
339014
|
contract: "GOVERNOR_V3",
|
|
338129
339015
|
version: types_1.VERSION_UNVERSIONED
|
|
338130
339016
|
},
|
|
338131
339017
|
{
|
|
338132
|
-
address:
|
|
339018
|
+
address: this.address("TIMELOCK"),
|
|
338133
339019
|
contract: "TIMELOCK",
|
|
338134
339020
|
version: types_1.VERSION_UNVERSIONED
|
|
338135
339021
|
}
|
|
338136
339022
|
];
|
|
339023
|
+
if (this.network === "Mainnet") {
|
|
339024
|
+
queued.unshift({
|
|
339025
|
+
address: "0xcF64698AFF7E5f27A11dff868AF228653ba53be0",
|
|
339026
|
+
contract: "ADDRESS_PROVIDER_V1",
|
|
339027
|
+
version: 1,
|
|
339028
|
+
discoveryBlock: constants_1.FIRST_GEARBOX_BLOCK
|
|
339029
|
+
});
|
|
339030
|
+
}
|
|
338137
339031
|
}
|
|
338138
|
-
|
|
339032
|
+
this.logger.info(`started building gearbox address tree till block ${head}`);
|
|
338139
339033
|
for (const entry of queued) {
|
|
338140
339034
|
__privateGet(this, _queue).push(() => __privateMethod(this, _process2, process_fn).call(this, entry, head));
|
|
338141
339035
|
}
|
|
338142
339036
|
await __privateGet(this, _queue).start();
|
|
338143
|
-
|
|
339037
|
+
this.logger.info(`finished building gearbox address tree, total addresses: ${__privateGet(this, _visited).size}`);
|
|
338144
339038
|
await __privateMethod(this, _saveCache, saveCache_fn).call(this);
|
|
338145
339039
|
}
|
|
338146
339040
|
async addCreate2Address(entry, bytecode, meta) {
|
|
338147
|
-
|
|
339041
|
+
this.logger.debug(`adding create2 address ${entry.address} of ${entry.contract}`);
|
|
338148
339042
|
const metaContract = meta == null ? void 0 : meta.find((c) => c.contractAddress === entry.address);
|
|
338149
339043
|
if (!metaContract) {
|
|
338150
339044
|
throw new Error(`meta contract not found for create2 call with address ${entry.contract}`);
|
|
338151
339045
|
}
|
|
338152
339046
|
const verification = await __privateGet(this, _verifier).verifyCreate2Tx(bytecode, metaContract);
|
|
338153
339047
|
if ("error" in verification) {
|
|
338154
|
-
|
|
339048
|
+
this.logger.warn(`error while verifying ${metaContract.contractName} at ${metaContract.contractAddress}: ${verification.error}`);
|
|
338155
339049
|
} else {
|
|
338156
|
-
|
|
339050
|
+
this.logger.info(`verifyied ${metaContract.contractName} at ${metaContract.contractAddress}: ${verification.match}`);
|
|
338157
339051
|
}
|
|
338158
339052
|
const result = {
|
|
338159
339053
|
...entry,
|
|
@@ -338170,8 +339064,6 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338170
339064
|
return __privateGet(this, _visited).get(address.toLowerCase()) ?? __privateGet(this, _create2).get(address.toLowerCase());
|
|
338171
339065
|
}
|
|
338172
339066
|
};
|
|
338173
|
-
_logger = new WeakMap();
|
|
338174
|
-
_provider5 = new WeakMap();
|
|
338175
339067
|
_etherscan = new WeakMap();
|
|
338176
339068
|
_verifier = new WeakMap();
|
|
338177
339069
|
_auditor = new WeakMap();
|
|
@@ -338183,21 +339075,21 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338183
339075
|
_loadCache = new WeakSet();
|
|
338184
339076
|
loadCache_fn = async function() {
|
|
338185
339077
|
if (__privateGet(this, _cachePolicy) === "never") {
|
|
338186
|
-
|
|
339078
|
+
this.logger.debug("cache policy set to 'never', skipping cache load");
|
|
338187
339079
|
return [];
|
|
338188
339080
|
}
|
|
338189
339081
|
try {
|
|
338190
339082
|
const content = await (0, promises_1.readFile)(__privateGet(this, _outFile), "utf-8").then(deploy_suite_1.json_parse);
|
|
338191
339083
|
if (content.version !== _GearboxAddressTree.version) {
|
|
338192
|
-
|
|
339084
|
+
this.logger.warn(`ignoring cache file because it has version ${content.version}, but we need ${_GearboxAddressTree.version}`);
|
|
338193
339085
|
return [];
|
|
338194
339086
|
}
|
|
338195
339087
|
const entries = Object.values(content.tree);
|
|
338196
|
-
|
|
339088
|
+
this.logger.info(`loaded ${entries.length} entries from cache file ${__privateGet(this, _outFile)}`);
|
|
338197
339089
|
return entries;
|
|
338198
339090
|
} catch (e) {
|
|
338199
339091
|
if (e.code === "ENOENT") {
|
|
338200
|
-
|
|
339092
|
+
this.logger.trace(`cache file ${__privateGet(this, _outFile)} does not exist`);
|
|
338201
339093
|
return [];
|
|
338202
339094
|
}
|
|
338203
339095
|
throw e;
|
|
@@ -338206,7 +339098,7 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338206
339098
|
_saveCache = new WeakSet();
|
|
338207
339099
|
saveCache_fn = async function() {
|
|
338208
339100
|
if (__privateGet(this, _cachePolicy) === "never") {
|
|
338209
|
-
|
|
339101
|
+
this.logger.trace(`skipped saving cache`);
|
|
338210
339102
|
return;
|
|
338211
339103
|
}
|
|
338212
339104
|
const content = {
|
|
@@ -338214,14 +339106,14 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338214
339106
|
tree: Object.fromEntries(__privateGet(this, _visited))
|
|
338215
339107
|
};
|
|
338216
339108
|
await (0, promises_1.writeFile)(__privateGet(this, _outFile), (0, deploy_suite_1.json_stringify)(content), "utf-8");
|
|
338217
|
-
|
|
339109
|
+
this.logger.trace(`saved to ${__privateGet(this, _outFile)}`);
|
|
338218
339110
|
};
|
|
338219
339111
|
_process2 = new WeakSet();
|
|
338220
339112
|
process_fn = async function(entry, block) {
|
|
338221
339113
|
if (__privateGet(this, _visited).has(entry.address.toLowerCase())) {
|
|
338222
339114
|
return;
|
|
338223
339115
|
}
|
|
338224
|
-
const newEntries = await (0, visitors_1.visitorFor)(entry).visit(entry,
|
|
339116
|
+
const newEntries = await (0, visitors_1.visitorFor)(entry).visit(entry, this.provider, block);
|
|
338225
339117
|
if (entry.address === sdk_gov_1.ADDRESS_0X0) {
|
|
338226
339118
|
return;
|
|
338227
339119
|
}
|
|
@@ -338244,7 +339136,7 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
338244
339136
|
cnt += __privateMethod(this, _addToQueue, addToQueue_fn).call(this, newEntry, block);
|
|
338245
339137
|
}
|
|
338246
339138
|
if (cnt) {
|
|
338247
|
-
|
|
339139
|
+
this.logger.debug(`contract ${entry.contract} at ${entry.address} added ${cnt} new items`);
|
|
338248
339140
|
}
|
|
338249
339141
|
};
|
|
338250
339142
|
_addToQueue = new WeakSet();
|
|
@@ -355378,30 +356270,30 @@ var require_UpdateParser = __commonJS({
|
|
|
355378
356270
|
var container_1 = require_container();
|
|
355379
356271
|
var git_1 = require_git();
|
|
355380
356272
|
var helpers_1 = require_helpers();
|
|
355381
|
-
var log_1 = __importDefault2(require_log());
|
|
355382
356273
|
var parsers_1 = require_parsers2();
|
|
355383
|
-
var
|
|
356274
|
+
var ProviderBase_1 = require_ProviderBase();
|
|
355384
356275
|
var types_1 = require_types30();
|
|
355385
|
-
var
|
|
355386
|
-
var UpdateParser2 = class extends
|
|
356276
|
+
var _sandboxDir, _output2, _parseSafeTxHashes, parseSafeTxHashes_fn, _parseBatchRepoDir, parseBatchRepoDir_fn, _parseBatchDir, parseBatchDir_fn, _parseNormalizedBatch, parseNormalizedBatch_fn, _parseNormalizedTx, parseNormalizedTx_fn, _collectCreate2Addresses, collectCreate2Addresses_fn;
|
|
356277
|
+
var UpdateParser2 = class extends ProviderBase_1.ProviderBase {
|
|
355387
356278
|
constructor(options) {
|
|
355388
|
-
super(options);
|
|
356279
|
+
super(options.rpcUrl);
|
|
355389
356280
|
__privateAdd(this, _parseSafeTxHashes);
|
|
355390
356281
|
__privateAdd(this, _parseBatchRepoDir);
|
|
355391
356282
|
__privateAdd(this, _parseBatchDir);
|
|
355392
356283
|
__privateAdd(this, _parseNormalizedBatch);
|
|
355393
356284
|
__privateAdd(this, _parseNormalizedTx);
|
|
355394
356285
|
__privateAdd(this, _collectCreate2Addresses);
|
|
355395
|
-
__privateAdd(this, _logger, log_1.default.getSubLogger({ name: "parser" }));
|
|
355396
356286
|
__privateAdd(this, _sandboxDir, void 0);
|
|
355397
356287
|
__privateAdd(this, _output2, {
|
|
355398
356288
|
addresses: {},
|
|
355399
356289
|
updates: []
|
|
355400
356290
|
});
|
|
356291
|
+
this.logger = this.logger.getSubLogger({ name: "parser" });
|
|
355401
356292
|
__privateSet(this, _sandboxDir, node_path_1.default.resolve(options.sandboxDir, "parser"));
|
|
355402
356293
|
(0, node_fs_1.mkdirSync)(__privateGet(this, _sandboxDir), { recursive: true });
|
|
355403
356294
|
}
|
|
355404
356295
|
async parse(opts) {
|
|
356296
|
+
await this.init();
|
|
355405
356297
|
const { batchRepo, batchCommittish, batchDir, safeTxHashes } = opts;
|
|
355406
356298
|
if (!!batchRepo && !!batchCommittish && !!batchDir) {
|
|
355407
356299
|
await __privateMethod(this, _parseBatchRepoDir, parseBatchRepoDir_fn).call(this, batchRepo, batchCommittish, batchDir);
|
|
@@ -355413,7 +356305,6 @@ var require_UpdateParser = __commonJS({
|
|
|
355413
356305
|
return __privateGet(this, _output2);
|
|
355414
356306
|
}
|
|
355415
356307
|
};
|
|
355416
|
-
_logger = new WeakMap();
|
|
355417
356308
|
_sandboxDir = new WeakMap();
|
|
355418
356309
|
_output2 = new WeakMap();
|
|
355419
356310
|
_parseSafeTxHashes = new WeakSet();
|
|
@@ -355429,7 +356320,7 @@ var require_UpdateParser = __commonJS({
|
|
|
355429
356320
|
destDir: node_path_1.default.join(repo, committish)
|
|
355430
356321
|
});
|
|
355431
356322
|
const batchDir = node_path_1.default.resolve(__privateGet(this, _sandboxDir), repo, committish, dir);
|
|
355432
|
-
|
|
356323
|
+
this.logger.debug(`will parse batches from ${batchDir}`);
|
|
355433
356324
|
await __privateMethod(this, _parseBatchDir, parseBatchDir_fn).call(this, batchDir);
|
|
355434
356325
|
await (0, promises_1.rm)(__privateGet(this, _sandboxDir), { force: true, recursive: true });
|
|
355435
356326
|
};
|
|
@@ -355444,11 +356335,11 @@ var require_UpdateParser = __commonJS({
|
|
|
355444
356335
|
throw new Error(`no batch files found in ${dir}`);
|
|
355445
356336
|
}
|
|
355446
356337
|
if (!meta) {
|
|
355447
|
-
|
|
356338
|
+
this.logger.debug(`no metafile files found in ${dir}`);
|
|
355448
356339
|
} else {
|
|
355449
|
-
|
|
356340
|
+
this.logger.debug(`metafile has ${Object.entries(meta).length} entries`);
|
|
355450
356341
|
}
|
|
355451
|
-
|
|
356342
|
+
this.logger.info(`will parse ${batches.length} batch files`);
|
|
355452
356343
|
for (let i = 0; i < batches.length; i++) {
|
|
355453
356344
|
const parsed = await __privateMethod(this, _parseNormalizedBatch, parseNormalizedBatch_fn).call(this, batches[i], i, batches.length, meta ?? []);
|
|
355454
356345
|
__privateGet(this, _output2).updates.push(parsed);
|
|
@@ -355456,7 +356347,7 @@ var require_UpdateParser = __commonJS({
|
|
|
355456
356347
|
};
|
|
355457
356348
|
_parseNormalizedBatch = new WeakSet();
|
|
355458
356349
|
parseNormalizedBatch_fn = async function(batch, i, total, meta) {
|
|
355459
|
-
|
|
356350
|
+
this.logger.debug(`[${i + 1}/${total}] processing ${(0, helpers_1.updateTitle)(batch)}`);
|
|
355460
356351
|
const transactions = [];
|
|
355461
356352
|
for (const tx of batch.transactions) {
|
|
355462
356353
|
transactions.push(await __privateMethod(this, _parseNormalizedTx, parseNormalizedTx_fn).call(this, tx, meta));
|
|
@@ -355518,73 +356409,62 @@ var require_UpdateParser = __commonJS({
|
|
|
355518
356409
|
var require_ZeroLT = __commonJS({
|
|
355519
356410
|
"../../packages/lib/dist/ZeroLT.js"(exports2) {
|
|
355520
356411
|
"use strict";
|
|
355521
|
-
var __importDefault2 = exports2 && exports2.__importDefault || function(mod2) {
|
|
355522
|
-
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
355523
|
-
};
|
|
355524
356412
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
355525
356413
|
exports2.ZeroLT = void 0;
|
|
355526
356414
|
var deploy_tools_types_1 = require_dist5();
|
|
355527
356415
|
var sdk_gov_1 = require_lib226();
|
|
355528
356416
|
var ethers_1 = require_lib2();
|
|
355529
|
-
var constants_1 = require_constants9();
|
|
355530
356417
|
var helpers_1 = require_helpers();
|
|
355531
|
-
var
|
|
355532
|
-
var
|
|
355533
|
-
var ZeroLT2 = class {
|
|
355534
|
-
constructor(
|
|
356418
|
+
var ProviderBase_1 = require_ProviderBase();
|
|
356419
|
+
var _acl, _dc210, _dc300, _configrator, _setOnV2, setOnV2_fn, _setOnV3, setOnV3_fn;
|
|
356420
|
+
var ZeroLT2 = class extends ProviderBase_1.ProviderBase {
|
|
356421
|
+
constructor() {
|
|
356422
|
+
super(...arguments);
|
|
355535
356423
|
__privateAdd(this, _setOnV2);
|
|
355536
356424
|
__privateAdd(this, _setOnV3);
|
|
355537
|
-
__privateAdd(this, _logger, log_1.default.getSubLogger());
|
|
355538
356425
|
__privateAdd(this, _acl, void 0);
|
|
355539
356426
|
__privateAdd(this, _dc210, void 0);
|
|
355540
356427
|
__privateAdd(this, _dc300, void 0);
|
|
355541
356428
|
__privateAdd(this, _configrator, void 0);
|
|
355542
|
-
__privateAdd(this, _provider5, void 0);
|
|
355543
|
-
__privateSet(this, _provider5, new ethers_1.JsonRpcProvider(opts.rpcUrl, void 0, {
|
|
355544
|
-
staticNetwork: true,
|
|
355545
|
-
batchMaxCount: 1,
|
|
355546
|
-
cacheTimeout: -1
|
|
355547
|
-
}));
|
|
355548
356429
|
}
|
|
355549
356430
|
async setLtZero() {
|
|
355550
356431
|
var _a, _b;
|
|
355551
|
-
|
|
355552
|
-
|
|
355553
|
-
|
|
356432
|
+
this.logger.info("running zero lt script");
|
|
356433
|
+
await this.init();
|
|
356434
|
+
const addressProvider = deploy_tools_types_1.IAddressProviderV3__factory.connect(this.address("ADDRESS_PROVIDER"), this.provider);
|
|
356435
|
+
(_a = this.logger) == null ? void 0 : _a.debug(`addressProvider: ${this.address("ADDRESS_PROVIDER")}`);
|
|
355554
356436
|
const [dc210Addr, dc300Addr, aclAddr] = await Promise.all([
|
|
355555
356437
|
await addressProvider.getAddressOrRevert((0, ethers_1.encodeBytes32String)("DATA_COMPRESSOR"), 210),
|
|
355556
356438
|
await addressProvider.getAddressOrRevert((0, ethers_1.encodeBytes32String)("DATA_COMPRESSOR"), 300),
|
|
355557
356439
|
await addressProvider.getAddressOrRevert((0, ethers_1.encodeBytes32String)("ACL"), 0)
|
|
355558
356440
|
]);
|
|
355559
|
-
__privateSet(this, _dc210, deploy_tools_types_1.IDataCompressorV2_10__factory.connect(dc210Addr,
|
|
355560
|
-
__privateSet(this, _dc300, deploy_tools_types_1.IDataCompressorV3_00__factory.connect(dc300Addr,
|
|
355561
|
-
__privateSet(this, _acl, deploy_tools_types_1.IACL__factory.connect(aclAddr,
|
|
356441
|
+
__privateSet(this, _dc210, deploy_tools_types_1.IDataCompressorV2_10__factory.connect(dc210Addr, this.provider));
|
|
356442
|
+
__privateSet(this, _dc300, deploy_tools_types_1.IDataCompressorV3_00__factory.connect(dc300Addr, this.provider));
|
|
356443
|
+
__privateSet(this, _acl, deploy_tools_types_1.IACL__factory.connect(aclAddr, this.provider));
|
|
355562
356444
|
__privateSet(this, _configrator, await __privateGet(this, _acl).owner());
|
|
355563
|
-
(_b =
|
|
356445
|
+
(_b = this.logger) == null ? void 0 : _b.debug("configurator: ", __privateGet(this, _configrator));
|
|
355564
356446
|
const [cmV2s, cmV3s] = await Promise.all([
|
|
355565
356447
|
__privateGet(this, _dc210).getCreditManagersV2List(),
|
|
355566
356448
|
__privateGet(this, _dc300).getCreditManagersV3List()
|
|
355567
356449
|
]);
|
|
355568
|
-
|
|
356450
|
+
this.logger.debug(`managers: ${cmV2s.length} v2, ${cmV3s.length} v3`);
|
|
355569
356451
|
for (const i of cmV2s) {
|
|
355570
356452
|
await __privateMethod(this, _setOnV2, setOnV2_fn).call(this, i);
|
|
355571
356453
|
}
|
|
355572
356454
|
for (const i of cmV3s) {
|
|
355573
356455
|
await __privateMethod(this, _setOnV3, setOnV3_fn).call(this, i);
|
|
355574
356456
|
}
|
|
355575
|
-
|
|
356457
|
+
this.logger.info("zero lt finished");
|
|
355576
356458
|
}
|
|
355577
356459
|
};
|
|
355578
|
-
_logger = new WeakMap();
|
|
355579
356460
|
_acl = new WeakMap();
|
|
355580
356461
|
_dc210 = new WeakMap();
|
|
355581
356462
|
_dc300 = new WeakMap();
|
|
355582
356463
|
_configrator = new WeakMap();
|
|
355583
|
-
_provider5 = new WeakMap();
|
|
355584
356464
|
_setOnV2 = new WeakSet();
|
|
355585
356465
|
setOnV2_fn = async function(cm) {
|
|
355586
|
-
const logger =
|
|
355587
|
-
const root = await (0, helpers_1.impersonate)(
|
|
356466
|
+
const logger = this.logger.getSubLogger({ name: cm.name });
|
|
356467
|
+
const root = await (0, helpers_1.impersonate)(this.provider, __privateGet(this, _configrator));
|
|
355588
356468
|
logger.debug(`zeroeing, collateralTokens: ${cm.collateralTokens.length}`);
|
|
355589
356469
|
const cc = deploy_tools_types_1.ICreditConfiguratorV2__factory.connect(cm.creditConfigurator, root);
|
|
355590
356470
|
const newFeeLiquidation = Number(cm.liquidationDiscount) - 1;
|
|
@@ -355593,7 +356473,7 @@ var require_ZeroLT = __commonJS({
|
|
|
355593
356473
|
logger.trace("setFees part 2");
|
|
355594
356474
|
await cc.setFees(cm.feeInterest, cm.feeLiquidation, sdk_gov_1.PERCENTAGE_FACTOR - BigInt(cm.liquidationDiscount), cm.feeLiquidationExpired, cm.liquidationDiscountExpired);
|
|
355595
356475
|
logger.trace("setFees done");
|
|
355596
|
-
const ccRoot = await (0, helpers_1.impersonate)(
|
|
356476
|
+
const ccRoot = await (0, helpers_1.impersonate)(this.provider, cm.creditConfigurator);
|
|
355597
356477
|
logger.trace(`impresonating creditConfigurator ${cm.creditConfigurator}`);
|
|
355598
356478
|
const creditManager = deploy_tools_types_1.CreditManager__factory.connect(cm.addr, ccRoot);
|
|
355599
356479
|
logger.trace("setting liquidation threshold");
|
|
@@ -355601,8 +356481,8 @@ var require_ZeroLT = __commonJS({
|
|
|
355601
356481
|
logger.trace(`setting configurator: ${cm.creditConfigurator}`);
|
|
355602
356482
|
await creditManager.setConfigurator(cm.creditConfigurator);
|
|
355603
356483
|
logger.debug("done");
|
|
355604
|
-
await (0, helpers_1.stopImpersonate)(
|
|
355605
|
-
await (0, helpers_1.stopImpersonate)(
|
|
356484
|
+
await (0, helpers_1.stopImpersonate)(this.provider, cm.creditConfigurator);
|
|
356485
|
+
await (0, helpers_1.stopImpersonate)(this.provider, __privateGet(this, _configrator));
|
|
355606
356486
|
logger.trace("zero lt self-checking");
|
|
355607
356487
|
const cm2 = await __privateGet(this, _dc210).getCreditManagerData(cm.addr);
|
|
355608
356488
|
if (cm2.liquidationThresholds.some((lt) => lt > 1)) {
|
|
@@ -355612,8 +356492,8 @@ var require_ZeroLT = __commonJS({
|
|
|
355612
356492
|
};
|
|
355613
356493
|
_setOnV3 = new WeakSet();
|
|
355614
356494
|
setOnV3_fn = async function(cm) {
|
|
355615
|
-
const logger =
|
|
355616
|
-
const root = await (0, helpers_1.impersonate)(
|
|
356495
|
+
const logger = this.logger.getSubLogger({ name: cm.name });
|
|
356496
|
+
const root = await (0, helpers_1.impersonate)(this.provider, __privateGet(this, _configrator));
|
|
355617
356497
|
logger.debug(`zeroeing, collateralTokens: ${cm.collateralTokens.length}`);
|
|
355618
356498
|
const cc = deploy_tools_types_1.ICreditConfiguratorV3__factory.connect(cm.creditConfigurator, root);
|
|
355619
356499
|
const newFeeLiquidation = Number(cm.liquidationDiscount) - 1;
|
|
@@ -355622,7 +356502,7 @@ var require_ZeroLT = __commonJS({
|
|
|
355622
356502
|
logger.trace("setFees part 2");
|
|
355623
356503
|
await cc.setFees(cm.feeInterest, cm.feeLiquidation, sdk_gov_1.PERCENTAGE_FACTOR - BigInt(cm.liquidationDiscount), cm.feeLiquidationExpired, cm.liquidationDiscountExpired);
|
|
355624
356504
|
logger.trace("setFees done");
|
|
355625
|
-
const ccRoot = await (0, helpers_1.impersonate)(
|
|
356505
|
+
const ccRoot = await (0, helpers_1.impersonate)(this.provider, cm.creditConfigurator);
|
|
355626
356506
|
logger.trace(`impresonating creditConfigurator ${cm.creditConfigurator}`);
|
|
355627
356507
|
const creditManager = deploy_tools_types_1.ICreditManagerV3__factory.connect(cm.addr, ccRoot);
|
|
355628
356508
|
logger.trace("setting liquidation threshold");
|
|
@@ -355630,8 +356510,8 @@ var require_ZeroLT = __commonJS({
|
|
|
355630
356510
|
logger.trace(`setting configurator ${cm.creditConfigurator}`);
|
|
355631
356511
|
await creditManager.setCreditConfigurator(cm.creditConfigurator);
|
|
355632
356512
|
logger.debug("done");
|
|
355633
|
-
await (0, helpers_1.stopImpersonate)(
|
|
355634
|
-
await (0, helpers_1.stopImpersonate)(
|
|
356513
|
+
await (0, helpers_1.stopImpersonate)(this.provider, cm.creditConfigurator);
|
|
356514
|
+
await (0, helpers_1.stopImpersonate)(this.provider, __privateGet(this, _configrator));
|
|
355635
356515
|
logger.trace("zero lt self-checking");
|
|
355636
356516
|
const cm2 = await __privateGet(this, _dc300).getCreditManagerData(cm.addr);
|
|
355637
356517
|
if (cm2.liquidationThresholds.some((lt) => lt > 1)) {
|
|
@@ -355674,6 +356554,7 @@ var require_dist12 = __commonJS({
|
|
|
355674
356554
|
__exportStar2(require_EtherscanVerifier(), exports2);
|
|
355675
356555
|
__exportStar2(require_helpers(), exports2);
|
|
355676
356556
|
__exportStar2(require_MetaRepo(), exports2);
|
|
356557
|
+
__exportStar2(require_ProviderBase(), exports2);
|
|
355677
356558
|
__exportStar2(require_tree(), exports2);
|
|
355678
356559
|
__exportStar2(require_types30(), exports2);
|
|
355679
356560
|
__exportStar2(require_UpdateParser(), exports2);
|
|
@@ -401030,7 +401911,7 @@ var require_package3 = __commonJS({
|
|
|
401030
401911
|
module2.exports = {
|
|
401031
401912
|
name: "@gearbox-protocol/deploy-tools",
|
|
401032
401913
|
description: "Gearbox deploy tools",
|
|
401033
|
-
version: "2.0.
|
|
401914
|
+
version: "2.0.4",
|
|
401034
401915
|
homepage: "https://gearbox.fi",
|
|
401035
401916
|
keywords: [
|
|
401036
401917
|
"gearbox"
|
|
@@ -401067,10 +401948,10 @@ var require_package3 = __commonJS({
|
|
|
401067
401948
|
"@commitlint/config-conventional": "^18.4.4",
|
|
401068
401949
|
"@ethereum-sourcify/bytecode-utils": "^1.2.1",
|
|
401069
401950
|
"@ethereum-sourcify/lib-sourcify": "^1.4.1",
|
|
401070
|
-
"@gearbox-protocol/deploy-suite": "^1.1.0-next.
|
|
401951
|
+
"@gearbox-protocol/deploy-suite": "^1.1.0-next.32",
|
|
401071
401952
|
"@gearbox-protocol/eslint-config": "2.0.0-next.0",
|
|
401072
401953
|
"@gearbox-protocol/prettier-config": "2.0.0-next.0",
|
|
401073
|
-
"@gearbox-protocol/sdk-gov": "^1.
|
|
401954
|
+
"@gearbox-protocol/sdk-gov": "^1.22.2",
|
|
401074
401955
|
"@gearbox-protocol/deploy-tools-lib": "*",
|
|
401075
401956
|
"@gearbox-protocol/deploy-tools-types": "*",
|
|
401076
401957
|
"@safe-global/api-kit": "^2.0.0",
|
|
@@ -401175,6 +402056,11 @@ function deploy() {
|
|
|
401175
402056
|
"--batch-repo [repo]",
|
|
401176
402057
|
"Github repository with batch json files"
|
|
401177
402058
|
)
|
|
402059
|
+
).addOption(
|
|
402060
|
+
new Option(
|
|
402061
|
+
"--bypass-eta",
|
|
402062
|
+
"Set timelock.delay to 0 and replace ETA on batches to immediate"
|
|
402063
|
+
)
|
|
401178
402064
|
).addOption(
|
|
401179
402065
|
new Option("--batch-committish [repo]", "Github repository committish")
|
|
401180
402066
|
).addOption(
|
|
@@ -401184,33 +402070,31 @@ function deploy() {
|
|
|
401184
402070
|
"--safe-tx-hashes [hash...]",
|
|
401185
402071
|
"Safe tx hashes to get from safe api"
|
|
401186
402072
|
)
|
|
401187
|
-
).action(
|
|
401188
|
-
|
|
401189
|
-
|
|
401190
|
-
|
|
401191
|
-
|
|
401192
|
-
|
|
401193
|
-
|
|
401194
|
-
|
|
401195
|
-
|
|
401196
|
-
|
|
401197
|
-
|
|
401198
|
-
|
|
401199
|
-
|
|
401200
|
-
|
|
401201
|
-
|
|
401202
|
-
|
|
401203
|
-
|
|
401204
|
-
|
|
401205
|
-
|
|
401206
|
-
|
|
401207
|
-
|
|
401208
|
-
console.warn(`Failed to set EXECUTED_TRANSACTIONS: ${e}`);
|
|
401209
|
-
}
|
|
402073
|
+
).action(async (options) => {
|
|
402074
|
+
const deployer = new import_deploy_tools_lib2.Deployer({
|
|
402075
|
+
...options,
|
|
402076
|
+
rpcUrl: options.anvilUrl
|
|
402077
|
+
});
|
|
402078
|
+
if (!!options.batchRepo && !!options.batchCommittish && !!options.batchDir) {
|
|
402079
|
+
await deployer.deployFromRepoDir(
|
|
402080
|
+
options.batchRepo,
|
|
402081
|
+
options.batchCommittish,
|
|
402082
|
+
options.batchDir
|
|
402083
|
+
);
|
|
402084
|
+
} else if (options.batchDir) {
|
|
402085
|
+
await deployer.deployFromBatchDir(options.batchDir);
|
|
402086
|
+
} else {
|
|
402087
|
+
const executed = await deployer.deployFromMultisig(
|
|
402088
|
+
options.safeTxHashes
|
|
402089
|
+
);
|
|
402090
|
+
try {
|
|
402091
|
+
(0, import_core.exportVariable)("EXECUTED_TRANSACTIONS", executed.join(","));
|
|
402092
|
+
} catch (e) {
|
|
402093
|
+
console.warn(`Failed to set EXECUTED_TRANSACTIONS: ${e}`);
|
|
401210
402094
|
}
|
|
401211
|
-
console.log("done");
|
|
401212
402095
|
}
|
|
401213
|
-
|
|
402096
|
+
console.log("done");
|
|
402097
|
+
});
|
|
401214
402098
|
}
|
|
401215
402099
|
|
|
401216
402100
|
// src/commands/parse.ts
|
|
@@ -401787,40 +402671,40 @@ function parse2() {
|
|
|
401787
402671
|
"-i, --interactive",
|
|
401788
402672
|
"Interactive navigation for pretty-print"
|
|
401789
402673
|
)
|
|
401790
|
-
).addOption(new Option("--html-file [file]", "output html file")).action(
|
|
401791
|
-
|
|
401792
|
-
|
|
401793
|
-
|
|
401794
|
-
|
|
401795
|
-
|
|
401796
|
-
|
|
401797
|
-
|
|
401798
|
-
|
|
401799
|
-
|
|
401800
|
-
|
|
401801
|
-
|
|
401802
|
-
|
|
401803
|
-
|
|
401804
|
-
|
|
402674
|
+
).addOption(new Option("--html-file [file]", "output html file")).action(
|
|
402675
|
+
async (opts) => {
|
|
402676
|
+
import_deploy_tools_lib5.container.auditor = new import_deploy_tools_lib5.Auditor(opts);
|
|
402677
|
+
await import_deploy_tools_lib5.container.auditor.setup();
|
|
402678
|
+
import_deploy_tools_lib5.container.metaRepo = new import_deploy_tools_lib5.MetaRepo(opts);
|
|
402679
|
+
await import_deploy_tools_lib5.container.metaRepo.setup();
|
|
402680
|
+
import_deploy_tools_lib5.container.addressTree = new import_deploy_tools_lib5.GearboxAddressTree(opts);
|
|
402681
|
+
await import_deploy_tools_lib5.container.addressTree.build();
|
|
402682
|
+
const parser = new import_deploy_tools_lib5.UpdateParser(opts);
|
|
402683
|
+
const result = await parser.parse(opts);
|
|
402684
|
+
if (opts.outFile) {
|
|
402685
|
+
await (0, import_promises.writeFile)(opts.outFile, (0, import_deploy_suite2.json_stringify)(result), "utf-8");
|
|
402686
|
+
}
|
|
402687
|
+
const renderer = getRenderer(opts);
|
|
402688
|
+
return renderer == null ? void 0 : renderer.render(result);
|
|
402689
|
+
}
|
|
402690
|
+
);
|
|
401805
402691
|
}
|
|
401806
402692
|
|
|
401807
402693
|
// src/commands/print-safe-tx.ts
|
|
401808
402694
|
var import_deploy_suite3 = __toESM(require_dist3());
|
|
402695
|
+
var import_deploy_tools_lib6 = __toESM(require_dist12());
|
|
402696
|
+
var Printer = class extends import_deploy_tools_lib6.ProviderBase {
|
|
402697
|
+
};
|
|
401809
402698
|
function printSafeTx() {
|
|
401810
|
-
return new Command().name("print-safe-tx").description("Gets transaction from Safe API and prints json").addArgument(new Argument("<safeTxHash>", "Safe tx hash")).action(
|
|
401811
|
-
|
|
401812
|
-
|
|
401813
|
-
|
|
401814
|
-
|
|
401815
|
-
);
|
|
401816
|
-
const json = await resp.json();
|
|
401817
|
-
console.log((0, import_deploy_suite3.json_stringify)(json));
|
|
401818
|
-
}
|
|
401819
|
-
);
|
|
402699
|
+
return new Command().name("print-safe-tx").description("Gets transaction from Safe API and prints json").addArgument(new Argument("<safeTxHash>", "Safe tx hash")).action(async (safeTxHash, options) => {
|
|
402700
|
+
const printer = new Printer(options.rpcUrl);
|
|
402701
|
+
const txs = await printer.getSafeTransactions([safeTxHash]);
|
|
402702
|
+
console.log((0, import_deploy_suite3.json_stringify)(txs[0]));
|
|
402703
|
+
});
|
|
401820
402704
|
}
|
|
401821
402705
|
|
|
401822
402706
|
// src/commands/update-epoch.ts
|
|
401823
|
-
var
|
|
402707
|
+
var import_deploy_tools_lib7 = __toESM(require_dist12());
|
|
401824
402708
|
var import_deploy_tools_types = __toESM(require_dist5());
|
|
401825
402709
|
|
|
401826
402710
|
// ../../node_modules/ethers/lib.esm/_version.js
|
|
@@ -418355,7 +419239,7 @@ function updateEpoch() {
|
|
|
418355
419239
|
const prefix = `[Pool ${p.name} (${p.addr})]`;
|
|
418356
419240
|
try {
|
|
418357
419241
|
console.log(`${prefix} impersonating gauge ${p.gauge}`);
|
|
418358
|
-
const impGauge = await (0,
|
|
419242
|
+
const impGauge = await (0, import_deploy_tools_lib7.impersonate)(provider, p.gauge);
|
|
418359
419243
|
const pqk = import_deploy_tools_types.IPoolQuotaKeeperV3__factory.connect(
|
|
418360
419244
|
p.poolQuotaKeeper,
|
|
418361
419245
|
impGauge
|
|
@@ -418367,7 +419251,7 @@ function updateEpoch() {
|
|
|
418367
419251
|
throw new Error("status is not 1");
|
|
418368
419252
|
}
|
|
418369
419253
|
console.log(`${prefix} updated rates`);
|
|
418370
|
-
await (0,
|
|
419254
|
+
await (0, import_deploy_tools_lib7.stopImpersonate)(provider, p.gauge);
|
|
418371
419255
|
} catch (e) {
|
|
418372
419256
|
throw new Error(`${prefix} failed to update rates: ${e}`);
|
|
418373
419257
|
}
|
|
@@ -418380,7 +419264,7 @@ function updateEpoch() {
|
|
|
418380
419264
|
// src/commands/verify-etherscan.ts
|
|
418381
419265
|
var import_promises2 = require("fs/promises");
|
|
418382
419266
|
var import_deploy_suite4 = __toESM(require_dist3());
|
|
418383
|
-
var
|
|
419267
|
+
var import_deploy_tools_lib8 = __toESM(require_dist12());
|
|
418384
419268
|
function verifyEtherscan() {
|
|
418385
419269
|
return new Command().name("verify-etherscan").description(
|
|
418386
419270
|
"performs bulk verification of gearbox contracts using etherscan"
|
|
@@ -418402,24 +419286,30 @@ function verifyEtherscan() {
|
|
|
418402
419286
|
if (!addresses.length) {
|
|
418403
419287
|
throw new Error("no addresses provided");
|
|
418404
419288
|
}
|
|
418405
|
-
await new
|
|
419289
|
+
await new import_deploy_tools_lib8.EtherscanVerifier(opts).verifyMany(addresses);
|
|
418406
419290
|
});
|
|
418407
419291
|
}
|
|
418408
419292
|
|
|
418409
419293
|
// src/commands/warp-time.ts
|
|
418410
419294
|
function warpTime() {
|
|
418411
|
-
return new Command().name("warp-time").description("Sets next block timestamp on anvil").addArgument(
|
|
419295
|
+
return new Command().name("warp-time").description("Sets next block timestamp on anvil").addArgument(
|
|
419296
|
+
new Argument("<timestamp>", "Timestamp. Can accept 'now' value")
|
|
419297
|
+
).addOption(
|
|
418412
419298
|
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
|
|
418413
419299
|
).action(
|
|
418414
419300
|
async (timestampStr, options) => {
|
|
418415
419301
|
const { anvilUrl } = options;
|
|
418416
|
-
|
|
419302
|
+
let timestamp = (/* @__PURE__ */ new Date()).getTime() / 1e3;
|
|
419303
|
+
if (timestampStr !== "now") {
|
|
419304
|
+
timestamp = parseInt(timestampStr, 10);
|
|
419305
|
+
}
|
|
418417
419306
|
if (!timestamp || isNaN(timestamp) || timestamp <= 0) {
|
|
418418
419307
|
throw new Error(`invalid timestamp '${timestampStr}'`);
|
|
418419
419308
|
}
|
|
418420
419309
|
const hex = toQuantity(timestamp);
|
|
419310
|
+
const date = new Date(timestamp * 1e3);
|
|
418421
419311
|
console.log(
|
|
418422
|
-
`attempting timewarp on ${anvilUrl} to ${timestamp} (${hex})`
|
|
419312
|
+
`attempting timewarp on ${anvilUrl} to ${timestamp} (${date.toUTCString()}) (${hex})`
|
|
418423
419313
|
);
|
|
418424
419314
|
const provider = new JsonRpcProvider(anvilUrl, void 0, {
|
|
418425
419315
|
staticNetwork: true,
|
|
@@ -418433,10 +419323,10 @@ function warpTime() {
|
|
|
418433
419323
|
}
|
|
418434
419324
|
|
|
418435
419325
|
// src/commands/zero-lt.ts
|
|
418436
|
-
var
|
|
419326
|
+
var import_deploy_tools_lib9 = __toESM(require_dist12());
|
|
418437
419327
|
function zeroLT() {
|
|
418438
419328
|
return new Command().name("zero-lt").description("sets LTs to zero on credit managers").addOption(RpcURL(true)).action(async (opts) => {
|
|
418439
|
-
const zlt = new
|
|
419329
|
+
const zlt = new import_deploy_tools_lib9.ZeroLT(opts.rpcUrl);
|
|
418440
419330
|
await zlt.setLtZero();
|
|
418441
419331
|
});
|
|
418442
419332
|
}
|
|
@@ -418467,10 +419357,6 @@ program2.commands.forEach((cmd) => {
|
|
|
418467
419357
|
new Option("--out-file [json]", "save output as json").env("OUT_FILE")
|
|
418468
419358
|
).addOption(
|
|
418469
419359
|
new Option("--pretty", "pretty-print output event when saving to json")
|
|
418470
|
-
).addOption(
|
|
418471
|
-
new Option("--multisig <string>", "multisig contract address").default("0xA7D5DDc1b8557914F158076b228AA91eF613f1D5").env("MULTISIG")
|
|
418472
|
-
).addOption(
|
|
418473
|
-
new Option("--safe-api <string>", "safe api endpoint").default("https://safe-transaction-mainnet.safe.global").env("SAFE_API")
|
|
418474
419360
|
).addOption(
|
|
418475
419361
|
new Option("--etherscan-api-key [key]", "etherscan api key").env(
|
|
418476
419362
|
"ETHERSCAN_API_KEY"
|