@venusprotocol/isolated-pools 3.1.0-dev.4 → 3.1.0-dev.6

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.
Files changed (53) hide show
  1. package/deployments/arbitrumone.json +5 -0
  2. package/deployments/arbitrumone_addresses.json +5 -0
  3. package/deployments/arbitrumsepolia/.chainId +1 -0
  4. package/deployments/arbitrumsepolia/ComptrollerBeacon.json +206 -0
  5. package/deployments/arbitrumsepolia/ComptrollerImpl.json +3227 -0
  6. package/deployments/arbitrumsepolia/Comptroller_Core.json +187 -0
  7. package/deployments/arbitrumsepolia/DefaultProxyAdmin.json +257 -0
  8. package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope750bps_jump25000bps_kink8000bps.json +608 -0
  9. package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope900bps_jump30000bps_kink4500bps.json +608 -0
  10. package/deployments/arbitrumsepolia/MockARB.json +458 -0
  11. package/deployments/arbitrumsepolia/MockUSDC.json +458 -0
  12. package/deployments/arbitrumsepolia/MockUSDT.json +458 -0
  13. package/deployments/arbitrumsepolia/MockWBTC.json +458 -0
  14. package/deployments/arbitrumsepolia/PoolLens.json +1441 -0
  15. package/deployments/arbitrumsepolia/PoolRegistry.json +945 -0
  16. package/deployments/arbitrumsepolia/PoolRegistry_Implementation.json +1194 -0
  17. package/deployments/arbitrumsepolia/PoolRegistry_Proxy.json +267 -0
  18. package/deployments/arbitrumsepolia/VTokenBeacon.json +206 -0
  19. package/deployments/arbitrumsepolia/VTokenImpl.json +3269 -0
  20. package/deployments/arbitrumsepolia/VToken_vARB_Core.json +257 -0
  21. package/deployments/arbitrumsepolia/VToken_vUSDC_Core.json +257 -0
  22. package/deployments/arbitrumsepolia/VToken_vUSDT_Core.json +257 -0
  23. package/deployments/arbitrumsepolia/VToken_vWBTC_Core.json +257 -0
  24. package/deployments/arbitrumsepolia/VToken_vWETH_Core.json +257 -0
  25. package/deployments/arbitrumsepolia/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
  26. package/deployments/arbitrumsepolia/solcInputs/556e7926402a9f7d641047851d56b7a7.json +181 -0
  27. package/deployments/arbitrumsepolia/solcInputs/59b8275146729f23ba56d7f2829ce867.json +300 -0
  28. package/deployments/arbitrumsepolia/solcInputs/944a1fbb33c889bd3a2ad5ce1a25132e.json +253 -0
  29. package/deployments/arbitrumsepolia/solcInputs/ab048682e1128bf58892ce9ad2539f59.json +252 -0
  30. package/deployments/arbitrumsepolia/solcInputs/de43f7e3d0d5d3c7b52604521edc0d0b.json +397 -0
  31. package/deployments/arbitrumsepolia.json +9736 -0
  32. package/deployments/arbitrumsepolia_addresses.json +27 -0
  33. package/deployments/ethereum/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink8000bps.json +27 -27
  34. package/deployments/ethereum/VToken_vTUSD_Core.json +257 -0
  35. package/deployments/ethereum/solcInputs/9b1ce7dc3f6775f0734e7fb93d5ebf4f.json +394 -0
  36. package/deployments/ethereum.json +75 -1
  37. package/deployments/ethereum_addresses.json +2 -1
  38. package/deployments/sepolia/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink8000bps.json +27 -27
  39. package/deployments/sepolia/MockTUSD.json +458 -0
  40. package/deployments/sepolia/VToken_vTUSD_Core.json +257 -0
  41. package/deployments/sepolia.json +384 -1
  42. package/deployments/sepolia_addresses.json +3 -1
  43. package/dist/deployments/ethereum.json +75 -1
  44. package/dist/deployments/sepolia.json +384 -1
  45. package/dist/hardhat.config.js +31 -0
  46. package/dist/helpers/deploymentConfig.d.ts +10 -0
  47. package/dist/helpers/deploymentConfig.js +213 -2
  48. package/dist/helpers/deploymentUtils.js +1 -2
  49. package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
  50. package/dist/typechain/factories/IVToken__factory.js +1 -201
  51. package/package.json +2 -2
  52. package/typechain/IVToken.d.ts +4 -341
  53. package/typechain/factories/IVToken__factory.ts +1 -201
