@venusprotocol/isolated-pools 3.8.0-dev.4 → 3.8.0

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 (26) hide show
  1. package/deployments/zksyncmainnet/JumpRateModelV2_base0bps_slope687bps_jump25000bps_kink8000bps.json +668 -0
  2. package/deployments/zksyncmainnet/VToken_vwUSDM_Core.json +317 -0
  3. package/deployments/zksyncmainnet/solcInputs/c84b0f085ad65b3aa38a5f0d3790c387.json +448 -0
  4. package/deployments/zksyncmainnet.json +434 -0
  5. package/deployments/zksyncmainnet_addresses.json +3 -1
  6. package/deployments/zksyncsepolia/JumpRateModelV2_base0bps_slope687bps_jump25000bps_kink8000bps.json +668 -0
  7. package/deployments/zksyncsepolia/MockUSDM.json +519 -0
  8. package/deployments/zksyncsepolia/MockwUSDM.json +576 -0
  9. package/deployments/zksyncsepolia/VToken_vwUSDM_Core.json +317 -0
  10. package/deployments/zksyncsepolia/solcInputs/c84b0f085ad65b3aa38a5f0d3790c387.json +448 -0
  11. package/deployments/zksyncsepolia.json +1160 -89
  12. package/deployments/zksyncsepolia_addresses.json +5 -1
  13. package/dist/deploy/001-deploy-mock-tokens.js +3 -2
  14. package/dist/deploy/009-deploy-vtokens.js +10 -1
  15. package/dist/deployments/zksyncmainnet.json +434 -0
  16. package/dist/deployments/zksyncsepolia.json +1160 -89
  17. package/dist/hardhat.config.js +7 -0
  18. package/dist/helpers/deploymentConfig.d.ts +1 -0
  19. package/dist/helpers/deploymentConfig.js +71 -6
  20. package/dist/helpers/deploymentUtils.d.ts +2 -0
  21. package/dist/helpers/deploymentUtils.js +6 -1
  22. package/dist/typechain/factories/PoolRegistryInterface__factory.d.ts +2 -16
  23. package/dist/typechain/factories/PoolRegistryInterface__factory.js +0 -119
  24. package/package.json +1 -1
  25. package/typechain/PoolRegistryInterface.d.ts +0 -178
  26. package/typechain/factories/PoolRegistryInterface__factory.ts +0 -119
@@ -276,6 +276,7 @@ const config = {
276
276
  url: process.env.ARCHIVE_NODE_bsctestnet || "https://data-seed-prebsc-1-s1.binance.org:8545",
277
277
  chainId: 97,
278
278
  live: true,
279
+ tags: ["testnet"],
279
280
  gasPrice: 20000000000,
280
281
  accounts: process.env.DEPLOYER_PRIVATE_KEY ? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`] : [],
281
282
  },
@@ -283,6 +284,7 @@ const config = {
283
284
  bscmainnet: {
284
285
  url: process.env.ARCHIVE_NODE_bscmainnet || "https://bsc-dataseed.binance.org/",
285
286
  chainId: 56,
287
+ live: true,
286
288
  timeout: 1200000,
287
289
  accounts: process.env.DEPLOYER_PRIVATE_KEY ? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`] : [],
288
290
  },
