@venusprotocol/isolated-pools 3.8.0 → 3.9.0-dev.1
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/arbitrumone/VToken_vgmBTC-USDC_Core.json +257 -0
- package/deployments/arbitrumone/VToken_vgmWETH-USDC_Core.json +257 -0
- package/deployments/arbitrumone.json +148 -0
- package/deployments/arbitrumone_addresses.json +2 -0
- package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps.json +608 -0
- package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope300bps_jump45000bps_kink9000bps.json +608 -0
- package/deployments/arbitrumsepolia/MockgmBTC.json +458 -0
- package/deployments/arbitrumsepolia/MockgmETH.json +458 -0
- package/deployments/arbitrumsepolia/VToken_vgmBTC-USDC_Core.json +257 -0
- package/deployments/arbitrumsepolia/VToken_vgmWETH-USDC_Core.json +257 -0
- package/deployments/arbitrumsepolia/solcInputs/3c20dc65cc123659b5918437b44f9306.json +403 -0
- package/deployments/arbitrumsepolia.json +1549 -63
- package/deployments/arbitrumsepolia_addresses.json +6 -0
- package/dist/deployments/arbitrumone.json +148 -0
- package/dist/deployments/arbitrumsepolia.json +1549 -63
- package/dist/helpers/deploymentConfig.js +106 -6
- package/dist/typechain/factories/PoolRegistryInterface__factory.d.ts +16 -2
- package/dist/typechain/factories/PoolRegistryInterface__factory.js +119 -0
- package/package.json +1 -1
- package/typechain/PoolRegistryInterface.d.ts +178 -0
- package/typechain/factories/PoolRegistryInterface__factory.ts +119 -0
|
@@ -141,16 +141,16 @@ exports.preconfiguredAddresses = {
|
|
|
141
141
|
},
|
|
142
142
|
arbitrumsepolia: {
|
|
143
143
|
VTreasury: arbitrumsepolia_json_2.contracts.VTreasuryV8.address,
|
|
144
|
-
NormalTimelock:
|
|
145
|
-
FastTrackTimelock:
|
|
146
|
-
CriticalTimelock:
|
|
144
|
+
NormalTimelock: arbitrumsepolia_json_1.contracts.NormalTimelock.address,
|
|
145
|
+
FastTrackTimelock: arbitrumsepolia_json_1.contracts.FastTrackTimelock.address,
|
|
146
|
+
CriticalTimelock: arbitrumsepolia_json_1.contracts.CriticalTimelock.address,
|
|
147
147
|
AccessControlManager: arbitrumsepolia_json_1.contracts.AccessControlManager.address,
|
|
148
148
|
},
|
|
149
149
|
arbitrumone: {
|
|
150
150
|
VTreasury: arbitrumone_json_2.contracts.VTreasuryV8.address,
|
|
151
|
-
NormalTimelock:
|
|
152
|
-
FastTrackTimelock:
|
|
153
|
-
CriticalTimelock:
|
|
151
|
+
NormalTimelock: arbitrumone_json_1.contracts.NormalTimelock.address,
|
|
152
|
+
FastTrackTimelock: arbitrumone_json_1.contracts.FastTrackTimelock.address,
|
|
153
|
+
CriticalTimelock: arbitrumone_json_1.contracts.CriticalTimelock.address,
|
|
154
154
|
AccessControlManager: arbitrumone_json_1.contracts.AccessControlManager.address,
|
|
155
155
|
},
|
|
156
156
|
zksyncsepolia: {
|
|
@@ -4832,6 +4832,20 @@ exports.globalConfig = {
|
|
|
4832
4832
|
decimals: 18,
|
|
4833
4833
|
tokenAddress: "0x980b62da83eff3d4576c647993b0c1d7faf17c73",
|
|
4834
4834
|
},
|
|
4835
|
+
{
|
|
4836
|
+
isMock: true,
|
|
4837
|
+
name: "GMX Market",
|
|
4838
|
+
symbol: "gmETH",
|
|
4839
|
+
decimals: 18,
|
|
4840
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
isMock: true,
|
|
4844
|
+
name: "GMX Market",
|
|
4845
|
+
symbol: "gmBTC",
|
|
4846
|
+
decimals: 18,
|
|
4847
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
4848
|
+
},
|
|
4835
4849
|
],
|
|
4836
4850
|
poolConfig: [
|
|
4837
4851
|
{
|
|
@@ -4931,6 +4945,42 @@ exports.globalConfig = {
|
|
|
4931
4945
|
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
|
|
4932
4946
|
vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
|
|
4933
4947
|
},
|
|
4948
|
+
{
|
|
4949
|
+
name: "Venus gmWETH-USDC (Core)",
|
|
4950
|
+
asset: "gmETH",
|
|
4951
|
+
symbol: "vgmWETH-USDC_Core",
|
|
4952
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
4953
|
+
baseRatePerYear: "0",
|
|
4954
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.03", 18),
|
|
4955
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("4.5", 18),
|
|
4956
|
+
kink_: (0, utils_1.convertToUnit)("0.9", 18),
|
|
4957
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
4958
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
4959
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
4960
|
+
initialSupply: (0, utils_1.convertToUnit)("6000", 18),
|
|
4961
|
+
supplyCap: (0, utils_1.convertToUnit)("2000000", 18),
|
|
4962
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
4963
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
|
|
4964
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
name: "Venus gmBTC-USDC (Core)",
|
|
4968
|
+
asset: "gmBTC",
|
|
4969
|
+
symbol: "vgmBTC-USDC_Core",
|
|
4970
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
4971
|
+
baseRatePerYear: "0",
|
|
4972
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
4973
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
4974
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
4975
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
4976
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
4977
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
4978
|
+
initialSupply: (0, utils_1.convertToUnit)("4800", 18),
|
|
4979
|
+
supplyCap: (0, utils_1.convertToUnit)("2650000", 18),
|
|
4980
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
4981
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
|
|
4982
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
|
|
4983
|
+
},
|
|
4934
4984
|
],
|
|
4935
4985
|
rewards: [
|
|
4936
4986
|
{
|
|
@@ -5070,6 +5120,20 @@ exports.globalConfig = {
|
|
|
5070
5120
|
decimals: 18,
|
|
5071
5121
|
tokenAddress: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe",
|
|
5072
5122
|
},
|
|
5123
|
+
{
|
|
5124
|
+
isMock: false,
|
|
5125
|
+
name: "GMX Market",
|
|
5126
|
+
symbol: "GM",
|
|
5127
|
+
decimals: 18,
|
|
5128
|
+
tokenAddress: "0x70d95587d40A2caf56bd97485aB3Eec10Bee6336",
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
isMock: false,
|
|
5132
|
+
name: "GMX Market",
|
|
5133
|
+
symbol: "GM",
|
|
5134
|
+
decimals: 18,
|
|
5135
|
+
tokenAddress: "0x47c031236e19d024b42f8AE6780E44A573170703",
|
|
5136
|
+
},
|
|
5073
5137
|
],
|
|
5074
5138
|
poolConfig: [
|
|
5075
5139
|
{
|
|
@@ -5175,6 +5239,42 @@ exports.globalConfig = {
|
|
|
5175
5239
|
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
5176
5240
|
vTokenReceiver: exports.preconfiguredAddresses.arbitrumone.VTreasury,
|
|
5177
5241
|
},
|
|
5242
|
+
{
|
|
5243
|
+
name: "Venus gmWETH-USDC (Core)",
|
|
5244
|
+
asset: "gmETH",
|
|
5245
|
+
symbol: "vgmWETH-USDC_Core",
|
|
5246
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
5247
|
+
baseRatePerYear: "0",
|
|
5248
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.03", 18),
|
|
5249
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("4.5", 18),
|
|
5250
|
+
kink_: (0, utils_1.convertToUnit)("0.9", 18),
|
|
5251
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
5252
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
5253
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
5254
|
+
initialSupply: (0, utils_1.convertToUnit)("6000", 18),
|
|
5255
|
+
supplyCap: (0, utils_1.convertToUnit)("2000000", 18),
|
|
5256
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
5257
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
5258
|
+
vTokenReceiver: "0xe1f7c5209938780625E354dc546E28397F6Ce174",
|
|
5259
|
+
},
|
|
5260
|
+
{
|
|
5261
|
+
name: "Venus gmBTC-USDC (Core)",
|
|
5262
|
+
asset: "gmBTC",
|
|
5263
|
+
symbol: "vgmBTC-USDC_Core",
|
|
5264
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
5265
|
+
baseRatePerYear: "0",
|
|
5266
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
5267
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
5268
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
5269
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
5270
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
5271
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
5272
|
+
initialSupply: (0, utils_1.convertToUnit)("4800", 18),
|
|
5273
|
+
supplyCap: (0, utils_1.convertToUnit)("2650000", 18),
|
|
5274
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
5275
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
5276
|
+
vTokenReceiver: "0xe1f7c5209938780625E354dc546E28397F6Ce174",
|
|
5277
|
+
},
|
|
5178
5278
|
],
|
|
5179
5279
|
rewards: [
|
|
5180
5280
|
// XVS Rewards Over 90 days (7776000 seconds)
|
|
@@ -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,7 +21,21 @@ export declare class PoolRegistryInterface__factory {
|
|
|
21
21
|
}[];
|
|
22
22
|
stateMutability: string;
|
|
23
23
|
type: string;
|
|
24
|
-
}
|
|
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
|
+
})[];
|
|
25
39
|
static createInterface(): PoolRegistryInterfaceInterface;
|
|
26
40
|
static connect(address: string, signerOrProvider: Signer | Provider): PoolRegistryInterface;
|
|
27
41
|
}
|
|
@@ -6,6 +6,46 @@ 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
|
+
},
|
|
9
49
|
{
|
|
10
50
|
inputs: [
|
|
11
51
|
{
|
|
@@ -52,6 +92,85 @@ const _abi = [
|
|
|
52
92
|
stateMutability: "view",
|
|
53
93
|
type: "function",
|
|
54
94
|
},
|
|
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
|
+
},
|
|
55
174
|
];
|
|
56
175
|
class PoolRegistryInterface__factory {
|
|
57
176
|
static createInterface() {
|
package/package.json
CHANGED
|
@@ -20,18 +20,54 @@ import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
|
|
|
20
20
|
|
|
21
21
|
interface PoolRegistryInterfaceInterface extends ethers.utils.Interface {
|
|
22
22
|
functions: {
|
|
23
|
+
"getAllPools()": FunctionFragment;
|
|
23
24
|
"getPoolByComptroller(address)": FunctionFragment;
|
|
25
|
+
"getPoolsSupportedByAsset(address)": FunctionFragment;
|
|
26
|
+
"getVTokenForAsset(address,address)": FunctionFragment;
|
|
27
|
+
"getVenusPoolMetadata(address)": FunctionFragment;
|
|
24
28
|
};
|
|
25
29
|
|
|
30
|
+
encodeFunctionData(
|
|
31
|
+
functionFragment: "getAllPools",
|
|
32
|
+
values?: undefined
|
|
33
|
+
): string;
|
|
26
34
|
encodeFunctionData(
|
|
27
35
|
functionFragment: "getPoolByComptroller",
|
|
28
36
|
values: [string]
|
|
29
37
|
): 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;
|
|
30
50
|
|
|
51
|
+
decodeFunctionResult(
|
|
52
|
+
functionFragment: "getAllPools",
|
|
53
|
+
data: BytesLike
|
|
54
|
+
): Result;
|
|
31
55
|
decodeFunctionResult(
|
|
32
56
|
functionFragment: "getPoolByComptroller",
|
|
33
57
|
data: BytesLike
|
|
34
58
|
): 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;
|
|
35
71
|
|
|
36
72
|
events: {};
|
|
37
73
|
}
|
|
@@ -80,6 +116,20 @@ export class PoolRegistryInterface extends BaseContract {
|
|
|
80
116
|
interface: PoolRegistryInterfaceInterface;
|
|
81
117
|
|
|
82
118
|
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
|
+
|
|
83
133
|
getPoolByComptroller(
|
|
84
134
|
comptroller: string,
|
|
85
135
|
overrides?: CallOverrides
|
|
@@ -94,8 +144,44 @@ export class PoolRegistryInterface extends BaseContract {
|
|
|
94
144
|
}
|
|
95
145
|
]
|
|
96
146
|
>;
|
|
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
|
+
>;
|
|
97
171
|
};
|
|
98
172
|
|
|
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
|
+
|
|
99
185
|
getPoolByComptroller(
|
|
100
186
|
comptroller: string,
|
|
101
187
|
overrides?: CallOverrides
|
|
@@ -109,7 +195,41 @@ export class PoolRegistryInterface extends BaseContract {
|
|
|
109
195
|
}
|
|
110
196
|
>;
|
|
111
197
|
|
|
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
|
+
|
|
112
220
|
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
|
+
|
|
113
233
|
getPoolByComptroller(
|
|
114
234
|
comptroller: string,
|
|
115
235
|
overrides?: CallOverrides
|
|
@@ -122,21 +242,79 @@ export class PoolRegistryInterface extends BaseContract {
|
|
|
122
242
|
timestampPosted: BigNumber;
|
|
123
243
|
}
|
|
124
244
|
>;
|
|
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
|
+
>;
|
|
125
267
|
};
|
|
126
268
|
|
|
127
269
|
filters: {};
|
|
128
270
|
|
|
129
271
|
estimateGas: {
|
|
272
|
+
getAllPools(overrides?: CallOverrides): Promise<BigNumber>;
|
|
273
|
+
|
|
130
274
|
getPoolByComptroller(
|
|
131
275
|
comptroller: string,
|
|
132
276
|
overrides?: CallOverrides
|
|
133
277
|
): 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>;
|
|
134
294
|
};
|
|
135
295
|
|
|
136
296
|
populateTransaction: {
|
|
297
|
+
getAllPools(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
298
|
+
|
|
137
299
|
getPoolByComptroller(
|
|
138
300
|
comptroller: string,
|
|
139
301
|
overrides?: CallOverrides
|
|
140
302
|
): 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>;
|
|
141
319
|
};
|
|
142
320
|
}
|
|
@@ -10,6 +10,46 @@ import type {
|
|
|
10
10
|
} from "../PoolRegistryInterface";
|
|
11
11
|
|
|
12
12
|
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "getAllPools",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
components: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "string",
|
|
21
|
+
name: "name",
|
|
22
|
+
type: "string",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "creator",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "address",
|
|
31
|
+
name: "comptroller",
|
|
32
|
+
type: "address",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint256",
|
|
36
|
+
name: "blockPosted",
|
|
37
|
+
type: "uint256",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "timestampPosted",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
internalType: "struct PoolRegistryInterface.VenusPool[]",
|
|
46
|
+
name: "",
|
|
47
|
+
type: "tuple[]",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
type: "function",
|
|
52
|
+
},
|
|
13
53
|
{
|
|
14
54
|
inputs: [
|
|
15
55
|
{
|
|
@@ -56,6 +96,85 @@ const _abi = [
|
|
|
56
96
|
stateMutability: "view",
|
|
57
97
|
type: "function",
|
|
58
98
|
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "asset",
|
|
104
|
+
type: "address",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
name: "getPoolsSupportedByAsset",
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "address[]",
|
|
111
|
+
name: "",
|
|
112
|
+
type: "address[]",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "address",
|
|
122
|
+
name: "comptroller",
|
|
123
|
+
type: "address",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
internalType: "address",
|
|
127
|
+
name: "asset",
|
|
128
|
+
type: "address",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
name: "getVTokenForAsset",
|
|
132
|
+
outputs: [
|
|
133
|
+
{
|
|
134
|
+
internalType: "address",
|
|
135
|
+
name: "",
|
|
136
|
+
type: "address",
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
stateMutability: "view",
|
|
140
|
+
type: "function",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
inputs: [
|
|
144
|
+
{
|
|
145
|
+
internalType: "address",
|
|
146
|
+
name: "comptroller",
|
|
147
|
+
type: "address",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
name: "getVenusPoolMetadata",
|
|
151
|
+
outputs: [
|
|
152
|
+
{
|
|
153
|
+
components: [
|
|
154
|
+
{
|
|
155
|
+
internalType: "string",
|
|
156
|
+
name: "category",
|
|
157
|
+
type: "string",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
internalType: "string",
|
|
161
|
+
name: "logoURL",
|
|
162
|
+
type: "string",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
internalType: "string",
|
|
166
|
+
name: "description",
|
|
167
|
+
type: "string",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
internalType: "struct PoolRegistryInterface.VenusPoolMetaData",
|
|
171
|
+
name: "",
|
|
172
|
+
type: "tuple",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
stateMutability: "view",
|
|
176
|
+
type: "function",
|
|
177
|
+
},
|
|
59
178
|
];
|
|
60
179
|
|
|
61
180
|
export class PoolRegistryInterface__factory {
|