@venusprotocol/isolated-pools 4.2.0-dev.11 → 4.2.0-dev.13
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/unichainmainnet/JumpRateModelV2_base0bps_slope1500bps_jump30000bps_kink4500bps_timeBased.json +608 -0
- package/deployments/unichainmainnet/JumpRateModelV2_base0bps_slope900bps_jump30000bps_kink4500bps_timeBased.json +608 -0
- package/deployments/unichainmainnet/VToken_vweETH_Core.json +257 -0
- package/deployments/unichainmainnet/VToken_vwstETH_Core.json +257 -0
- package/deployments/unichainmainnet/solcInputs/57ced15f79b2db7e80f32235fc26da90.json +505 -0
- package/deployments/unichainmainnet/solcInputs/ce6625b54019da2185242b008485096c.json +487 -0
- package/deployments/unichainmainnet.json +872 -4
- package/deployments/unichainmainnet_addresses.json +5 -1
- package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope1500bps_jump30000bps_kink4500bps_timeBased.json +608 -0
- package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope900bps_jump30000bps_kink4500bps_timeBased.json +608 -0
- package/deployments/unichainsepolia/MockweETH.json +458 -0
- package/deployments/unichainsepolia/MockwstETH.json +458 -0
- package/deployments/unichainsepolia/VToken_vweETH_Core.json +257 -0
- package/deployments/unichainsepolia/VToken_vwstETH_Core.json +257 -0
- package/deployments/unichainsepolia/solcInputs/57ced15f79b2db7e80f32235fc26da90.json +505 -0
- package/deployments/unichainsepolia/solcInputs/ce6625b54019da2185242b008485096c.json +487 -0
- package/deployments/unichainsepolia.json +1547 -61
- package/deployments/unichainsepolia_addresses.json +7 -1
- package/dist/deployments/unichainmainnet.json +872 -4
- package/dist/deployments/unichainsepolia.json +1547 -61
- package/dist/helpers/deploymentConfig.js +116 -12
- package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
- package/dist/typechain/factories/IVToken__factory.js +1 -201
- package/dist/typechain/factories/PoolRegistryInterface__factory.d.ts +2 -16
- package/dist/typechain/factories/PoolRegistryInterface__factory.js +0 -119
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +4 -341
- package/typechain/PoolRegistryInterface.d.ts +0 -178
- package/typechain/factories/IVToken__factory.ts +1 -201
- package/typechain/factories/PoolRegistryInterface__factory.ts +0 -119
|
@@ -206,14 +206,14 @@ exports.preconfiguredAddresses = {
|
|
|
206
206
|
},
|
|
207
207
|
unichainsepolia: {
|
|
208
208
|
VTreasury: "0x0C7CB62F2194cD701bcE8FD8067b43A3Bb76428e",
|
|
209
|
-
NormalTimelock:
|
|
209
|
+
NormalTimelock: "0x5e20F5A2e23463D39287185DF84607DF7068F314",
|
|
210
210
|
FastTrackTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
|
|
211
211
|
CriticalTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
|
|
212
212
|
AccessControlManager: "0x854C064EA6b503A97980F481FA3B7279012fdeDd",
|
|
213
213
|
},
|
|
214
214
|
unichainmainnet: {
|
|
215
215
|
VTreasury: "0x958F4C84d3ad523Fa9936Dc465A123C7AD43D69B",
|
|
216
|
-
NormalTimelock:
|
|
216
|
+
NormalTimelock: "0x918532A78d22419Da4091930d472bDdf532BE89a",
|
|
217
217
|
FastTrackTimelock: exports.UNICHAIN_MAINNET_MULTISIG,
|
|
218
218
|
CriticalTimelock: exports.UNICHAIN_MAINNET_MULTISIG,
|
|
219
219
|
AccessControlManager: "0x1f12014c497a9d905155eB9BfDD9FaC6885e61d0",
|
|
@@ -7174,6 +7174,20 @@ exports.globalConfig = {
|
|
|
7174
7174
|
decimals: 18,
|
|
7175
7175
|
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
7176
7176
|
},
|
|
7177
|
+
{
|
|
7178
|
+
isMock: true,
|
|
7179
|
+
name: "Wrapped eETH",
|
|
7180
|
+
symbol: "weETH",
|
|
7181
|
+
decimals: 18,
|
|
7182
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
7183
|
+
},
|
|
7184
|
+
{
|
|
7185
|
+
isMock: true,
|
|
7186
|
+
name: "Wrapped liquid staked Ether 2.0",
|
|
7187
|
+
symbol: "wstETH",
|
|
7188
|
+
decimals: 18,
|
|
7189
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
7190
|
+
},
|
|
7177
7191
|
],
|
|
7178
7192
|
poolConfig: [
|
|
7179
7193
|
{
|
|
@@ -7263,13 +7277,49 @@ exports.globalConfig = {
|
|
|
7263
7277
|
baseRatePerYear: "0",
|
|
7264
7278
|
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
7265
7279
|
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
7266
|
-
kink_: (0, utils_1.convertToUnit)("0.
|
|
7267
|
-
collateralFactor: (0, utils_1.convertToUnit)("0", 18),
|
|
7268
|
-
liquidationThreshold: (0, utils_1.convertToUnit)("0", 18),
|
|
7280
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
7281
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
|
|
7282
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.55", 18),
|
|
7269
7283
|
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
7270
7284
|
initialSupply: (0, utils_1.convertToUnit)("529.463427983309919376", 18),
|
|
7271
|
-
supplyCap: (0, utils_1.convertToUnit)("
|
|
7272
|
-
borrowCap: (0, utils_1.convertToUnit)("
|
|
7285
|
+
supplyCap: (0, utils_1.convertToUnit)("4000000", 18),
|
|
7286
|
+
borrowCap: (0, utils_1.convertToUnit)("2000000", 18),
|
|
7287
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
|
|
7288
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
|
|
7289
|
+
},
|
|
7290
|
+
{
|
|
7291
|
+
name: "Venus wstETH (Core)",
|
|
7292
|
+
asset: "wstETH",
|
|
7293
|
+
symbol: "vwstETH_Core",
|
|
7294
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
7295
|
+
baseRatePerYear: "0",
|
|
7296
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
7297
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
7298
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
7299
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
|
|
7300
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.725", 18),
|
|
7301
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
7302
|
+
initialSupply: (0, utils_1.convertToUnit)("3", 18),
|
|
7303
|
+
supplyCap: (0, utils_1.convertToUnit)("14000", 18),
|
|
7304
|
+
borrowCap: (0, utils_1.convertToUnit)("7000", 18),
|
|
7305
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
|
|
7306
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
|
|
7307
|
+
},
|
|
7308
|
+
{
|
|
7309
|
+
name: "Venus weETH (Core)",
|
|
7310
|
+
asset: "weETH",
|
|
7311
|
+
symbol: "vweETH_Core",
|
|
7312
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
7313
|
+
baseRatePerYear: "0",
|
|
7314
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
|
|
7315
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
7316
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
7317
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
|
|
7318
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
|
|
7319
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.4", 18),
|
|
7320
|
+
initialSupply: (0, utils_1.convertToUnit)("3", 18),
|
|
7321
|
+
supplyCap: (0, utils_1.convertToUnit)("4000", 18),
|
|
7322
|
+
borrowCap: (0, utils_1.convertToUnit)("400", 18),
|
|
7273
7323
|
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
|
|
7274
7324
|
vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
|
|
7275
7325
|
},
|
|
@@ -7331,6 +7381,20 @@ exports.globalConfig = {
|
|
|
7331
7381
|
decimals: 18,
|
|
7332
7382
|
tokenAddress: "0x8f187aa05619a017077f5308904739877ce9ea21",
|
|
7333
7383
|
},
|
|
7384
|
+
{
|
|
7385
|
+
isMock: false,
|
|
7386
|
+
name: "Wrapped eETH",
|
|
7387
|
+
symbol: "weETH",
|
|
7388
|
+
decimals: 18,
|
|
7389
|
+
tokenAddress: "0x7DCC39B4d1C53CB31e1aBc0e358b43987FEF80f7",
|
|
7390
|
+
},
|
|
7391
|
+
{
|
|
7392
|
+
isMock: false,
|
|
7393
|
+
name: "Wrapped liquid staked Ether 2.0",
|
|
7394
|
+
symbol: "wstETH",
|
|
7395
|
+
decimals: 18,
|
|
7396
|
+
tokenAddress: "0xc02fE7317D4eb8753a02c35fe019786854A92001",
|
|
7397
|
+
},
|
|
7334
7398
|
],
|
|
7335
7399
|
poolConfig: [
|
|
7336
7400
|
{
|
|
@@ -7384,13 +7448,49 @@ exports.globalConfig = {
|
|
|
7384
7448
|
baseRatePerYear: "0",
|
|
7385
7449
|
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
7386
7450
|
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
7387
|
-
kink_: (0, utils_1.convertToUnit)("0.
|
|
7388
|
-
collateralFactor: (0, utils_1.convertToUnit)("0", 18),
|
|
7389
|
-
liquidationThreshold: (0, utils_1.convertToUnit)("0", 18),
|
|
7451
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
7452
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
|
|
7453
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.55", 18),
|
|
7390
7454
|
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
7391
7455
|
initialSupply: (0, utils_1.convertToUnit)("529.463427983309919376", 18),
|
|
7392
|
-
supplyCap: (0, utils_1.convertToUnit)("
|
|
7393
|
-
borrowCap: (0, utils_1.convertToUnit)("
|
|
7456
|
+
supplyCap: (0, utils_1.convertToUnit)("4000000", 18),
|
|
7457
|
+
borrowCap: (0, utils_1.convertToUnit)("2000000", 18),
|
|
7458
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_MAINNET,
|
|
7459
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainmainnet.VTreasury,
|
|
7460
|
+
},
|
|
7461
|
+
{
|
|
7462
|
+
name: "Venus wstETH (Core)",
|
|
7463
|
+
asset: "wstETH",
|
|
7464
|
+
symbol: "vwstETH_Core",
|
|
7465
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
7466
|
+
baseRatePerYear: "0",
|
|
7467
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
7468
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
7469
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
7470
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
|
|
7471
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.725", 18),
|
|
7472
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
7473
|
+
initialSupply: (0, utils_1.convertToUnit)("3", 18),
|
|
7474
|
+
supplyCap: (0, utils_1.convertToUnit)("14000", 18),
|
|
7475
|
+
borrowCap: (0, utils_1.convertToUnit)("7000", 18),
|
|
7476
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_MAINNET,
|
|
7477
|
+
vTokenReceiver: exports.preconfiguredAddresses.unichainmainnet.VTreasury,
|
|
7478
|
+
},
|
|
7479
|
+
{
|
|
7480
|
+
name: "Venus weETH (Core)",
|
|
7481
|
+
asset: "weETH",
|
|
7482
|
+
symbol: "vweETH_Core",
|
|
7483
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
7484
|
+
baseRatePerYear: "0",
|
|
7485
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
|
|
7486
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
7487
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
7488
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
|
|
7489
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
|
|
7490
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.4", 18),
|
|
7491
|
+
initialSupply: (0, utils_1.convertToUnit)("3", 18),
|
|
7492
|
+
supplyCap: (0, utils_1.convertToUnit)("4000", 18),
|
|
7493
|
+
borrowCap: (0, utils_1.convertToUnit)("400", 18),
|
|
7394
7494
|
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_MAINNET,
|
|
7395
7495
|
vTokenReceiver: exports.preconfiguredAddresses.unichainmainnet.VTreasury,
|
|
7396
7496
|
},
|
|
@@ -7659,6 +7759,10 @@ function getMaxBorrowRateMantissa(networkName) {
|
|
|
7659
7759
|
return ethers_1.BigNumber.from(0.0005e16);
|
|
7660
7760
|
case "opbnbmainnet":
|
|
7661
7761
|
return ethers_1.BigNumber.from(0.0005e16);
|
|
7762
|
+
case "unichainsepolia":
|
|
7763
|
+
return ethers_1.BigNumber.from(0.0005e16);
|
|
7764
|
+
case "unichainmainnet":
|
|
7765
|
+
return ethers_1.BigNumber.from(0.0005e16);
|
|
7662
7766
|
case "development":
|
|
7663
7767
|
return ethers_1.BigNumber.from(0.0005e16);
|
|
7664
7768
|
default:
|
|
@@ -3,11 +3,7 @@ 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:
|
|
7
|
-
internalType: string;
|
|
8
|
-
name: string;
|
|
9
|
-
type: string;
|
|
10
|
-
}[];
|
|
6
|
+
inputs: never[];
|
|
11
7
|
name: string;
|
|
12
8
|
outputs: {
|
|
13
9
|
internalType: string;
|
|
@@ -6,206 +6,6 @@ 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
|
-
},
|
|
209
9
|
{
|
|
210
10
|
inputs: [],
|
|
211
11
|
name: "underlying",
|
|
@@ -216,7 +16,7 @@ const _abi = [
|
|
|
216
16
|
type: "address",
|
|
217
17
|
},
|
|
218
18
|
],
|
|
219
|
-
stateMutability: "
|
|
19
|
+
stateMutability: "view",
|
|
220
20
|
type: "function",
|
|
221
21
|
},
|
|
222
22
|
];
|
|
@@ -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() {
|