@@ -297,12 +299,14 @@ const config = {
297
299
  url: process.env.ARCHIVE_NODE_sepolia || "https://ethereum-sepolia.blockpi.network/v1/rpc/public",
298
300
  chainId: 11155111,
299
301
  live: true,
302
+ tags: ["testnet"],
300
303
  accounts: process.env.DEPLOYER_PRIVATE_KEY ? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`] : [],
301
304
  },
302
305
  opbnbtestnet: {
303
306
  url: process.env.ARCHIVE_NODE_opbnbtestnet || "https://opbnb-testnet-rpc.bnbchain.org",
304
307
  chainId: 5611,
305
308
  live: true,
309
+ tags: ["testnet"],
306
310
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
307
311
  },
308
312
  opbnbmainnet: {
@@ -315,6 +319,7 @@ const config = {
315
319
  url: process.env.ARCHIVE_NODE_arbitrumsepolia || "https://sepolia-rollup.arbitrum.io/rpc",
316
320
  chainId: 421614,
317
321
  live: true,
322
+ tags: ["testnet"],
318
323
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
319
324
  },
320
325
  arbitrumone: {
@@ -327,6 +332,7 @@ const config = {
327
332
  url: process.env.ARCHIVE_NODE_opsepolia || "https://sepolia.optimism.io",
328
333
  chainId: 11155420,
329
334
  live: true,
335
+ tags: ["testnet"],
330
336
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
331
337
  },
332
338
  opmainnet: {
@@ -339,6 +345,7 @@ const config = {
339
345
  url: process.env.ARCHIVE_NODE_basesepolia || "https://sepolia.base.org",
340
346
  chainId: 84532,
341
347
  live: true,
348
+ tags: ["testnet"],
342
349
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
343
350
  },
344
351
  basemainnet: {
@@ -36,6 +36,7 @@ type BidderDeploymentValues = {
36
36
  };
37
37
  export type TokenConfig = {
38
38
  isMock: boolean;
39
+ standard?: "ERC-20" | "ERC-4626";
39
40
  name?: string;
40
41
  symbol: string;
41
42
  decimals?: number;
@@ -155,16 +155,16 @@ exports.preconfiguredAddresses = {
155
155
  },
156
156
  zksyncsepolia: {
157
157
  VTreasury: zksyncsepolia_json_2.contracts.VTreasuryV8.address,
158
- NormalTimelock: exports.ZKSYNC_SEPOLIA_MULTISIG,
159
- FastTrackTimelock: exports.ZKSYNC_SEPOLIA_MULTISIG,
160
- CriticalTimelock: exports.ZKSYNC_SEPOLIA_MULTISIG,
158
+ NormalTimelock: zksyncsepolia_json_1.contracts.NormalTimelock.address,
159
+ FastTrackTimelock: zksyncsepolia_json_1.contracts.FastTrackTimelock.address,
160
+ CriticalTimelock: zksyncsepolia_json_1.contracts.CriticalTimelock.address,
161
161
  AccessControlManager: zksyncsepolia_json_1.contracts.AccessControlManager.address,
162
162
  },
163
163
  zksyncmainnet: {
164
164
  VTreasury: zksyncmainnet_json_2.contracts.VTreasuryV8.address,
165
- NormalTimelock: exports.ZKSYNC_MAINNET_MULTISIG,
166
- FastTrackTimelock: exports.ZKSYNC_MAINNET_MULTISIG,
167
- CriticalTimelock: exports.ZKSYNC_MAINNET_MULTISIG,
165
+ NormalTimelock: zksyncmainnet_json_1.contracts.NormalTimelock.address,
166
+ FastTrackTimelock: zksyncmainnet_json_1.contracts.FastTrackTimelock.address,
167
+ CriticalTimelock: zksyncmainnet_json_1.contracts.CriticalTimelock.address,
168
168
  AccessControlManager: zksyncmainnet_json_1.contracts.AccessControlManager.address,
169
169
  },
170
170
  opsepolia: {
@@ -5332,6 +5332,21 @@ exports.globalConfig = {
5332
5332
  decimals: 18,
5333
5333
  tokenAddress: "0x3AeCac43A2ebe5D8184e650403bf9F656F9D1cfA",
5334
5334
  },
5335
+ {
5336
+ isMock: true,
5337
+ name: "Mountain Protocol USD",
5338
+ symbol: "USDM",
5339
+ decimals: 18,
5340
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
5341
+ },
5342
+ {
5343
+ isMock: true,
5344
+ standard: "ERC-4626",
5345
+ name: "Wrapped Mountain Protocol USD",
5346
+ symbol: "wUSDM",
5347
+ decimals: 18,
5348
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
5349
+ },
5335
5350
  ],
5336
5351
  poolConfig: [
5337
5352
  {
@@ -5449,6 +5464,24 @@ exports.globalConfig = {
5449
5464
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_SEPOLIA,
5450
5465
  vTokenReceiver: exports.preconfiguredAddresses.zksyncsepolia.VTreasury,
5451
5466
  },
5467
+ {
5468
+ name: "Venus wUSDM (Core)",
5469
+ asset: "wUSDM",
5470
+ symbol: "vwUSDM_Core",
5471
+ rateModel: InterestRateModels.JumpRate.toString(),
5472
+ baseRatePerYear: "0",
5473
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.06875", 18),
5474
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
5475
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
5476
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
5477
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.78", 18),
5478
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
5479
+ initialSupply: (0, utils_1.convertToUnit)("10000", 18),
5480
+ supplyCap: (0, utils_1.convertToUnit)("5000000", 18),
5481
+ borrowCap: (0, utils_1.convertToUnit)("4000000", 18),
5482
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_SEPOLIA,
5483
+ vTokenReceiver: exports.preconfiguredAddresses.zksyncsepolia.VTreasury,
5484
+ },
5452
5485
  ],
5453
5486
  rewards: [
5454
5487
  // XVS Rewards Over 3600 days (311040000 seconds)
@@ -5528,6 +5561,20 @@ exports.globalConfig = {
5528
5561
  decimals: 6,
5529
5562
  tokenAddress: "0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4",
5530
5563
  },
5564
+ {
5565
+ isMock: false,
5566
+ name: "Mountain Protocol USD",
5567
+ symbol: "USDM",
5568
+ decimals: 18,
5569
+ tokenAddress: "0x7715c206A14Ac93Cb1A6c0316A6E5f8aD7c9Dc31",
5570
+ },
5571
+ {
5572
+ isMock: false,
5573
+ name: "Wrapped Mountain Protocol USD",
5574
+ symbol: "wUSDM",
5575
+ decimals: 18,
5576
+ tokenAddress: "0xA900cbE7739c96D2B153a273953620A701d5442b",
5577
+ },
5531
5578
  ],
5532
5579
  poolConfig: [
5533
5580
  {
@@ -5654,6 +5701,24 @@ exports.globalConfig = {
5654
5701
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET,
5655
5702
  vTokenReceiver: exports.preconfiguredAddresses.zksyncmainnet.VTreasury,
5656
5703
  },
5704
+ {
5705
+ name: "Venus wUSDM (Core)",
5706
+ asset: "wUSDM",
5707
+ symbol: "vwUSDM_Core",
5708
+ rateModel: InterestRateModels.JumpRate.toString(),
5709
+ baseRatePerYear: "0",
5710
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.06875", 18),
5711
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
5712
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
5713
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
5714
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.78", 18),
5715
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
5716
+ initialSupply: (0, utils_1.convertToUnit)("10000", 18),
5717
+ supplyCap: (0, utils_1.convertToUnit)("5000000", 18),
5718
+ borrowCap: (0, utils_1.convertToUnit)("4000000", 18),
5719
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET,
5720
+ vTokenReceiver: "0xFfCf33Ed3fc6B7eC7d4F6166cC1B86d4F42Af192",
5721
+ },
5657
5722
  ],
5658
5723
  rewards: [
5659
5724
  // XVS Rewards Over 1 month (2,592,000 seconds)
@@ -1,3 +1,4 @@
1
+ import { HardhatRuntimeEnvironment } from "hardhat/types";
1
2
  import { ERC20, MockToken } from "../typechain";
2
3
  import { DeploymentInfo, PoolConfig, TokenConfig } from "./deploymentConfig";
3
4
  export declare const toAddress: (addressOrAlias: string) => Promise<string>;
@@ -7,3 +8,4 @@ export declare const getUnregisteredPools: (poolConfig: PoolConfig[]) => Promise
7
8
  export declare const getUnregisteredVTokens: (poolConfig: PoolConfig[]) => Promise<PoolConfig[]>;
8
9
  export declare const getUnregisteredRewardsDistributors: (poolConfig: PoolConfig[]) => Promise<PoolConfig[]>;
9
10
  export declare const getBlockOrTimestampBasedDeploymentInfo: (network: string) => DeploymentInfo;
11
+ export declare const skipMainnets: () => (hre: HardhatRuntimeEnvironment) => Promise<boolean>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBlockOrTimestampBasedDeploymentInfo = exports.getUnregisteredRewardsDistributors = exports.getUnregisteredVTokens = exports.getUnregisteredPools = exports.getUnderlyingToken = exports.getUnderlyingMock = exports.toAddress = void 0;
3
+ exports.skipMainnets = exports.getBlockOrTimestampBasedDeploymentInfo = exports.getUnregisteredRewardsDistributors = exports.getUnregisteredVTokens = exports.getUnregisteredPools = exports.getUnderlyingToken = exports.getUnderlyingMock = exports.toAddress = void 0;
4
4
  const hardhat_1 = require("hardhat");
5
5
  const deploymentConfig_1 = require("./deploymentConfig");
6
6
  const toAddress = async (addressOrAlias) => {
@@ -93,3 +93,8 @@ const getBlockOrTimestampBasedDeploymentInfo = (network) => {
93
93
  return { isTimeBased: isTimeBased, blocksPerYear: deploymentConfig_1.blocksPerYear[blocksPerYearKey] };
94
94
  };
95
95
  exports.getBlockOrTimestampBasedDeploymentInfo = getBlockOrTimestampBasedDeploymentInfo;
96
+ const skipMainnets = () => async (hre) => {
97
+ const isMainnet = hre.network.live && !hre.network.tags["testnet"];
98
+ return isMainnet;
99
+ };
100
+ exports.skipMainnets = skipMainnets;
@@ -2,7 +2,7 @@ import { Signer } from "ethers";
2
2
  import { Provider } from "@ethersproject/providers";
3
3
  import type { PoolRegistryInterface, PoolRegistryInterfaceInterface } from "../PoolRegistryInterface";
4
4
  export declare class PoolRegistryInterface__factory {
5
- static readonly abi: ({
5
+ static readonly abi: {
6
6
  inputs: {
7
7
  internalType: string;
8
8
  name: string;
@@ -21,21 +21,7 @@ export declare class PoolRegistryInterface__factory {
21
21
  }[];
22
22
  stateMutability: string;
23
23
  type: string;
24
- } | {
25
- inputs: {
26
- internalType: string;
27
- name: string;
28
- type: string;
29
- }[];
30
- name: string;
31
- outputs: {
32
- internalType: string;
33
- name: string;
34
- type: string;
35
- }[];
36
- stateMutability: string;
37
- type: string;
38
- })[];
24
+ }[];
39
25
  static createInterface(): PoolRegistryInterfaceInterface;
40
26
  static connect(address: string, signerOrProvider: Signer | Provider): PoolRegistryInterface;
41
27
  }
@@ -6,46 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PoolRegistryInterface__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
- {
10
- inputs: [],
11
- name: "getAllPools",
12
- outputs: [
13
- {
14
- components: [
15
- {
16
- internalType: "string",
17
- name: "name",
18
- type: "string",
19
- },
20
- {
21
- internalType: "address",
22
- name: "creator",
23
- type: "address",
24
- },
25
- {
26
- internalType: "address",
27
- name: "comptroller",
28
- type: "address",
29
- },
30
- {
31
- internalType: "uint256",
32
- name: "blockPosted",
33
- type: "uint256",
34
- },
35
- {
36
- internalType: "uint256",
37
- name: "timestampPosted",
38
- type: "uint256",
39
- },
40
- ],
41
- internalType: "struct PoolRegistryInterface.VenusPool[]",
42
- name: "",
43
- type: "tuple[]",
44
- },
45
- ],
46
- stateMutability: "view",
47
- type: "function",
48
- },
49
9
  {
50
10
  inputs: [
51
11
  {
@@ -92,85 +52,6 @@ const _abi = [
92
52
  stateMutability: "view",
93
53
  type: "function",
94
54
  },
95
- {
96
- inputs: [
97
- {
98
- internalType: "address",
99
- name: "asset",
100
- type: "address",
101
- },
102
- ],
103
- name: "getPoolsSupportedByAsset",
104
- outputs: [
105
- {
106
- internalType: "address[]",
107
- name: "",
108
- type: "address[]",
109
- },
110
- ],
111
- stateMutability: "view",
112
- type: "function",
113
- },
114
- {
115
- inputs: [
116
- {
117
- internalType: "address",
118
- name: "comptroller",
119
- type: "address",
120
- },
121
- {
122
- internalType: "address",
123
- name: "asset",
124
- type: "address",
125
- },
126
- ],
127
- name: "getVTokenForAsset",
128
- outputs: [
129
- {
130
- internalType: "address",
131
- name: "",
132
- type: "address",
133
- },
134
- ],
135
- stateMutability: "view",
136
- type: "function",
137
- },
138
- {
139
- inputs: [
140
- {
141
- internalType: "address",
142
- name: "comptroller",
143
- type: "address",
144
- },
145
- ],
146
- name: "getVenusPoolMetadata",
147
- outputs: [
148
- {
149
- components: [
150
- {
151
- internalType: "string",
152
- name: "category",
153
- type: "string",
154
- },
155
- {
156
- internalType: "string",
157
- name: "logoURL",
158
- type: "string",
159
- },
160
- {
161
- internalType: "string",
162
- name: "description",
163
- type: "string",
164
- },
165
- ],
166
- internalType: "struct PoolRegistryInterface.VenusPoolMetaData",
167
- name: "",
168
- type: "tuple",
169
- },
170
- ],
171
- stateMutability: "view",
172
- type: "function",
173
- },
174
55
  ];
175
56
  class PoolRegistryInterface__factory {
176
57
  static createInterface() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "3.8.0-dev.4",
3
+ "version": "3.8.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",
@@ -20,54 +20,18 @@ import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
20
20
 
21
21
  interface PoolRegistryInterfaceInterface extends ethers.utils.Interface {
22
22
  functions: {
23
- "getAllPools()": FunctionFragment;
24
23
  "getPoolByComptroller(address)": FunctionFragment;
25
- "getPoolsSupportedByAsset(address)": FunctionFragment;
26
- "getVTokenForAsset(address,address)": FunctionFragment;
27
- "getVenusPoolMetadata(address)": FunctionFragment;
28
24
  };
29
25
 
30
- encodeFunctionData(
31
- functionFragment: "getAllPools",
32
- values?: undefined
33
- ): string;
34
26
  encodeFunctionData(
35
27
  functionFragment: "getPoolByComptroller",
36
28
  values: [string]
37
29
  ): string;
38
- encodeFunctionData(
39
- functionFragment: "getPoolsSupportedByAsset",
40
- values: [string]
41
- ): string;
42
- encodeFunctionData(
43
- functionFragment: "getVTokenForAsset",
44
- values: [string, string]
45
- ): string;
46
- encodeFunctionData(
47
- functionFragment: "getVenusPoolMetadata",
48
- values: [string]
49
- ): string;
50
30
 
51
- decodeFunctionResult(
52
- functionFragment: "getAllPools",
53
- data: BytesLike
54
- ): Result;
55
31
  decodeFunctionResult(
56
32
  functionFragment: "getPoolByComptroller",
57
33
  data: BytesLike
58
34
  ): Result;
59
- decodeFunctionResult(
60
- functionFragment: "getPoolsSupportedByAsset",
61
- data: BytesLike
62
- ): Result;
63
- decodeFunctionResult(
64
- functionFragment: "getVTokenForAsset",
65
- data: BytesLike
66
- ): Result;
67
- decodeFunctionResult(
68
- functionFragment: "getVenusPoolMetadata",
69
- data: BytesLike
70
- ): Result;
71
35
 
72
36
  events: {};
73
37
  }
@@ -116,20 +80,6 @@ export class PoolRegistryInterface extends BaseContract {
116
80
  interface: PoolRegistryInterfaceInterface;
117
81
 
118
82
  functions: {
119
- getAllPools(
120
- overrides?: CallOverrides
121
- ): Promise<
122
- [
123
- ([string, string, string, BigNumber, BigNumber] & {
124
- name: string;
125
- creator: string;
126
- comptroller: string;
127
- blockPosted: BigNumber;
128
- timestampPosted: BigNumber;
129
- })[]
130
- ]
131
- >;
132
-
133
83
  getPoolByComptroller(
134
84
  comptroller: string,
135
85
  overrides?: CallOverrides
@@ -144,44 +94,8 @@ export class PoolRegistryInterface extends BaseContract {
144
94
  }
145
95
  ]
146
96
  >;
147
-
148
- getPoolsSupportedByAsset(
149
- asset: string,
150
- overrides?: CallOverrides
151
- ): Promise<[string[]]>;
152
-
153
- getVTokenForAsset(
154
- comptroller: string,
155
- asset: string,
156
- overrides?: CallOverrides
157
- ): Promise<[string]>;
158
-
159
- getVenusPoolMetadata(
160
- comptroller: string,
161
- overrides?: CallOverrides
162
- ): Promise<
163
- [
164
- [string, string, string] & {
165
- category: string;
166
- logoURL: string;
167
- description: string;
168
- }
169
- ]
170
- >;
171
97
  };
172
98
 
173
- getAllPools(
174
- overrides?: CallOverrides
175
- ): Promise<
176
- ([string, string, string, BigNumber, BigNumber] & {
177
- name: string;
178
- creator: string;
179
- comptroller: string;
180
- blockPosted: BigNumber;
181
- timestampPosted: BigNumber;
182
- })[]
183
- >;
184
-
185
99
  getPoolByComptroller(
186
100
  comptroller: string,
187
101
  overrides?: CallOverrides
@@ -195,41 +109,7 @@ export class PoolRegistryInterface extends BaseContract {
195
109
  }
196
110
  >;
197
111
 
198
- getPoolsSupportedByAsset(
199
- asset: string,
200
- overrides?: CallOverrides
201
- ): Promise<string[]>;
202
-
203
- getVTokenForAsset(
204
- comptroller: string,
205
- asset: string,
206
- overrides?: CallOverrides
207
- ): Promise<string>;
208
-
209
- getVenusPoolMetadata(
210
- comptroller: string,
211
- overrides?: CallOverrides
212
- ): Promise<
213
- [string, string, string] & {
214
- category: string;
215
- logoURL: string;
216
- description: string;
217
- }
218
- >;
219
-
220
112
  callStatic: {
221
- getAllPools(
222
- overrides?: CallOverrides
223
- ): Promise<
224
- ([string, string, string, BigNumber, BigNumber] & {
225
- name: string;
226
- creator: string;
227
- comptroller: string;
228
- blockPosted: BigNumber;
229
- timestampPosted: BigNumber;
230
- })[]
231
- >;
232
-
233
113
  getPoolByComptroller(
234
114
  comptroller: string,
235
115
  overrides?: CallOverrides
@@ -242,79 +122,21 @@ export class PoolRegistryInterface extends BaseContract {
242
122
  timestampPosted: BigNumber;
243
123
  }
244
124
  >;
245
-
246
- getPoolsSupportedByAsset(
247
- asset: string,
248
- overrides?: CallOverrides
249
- ): Promise<string[]>;
250
-
251
- getVTokenForAsset(
252
- comptroller: string,
253
- asset: string,
254
- overrides?: CallOverrides
255
- ): Promise<string>;
256
-
257
- getVenusPoolMetadata(
258
- comptroller: string,
259
- overrides?: CallOverrides
260
- ): Promise<
261
- [string, string, string] & {
262
- category: string;
263
- logoURL: string;
264
- description: string;
265
- }
266
- >;
267
125
  };
268
126
 
269
127
  filters: {};
270
128
 
271
129
  estimateGas: {
272
- getAllPools(overrides?: CallOverrides): Promise<BigNumber>;
273
-
274
130
  getPoolByComptroller(
275
131
  comptroller: string,
276
132
  overrides?: CallOverrides
277
133
  ): Promise<BigNumber>;
278
-
279
- getPoolsSupportedByAsset(
280
- asset: string,
281
- overrides?: CallOverrides
282
- ): Promise<BigNumber>;
283
-
284
- getVTokenForAsset(
285
- comptroller: string,
286
- asset: string,
287
- overrides?: CallOverrides
288
- ): Promise<BigNumber>;
289
-
290
- getVenusPoolMetadata(
291
- comptroller: string,
292
- overrides?: CallOverrides
293
- ): Promise<BigNumber>;
294
134
  };
295
135
 
296
136
  populateTransaction: {
297
- getAllPools(overrides?: CallOverrides): Promise<PopulatedTransaction>;
298
-
299
137
  getPoolByComptroller(
300
138
  comptroller: string,
301
139
  overrides?: CallOverrides
302
140
  ): Promise<PopulatedTransaction>;
303
-
304
- getPoolsSupportedByAsset(
305
- asset: string,
306
- overrides?: CallOverrides
307
- ): Promise<PopulatedTransaction>;
308
-
309
- getVTokenForAsset(
310
- comptroller: string,
311
- asset: string,
312
- overrides?: CallOverrides
313
- ): Promise<PopulatedTransaction>;
314
-
315
- getVenusPoolMetadata(
316
- comptroller: string,
317
- overrides?: CallOverrides
318
- ): Promise<PopulatedTransaction>;
319
141
  };
320
142
  }