@@ -2603,7 +2603,7 @@
2603
2603
  ]
2604
2604
  },
2605
2605
  "JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink8000bps": {
2606
- "address": "0xB778B803a72Af7ac9Ac8277bA87B405cE91741B9",
2606
+ "address": "0xfBa27be0766acb9a60d2cede3d4293193f3b749d",
2607
2607
  "abi": [
2608
2608
  {
2609
2609
  "inputs": [
@@ -6400,6 +6400,315 @@
6400
6400
  }
6401
6401
  ]
6402
6402
  },
6403
+ "MockTUSD": {
6404
+ "address": "0x78b292069da1661b7C12B6E766cB506C220b987a",
6405
+ "abi": [
6406
+ {
6407
+ "inputs": [
6408
+ {
6409
+ "internalType": "string",
6410
+ "name": "name_",
6411
+ "type": "string"
6412
+ },
6413
+ {
6414
+ "internalType": "string",
6415
+ "name": "symbol_",
6416
+ "type": "string"
6417
+ },
6418
+ {
6419
+ "internalType": "uint8",
6420
+ "name": "decimals_",
6421
+ "type": "uint8"
6422
+ }
6423
+ ],
6424
+ "stateMutability": "nonpayable",
6425
+ "type": "constructor"
6426
+ },
6427
+ {
6428
+ "anonymous": false,
6429
+ "inputs": [
6430
+ {
6431
+ "indexed": true,
6432
+ "internalType": "address",
6433
+ "name": "owner",
6434
+ "type": "address"
6435
+ },
6436
+ {
6437
+ "indexed": true,
6438
+ "internalType": "address",
6439
+ "name": "spender",
6440
+ "type": "address"
6441
+ },
6442
+ {
6443
+ "indexed": false,
6444
+ "internalType": "uint256",
6445
+ "name": "value",
6446
+ "type": "uint256"
6447
+ }
6448
+ ],
6449
+ "name": "Approval",
6450
+ "type": "event"
6451
+ },
6452
+ {
6453
+ "anonymous": false,
6454
+ "inputs": [
6455
+ {
6456
+ "indexed": true,
6457
+ "internalType": "address",
6458
+ "name": "from",
6459
+ "type": "address"
6460
+ },
6461
+ {
6462
+ "indexed": true,
6463
+ "internalType": "address",
6464
+ "name": "to",
6465
+ "type": "address"
6466
+ },
6467
+ {
6468
+ "indexed": false,
6469
+ "internalType": "uint256",
6470
+ "name": "value",
6471
+ "type": "uint256"
6472
+ }
6473
+ ],
6474
+ "name": "Transfer",
6475
+ "type": "event"
6476
+ },
6477
+ {
6478
+ "inputs": [
6479
+ {
6480
+ "internalType": "address",
6481
+ "name": "owner",
6482
+ "type": "address"
6483
+ },
6484
+ {
6485
+ "internalType": "address",
6486
+ "name": "spender",
6487
+ "type": "address"
6488
+ }
6489
+ ],
6490
+ "name": "allowance",
6491
+ "outputs": [
6492
+ {
6493
+ "internalType": "uint256",
6494
+ "name": "",
6495
+ "type": "uint256"
6496
+ }
6497
+ ],
6498
+ "stateMutability": "view",
6499
+ "type": "function"
6500
+ },
6501
+ {
6502
+ "inputs": [
6503
+ {
6504
+ "internalType": "address",
6505
+ "name": "spender",
6506
+ "type": "address"
6507
+ },
6508
+ {
6509
+ "internalType": "uint256",
6510
+ "name": "amount",
6511
+ "type": "uint256"
6512
+ }
6513
+ ],
6514
+ "name": "approve",
6515
+ "outputs": [
6516
+ {
6517
+ "internalType": "bool",
6518
+ "name": "",
6519
+ "type": "bool"
6520
+ }
6521
+ ],
6522
+ "stateMutability": "nonpayable",
6523
+ "type": "function"
6524
+ },
6525
+ {
6526
+ "inputs": [
6527
+ {
6528
+ "internalType": "address",
6529
+ "name": "account",
6530
+ "type": "address"
6531
+ }
6532
+ ],
6533
+ "name": "balanceOf",
6534
+ "outputs": [
6535
+ {
6536
+ "internalType": "uint256",
6537
+ "name": "",
6538
+ "type": "uint256"
6539
+ }
6540
+ ],
6541
+ "stateMutability": "view",
6542
+ "type": "function"
6543
+ },
6544
+ {
6545
+ "inputs": [],
6546
+ "name": "decimals",
6547
+ "outputs": [
6548
+ {
6549
+ "internalType": "uint8",
6550
+ "name": "",
6551
+ "type": "uint8"
6552
+ }
6553
+ ],
6554
+ "stateMutability": "view",
6555
+ "type": "function"
6556
+ },
6557
+ {
6558
+ "inputs": [
6559
+ {
6560
+ "internalType": "address",
6561
+ "name": "spender",
6562
+ "type": "address"
6563
+ },
6564
+ {
6565
+ "internalType": "uint256",
6566
+ "name": "subtractedValue",
6567
+ "type": "uint256"
6568
+ }
6569
+ ],
6570
+ "name": "decreaseAllowance",
6571
+ "outputs": [
6572
+ {
6573
+ "internalType": "bool",
6574
+ "name": "",
6575
+ "type": "bool"
6576
+ }
6577
+ ],
6578
+ "stateMutability": "nonpayable",
6579
+ "type": "function"
6580
+ },
6581
+ {
6582
+ "inputs": [
6583
+ {
6584
+ "internalType": "uint256",
6585
+ "name": "amount",
6586
+ "type": "uint256"
6587
+ }
6588
+ ],
6589
+ "name": "faucet",
6590
+ "outputs": [],
6591
+ "stateMutability": "nonpayable",
6592
+ "type": "function"
6593
+ },
6594
+ {
6595
+ "inputs": [
6596
+ {
6597
+ "internalType": "address",
6598
+ "name": "spender",
6599
+ "type": "address"
6600
+ },
6601
+ {
6602
+ "internalType": "uint256",
6603
+ "name": "addedValue",
6604
+ "type": "uint256"
6605
+ }
6606
+ ],
6607
+ "name": "increaseAllowance",
6608
+ "outputs": [
6609
+ {
6610
+ "internalType": "bool",
6611
+ "name": "",
6612
+ "type": "bool"
6613
+ }
6614
+ ],
6615
+ "stateMutability": "nonpayable",
6616
+ "type": "function"
6617
+ },
6618
+ {
6619
+ "inputs": [],
6620
+ "name": "name",
6621
+ "outputs": [
6622
+ {
6623
+ "internalType": "string",
6624
+ "name": "",
6625
+ "type": "string"
6626
+ }
6627
+ ],
6628
+ "stateMutability": "view",
6629
+ "type": "function"
6630
+ },
6631
+ {
6632
+ "inputs": [],
6633
+ "name": "symbol",
6634
+ "outputs": [
6635
+ {
6636
+ "internalType": "string",
6637
+ "name": "",
6638
+ "type": "string"
6639
+ }
6640
+ ],
6641
+ "stateMutability": "view",
6642
+ "type": "function"
6643
+ },
6644
+ {
6645
+ "inputs": [],
6646
+ "name": "totalSupply",
6647
+ "outputs": [
6648
+ {
6649
+ "internalType": "uint256",
6650
+ "name": "",
6651
+ "type": "uint256"
6652
+ }
6653
+ ],
6654
+ "stateMutability": "view",
6655
+ "type": "function"
6656
+ },
6657
+ {
6658
+ "inputs": [
6659
+ {
6660
+ "internalType": "address",
6661
+ "name": "to",
6662
+ "type": "address"
6663
+ },
6664
+ {
6665
+ "internalType": "uint256",
6666
+ "name": "amount",
6667
+ "type": "uint256"
6668
+ }
6669
+ ],
6670
+ "name": "transfer",
6671
+ "outputs": [
6672
+ {
6673
+ "internalType": "bool",
6674
+ "name": "",
6675
+ "type": "bool"
6676
+ }
6677
+ ],
6678
+ "stateMutability": "nonpayable",
6679
+ "type": "function"
6680
+ },
6681
+ {
6682
+ "inputs": [
6683
+ {
6684
+ "internalType": "address",
6685
+ "name": "from",
6686
+ "type": "address"
6687
+ },
6688
+ {
6689
+ "internalType": "address",
6690
+ "name": "to",
6691
+ "type": "address"
6692
+ },
6693
+ {
6694
+ "internalType": "uint256",
6695
+ "name": "amount",
6696
+ "type": "uint256"
6697
+ }
6698
+ ],
6699
+ "name": "transferFrom",
6700
+ "outputs": [
6701
+ {
6702
+ "internalType": "bool",
6703
+ "name": "",
6704
+ "type": "bool"
6705
+ }
6706
+ ],
6707
+ "stateMutability": "nonpayable",
6708
+ "type": "function"
6709
+ }
6710
+ ]
6711
+ },
6403
6712
  "MockUSDC": {
6404
6713
  "address": "0x772d68929655ce7234C8C94256526ddA66Ef641E",
6405
6714
  "abi": [
@@ -24139,6 +24448,80 @@
24139
24448
  }
24140
24449
  ]
24141
24450
  },
