@venusprotocol/isolated-pools 3.1.0-dev.3 → 3.1.0-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) 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/sepolia/MockPT-weETH-26DEC2024.json +458 -0
  34. package/deployments/sepolia/VToken_vPT-weETH-26DEC2024_LiquidStakedETH.json +257 -0
  35. package/deployments/sepolia/solcInputs/9b1ce7dc3f6775f0734e7fb93d5ebf4f.json +394 -0
  36. package/deployments/sepolia.json +383 -0
  37. package/deployments/sepolia_addresses.json +2 -0
  38. package/dist/deployments/sepolia.json +383 -0
  39. package/dist/hardhat.config.js +31 -0
  40. package/dist/helpers/deploymentConfig.d.ts +10 -0
  41. package/dist/helpers/deploymentConfig.js +188 -2
  42. package/dist/helpers/deploymentUtils.js +1 -2
  43. package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
  44. package/dist/typechain/factories/IVToken__factory.js +201 -1
  45. package/package.json +2 -2
  46. package/typechain/IVToken.d.ts +341 -4
  47. package/typechain/factories/IVToken__factory.ts +201 -1
@@ -6091,6 +6091,315 @@
6091
6091
  }
6092
6092
  ]
6093
6093
  },
6094
+ "MockPT-weETH-26DEC2024": {
6095
+ "address": "0x56107201d3e4b7Db92dEa0Edb9e0454346AEb8B5",
6096
+ "abi": [
6097
+ {
6098
+ "inputs": [
6099
+ {
6100
+ "internalType": "string",
6101
+ "name": "name_",
6102
+ "type": "string"
6103
+ },
6104
+ {
6105
+ "internalType": "string",
6106
+ "name": "symbol_",
6107
+ "type": "string"
6108
+ },
6109
+ {
6110
+ "internalType": "uint8",
6111
+ "name": "decimals_",
6112
+ "type": "uint8"
6113
+ }
6114
+ ],
6115
+ "stateMutability": "nonpayable",
6116
+ "type": "constructor"
6117
+ },
6118
+ {
6119
+ "anonymous": false,
6120
+ "inputs": [
6121
+ {
6122
+ "indexed": true,
6123
+ "internalType": "address",
6124
+ "name": "owner",
6125
+ "type": "address"
6126
+ },
6127
+ {
6128
+ "indexed": true,
6129
+ "internalType": "address",
6130
+ "name": "spender",
6131
+ "type": "address"
6132
+ },
6133
+ {
6134
+ "indexed": false,
6135
+ "internalType": "uint256",
6136
+ "name": "value",
6137
+ "type": "uint256"
6138
+ }
6139
+ ],
6140
+ "name": "Approval",
6141
+ "type": "event"
6142
+ },
6143
+ {
6144
+ "anonymous": false,
6145
+ "inputs": [
6146
+ {
6147
+ "indexed": true,
6148
+ "internalType": "address",
6149
+ "name": "from",
6150
+ "type": "address"
6151
+ },
6152
+ {
6153
+ "indexed": true,
6154
+ "internalType": "address",
6155
+ "name": "to",
6156
+ "type": "address"
6157
+ },
6158
+ {
6159
+ "indexed": false,
6160
+ "internalType": "uint256",
6161
+ "name": "value",
6162
+ "type": "uint256"
6163
+ }
6164
+ ],
6165
+ "name": "Transfer",
6166
+ "type": "event"
6167
+ },
6168
+ {
6169
+ "inputs": [
6170
+ {
6171
+ "internalType": "address",
6172
+ "name": "owner",
6173
+ "type": "address"
6174
+ },
6175
+ {
6176
+ "internalType": "address",
6177
+ "name": "spender",
6178
+ "type": "address"
6179
+ }
6180
+ ],
6181
+ "name": "allowance",
6182
+ "outputs": [
6183
+ {
6184
+ "internalType": "uint256",
6185
+ "name": "",
6186
+ "type": "uint256"
6187
+ }
6188
+ ],
6189
+ "stateMutability": "view",
6190
+ "type": "function"
6191
+ },
6192
+ {
6193
+ "inputs": [
6194
+ {
6195
+ "internalType": "address",
6196
+ "name": "spender",
6197
+ "type": "address"
6198
+ },
6199
+ {
6200
+ "internalType": "uint256",
6201
+ "name": "amount",
6202
+ "type": "uint256"
6203
+ }
6204
+ ],
6205
+ "name": "approve",
6206
+ "outputs": [
6207
+ {
6208
+ "internalType": "bool",
6209
+ "name": "",
6210
+ "type": "bool"
6211
+ }
6212
+ ],
6213
+ "stateMutability": "nonpayable",
6214
+ "type": "function"
6215
+ },
6216
+ {
6217
+ "inputs": [
6218
+ {
6219
+ "internalType": "address",
6220
+ "name": "account",
6221
+ "type": "address"
6222
+ }
6223
+ ],
6224
+ "name": "balanceOf",
6225
+ "outputs": [
6226
+ {
6227
+ "internalType": "uint256",
6228
+ "name": "",
6229
+ "type": "uint256"
6230
+ }
6231
+ ],
6232
+ "stateMutability": "view",
6233
+ "type": "function"
6234
+ },
6235
+ {
6236
+ "inputs": [],
6237
+ "name": "decimals",
6238
+ "outputs": [
6239
+ {
6240
+ "internalType": "uint8",
6241
+ "name": "",
6242
+ "type": "uint8"
6243
+ }
6244
+ ],
6245
+ "stateMutability": "view",
6246
+ "type": "function"
6247
+ },
6248
+ {
6249
+ "inputs": [
6250
+ {
6251
+ "internalType": "address",
6252
+ "name": "spender",
6253
+ "type": "address"
6254
+ },
6255
+ {
6256
+ "internalType": "uint256",
6257
+ "name": "subtractedValue",
6258
+ "type": "uint256"
6259
+ }
6260
+ ],
6261
+ "name": "decreaseAllowance",
6262
+ "outputs": [
6263
+ {
6264
+ "internalType": "bool",
6265
+ "name": "",
6266
+ "type": "bool"
6267
+ }
6268
+ ],
6269
+ "stateMutability": "nonpayable",
6270
+ "type": "function"
6271
+ },
6272
+ {
6273
+ "inputs": [
6274
+ {
6275
+ "internalType": "uint256",
6276
+ "name": "amount",
6277
+ "type": "uint256"
6278
+ }
6279
+ ],
6280
+ "name": "faucet",
6281
+ "outputs": [],
6282
+ "stateMutability": "nonpayable",
6283
+ "type": "function"
6284
+ },
6285
+ {
6286
+ "inputs": [
6287
+ {
6288
+ "internalType": "address",
6289
+ "name": "spender",
6290
+ "type": "address"
6291
+ },
6292
+ {
6293
+ "internalType": "uint256",
6294
+ "name": "addedValue",
6295
+ "type": "uint256"
6296
+ }
6297
+ ],
6298
+ "name": "increaseAllowance",
6299
+ "outputs": [
6300
+ {
6301
+ "internalType": "bool",
6302
+ "name": "",
6303
+ "type": "bool"
6304
+ }
6305
+ ],
6306
+ "stateMutability": "nonpayable",
6307
+ "type": "function"
6308
+ },
6309
+ {
6310
+ "inputs": [],
6311
+ "name": "name",
6312
+ "outputs": [
6313
+ {
6314
+ "internalType": "string",
6315
+ "name": "",
6316
+ "type": "string"
6317
+ }
6318
+ ],
6319
+ "stateMutability": "view",
6320
+ "type": "function"
6321
+ },
6322
+ {
6323
+ "inputs": [],
6324
+ "name": "symbol",
6325
+ "outputs": [
6326
+ {
6327
+ "internalType": "string",
6328
+ "name": "",
6329
+ "type": "string"
6330
+ }
6331
+ ],
6332
+ "stateMutability": "view",
6333
+ "type": "function"
6334
+ },
6335
+ {
6336
+ "inputs": [],
6337
+ "name": "totalSupply",
6338
+ "outputs": [
6339
+ {
6340
+ "internalType": "uint256",
6341
+ "name": "",
6342
+ "type": "uint256"
6343
+ }
6344
+ ],
6345
+ "stateMutability": "view",
6346
+ "type": "function"
6347
+ },
6348
+ {
6349
+ "inputs": [
6350
+ {
6351
+ "internalType": "address",
6352
+ "name": "to",
6353
+ "type": "address"
6354
+ },
6355
+ {
6356
+ "internalType": "uint256",
6357
+ "name": "amount",
6358
+ "type": "uint256"
6359
+ }
6360
+ ],
6361
+ "name": "transfer",
6362
+ "outputs": [
6363
+ {
6364
+ "internalType": "bool",
6365
+ "name": "",
6366
+ "type": "bool"
6367
+ }
6368
+ ],
6369
+ "stateMutability": "nonpayable",
6370
+ "type": "function"
6371
+ },
6372
+ {
6373
+ "inputs": [
6374
+ {
6375
+ "internalType": "address",
6376
+ "name": "from",
6377
+ "type": "address"
6378
+ },
6379
+ {
6380
+ "internalType": "address",
6381
+ "name": "to",
6382
+ "type": "address"
6383
+ },
6384
+ {
6385
+ "internalType": "uint256",
6386
+ "name": "amount",
6387
+ "type": "uint256"
6388
+ }
6389
+ ],
6390
+ "name": "transferFrom",
6391
+ "outputs": [
6392
+ {
6393
+ "internalType": "bool",
6394
+ "name": "",
6395
+ "type": "bool"
6396
+ }
6397
+ ],
6398
+ "stateMutability": "nonpayable",
6399
+ "type": "function"
6400
+ }
6401
+ ]
6402
+ },
6094
6403
  "MockUSDC": {
6095
6404
  "address": "0x772d68929655ce7234C8C94256526ddA66Ef641E",
6096
6405
  "abi": [
@@ -23756,6 +24065,80 @@
23756
24065
  }
23757
24066
  ]
