@venusprotocol/isolated-pools 4.3.0-dev.6 → 4.4.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/dist/deploy/018-native-token-gateway.js +0 -7
- package/dist/hardhat.config.js +0 -21
- package/dist/helpers/deploymentConfig.d.ts +0 -8
- package/dist/helpers/deploymentConfig.js +0 -113
- 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
- package/deployments/berachainbartio/.chainId +0 -1
- package/deployments/berachainbartio/ComptrollerBeacon.json +0 -206
- package/deployments/berachainbartio/ComptrollerImpl.json +0 -3396
- package/deployments/berachainbartio/Comptroller_Core.json +0 -187
- package/deployments/berachainbartio/DefaultProxyAdmin.json +0 -200
- package/deployments/berachainbartio/JumpRateModelV2_base0bps_slope875bps_jump25000bps_kink8000bps_timeBased.json +0 -608
- package/deployments/berachainbartio/MockUSDC.e.json +0 -458
- package/deployments/berachainbartio/MockWETH.json +0 -458
- package/deployments/berachainbartio/NativeTokenGateway_vWBERA_Core.json +0 -599
- package/deployments/berachainbartio/PoolLens.json +0 -1416
- package/deployments/berachainbartio/PoolRegistry.json +0 -940
- package/deployments/berachainbartio/PoolRegistry_Implementation.json +0 -1194
- package/deployments/berachainbartio/PoolRegistry_Proxy.json +0 -262
- package/deployments/berachainbartio/VTokenBeacon.json +0 -206
- package/deployments/berachainbartio/VTokenImpl.json +0 -3269
- package/deployments/berachainbartio/VToken_vUSDC.e_Core.json +0 -257
- package/deployments/berachainbartio/VToken_vWBERA_Core.json +0 -257
- package/deployments/berachainbartio/VToken_vWETH_Core.json +0 -257
- package/deployments/berachainbartio/solcInputs/bf6504e8406cd8d7763a8de7cdacad9c.json +0 -454
- package/deployments/berachainbartio.json +0 -9030
- package/deployments/berachainbartio_addresses.json +0 -23
- package/dist/deployments/berachainbartio.json +0 -9030
|
@@ -5,7 +5,6 @@ const arbitrumone_json_1 = require("../deployments/arbitrumone.json");
|
|
|
5
5
|
const arbitrumsepolia_json_1 = require("../deployments/arbitrumsepolia.json");
|
|
6
6
|
const basemainnet_json_1 = require("../deployments/basemainnet.json");
|
|
7
7
|
const basesepolia_json_1 = require("../deployments/basesepolia.json");
|
|
8
|
-
const berachainbartio_json_1 = require("../deployments/berachainbartio.json");
|
|
9
8
|
const bscmainnet_json_1 = require("../deployments/bscmainnet.json");
|
|
10
9
|
const bsctestnet_json_1 = require("../deployments/bsctestnet.json");
|
|
11
10
|
const ethereum_json_1 = require("../deployments/ethereum.json");
|
|
@@ -132,12 +131,6 @@ const VWNativeInfo = {
|
|
|
132
131
|
address: unichainmainnet_json_1.contracts.VToken_vWETH_Core.address,
|
|
133
132
|
},
|
|
134
133
|
],
|
|
135
|
-
berachainbartio: [
|
|
136
|
-
{
|
|
137
|
-
name: "vWBERA_Core",
|
|
138
|
-
address: berachainbartio_json_1.contracts.VToken_vWBERA_Core.address,
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
134
|
};
|
|
142
135
|
const getVWNativeTokens = (networkName) => {
|
|
143
136
|
const vTokensInfo = VWNativeInfo[networkName];
|
package/dist/hardhat.config.js
CHANGED
|
@@ -123,11 +123,6 @@ const getRpcUrl = (networkName) => {
|
|
|
123
123
|
"node_modules/@venusprotocol/protocol-reserve/deployments/unichainmainnet",
|
|
124
124
|
"node_modules/@venusprotocol/governance-contracts/deployments/unichainmainnet",
|
|
125
125
|
],
|
|
126
|
-
berachainbartio: [
|
|
127
|
-
"node_modules/@venusprotocol/oracle/deployments/berachainbartio",
|
|
128
|
-
"node_modules/@venusprotocol/protocol-reserve/deployments/berachainbartio",
|
|
129
|
-
"node_modules/@venusprotocol/governance-contracts/deployments/berachainbartio",
|
|
130
|
-
],
|
|
131
126
|
},
|
|
132
127
|
};
|
|
133
128
|
if (process.env.HARDHAT_FORK_NETWORK) {
|
|
@@ -382,13 +377,6 @@ const config = {
|
|
|
382
377
|
live: true,
|
|
383
378
|
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
384
379
|
},
|
|
385
|
-
berachainbartio: {
|
|
386
|
-
url: process.env.ARCHIVE_NODE_berachainbartio || "https://bartio.rpc.berachain.com",
|
|
387
|
-
chainId: 80084,
|
|
388
|
-
live: true,
|
|
389
|
-
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
390
|
-
tags: ["testnet"],
|
|
391
|
-
},
|
|
392
380
|
},
|
|
393
381
|
gasReporter: {
|
|
394
382
|
enabled: process.env.REPORT_GAS !== undefined,
|
|
@@ -516,14 +504,6 @@ const config = {
|
|
|
516
504
|
browserURL: "https://uniscan.xyz/",
|
|
517
505
|
},
|
|
518
506
|
},
|
|
519
|
-
{
|
|
520
|
-
network: "berachainbartio",
|
|
521
|
-
chainId: 80084,
|
|
522
|
-
urls: {
|
|
523
|
-
apiURL: "https://api.routescan.io/v2/network/testnet/evm/80084/etherscan",
|
|
524
|
-
browserURL: "https://bartio.beratrail.io",
|
|
525
|
-
},
|
|
526
|
-
},
|
|
527
507
|
],
|
|
528
508
|
apiKey: {
|
|
529
509
|
bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
@@ -540,7 +520,6 @@ const config = {
|
|
|
540
520
|
basemainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
541
521
|
unichainsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
542
522
|
unichainmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
543
|
-
berachainbartio: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
544
523
|
},
|
|
545
524
|
},
|
|
546
525
|
paths: {
|
|
@@ -18,7 +18,6 @@ export type NetworkConfig = {
|
|
|
18
18
|
basemainnet: DeploymentConfig;
|
|
19
19
|
unichainsepolia: DeploymentConfig;
|
|
20
20
|
unichainmainnet: DeploymentConfig;
|
|
21
|
-
berachainbartio: DeploymentConfig;
|
|
22
21
|
};
|
|
23
22
|
export type PreconfiguredAddresses = {
|
|
24
23
|
[contract: string]: string;
|
|
@@ -258,13 +257,6 @@ export declare const preconfiguredAddresses: {
|
|
|
258
257
|
CriticalTimelock: string;
|
|
259
258
|
AccessControlManager: string;
|
|
260
259
|
};
|
|
261
|
-
berachainbartio: {
|
|
262
|
-
VTreasury: string;
|
|
263
|
-
NormalTimelock: string;
|
|
264
|
-
FastTrackTimelock: string;
|
|
265
|
-
CriticalTimelock: string;
|
|
266
|
-
AccessControlManager: string;
|
|
267
|
-
};
|
|
268
260
|
};
|
|
269
261
|
export declare const globalConfig: NetworkConfig;
|
|
270
262
|
export declare function getConfig(networkName: string): Promise<DeploymentConfig>;
|
|
@@ -56,7 +56,6 @@ exports.blocksPerYear = {
|
|
|
56
56
|
basemainnet: "time-based",
|
|
57
57
|
unichainsepolia: "time-based",
|
|
58
58
|
unichainmainnet: "time-based",
|
|
59
|
-
berachainbartio: "time-based",
|
|
60
59
|
isTimeBased: "time-based",
|
|
61
60
|
};
|
|
62
61
|
exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
|
|
@@ -218,13 +217,6 @@ exports.preconfiguredAddresses = {
|
|
|
218
217
|
CriticalTimelock: exports.UNICHAIN_MAINNET_MULTISIG,
|
|
219
218
|
AccessControlManager: "0x1f12014c497a9d905155eB9BfDD9FaC6885e61d0",
|
|
220
219
|
},
|
|
221
|
-
berachainbartio: {
|
|
222
|
-
VTreasury: "0xF2f878a9cF9a43409F673CfA17B4F1E9D8169211",
|
|
223
|
-
NormalTimelock: "0x8699D418D8bae5CFdc566E4fce897B08bd9B03B0",
|
|
224
|
-
FastTrackTimelock: "0x723b7CB226d86bd89638ec77936463453a46C656",
|
|
225
|
-
CriticalTimelock: "0x920eeE8A5581e80Ca9C47CbF11B7A6cDB30204BD",
|
|
226
|
-
AccessControlManager: "0xEf368e4c1f9ACC9241E66CD67531FEB195fF7536",
|
|
227
|
-
},
|
|
228
220
|
};
|
|
229
221
|
const poolRegistryPermissions = () => {
|
|
230
222
|
const methods = [
|
|
@@ -7791,109 +7783,6 @@ exports.globalConfig = {
|
|
|
7791
7783
|
],
|
|
7792
7784
|
preconfiguredAddresses: exports.preconfiguredAddresses.unichainmainnet,
|
|
7793
7785
|
},
|
|
7794
|
-
berachainbartio: {
|
|
7795
|
-
tokensConfig: [
|
|
7796
|
-
{
|
|
7797
|
-
isMock: true,
|
|
7798
|
-
name: "Bridged USDC (Stargate)",
|
|
7799
|
-
symbol: "USDC.e",
|
|
7800
|
-
decimals: 6,
|
|
7801
|
-
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
7802
|
-
},
|
|
7803
|
-
{
|
|
7804
|
-
isMock: true,
|
|
7805
|
-
name: "Wrapped Ether",
|
|
7806
|
-
symbol: "WETH",
|
|
7807
|
-
decimals: 18,
|
|
7808
|
-
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
7809
|
-
},
|
|
7810
|
-
{
|
|
7811
|
-
isMock: false,
|
|
7812
|
-
name: "Wrapped Bera",
|
|
7813
|
-
symbol: "WBERA",
|
|
7814
|
-
decimals: 18,
|
|
7815
|
-
tokenAddress: "0x7507c1dc16935B82698e4C63f2746A2fCf994dF8",
|
|
7816
|
-
},
|
|
7817
|
-
{
|
|
7818
|
-
isMock: false,
|
|
7819
|
-
name: "Venus",
|
|
7820
|
-
symbol: "XVS",
|
|
7821
|
-
decimals: 18,
|
|
7822
|
-
tokenAddress: "0x75A3668f0b0d06E45601C883b0c66f7Dd2364208",
|
|
7823
|
-
},
|
|
7824
|
-
],
|
|
7825
|
-
poolConfig: [
|
|
7826
|
-
{
|
|
7827
|
-
id: "Core",
|
|
7828
|
-
name: "Core",
|
|
7829
|
-
closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
|
|
7830
|
-
liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
|
|
7831
|
-
minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
|
|
7832
|
-
vtokens: [
|
|
7833
|
-
{
|
|
7834
|
-
name: "Venus USDC.e (Core)",
|
|
7835
|
-
asset: "USDC.e",
|
|
7836
|
-
symbol: "vUSDC.e_Core",
|
|
7837
|
-
rateModel: InterestRateModels.JumpRate.toString(),
|
|
7838
|
-
baseRatePerYear: "0",
|
|
7839
|
-
multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
|
|
7840
|
-
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
7841
|
-
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
7842
|
-
collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
|
|
7843
|
-
liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
|
|
7844
|
-
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
7845
|
-
initialSupply: (0, utils_1.convertToUnit)("5000", 6),
|
|
7846
|
-
supplyCap: (0, utils_1.convertToUnit)("20000000", 6),
|
|
7847
|
-
borrowCap: (0, utils_1.convertToUnit)("18000000", 6),
|
|
7848
|
-
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BERA_CHAIN_BARTIO,
|
|
7849
|
-
vTokenReceiver: exports.preconfiguredAddresses.berachainbartio.VTreasury,
|
|
7850
|
-
},
|
|
7851
|
-
{
|
|
7852
|
-
name: "Venus WETH (Core)",
|
|
7853
|
-
asset: "WETH",
|
|
7854
|
-
symbol: "vWETH_Core",
|
|
7855
|
-
rateModel: InterestRateModels.JumpRate.toString(),
|
|
7856
|
-
baseRatePerYear: "0",
|
|
7857
|
-
multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
|
|
7858
|
-
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
7859
|
-
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
7860
|
-
collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
|
|
7861
|
-
liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
|
|
7862
|
-
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
7863
|
-
initialSupply: (0, utils_1.convertToUnit)("2", 18),
|
|
7864
|
-
supplyCap: (0, utils_1.convertToUnit)("700", 18),
|
|
7865
|
-
borrowCap: (0, utils_1.convertToUnit)("350", 18),
|
|
7866
|
-
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BERA_CHAIN_BARTIO,
|
|
7867
|
-
vTokenReceiver: exports.preconfiguredAddresses.berachainbartio.VTreasury,
|
|
7868
|
-
},
|
|
7869
|
-
{
|
|
7870
|
-
name: "Venus WBERA (Core)",
|
|
7871
|
-
asset: "WBERA",
|
|
7872
|
-
symbol: "vWBERA_Core",
|
|
7873
|
-
rateModel: InterestRateModels.JumpRate.toString(),
|
|
7874
|
-
baseRatePerYear: "0",
|
|
7875
|
-
multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
|
|
7876
|
-
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
7877
|
-
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
7878
|
-
collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
|
|
7879
|
-
liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
|
|
7880
|
-
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
7881
|
-
initialSupply: (0, utils_1.convertToUnit)("1000", 18),
|
|
7882
|
-
supplyCap: (0, utils_1.convertToUnit)("4000000", 18),
|
|
7883
|
-
borrowCap: (0, utils_1.convertToUnit)("3500000", 18),
|
|
7884
|
-
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BERA_CHAIN_BARTIO,
|
|
7885
|
-
vTokenReceiver: exports.preconfiguredAddresses.berachainbartio.VTreasury,
|
|
7886
|
-
},
|
|
7887
|
-
],
|
|
7888
|
-
rewards: [],
|
|
7889
|
-
},
|
|
7890
|
-
],
|
|
7891
|
-
accessControlConfig: [
|
|
7892
|
-
...poolRegistryPermissions(),
|
|
7893
|
-
...normalTimelockPermissions(exports.preconfiguredAddresses.berachainbartio.NormalTimelock),
|
|
7894
|
-
],
|
|
7895
|
-
preconfiguredAddresses: exports.preconfiguredAddresses.berachainbartio,
|
|
7896
|
-
},
|
|
7897
7786
|
};
|
|
7898
7787
|
async function getConfig(networkName) {
|
|
7899
7788
|
switch (networkName) {
|
|
@@ -7931,8 +7820,6 @@ async function getConfig(networkName) {
|
|
|
7931
7820
|
return exports.globalConfig.unichainsepolia;
|
|
7932
7821
|
case "unichainmainnet":
|
|
7933
7822
|
return exports.globalConfig.unichainmainnet;
|
|
7934
|
-
case "berachainbartio":
|
|
7935
|
-
return exports.globalConfig.berachainbartio;
|
|
7936
7823
|
case "development":
|
|
7937
7824
|
return exports.globalConfig.bsctestnet;
|
|
7938
7825
|
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() {
|