24451
+ "VToken_vTUSD_Core": {
24452
+ "address": "0xE23A1fC1545F1b072308c846a38447b23d322Ee2",
24453
+ "abi": [
24454
+ {
24455
+ "inputs": [
24456
+ {
24457
+ "internalType": "address",
24458
+ "name": "beacon",
24459
+ "type": "address"
24460
+ },
24461
+ {
24462
+ "internalType": "bytes",
24463
+ "name": "data",
24464
+ "type": "bytes"
24465
+ }
24466
+ ],
24467
+ "stateMutability": "payable",
24468
+ "type": "constructor"
24469
+ },
24470
+ {
24471
+ "anonymous": false,
24472
+ "inputs": [
24473
+ {
24474
+ "indexed": false,
24475
+ "internalType": "address",
24476
+ "name": "previousAdmin",
24477
+ "type": "address"
24478
+ },
24479
+ {
24480
+ "indexed": false,
24481
+ "internalType": "address",
24482
+ "name": "newAdmin",
24483
+ "type": "address"
24484
+ }
24485
+ ],
24486
+ "name": "AdminChanged",
24487
+ "type": "event"
24488
+ },
24489
+ {
24490
+ "anonymous": false,
24491
+ "inputs": [
24492
+ {
24493
+ "indexed": true,
24494
+ "internalType": "address",
24495
+ "name": "beacon",
24496
+ "type": "address"
24497
+ }
24498
+ ],
24499
+ "name": "BeaconUpgraded",
24500
+ "type": "event"
24501
+ },
24502
+ {
24503
+ "anonymous": false,
24504
+ "inputs": [
24505
+ {
24506
+ "indexed": true,
24507
+ "internalType": "address",
24508
+ "name": "implementation",
24509
+ "type": "address"
24510
+ }
24511
+ ],
24512
+ "name": "Upgraded",
24513
+ "type": "event"
24514
+ },
24515
+ {
24516
+ "stateMutability": "payable",
24517
+ "type": "fallback"
24518
+ },
24519
+ {
24520
+ "stateMutability": "payable",
24521
+ "type": "receive"
24522
+ }
24523
+ ]
24524
+ },
24142
24525
  "VToken_vUSDC_Core": {
24143
24526
  "address": "0xF87bceab8DD37489015B426bA931e08A4D787616",
24144
24527
  "abi": [
@@ -64,6 +64,7 @@ const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
64
64
  "node_modules/@venusprotocol/venus-protocol/deployments/bscmainnet",
65
65
  ],
66
66
  opbnbmainnet: ["node_modules/@venusprotocol/oracle/deployments/opbnbmainnet"],
67
+ arbitrumsepolia: ["node_modules/@venusprotocol/protocol-reserve/deployments/arbitrumsepolia"],
67
68
  },