23758
24067
  },
24068
+ "VToken_vPT-weETH-26DEC2024_LiquidStakedETH": {
24069
+ "address": "0x3AF2bE7AbEF0f840b196D99d79F4B803a5dB14a1",
24070
+ "abi": [
24071
+ {
24072
+ "inputs": [
24073
+ {
24074
+ "internalType": "address",
24075
+ "name": "beacon",
24076
+ "type": "address"
24077
+ },
24078
+ {
24079
+ "internalType": "bytes",
24080
+ "name": "data",
24081
+ "type": "bytes"
24082
+ }
24083
+ ],
24084
+ "stateMutability": "payable",
24085
+ "type": "constructor"
24086
+ },
24087
+ {
24088
+ "anonymous": false,
24089
+ "inputs": [
24090
+ {
24091
+ "indexed": false,
24092
+ "internalType": "address",
24093
+ "name": "previousAdmin",
24094
+ "type": "address"
24095
+ },
24096
+ {
24097
+ "indexed": false,
24098
+ "internalType": "address",
24099
+ "name": "newAdmin",
24100
+ "type": "address"
24101
+ }
24102
+ ],
24103
+ "name": "AdminChanged",
24104
+ "type": "event"
24105
+ },
24106
+ {
24107
+ "anonymous": false,
24108
+ "inputs": [
24109
+ {
24110
+ "indexed": true,
24111
+ "internalType": "address",
24112
+ "name": "beacon",
24113
+ "type": "address"
24114
+ }
24115
+ ],
24116
+ "name": "BeaconUpgraded",
24117
+ "type": "event"
24118
+ },
24119
+ {
24120
+ "anonymous": false,
24121
+ "inputs": [
24122
+ {
24123
+ "indexed": true,
24124
+ "internalType": "address",
24125
+ "name": "implementation",
24126
+ "type": "address"
24127
+ }
24128
+ ],
24129
+ "name": "Upgraded",
24130
+ "type": "event"
24131
+ },
24132
+ {
24133
+ "stateMutability": "payable",
24134
+ "type": "fallback"
24135
+ },
24136
+ {
24137
+ "stateMutability": "payable",
24138
+ "type": "receive"
24139
+ }
24140
+ ]
24141
+ },
23759
24142
  "VToken_vUSDC_Core": {
23760
24143
  "address": "0xF87bceab8DD37489015B426bA931e08A4D787616",
23761
24144
  "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>;