@venusprotocol/isolated-pools 3.5.0 → 3.6.0-dev.2

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 (42) hide show
  1. package/deployments/opmainnet.json +5 -0
  2. package/deployments/opmainnet_addresses.json +5 -0
  3. package/deployments/opsepolia/.chainId +1 -0
  4. package/deployments/opsepolia/ComptrollerBeacon.json +206 -0
  5. package/deployments/opsepolia/ComptrollerImpl.json +3396 -0
  6. package/deployments/opsepolia/Comptroller_Core.json +187 -0
  7. package/deployments/opsepolia/DefaultProxyAdmin.json +257 -0
  8. package/deployments/opsepolia/JumpRateModelV2_base0bps_slope750bps_jump25000bps_kink8000bps.json +608 -0
  9. package/deployments/opsepolia/JumpRateModelV2_base0bps_slope900bps_jump30000bps_kink4500bps.json +608 -0
  10. package/deployments/opsepolia/MockOP.json +458 -0
  11. package/deployments/opsepolia/MockUSDC.json +458 -0
  12. package/deployments/opsepolia/MockUSDT.json +458 -0
  13. package/deployments/opsepolia/MockWBTC.json +458 -0
  14. package/deployments/opsepolia/NativeTokenGateway_vWETH_Core.json +599 -0
  15. package/deployments/opsepolia/PoolLens.json +1416 -0
  16. package/deployments/opsepolia/PoolRegistry.json +940 -0
  17. package/deployments/opsepolia/PoolRegistry_Implementation.json +1194 -0
  18. package/deployments/opsepolia/PoolRegistry_Proxy.json +262 -0
  19. package/deployments/opsepolia/RewardsDistributorImpl.json +1856 -0
  20. package/deployments/opsepolia/RewardsDistributor_Core_0.json +1420 -0
  21. package/deployments/opsepolia/RewardsDistributor_Core_0_Proxy.json +272 -0
  22. package/deployments/opsepolia/VTokenBeacon.json +206 -0
  23. package/deployments/opsepolia/VTokenImpl.json +3269 -0
  24. package/deployments/opsepolia/VToken_vOP_Core.json +257 -0
  25. package/deployments/opsepolia/VToken_vUSDC_Core.json +257 -0
  26. package/deployments/opsepolia/VToken_vUSDT_Core.json +257 -0
  27. package/deployments/opsepolia/VToken_vWBTC_Core.json +257 -0
  28. package/deployments/opsepolia/VToken_vWETH_Core.json +257 -0
  29. package/deployments/opsepolia/solcInputs/4285c9f16f78273c36b9b2af1814afdc.json +451 -0
  30. package/deployments/opsepolia/solcInputs/7a28e95a7186e06cde14ca21a979d10b.json +256 -0
  31. package/deployments/opsepolia.json +12725 -0
  32. package/deployments/opsepolia_addresses.json +31 -0
  33. package/dist/deploy/018-native-token-gateway.js +7 -0
  34. package/dist/deployments/opsepolia.json +12725 -0
  35. package/dist/hardhat.config.js +30 -0
  36. package/dist/helpers/deploymentConfig.d.ts +9 -0
  37. package/dist/helpers/deploymentConfig.js +185 -1
  38. package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
  39. package/dist/typechain/factories/IVToken__factory.js +201 -1
  40. package/package.json +1 -1
  41. package/typechain/IVToken.d.ts +341 -4
  42. package/typechain/factories/IVToken__factory.ts +201 -1
@@ -273,6 +273,18 @@ const config = {
273
273
  live: true,
274
274
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
275
275
  },
276
+ opsepolia: {
277
+ url: process.env.ARCHIVE_NODE_opsepolia || "https://sepolia.optimism.io",
278
+ chainId: 11155420,
279
+ live: true,
280
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
281
+ },
282
+ opmainnet: {
283
+ url: process.env.ARCHIVE_NODE_opmainnet || "https://mainnet.optimism.io",
284
+ chainId: 10,
285
+ live: true,
286
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
287
+ },
276
288
  },
277
289
  gasReporter: {
278
290
  enabled: process.env.REPORT_GAS !== undefined,
@@ -352,6 +364,22 @@ const config = {
352
364
  browserURL: "https://arbiscan.io/",
353
365
  },
354
366
  },