68
69
  };
69
70
  }
@@ -249,6 +250,18 @@ const config = {
249
250
  live: true,
250
251
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
251
252
  },
253
+ arbitrumsepolia: {
254
+ url: process.env.ARCHIVE_NODE_arbitrumsepolia || "https://sepolia-rollup.arbitrum.io/rpc",
255
+ chainId: 421614,
256
+ live: true,
257
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
258
+ },
259
+ arbitrumone: {
260
+ url: process.env.ARCHIVE_NODE_arbitrumone || "https://arb1.arbitrum.io/rpc",
261
+ chainId: 42161,
262
+ live: true,
263
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
264
+ },
252
265
  },
253
266
  gasReporter: {
254
267
  enabled: process.env.REPORT_GAS !== undefined,
@@ -312,6 +325,22 @@ const config = {
312
325
  browserURL: "https://etherscan.io",
313
326
  },
314
327
  },
328
+ {
329
+ network: "arbitrumsepolia",
330
+ chainId: 421614,
331
+ urls: {
332
+ apiURL: `https://api-sepolia.arbiscan.io/api`,
333
+ browserURL: "https://sepolia.arbiscan.io/",
334
+ },
335
+ },
336
+ {
337
+ network: "arbitrumone",
338
+ chainId: 42161,
339
+ urls: {
340
+ apiURL: `https://api.arbiscan.io/api/`,
341
+ browserURL: "https://arbiscan.io/",
342
+ },
343
+ },
315
344
  ],
