@venusprotocol/isolated-pools 4.0.0-dev.2 → 4.0.0-dev.4
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/deployments/unichainsepolia/.chainId +1 -0
- package/deployments/unichainsepolia/ComptrollerBeacon.json +206 -0
- package/deployments/unichainsepolia/ComptrollerImpl.json +3396 -0
- package/deployments/unichainsepolia/Comptroller_Core.json +187 -0
- package/deployments/unichainsepolia/DefaultProxyAdmin.json +200 -0
- package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps.json +608 -0
- package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope350bps_jump25000bps_kink8000bps.json +608 -0
- package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope875bps_jump25000bps_kink8000bps.json +608 -0
- package/deployments/unichainsepolia/MockUSDC.json +458 -0
- package/deployments/unichainsepolia/MockUSDT.json +458 -0
- package/deployments/unichainsepolia/MockcbBTC.json +458 -0
- package/deployments/unichainsepolia/NativeTokenGateway_vWETH_Core.json +599 -0
- package/deployments/unichainsepolia/PoolLens.json +1416 -0
- package/deployments/unichainsepolia/PoolRegistry.json +940 -0
- package/deployments/unichainsepolia/PoolRegistry_Implementation.json +1194 -0
- package/deployments/unichainsepolia/PoolRegistry_Proxy.json +262 -0
- package/deployments/unichainsepolia/VTokenBeacon.json +206 -0
- package/deployments/unichainsepolia/VTokenImpl.json +3269 -0
- package/deployments/unichainsepolia/VToken_vUSDC_Core.json +257 -0
- package/deployments/unichainsepolia/VToken_vUSDT_Core.json +257 -0
- package/deployments/unichainsepolia/VToken_vWETH_Core.json +257 -0
- package/deployments/unichainsepolia/VToken_vcbBTC_Core.json +257 -0
- package/deployments/unichainsepolia/solcInputs/c212fc042711833007fc5b7f861edfce.json +451 -0
- package/deployments/unichainsepolia.json +10133 -0
- package/deployments/unichainsepolia_addresses.json +27 -0
- package/dist/deploy/018-native-token-gateway.js +7 -0
- package/dist/deployments/unichainsepolia.json +10133 -0
- package/dist/hardhat.config.js +20 -0
- package/dist/helpers/deploymentConfig.d.ts +9 -0
- package/dist/helpers/deploymentConfig.js +159 -1
- package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
- package/dist/typechain/factories/IVToken__factory.js +201 -1
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +341 -4
- package/typechain/factories/IVToken__factory.ts +201 -1
package/dist/hardhat.config.js
CHANGED
|
@@ -113,6 +113,11 @@ const getRpcUrl = (networkName) => {
|
|
|
113
113
|
"node_modules/@venusprotocol/protocol-reserve/deployments/basemainnet",
|
|
114
114
|
"node_modules/@venusprotocol/governance-contracts/deployments/basemainnet",
|
|
115
115
|
],
|
|
116
|
+
unichainsepolia: [
|
|
117
|
+
"node_modules/@venusprotocol/oracle/deployments/unichainsepolia",
|
|
118
|
+
"node_modules/@venusprotocol/protocol-reserve/deployments/unichainsepolia",
|
|
119
|
+
"node_modules/@venusprotocol/governance-contracts/deployments/unichainsepolia",
|
|
120
|
+
],
|
|
116
121
|
},
|
|
117
122
|
};
|
|
118
123
|
if (process.env.HARDHAT_FORK_NETWORK) {
|
|
@@ -354,6 +359,12 @@ const config = {
|
|
|
354
359
|
live: true,
|
|
355
360
|
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
356
361
|
},
|
|
362
|
+
unichainsepolia: {
|
|
363
|
+
url: process.env.ARCHIVE_NODE_unichainsepolia || "https://sepolia.unichain.org",
|
|
364
|
+
chainId: 1301,
|
|
365
|
+
live: true,
|
|
366
|
+
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
367
|
+
},
|
|
357
368
|
},
|
|
358
369
|
gasReporter: {
|
|
359
370
|
enabled: process.env.REPORT_GAS !== undefined,
|
|
@@ -465,6 +476,14 @@ const config = {
|
|
|
465
476
|
browserURL: "https://basescan.org/",
|
|
466
477
|
},
|
|
467
478
|
},
|
|
479
|
+
{
|
|
480
|
+
network: "unichainsepolia",
|
|
481
|
+
chainId: 1301,
|
|
482
|
+
urls: {
|
|
483
|
+
apiURL: "https://api-sepolia.uniscan.xyz/api/",
|
|
484
|
+
browserURL: "https://sepolia.uniscan.xyz/",
|
|
485
|
+
},
|
|
486
|
+
},
|
|
468
487
|
],
|
|
469
488
|
apiKey: {
|
|
470
489
|
bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
@@ -479,6 +498,7 @@ const config = {
|
|
|
479
498
|
opmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
480
499
|
basesepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
481
500
|
basemainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
501
|
+
unichainsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
482
502
|
},
|
|
483
503
|
},
|
|
484
504
|
paths: {
|
|
@@ -16,6 +16,7 @@ export type NetworkConfig = {
|
|
|
16
16
|
opmainnet: DeploymentConfig;
|
|
17
17
|
basesepolia: DeploymentConfig;
|
|
18
18
|
basemainnet: DeploymentConfig;
|
|
19
|
+
unichainsepolia: DeploymentConfig;
|
|
19
20
|
};
|
|
20
21
|
export type PreconfiguredAddresses = {
|
|
21
22
|
[contract: string]: string;
|
|
@@ -113,6 +114,7 @@ export declare const OP_SEPOLIA_MULTISIG = "0xd57365EE4E850e881229e2F8Aa405822f2
|
|
|
113
114
|
export declare const OP_MAINNET_MULTISIG = "0x2e94dd14E81999CdBF5deDE31938beD7308354b3";
|
|
114
115
|
export declare const BASE_SEPOLIA_MULTISIG = "0xdf3b635d2b535f906BB02abb22AED71346E36a00";
|
|
115
116
|
export declare const BASE_MAINNET_MULTISIG = "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C";
|
|
117
|
+
export declare const UNICHAIN_SEPOLIA_MULTISIG = "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34";
|
|
116
118
|
export declare const preconfiguredAddresses: {
|
|
117
119
|
hardhat: {
|
|
118
120
|
VTreasury: string;
|
|
@@ -229,6 +231,13 @@ export declare const preconfiguredAddresses: {
|
|
|
229
231
|
CriticalTimelock: string;
|
|
230
232
|
AccessControlManager: string;
|
|
231
233
|
};
|
|
234
|
+
unichainsepolia: {
|
|
235
|
+
VTreasury: string;
|
|
236
|
+
NormalTimelock: string;
|
|
237
|
+
FastTrackTimelock: string;
|
|
238
|
+
CriticalTimelock: string;
|
|
239
|
+
AccessControlManager: string;
|
|
240
|
+
};
|
|
232
241
|
};
|
|
233
242
|
export declare const globalConfig: NetworkConfig;
|
|
234
243
|
export declare function getConfig(networkName: string): Promise<DeploymentConfig>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMaxBorrowRateMantissa = exports.getBidderDeploymentValues = exports.getTokenAddress = exports.getTokenConfig = exports.getConfig = exports.globalConfig = exports.preconfiguredAddresses = exports.BASE_MAINNET_MULTISIG = exports.BASE_SEPOLIA_MULTISIG = exports.OP_MAINNET_MULTISIG = exports.OP_SEPOLIA_MULTISIG = exports.ZKSYNC_MAINNET_MULTISIG = exports.ZKSYNC_SEPOLIA_MULTISIG = exports.ARBITRUM_ONE_MULTISIG = exports.ARBITRUM_SEPOLIA_MULTISIG = exports.OPBNBMAINNET_MULTISIG = exports.OPBNBTESTNET_MULTISIG = exports.ETHEREUM_MULTISIG = exports.SEPOLIA_MULTISIG = exports.blocksPerYear = exports.SECONDS_PER_YEAR = exports.OPBNB_BLOCKS_PER_YEAR = exports.ETH_BLOCKS_PER_YEAR = exports.BSC_BLOCKS_PER_YEAR = exports.InterestRateModels = void 0;
|
|
3
|
+
exports.getMaxBorrowRateMantissa = exports.getBidderDeploymentValues = exports.getTokenAddress = exports.getTokenConfig = exports.getConfig = exports.globalConfig = exports.preconfiguredAddresses = exports.UNICHAIN_SEPOLIA_MULTISIG = exports.BASE_MAINNET_MULTISIG = exports.BASE_SEPOLIA_MULTISIG = exports.OP_MAINNET_MULTISIG = exports.OP_SEPOLIA_MULTISIG = exports.ZKSYNC_MAINNET_MULTISIG = exports.ZKSYNC_SEPOLIA_MULTISIG = exports.ARBITRUM_ONE_MULTISIG = exports.ARBITRUM_SEPOLIA_MULTISIG = exports.OPBNBMAINNET_MULTISIG = exports.OPBNBTESTNET_MULTISIG = exports.ETHEREUM_MULTISIG = exports.SEPOLIA_MULTISIG = exports.blocksPerYear = exports.SECONDS_PER_YEAR = exports.OPBNB_BLOCKS_PER_YEAR = exports.ETH_BLOCKS_PER_YEAR = exports.BSC_BLOCKS_PER_YEAR = exports.InterestRateModels = void 0;
|
|
4
4
|
const arbitrumone_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumone.json");
|
|
5
5
|
const arbitrumsepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumsepolia.json");
|
|
6
6
|
const basemainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/basemainnet.json");
|
|
@@ -53,6 +53,7 @@ exports.blocksPerYear = {
|
|
|
53
53
|
opmainnet: 0,
|
|
54
54
|
basesepolia: 0,
|
|
55
55
|
basemainnet: 0,
|
|
56
|
+
unichainsepolia: 0,
|
|
56
57
|
isTimeBased: 0, // for time based contracts
|
|
57
58
|
};
|
|
58
59
|
exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
|
|
@@ -67,6 +68,7 @@ exports.OP_SEPOLIA_MULTISIG = "0xd57365EE4E850e881229e2F8Aa405822f289e78d";
|
|
|
67
68
|
exports.OP_MAINNET_MULTISIG = "0x2e94dd14E81999CdBF5deDE31938beD7308354b3";
|
|
68
69
|
exports.BASE_SEPOLIA_MULTISIG = "0xdf3b635d2b535f906BB02abb22AED71346E36a00";
|
|
69
70
|
exports.BASE_MAINNET_MULTISIG = "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C";
|
|
71
|
+
exports.UNICHAIN_SEPOLIA_MULTISIG = "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34";
|
|
70
72
|
const DEFAULT_REDUCE_RESERVES_BLOCK_DELTA = "7200";
|
|
71
73
|
const REDUCE_RESERVES_BLOCK_DELTA_ETHEREUM = "7200";
|
|
72
74
|
const REDUCE_RESERVES_BLOCK_DELTA_OPBNBTESTNET = "300";
|
|
@@ -79,6 +81,7 @@ const REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET = "86400";
|
|
|
79
81
|
const REDUCE_RESERVES_BLOCK_DELTA_OP_MAINNET = "86400";
|
|
80
82
|
const REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA = "86400";
|
|
81
83
|
const REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET = "86400";
|
|
84
|
+
const REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA = "86400";
|
|
82
85
|
exports.preconfiguredAddresses = {
|
|
83
86
|
hardhat: {
|
|
84
87
|
VTreasury: "account:deployer",
|
|
@@ -195,6 +198,13 @@ exports.preconfiguredAddresses = {
|
|
|
195
198
|
CriticalTimelock: basemainnet_json_1.contracts.CriticalTimelock.address,
|
|
196
199
|
AccessControlManager: "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB",
|
|
197
200
|
},
|
|
201
|
+
unichainsepolia: {
|
|
202
|
+
VTreasury: "0x0C7CB62F2194cD701bcE8FD8067b43A3Bb76428e",
|
|
203
|
+
NormalTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
|
|
204
|
+
FastTrackTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
|
|
205
|
+
CriticalTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
|
|
206
|
+
AccessControlManager: "0x854C064EA6b503A97980F481FA3B7279012fdeDd",
|
|
207
|
+
},
|
|
198
208
|
};
|
|
199
209
|
const poolRegistryPermissions = () => {
|
|
200
210
|
const methods = [
|
|
@@ -6609,6 +6619,152 @@ exports.globalConfig = {
|
|
|
6609
6619
|
],
|
|
6610
6620
|
preconfiguredAddresses: exports.preconfiguredAddresses.basemainnet,
|
|
6611
6621
|
},
|
|
6622
|
+
unichainsepolia: {
|
|
6623
|
+
tokensConfig: [
|
|
6624
|
+
{
|
|
6625
|
+
isMock: true,
|
|
6626
|
+
name: "Coinbase Wrapped BTC",
|
|
6627
|
+
symbol: "cbBTC",
|
|
6628
|
+
decimals: 8,
|
|
6629
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
6630
|
+
},
|
|
6631
|
+
{
|
|
6632
|
+
isMock: false,
|
|
6633
|
+
name: "Wrapped Ether",
|
|
6634
|
+
symbol: "WETH",
|
|
6635
|
+
decimals: 18,
|
|
6636
|
+
tokenAddress: "0x4200000000000000000000000000000000000006",
|
|
6637
|
+
},
|
|
6638
|
+
{
|
|
6639
|
+
isMock: true,
|
|
6640
|
+
name: "USD Coin",
|
|
6641
|
+
symbol: "USDC",
|
|
6642
|
+
decimals: 6,
|
|
6643
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
6644
|
+
},
|
|
6645
|
+
{
|
|
6646
|
+
isMock: true,
|
|
6647
|
+
name: "Tether USD",
|
|
6648
|
+
symbol: "USDT",
|
|
6649
|
+
decimals: 6,
|
|
6650
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
6651
|
+
},
|
|
6652
|
+
{
|
|
6653
|
+
isMock: false,
|
|
6654
|
+
name: "Venus",
|
|
6655
|
+
symbol: "XVS",
|
|
6656
|
+
decimals: 18,
|
|
6657
|
+
tokenAddress: "0xC0e51E865bc9Fed0a32Cc0B2A65449567Bc5c741",
|
|
6658
|
+
},
|
|
6659
|
+
],
|
|
6660
|
+
poolConfig: [
|
|
6661
|
+
{
|
|
6662
|
+
id: "Core",
|
|
6663
|
+
name: "Core",
|
|
6664
|
+
closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
|
|
6665
|
+
liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
|
|
6666
|
+
minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
|
|
6667
|
+
vtokens: [
|
|
6668
|
+
{
|
|
6669
|
+
name: "Venus USDC (Core)",
|
|
6670
|
+
asset: "USDC",
|
|
6671
|
+
symbol: "vUSDC_Core",
|
|
6672
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
6673
|
+
baseRatePerYear: "0",
|
|
6674
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
|
|
6675
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
6676
|
+
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
6677
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
|
|
6678
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
|
|
6679
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
6680
|
+
initialSupply: (0, utils_1.convertToUnit)("5000", 6),
|
|
6681
|
+
supplyCap: (0, utils_1.convertToUnit)(20000000, 6),
|
|
6682
|
+
borrowCap: (0, utils_1.convertToUnit)(18000000, 6),
|
|
6683
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
|
|
6684
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
|
|
6685
|
+
},
|
|
6686
|
+
{
|
|
6687
|
+
name: "Venus USDT (Core)",
|
|
6688
|
+
asset: "USDT",
|
|
6689
|
+
symbol: "vUSDT_Core",
|
|
6690
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
6691
|
+
baseRatePerYear: "0",
|
|
6692
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
|
|
6693
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
6694
|
+
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
6695
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
|
|
6696
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
|
|
6697
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
6698
|
+
initialSupply: (0, utils_1.convertToUnit)("5000", 6),
|
|
6699
|
+
supplyCap: (0, utils_1.convertToUnit)(20000000, 6),
|
|
6700
|
+
borrowCap: (0, utils_1.convertToUnit)(18000000, 6),
|
|
6701
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
|
|
6702
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
|
|
6703
|
+
},
|
|
6704
|
+
{
|
|
6705
|
+
name: "Venus WETH (Core)",
|
|
6706
|
+
asset: "WETH",
|
|
6707
|
+
symbol: "vWETH_Core",
|
|
6708
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
6709
|
+
baseRatePerYear: "0",
|
|
6710
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.035", 18),
|
|
6711
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
6712
|
+
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
6713
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
|
|
6714
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
|
|
6715
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
6716
|
+
initialSupply: (0, utils_1.convertToUnit)("2", 18),
|
|
6717
|
+
supplyCap: (0, utils_1.convertToUnit)(260000, 18),
|
|
6718
|
+
borrowCap: (0, utils_1.convertToUnit)(23500, 18),
|
|
6719
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
|
|
6720
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
|
|
6721
|
+
},
|
|
6722
|
+
{
|
|
6723
|
+
name: "Venus cbBTC (Core)",
|
|
6724
|
+
asset: "cbBTC",
|
|
6725
|
+
symbol: "vcbBTC_Core",
|
|
6726
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
6727
|
+
baseRatePerYear: "0",
|
|
6728
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
6729
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
6730
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
6731
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
|
|
6732
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
|
|
6733
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
6734
|
+
initialSupply: (0, utils_1.convertToUnit)("0.08", 8),
|
|
6735
|
+
supplyCap: (0, utils_1.convertToUnit)(900, 8),
|
|
6736
|
+
borrowCap: (0, utils_1.convertToUnit)(500, 8),
|
|
6737
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
|
|
6738
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
|
|
6739
|
+
},
|
|
6740
|
+
],
|
|
6741
|
+
rewards: [
|
|
6742
|
+
// XVS Rewards Over 3600 days (311040000 seconds)
|
|
6743
|
+
// WETH: 360 XVS for Suppliers
|
|
6744
|
+
// 360 XVS for Borrowers
|
|
6745
|
+
// WBTC: 360 XVS for Suppliers
|
|
6746
|
+
// 360 XVS for Borrowers
|
|
6747
|
+
// USDT: 360 XVS for Suppliers
|
|
6748
|
+
// 360 XVS for Borrowers
|
|
6749
|
+
// USDC: 360 XVS for Suppliers
|
|
6750
|
+
// 360 XVS for Borrowers
|
|
6751
|
+
// ZK: 360 XVS for Suppliers
|
|
6752
|
+
// 360 XVS for Borrowers
|
|
6753
|
+
{
|
|
6754
|
+
asset: "XVS",
|
|
6755
|
+
markets: ["USDC", "USDT", "WETH", "cbBTC"],
|
|
6756
|
+
supplySpeeds: ["1157407407407", "1157407407407", "1157407407407", "1157407407407"],
|
|
6757
|
+
borrowSpeeds: ["1157407407407", "1157407407407", "1157407407407", "1157407407407"],
|
|
6758
|
+
},
|
|
6759
|
+
],
|
|
6760
|
+
},
|
|
6761
|
+
],
|
|
6762
|
+
accessControlConfig: [
|
|
6763
|
+
...poolRegistryPermissions(),
|
|
6764
|
+
...normalTimelockPermissions(exports.preconfiguredAddresses.unichainsepolia.NormalTimelock),
|
|
6765
|
+
],
|
|
6766
|
+
preconfiguredAddresses: exports.preconfiguredAddresses.unichainsepolia,
|
|
6767
|
+
},
|
|
6612
6768
|
};
|
|
6613
6769
|
async function getConfig(networkName) {
|
|
6614
6770
|
switch (networkName) {
|
|
@@ -6642,6 +6798,8 @@ async function getConfig(networkName) {
|
|
|
6642
6798
|
return exports.globalConfig.basesepolia;
|
|
6643
6799
|
case "basemainnet":
|
|
6644
6800
|
return exports.globalConfig.basemainnet;
|
|
6801
|
+
case "unichainsepolia":
|
|
6802
|
+
return exports.globalConfig.unichainsepolia;
|
|
6645
6803
|
case "development":
|
|
6646
6804
|
return exports.globalConfig.bsctestnet;
|
|
6647
6805
|
default:
|
|
@@ -3,7 +3,11 @@ import { Provider } from "@ethersproject/providers";
|
|
|
3
3
|
import type { IVToken, IVTokenInterface } from "../IVToken";
|
|
4
4
|
export declare class IVToken__factory {
|
|
5
5
|
static readonly abi: {
|
|
6
|
-
inputs:
|
|
6
|
+
inputs: {
|
|
7
|
+
internalType: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}[];
|
|
7
11
|
name: string;
|
|
8
12
|
outputs: {
|
|
9
13
|
internalType: string;
|
|
@@ -6,6 +6,206 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.IVToken__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "account",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "borrowBalanceCurrent",
|
|
18
|
+
outputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
stateMutability: "nonpayable",
|
|
26
|
+
type: "function",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "borrower",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
internalType: "uint256",
|
|
37
|
+
name: "borrowAmount",
|
|
38
|
+
type: "uint256",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "borrowBehalf",
|
|
42
|
+
outputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "uint256",
|
|
45
|
+
name: "",
|
|
46
|
+
type: "uint256",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
stateMutability: "nonpayable",
|
|
50
|
+
type: "function",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [],
|
|
54
|
+
name: "exchangeRateCurrent",
|
|
55
|
+
outputs: [
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
stateMutability: "nonpayable",
|
|
63
|
+
type: "function",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
inputs: [
|
|
67
|
+
{
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "receiver",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: "uint256",
|
|
74
|
+
name: "mintAmount",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "mintBehalf",
|
|
79
|
+
outputs: [
|
|
80
|
+
{
|
|
81
|
+
internalType: "uint256",
|
|
82
|
+
name: "",
|
|
83
|
+
type: "uint256",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
stateMutability: "nonpayable",
|
|
87
|
+
type: "function",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
inputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "redeemTokens",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
name: "redeem",
|
|
98
|
+
outputs: [
|
|
99
|
+
{
|
|
100
|
+
internalType: "uint256",
|
|
101
|
+
name: "",
|
|
102
|
+
type: "uint256",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
stateMutability: "nonpayable",
|
|
106
|
+
type: "function",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [
|
|
110
|
+
{
|
|
111
|
+
internalType: "address",
|
|
112
|
+
name: "redeemer",
|
|
113
|
+
type: "address",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
internalType: "uint256",
|
|
117
|
+
name: "redeemTokens",
|
|
118
|
+
type: "uint256",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
name: "redeemBehalf",
|
|
122
|
+
outputs: [
|
|
123
|
+
{
|
|
124
|
+
internalType: "uint256",
|
|
125
|
+
name: "",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
stateMutability: "nonpayable",
|
|
130
|
+
type: "function",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
inputs: [
|
|
134
|
+
{
|
|
135
|
+
internalType: "address",
|
|
136
|
+
name: "redeemer",
|
|
137
|
+
type: "address",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
internalType: "uint256",
|
|
141
|
+
name: "redeemAmount",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
name: "redeemUnderlyingBehalf",
|
|
146
|
+
outputs: [
|
|
147
|
+
{
|
|
148
|
+
internalType: "uint256",
|
|
149
|
+
name: "",
|
|
150
|
+
type: "uint256",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
stateMutability: "nonpayable",
|
|
154
|
+
type: "function",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "address",
|
|
160
|
+
name: "borrower",
|
|
161
|
+
type: "address",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
internalType: "uint256",
|
|
165
|
+
name: "repayAmount",
|
|
166
|
+
type: "uint256",
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
name: "repayBorrowBehalf",
|
|
170
|
+
outputs: [
|
|
171
|
+
{
|
|
172
|
+
internalType: "uint256",
|
|
173
|
+
name: "",
|
|
174
|
+
type: "uint256",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
stateMutability: "nonpayable",
|
|
178
|
+
type: "function",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
inputs: [
|
|
182
|
+
{
|
|
183
|
+
internalType: "address",
|
|
184
|
+
name: "from",
|
|
185
|
+
type: "address",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
internalType: "address",
|
|
189
|
+
name: "to",
|
|
190
|
+
type: "address",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "amount",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
name: "transferFrom",
|
|
199
|
+
outputs: [
|
|
200
|
+
{
|
|
201
|
+
internalType: "bool",
|
|
202
|
+
name: "",
|
|
203
|
+
type: "bool",
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
stateMutability: "nonpayable",
|
|
207
|
+
type: "function",
|
|
208
|
+
},
|
|
9
209
|
{
|
|
10
210
|
inputs: [],
|
|
11
211
|
name: "underlying",
|
|
@@ -16,7 +216,7 @@ const _abi = [
|
|
|
16
216
|
type: "address",
|
|
17
217
|
},
|
|
18
218
|
],
|
|
19
|
-
stateMutability: "
|
|
219
|
+
stateMutability: "nonpayable",
|
|
20
220
|
type: "function",
|
|
21
221
|
},
|
|
22
222
|
];
|