@venusprotocol/isolated-pools 3.7.0-dev.6 → 3.7.0-dev.8
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/basemainnet/.chainId +1 -0
- package/deployments/basemainnet/ComptrollerBeacon.json +206 -0
- package/deployments/basemainnet/ComptrollerImpl.json +3396 -0
- package/deployments/basemainnet/Comptroller_Core.json +187 -0
- package/deployments/basemainnet/DefaultProxyAdmin.json +200 -0
- package/deployments/basemainnet/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps.json +608 -0
- package/deployments/basemainnet/JumpRateModelV2_base0bps_slope300bps_jump45000bps_kink9000bps.json +608 -0
- package/deployments/basemainnet/JumpRateModelV2_base0bps_slope800bps_jump25000bps_kink8000bps.json +608 -0
- package/deployments/basemainnet/NativeTokenGateway_vWETH_Core.json +599 -0
- package/deployments/basemainnet/PoolLens.json +1416 -0
- package/deployments/basemainnet/PoolRegistry.json +940 -0
- package/deployments/basemainnet/PoolRegistry_Implementation.json +1194 -0
- package/deployments/basemainnet/PoolRegistry_Proxy.json +262 -0
- package/deployments/basemainnet/VTokenBeacon.json +206 -0
- package/deployments/basemainnet/VTokenImpl.json +3269 -0
- package/deployments/basemainnet/VToken_vUSDC_Core.json +257 -0
- package/deployments/basemainnet/VToken_vWETH_Core.json +257 -0
- package/deployments/basemainnet/VToken_vcbBTC_Core.json +257 -0
- package/deployments/basemainnet/solcInputs/1cc1a300ca8c782ec718d1d686c359e7.json +301 -0
- package/deployments/basemainnet/solcInputs/944a1fbb33c889bd3a2ad5ce1a25132e.json +253 -0
- package/deployments/basemainnet/solcInputs/9b1ce7dc3f6775f0734e7fb93d5ebf4f.json +394 -0
- package/deployments/basemainnet.json +9132 -0
- package/deployments/basemainnet_addresses.json +23 -0
- package/deployments/ethereum/VToken_vLBTC_Core.json +257 -0
- package/deployments/ethereum.json +74 -0
- package/deployments/ethereum_addresses.json +1 -0
- package/deployments/sepolia/MockLBTC.json +458 -0
- package/deployments/sepolia/VToken_vLBTC_Core.json +257 -0
- package/deployments/sepolia.json +383 -0
- package/deployments/sepolia_addresses.json +2 -0
- package/dist/deploy/018-native-token-gateway.js +7 -0
- package/dist/deployments/basemainnet.json +9132 -0
- package/dist/deployments/ethereum.json +74 -0
- package/dist/deployments/sepolia.json +383 -0
- package/dist/hardhat.config.js +19 -0
- package/dist/helpers/deploymentConfig.d.ts +9 -0
- package/dist/helpers/deploymentConfig.js +166 -3
- package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
- package/dist/typechain/factories/IVToken__factory.js +201 -1
- package/package.json +4 -4
- package/typechain/IVToken.d.ts +341 -4
- package/typechain/factories/IVToken__factory.ts +201 -1
|
@@ -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_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.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 bscmainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/bscmainnet.json");
|
|
@@ -49,6 +49,7 @@ exports.blocksPerYear = {
|
|
|
49
49
|
opsepolia: 0,
|
|
50
50
|
opmainnet: 0,
|
|
51
51
|
basesepolia: 0,
|
|
52
|
+
basemainnet: 0,
|
|
52
53
|
isTimeBased: 0, // for time based contracts
|
|
53
54
|
};
|
|
54
55
|
exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
|
|
@@ -62,6 +63,7 @@ exports.ZKSYNC_MAINNET_MULTISIG = "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa";
|
|
|
62
63
|
exports.OP_SEPOLIA_MULTISIG = "0xd57365EE4E850e881229e2F8Aa405822f289e78d";
|
|
63
64
|
exports.OP_MAINNET_MULTISIG = "0x2e94dd14E81999CdBF5deDE31938beD7308354b3";
|
|
64
65
|
exports.BASE_SEPOLIA_MULTISIG = "0xdf3b635d2b535f906BB02abb22AED71346E36a00";
|
|
66
|
+
exports.BASE_MAINNET_MULTISIG = "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C";
|
|
65
67
|
const DEFAULT_REDUCE_RESERVES_BLOCK_DELTA = "7200";
|
|
66
68
|
const REDUCE_RESERVES_BLOCK_DELTA_ETHEREUM = "7200";
|
|
67
69
|
const REDUCE_RESERVES_BLOCK_DELTA_OPBNBTESTNET = "300";
|
|
@@ -73,6 +75,7 @@ const REDUCE_RESERVES_BLOCK_DELTA_OP_SEPOLIA = "86400";
|
|
|
73
75
|
const REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET = "86400";
|
|
74
76
|
const REDUCE_RESERVES_BLOCK_DELTA_OP_MAINNET = "86400";
|
|
75
77
|
const REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA = "86400";
|
|
78
|
+
const REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET = "86400";
|
|
76
79
|
exports.preconfiguredAddresses = {
|
|
77
80
|
hardhat: {
|
|
78
81
|
VTreasury: "account:deployer",
|
|
@@ -184,6 +187,13 @@ exports.preconfiguredAddresses = {
|
|
|
184
187
|
CriticalTimelock: exports.BASE_SEPOLIA_MULTISIG,
|
|
185
188
|
AccessControlManager: "0x724138223D8F76b519fdE715f60124E7Ce51e051",
|
|
186
189
|
},
|
|
190
|
+
basemainnet: {
|
|
191
|
+
VTreasury: "0xbefD8d06f403222dd5E8e37D2ba93320A97939D1",
|
|
192
|
+
NormalTimelock: exports.BASE_MAINNET_MULTISIG,
|
|
193
|
+
FastTrackTimelock: exports.BASE_MAINNET_MULTISIG,
|
|
194
|
+
CriticalTimelock: exports.BASE_MAINNET_MULTISIG,
|
|
195
|
+
AccessControlManager: "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB",
|
|
196
|
+
},
|
|
187
197
|
};
|
|
188
198
|
const poolRegistryPermissions = () => {
|
|
189
199
|
const methods = [
|
|
@@ -2765,6 +2775,13 @@ exports.globalConfig = {
|
|
|
2765
2775
|
decimals: 18,
|
|
2766
2776
|
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
2767
2777
|
},
|
|
2778
|
+
{
|
|
2779
|
+
isMock: true,
|
|
2780
|
+
name: "Lombard Staked Bitcoin",
|
|
2781
|
+
symbol: "LBTC",
|
|
2782
|
+
decimals: 8,
|
|
2783
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
2784
|
+
},
|
|
2768
2785
|
],
|
|
2769
2786
|
poolConfig: [
|
|
2770
2787
|
{
|
|
@@ -2990,6 +3007,24 @@ exports.globalConfig = {
|
|
|
2990
3007
|
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
2991
3008
|
vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
|
|
2992
3009
|
},
|
|
3010
|
+
{
|
|
3011
|
+
name: "Venus LBTC (Core)",
|
|
3012
|
+
asset: "LBTC",
|
|
3013
|
+
symbol: "vLBTC_Core",
|
|
3014
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
3015
|
+
baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
|
|
3016
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
|
|
3017
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.0", 18),
|
|
3018
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
3019
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.735", 18),
|
|
3020
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.785", 18),
|
|
3021
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
3022
|
+
initialSupply: (0, utils_1.convertToUnit)("0.106", 18),
|
|
3023
|
+
supplyCap: (0, utils_1.convertToUnit)("450", 18),
|
|
3024
|
+
borrowCap: (0, utils_1.convertToUnit)("45", 18),
|
|
3025
|
+
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
3026
|
+
vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
|
|
3027
|
+
},
|
|
2993
3028
|
],
|
|
2994
3029
|
rewards: [
|
|
2995
3030
|
// XVS Rewards Over 90 days (648000 blocks)
|
|
@@ -3526,6 +3561,13 @@ exports.globalConfig = {
|
|
|
3526
3561
|
decimals: 18,
|
|
3527
3562
|
tokenAddress: "0xD9A442856C234a39a81a089C06451EBAa4306a72",
|
|
3528
3563
|
},
|
|
3564
|
+
{
|
|
3565
|
+
isMock: false,
|
|
3566
|
+
name: "Lombard Staked Bitcoin",
|
|
3567
|
+
symbol: "LBTC",
|
|
3568
|
+
decimals: 8,
|
|
3569
|
+
tokenAddress: "0x8236a87084f8B84306f72007F36F2618A5634494",
|
|
3570
|
+
},
|
|
3529
3571
|
],
|
|
3530
3572
|
poolConfig: [
|
|
3531
3573
|
{
|
|
@@ -3733,6 +3775,24 @@ exports.globalConfig = {
|
|
|
3733
3775
|
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
3734
3776
|
vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury,
|
|
3735
3777
|
},
|
|
3778
|
+
{
|
|
3779
|
+
name: "Venus LBTC (Core)",
|
|
3780
|
+
asset: "LBTC",
|
|
3781
|
+
symbol: "vLBTC_Core",
|
|
3782
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
3783
|
+
baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
|
|
3784
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
|
|
3785
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.0", 18),
|
|
3786
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
3787
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.735", 18),
|
|
3788
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.785", 18),
|
|
3789
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
3790
|
+
initialSupply: (0, utils_1.convertToUnit)("0.106", 18),
|
|
3791
|
+
supplyCap: (0, utils_1.convertToUnit)("450", 18),
|
|
3792
|
+
borrowCap: (0, utils_1.convertToUnit)("45", 18),
|
|
3793
|
+
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
3794
|
+
vTokenReceiver: "0xCb09Ab3F6254437d225Ed3CABEBe0949782E2372",
|
|
3795
|
+
},
|
|
3736
3796
|
],
|
|
3737
3797
|
rewards: [
|
|
3738
3798
|
// XVS Rewards Over 90 days (648000 blocks)
|
|
@@ -5703,6 +5763,109 @@ exports.globalConfig = {
|
|
|
5703
5763
|
],
|
|
5704
5764
|
preconfiguredAddresses: exports.preconfiguredAddresses.basesepolia,
|
|
5705
5765
|
},
|
|
5766
|
+
basemainnet: {
|
|
5767
|
+
tokensConfig: [
|
|
5768
|
+
{
|
|
5769
|
+
isMock: false,
|
|
5770
|
+
name: "USD Coin",
|
|
5771
|
+
symbol: "USDC",
|
|
5772
|
+
decimals: 6,
|
|
5773
|
+
tokenAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
5774
|
+
},
|
|
5775
|
+
{
|
|
5776
|
+
isMock: false,
|
|
5777
|
+
name: "Wrapped Ether",
|
|
5778
|
+
symbol: "WETH",
|
|
5779
|
+
decimals: 18,
|
|
5780
|
+
tokenAddress: "0x4200000000000000000000000000000000000006",
|
|
5781
|
+
},
|
|
5782
|
+
{
|
|
5783
|
+
isMock: false,
|
|
5784
|
+
name: "Coinbase Wrapped BTC",
|
|
5785
|
+
symbol: "cbBTC",
|
|
5786
|
+
decimals: 8,
|
|
5787
|
+
tokenAddress: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
|
|
5788
|
+
},
|
|
5789
|
+
{
|
|
5790
|
+
isMock: false,
|
|
5791
|
+
name: "Venus",
|
|
5792
|
+
symbol: "XVS",
|
|
5793
|
+
decimals: 18,
|
|
5794
|
+
tokenAddress: "0xebB7873213c8d1d9913D8eA39Aa12d74cB107995",
|
|
5795
|
+
},
|
|
5796
|
+
],
|
|
5797
|
+
poolConfig: [
|
|
5798
|
+
{
|
|
5799
|
+
id: "Core",
|
|
5800
|
+
name: "Core",
|
|
5801
|
+
closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
|
|
5802
|
+
liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
|
|
5803
|
+
minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
|
|
5804
|
+
vtokens: [
|
|
5805
|
+
{
|
|
5806
|
+
name: "Venus USDC (Core)",
|
|
5807
|
+
asset: "USDC",
|
|
5808
|
+
symbol: "vUSDC_Core",
|
|
5809
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
5810
|
+
baseRatePerYear: "0",
|
|
5811
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.08", 18),
|
|
5812
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
5813
|
+
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
5814
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
|
|
5815
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.78", 18),
|
|
5816
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
5817
|
+
initialSupply: (0, utils_1.convertToUnit)("5000", 6),
|
|
5818
|
+
supplyCap: (0, utils_1.convertToUnit)("30000000", 6),
|
|
5819
|
+
borrowCap: (0, utils_1.convertToUnit)("27000000", 6),
|
|
5820
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET,
|
|
5821
|
+
vTokenReceiver: exports.preconfiguredAddresses.basemainnet.VTreasury,
|
|
5822
|
+
},
|
|
5823
|
+
{
|
|
5824
|
+
name: "Venus WETH (Core)",
|
|
5825
|
+
asset: "WETH",
|
|
5826
|
+
symbol: "vWETH_Core",
|
|
5827
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
5828
|
+
baseRatePerYear: "0",
|
|
5829
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.03", 18),
|
|
5830
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("4.5", 18),
|
|
5831
|
+
kink_: (0, utils_1.convertToUnit)("0.9", 18),
|
|
5832
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.8", 18),
|
|
5833
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.83", 18),
|
|
5834
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.15", 18),
|
|
5835
|
+
initialSupply: (0, utils_1.convertToUnit)("2", 18),
|
|
5836
|
+
supplyCap: (0, utils_1.convertToUnit)(10000, 18),
|
|
5837
|
+
borrowCap: (0, utils_1.convertToUnit)(9000, 18),
|
|
5838
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET,
|
|
5839
|
+
vTokenReceiver: exports.preconfiguredAddresses.basemainnet.VTreasury,
|
|
5840
|
+
},
|
|
5841
|
+
{
|
|
5842
|
+
name: "Venus cbBTC (Core)",
|
|
5843
|
+
asset: "cbBTC",
|
|
5844
|
+
symbol: "vcbBTC_Core",
|
|
5845
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
5846
|
+
baseRatePerYear: "0",
|
|
5847
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
5848
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
5849
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
5850
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.73", 18),
|
|
5851
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.78", 18),
|
|
5852
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
5853
|
+
initialSupply: (0, utils_1.convertToUnit)("0.05", 8),
|
|
5854
|
+
supplyCap: (0, utils_1.convertToUnit)(400, 8),
|
|
5855
|
+
borrowCap: (0, utils_1.convertToUnit)(200, 8),
|
|
5856
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET,
|
|
5857
|
+
vTokenReceiver: exports.preconfiguredAddresses.basemainnet.VTreasury,
|
|
5858
|
+
},
|
|
5859
|
+
],
|
|
5860
|
+
rewards: [],
|
|
5861
|
+
},
|
|
5862
|
+
],
|
|
5863
|
+
accessControlConfig: [
|
|
5864
|
+
...poolRegistryPermissions(),
|
|
5865
|
+
...normalTimelockPermissions(exports.preconfiguredAddresses.basemainnet.NormalTimelock),
|
|
5866
|
+
],
|
|
5867
|
+
preconfiguredAddresses: exports.preconfiguredAddresses.basemainnet,
|
|
5868
|
+
},
|
|
5706
5869
|
};
|
|
5707
5870
|
async function getConfig(networkName) {
|
|
5708
5871
|
switch (networkName) {
|
|
@@ -5734,6 +5897,8 @@ async function getConfig(networkName) {
|
|
|
5734
5897
|
return exports.globalConfig.opmainnet;
|
|
5735
5898
|
case "basesepolia":
|
|
5736
5899
|
return exports.globalConfig.basesepolia;
|
|
5900
|
+
case "basemainnet":
|
|
5901
|
+
return exports.globalConfig.basemainnet;
|
|
5737
5902
|
case "development":
|
|
5738
5903
|
return exports.globalConfig.bsctestnet;
|
|
5739
5904
|
default:
|
|
@@ -5835,8 +6000,6 @@ function getMaxBorrowRateMantissa(networkName) {
|
|
|
5835
6000
|
return ethers_1.BigNumber.from(0.0005e16);
|
|
5836
6001
|
case "opbnbmainnet":
|
|
5837
6002
|
return ethers_1.BigNumber.from(0.0005e16);
|
|
5838
|
-
case "basesepolia":
|
|
5839
|
-
return ethers_1.BigNumber.from(0.0005e16);
|
|
5840
6003
|
case "development":
|
|
5841
6004
|
return ethers_1.BigNumber.from(0.0005e16);
|
|
5842
6005
|
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
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venusprotocol/isolated-pools",
|
|
3
|
-
"version": "3.7.0-dev.
|
|
3
|
+
"version": "3.7.0-dev.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"artifacts",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"@types/node": "^12.20.50",
|
|
78
78
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
79
79
|
"@typescript-eslint/parser": "^5.27.1",
|
|
80
|
-
"@venusprotocol/governance-contracts": "2.
|
|
81
|
-
"@venusprotocol/oracle": "2.
|
|
80
|
+
"@venusprotocol/governance-contracts": "2.6.0",
|
|
81
|
+
"@venusprotocol/oracle": "2.7.0",
|
|
82
82
|
"@venusprotocol/protocol-reserve": "2.4.0",
|
|
83
|
-
"@venusprotocol/venus-protocol": "9.
|
|
83
|
+
"@venusprotocol/venus-protocol": "9.4.0",
|
|
84
84
|
"bignumber.js": "9.0.0",
|
|
85
85
|
"chai": "^4.3.6",
|
|
86
86
|
"dotenv": "^10.0.0",
|