316
345
  apiKey: {
317
346
  bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
@@ -320,6 +349,8 @@ const config = {
320
349
  sepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
321
350
  opbnbmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
322
351
  opbnbtestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
352
+ arbitrumone: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
353
+ arbitrumsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
323
354
  },
324
355
  },
325
356
  paths: {
@@ -8,6 +8,7 @@ export type NetworkConfig = {
8
8
  ethereum: DeploymentConfig;
9
9
  opbnbtestnet: DeploymentConfig;
10
10
  opbnbmainnet: DeploymentConfig;
11
+ arbitrumsepolia: DeploymentConfig;
11
12
  };
12
13
  export type PreconfiguredAddresses = {
13
14
  [contract: string]: string;
@@ -92,6 +93,8 @@ export declare const SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a1047
92
93
  export declare const ETHEREUM_MULTISIG = "0x285960C5B22fD66A736C7136967A3eB15e93CC67";
93
94
  export declare const OPBNBTESTNET_MULTISIG = "0xb15f6EfEbC276A3b9805df81b5FB3D50C2A62BDf";
94
95
  export declare const OPBNBMAINNET_MULTISIG = "0xC46796a21a3A9FAB6546aF3434F2eBfFd0604207";
96
+ export declare const ARBITRUM_SEPOLIA_MULTISIG = "0x1426A5Ae009c4443188DA8793751024E358A61C2";
97
+ export declare const ARBITRUM_ONE_MULTISIG = "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0";
95
98
  export declare const preconfiguredAddresses: {
96
99
  hardhat: {
97
100
  VTreasury: string;
@@ -154,6 +157,13 @@ export declare const preconfiguredAddresses: {
154
157
  CriticalTimelock: string;
155
158
  AccessControlManager: string;
156
159
  };
160
+ arbitrumsepolia: {
161
+ VTreasury: string;
162
+ NormalTimelock: string;
163
+ FastTrackTimelock: string;
164
+ CriticalTimelock: string;
165
+ AccessControlManager: string;
166
+ };
157
167
  };
158
168
  export declare const globalConfig: NetworkConfig;
159
169
  export declare function getConfig(networkName: string): Promise<DeploymentConfig>;