367
+ {
368
+ network: "opsepolia",
369
+ chainId: 11155420,
370
+ urls: {
371
+ apiURL: "https://api-sepolia-optimistic.etherscan.io/api/",
372
+ browserURL: "https://sepolia-optimistic.etherscan.io/",
373
+ },
374
+ },
375
+ {
376
+ network: "opmainnet",
377
+ chainId: 10,
378
+ urls: {
379
+ apiURL: "https://api-optimistic.etherscan.io/api",
380
+ browserURL: "https://optimistic.etherscan.io/",
381
+ },
382
+ },
355
383
  ],
356
384
  apiKey: {
357
385
  bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
@@ -362,6 +390,8 @@ const config = {
362
390
  opbnbtestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
363
391
  arbitrumone: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
364
392
  arbitrumsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
393
+ opsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
394
+ opmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
365
395
  },
366
396
  },
367
397
  paths: {
@@ -12,6 +12,7 @@ export type NetworkConfig = {
12
12
  arbitrumone: DeploymentConfig;
13
13
  zksyncsepolia: DeploymentConfig;
14
14
  zksyncmainnet: DeploymentConfig;
15
+ opsepolia: DeploymentConfig;
15
16
  };
16
17
  export type PreconfiguredAddresses = {
17
18
  [contract: string]: string;
@@ -100,6 +101,7 @@ export declare const ARBITRUM_SEPOLIA_MULTISIG = "0x1426A5Ae009c4443188DA8793751
100
101
  export declare const ARBITRUM_ONE_MULTISIG = "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0";
101
102
  export declare const ZKSYNC_SEPOLIA_MULTISIG = "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866";
102
103
  export declare const ZKSYNC_MAINNET_MULTISIG = "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa";
104
+ export declare const OP_SEPOLIA_MULTISIG = "0xd57365EE4E850e881229e2F8Aa405822f289e78d";
103
105
  export declare const preconfiguredAddresses: {
104
106
  hardhat: {
105
107
  VTreasury: string;
@@ -190,6 +192,13 @@ export declare const preconfiguredAddresses: {
190
192
  CriticalTimelock: string;
191
193
  AccessControlManager: string;
192
194
  };
195
+ opsepolia: {
196
+ VTreasury: string;
197
+ NormalTimelock: string;
198
+ FastTrackTimelock: string;
199
+ CriticalTimelock: string;
200
+ AccessControlManager: string;
201
+ };
193
202
  };
194
203
  export declare const globalConfig: NetworkConfig;
195
204
  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.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.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");
@@ -46,6 +46,8 @@ exports.blocksPerYear = {
46
46
  arbitrumone: 0,
47
47
  zksyncsepolia: 0,
48
48
  zksyncmainnet: 0,
49
+ opsepolia: 0,
50
+ opmainnet: 0,
49
51
  isTimeBased: 0, // for time based contracts
50
52
  };
51
53
  exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
@@ -56,6 +58,7 @@ exports.ARBITRUM_SEPOLIA_MULTISIG = "0x1426A5Ae009c4443188DA8793751024E358A61C2"
56
58
  exports.ARBITRUM_ONE_MULTISIG = "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0";
57
59
  exports.ZKSYNC_SEPOLIA_MULTISIG = "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866";
58
60
  exports.ZKSYNC_MAINNET_MULTISIG = "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa";
61
+ exports.OP_SEPOLIA_MULTISIG = "0xd57365EE4E850e881229e2F8Aa405822f289e78d";
59
62
  const DEFAULT_REDUCE_RESERVES_BLOCK_DELTA = "7200";
60
63
  const REDUCE_RESERVES_BLOCK_DELTA_ETHEREUM = "7200";
61
64
  const REDUCE_RESERVES_BLOCK_DELTA_OPBNBTESTNET = "300";
@@ -63,6 +66,7 @@ const REDUCE_RESERVES_BLOCK_DELTA_OPBNBMAINNET = "86400";
63
66
  const REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA = "86400";
64
67
  const REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE = "86400";
65
68
  const REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_SEPOLIA = "86400";
69
+ const REDUCE_RESERVES_BLOCK_DELTA_OP_SEPOLIA = "86400";
66
70
  const REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET = "86400";
67
71
  exports.preconfiguredAddresses = {
68
72
  hardhat: {
@@ -154,6 +158,13 @@ exports.preconfiguredAddresses = {
154
158
  CriticalTimelock: exports.ZKSYNC_MAINNET_MULTISIG,
155
159
  AccessControlManager: zksyncmainnet_json_1.contracts.AccessControlManager.address,
156
160
  },
161
+ opsepolia: {
162
+ VTreasury: "0x5A1a12F47FA7007C9e23cf5e025F3f5d3aC7d755",
163
+ NormalTimelock: exports.OP_SEPOLIA_MULTISIG,
164
+ FastTrackTimelock: exports.OP_SEPOLIA_MULTISIG,
165
+ CriticalTimelock: exports.OP_SEPOLIA_MULTISIG,
166
+ AccessControlManager: "0x1652E12C8ABE2f0D84466F0fc1fA4286491B3BC1",
167
+ },
157
168
  };
158
169
  const poolRegistryPermissions = () => {
159
170
  const methods = [
@@ -4827,6 +4838,177 @@ exports.globalConfig = {
4827
4838
  ],
4828
4839
  preconfiguredAddresses: exports.preconfiguredAddresses.zksyncmainnet,
4829
4840
  },
4841
+ opsepolia: {
4842
+ tokensConfig: [
4843
+ {
4844
+ isMock: true,
4845
+ name: "USD Coin",
4846
+ symbol: "USDC",
4847
+ decimals: 6,
4848
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
4849
+ },
4850
+ {
4851
+ isMock: true,
4852
+ name: "Tether USD",
4853
+ symbol: "USDT",
4854
+ decimals: 6,
4855
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
4856
+ },
4857
+ {
4858
+ isMock: false,
4859
+ name: "Wrapped Ether",
4860
+ symbol: "WETH",
4861
+ decimals: 18,
4862
+ tokenAddress: "0x4200000000000000000000000000000000000006",
4863
+ },
4864
+ {
4865
+ isMock: true,
4866
+ name: "Wrapped BTC",
4867
+ symbol: "WBTC",
4868
+ decimals: 8,
4869
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
4870
+ },
4871
+ {
4872
+ isMock: true,
4873
+ name: "Optimism",
4874
+ symbol: "OP",
4875
+ decimals: 18,
4876
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
4877
+ },
4878
+ {
4879
+ isMock: false,
4880
+ name: "Venus",
4881
+ symbol: "XVS",
4882
+ decimals: 18,
4883
+ tokenAddress: "0x789482e37218f9b26d8D9115E356462fA9A37116",
4884
+ },
4885
+ ],
4886
+ poolConfig: [
4887
+ {
4888
+ id: "Core",
4889
+ name: "Core",
4890
+ closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
4891
+ liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
4892
+ minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
4893
+ vtokens: [
4894
+ {
4895
+ name: "Venus WBTC (Core)",
4896
+ asset: "WBTC",
4897
+ symbol: "vWBTC_Core",
4898
+ rateModel: InterestRateModels.JumpRate.toString(),
4899
+ baseRatePerYear: "0",
4900
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
4901
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
4902
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
4903
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
4904
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
4905
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
4906
+ initialSupply: (0, utils_1.convertToUnit)("0.03553143", 8),
4907
+ supplyCap: (0, utils_1.convertToUnit)(1, 8),
4908
+ borrowCap: (0, utils_1.convertToUnit)("0.55", 8),
4909
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_OP_SEPOLIA,
4910
+ vTokenReceiver: exports.preconfiguredAddresses.opsepolia.VTreasury,
4911
+ },
4912
+ {
4913
+ name: "Venus WETH (Core)",
4914
+ asset: "WETH",
4915
+ symbol: "vWETH_Core",
4916
+ rateModel: InterestRateModels.JumpRate.toString(),
4917
+ baseRatePerYear: "0",
4918
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
4919
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
4920
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
4921
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
4922
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
4923
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
4924
+ initialSupply: (0, utils_1.convertToUnit)("0.610978879332136515", 18),
4925
+ supplyCap: (0, utils_1.convertToUnit)(25, 18),
4926
+ borrowCap: (0, utils_1.convertToUnit)(16, 18),
4927
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_OP_SEPOLIA,
4928
+ vTokenReceiver: exports.preconfiguredAddresses.opsepolia.VTreasury,
4929
+ },
4930
+ {
4931
+ name: "Venus USDC (Core)",
4932
+ asset: "USDC",
4933
+ symbol: "vUSDC_Core",
4934
+ rateModel: InterestRateModels.JumpRate.toString(),
4935
+ baseRatePerYear: "0",
4936
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.075", 18),
4937
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
4938
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
4939
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
4940
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
4941
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
4942
+ initialSupply: (0, utils_1.convertToUnit)("1800", 6),
4943
+ supplyCap: (0, utils_1.convertToUnit)(150000, 6),
4944
+ borrowCap: (0, utils_1.convertToUnit)(130000, 6),
4945
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_OP_SEPOLIA,
4946
+ vTokenReceiver: exports.preconfiguredAddresses.opsepolia.VTreasury,
4947
+ },
4948
+ {
4949
+ name: "Venus USDT (Core)",
4950
+ asset: "USDT",
4951
+ symbol: "vUSDT_Core",
4952
+ rateModel: InterestRateModels.JumpRate.toString(),
4953
+ baseRatePerYear: "0",
4954
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.075", 18),
4955
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
4956
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
4957
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
4958
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
4959
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
4960
+ initialSupply: (0, utils_1.convertToUnit)("1800", 6),
4961
+ supplyCap: (0, utils_1.convertToUnit)(150000, 6),
4962
+ borrowCap: (0, utils_1.convertToUnit)(130000, 6),
4963
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_OP_SEPOLIA,
4964
+ vTokenReceiver: exports.preconfiguredAddresses.opsepolia.VTreasury,
4965
+ },
4966
+ {
4967
+ name: "Venus OP (Core)",
4968
+ asset: "OP",
4969
+ symbol: "vOP_Core",
4970
+ rateModel: InterestRateModels.JumpRate.toString(),
4971
+ baseRatePerYear: "0",
4972
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
4973
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
4974
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
4975
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
4976
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
4977
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
4978
+ initialSupply: (0, utils_1.convertToUnit)("0.610978879332136515", 18),
4979
+ supplyCap: (0, utils_1.convertToUnit)(25, 18),
4980
+ borrowCap: (0, utils_1.convertToUnit)(16, 18),
4981
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_OP_SEPOLIA,
4982
+ vTokenReceiver: exports.preconfiguredAddresses.opsepolia.VTreasury,
4983
+ },
4984
+ ],
4985
+ rewards: [
4986
+ // XVS Rewards Over 120 months (311040000 seconds)
4987
+ // WETH: 360 XVS for Suppliers
4988
+ // 360 XVS for Borrowers
4989
+ // WBTC: 360 XVS for Suppliers
4990
+ // 360 XVS for Borrowers
4991
+ // USDT: 360 XVS for Suppliers
4992
+ // 360 XVS for Borrowers
4993
+ // USDC: 360 XVS for Suppliers
4994
+ // 360 XVS for Borrowers
4995
+ // OP: 360 XVS for Suppliers
4996
+ // 360 XVS for Borrowers
4997
+ {
4998
+ asset: "XVS",
4999
+ markets: ["WETH", "WBTC", "USDT", "USDC", "OP"],
5000
+ supplySpeeds: ["1157407407407", "1157407407407", "1157407407407", "1157407407407", "1157407407407"],
5001
+ borrowSpeeds: ["1157407407407", "1157407407407", "1157407407407", "1157407407407", "1157407407407"],
5002
+ },
5003
+ ],
5004
+ },
5005
+ ],
5006
+ accessControlConfig: [
5007
+ ...poolRegistryPermissions(),
5008
+ ...normalTimelockPermissions(exports.preconfiguredAddresses.opsepolia.NormalTimelock),
5009
+ ],
5010
+ preconfiguredAddresses: exports.preconfiguredAddresses.opsepolia,
5011
+ },
4830
5012
  };
4831
5013
  async function getConfig(networkName) {
4832
5014
  switch (networkName) {
@@ -4852,6 +5034,8 @@ async function getConfig(networkName) {
4852
5034
  return exports.globalConfig.zksyncsepolia;
4853
5035
  case "zksyncmainnet":
4854
5036
  return exports.globalConfig.zksyncmainnet;
5037
+ case "opsepolia":
5038
+ return exports.globalConfig.opsepolia;
4855
5039
  case "development":
4856
5040
  return exports.globalConfig.bsctestnet;
4857
5041
  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: never[];
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: "view",
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.5.0",
3
+ "version": "3.6.0-dev.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",