@venusprotocol/isolated-pools 2.3.0 → 2.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.
@@ -110,7 +110,7 @@
110
110
  ]
111
111
  },
112
112
  "ComptrollerImpl": {
113
- "address": "0x9D7496EA4DF696FcD279076cF21EE400eE43d965",
113
+ "address": "0x0bA3dBDb53a367e9132587c7Fc985153A2E25f08",
114
114
  "abi": [
115
115
  {
116
116
  "inputs": [
@@ -668,6 +668,25 @@
668
668
  "name": "NewPriceOracle",
669
669
  "type": "event"
670
670
  },
671
+ {
672
+ "anonymous": false,
673
+ "inputs": [
674
+ {
675
+ "indexed": false,
676
+ "internalType": "contract IPrime",
677
+ "name": "oldPrimeToken",
678
+ "type": "address"
679
+ },
680
+ {
681
+ "indexed": false,
682
+ "internalType": "contract IPrime",
683
+ "name": "newPrimeToken",
684
+ "type": "address"
685
+ }
686
+ ],
687
+ "name": "NewPrimeToken",
688
+ "type": "event"
689
+ },
671
690
  {
672
691
  "anonymous": false,
673
692
  "inputs": [
@@ -863,6 +882,29 @@
863
882
  "stateMutability": "view",
864
883
  "type": "function"
865
884
  },
885
+ {
886
+ "inputs": [
887
+ {
888
+ "internalType": "address",
889
+ "name": "vToken",
890
+ "type": "address"
891
+ },
892
+ {
893
+ "internalType": "address",
894
+ "name": "borrower",
895
+ "type": "address"
896
+ },
897
+ {
898
+ "internalType": "uint256",
899
+ "name": "borrowAmount",
900
+ "type": "uint256"
901
+ }
902
+ ],
903
+ "name": "borrowVerify",
904
+ "outputs": [],
905
+ "stateMutability": "nonpayable",
906
+ "type": "function"
907
+ },
866
908
  {
867
909
  "inputs": [
868
910
  {
@@ -1238,6 +1280,44 @@
1238
1280
  "stateMutability": "nonpayable",
1239
1281
  "type": "function"
1240
1282
  },
1283
+ {
1284
+ "inputs": [
1285
+ {
1286
+ "internalType": "address",
1287
+ "name": "vTokenBorrowed",
1288
+ "type": "address"
1289
+ },
1290
+ {
1291
+ "internalType": "address",
1292
+ "name": "vTokenCollateral",
1293
+ "type": "address"
1294
+ },
1295
+ {
1296
+ "internalType": "address",
1297
+ "name": "liquidator",
1298
+ "type": "address"
1299
+ },
1300
+ {
1301
+ "internalType": "address",
1302
+ "name": "borrower",
1303
+ "type": "address"
1304
+ },
1305
+ {
1306
+ "internalType": "uint256",
1307
+ "name": "actualRepayAmount",
1308
+ "type": "uint256"
1309
+ },
1310
+ {
1311
+ "internalType": "uint256",
1312
+ "name": "seizeTokens",
1313
+ "type": "uint256"
1314
+ }
1315
+ ],
1316
+ "name": "liquidateBorrowVerify",
1317
+ "outputs": [],
1318
+ "stateMutability": "nonpayable",
1319
+ "type": "function"
1320
+ },
1241
1321
  {
1242
1322
  "inputs": [
1243
1323
  {
@@ -1340,6 +1420,34 @@
1340
1420
  "stateMutability": "view",
1341
1421
  "type": "function"
1342
1422
  },
1423
+ {
1424
+ "inputs": [
1425
+ {
1426
+ "internalType": "address",
1427
+ "name": "vToken",
1428
+ "type": "address"
1429
+ },
1430
+ {
1431
+ "internalType": "address",
1432
+ "name": "minter",
1433
+ "type": "address"
1434
+ },
1435
+ {
1436
+ "internalType": "uint256",
1437
+ "name": "actualMintAmount",
1438
+ "type": "uint256"
1439
+ },
1440
+ {
1441
+ "internalType": "uint256",
1442
+ "name": "mintTokens",
1443
+ "type": "uint256"
1444
+ }
1445
+ ],
1446
+ "name": "mintVerify",
1447
+ "outputs": [],
1448
+ "stateMutability": "nonpayable",
1449
+ "type": "function"
1450
+ },
1343
1451
  {
1344
1452
  "inputs": [],
1345
1453
  "name": "oracle",
@@ -1568,6 +1676,47 @@
1568
1676
  "stateMutability": "nonpayable",
1569
1677
  "type": "function"
1570
1678
  },
1679
+ {
1680
+ "inputs": [],
1681
+ "name": "prime",
1682
+ "outputs": [
1683
+ {
1684
+ "internalType": "contract IPrime",
1685
+ "name": "",
1686
+ "type": "address"
1687
+ }
1688
+ ],
1689
+ "stateMutability": "view",
1690
+ "type": "function"
1691
+ },
1692
+ {
1693
+ "inputs": [
1694
+ {
1695
+ "internalType": "address",
1696
+ "name": "vToken",
1697
+ "type": "address"
1698
+ },
1699
+ {
1700
+ "internalType": "address",
1701
+ "name": "redeemer",
1702
+ "type": "address"
1703
+ },
1704
+ {
1705
+ "internalType": "uint256",
1706
+ "name": "redeemAmount",
1707
+ "type": "uint256"
1708
+ },
1709
+ {
1710
+ "internalType": "uint256",
1711
+ "name": "redeemTokens",
1712
+ "type": "uint256"
1713
+ }
1714
+ ],
1715
+ "name": "redeemVerify",
1716
+ "outputs": [],
1717
+ "stateMutability": "nonpayable",
1718
+ "type": "function"
1719
+ },
1571
1720
  {
1572
1721
  "inputs": [],
1573
1722
  "name": "renounceOwnership",
@@ -1575,6 +1724,72 @@
1575
1724
  "stateMutability": "nonpayable",
1576
1725
  "type": "function"
1577
1726
  },
1727
+ {
1728
+ "inputs": [
1729
+ {
1730
+ "internalType": "address",
1731
+ "name": "vToken",
1732
+ "type": "address"
1733
+ },
1734
+ {
1735
+ "internalType": "address",
1736
+ "name": "payer",
1737
+ "type": "address"
1738
+ },
1739
+ {
1740
+ "internalType": "address",
1741
+ "name": "borrower",
1742
+ "type": "address"
1743
+ },
1744
+ {
1745
+ "internalType": "uint256",
1746
+ "name": "actualRepayAmount",
1747
+ "type": "uint256"
1748
+ },
1749
+ {
1750
+ "internalType": "uint256",
1751
+ "name": "borrowerIndex",
1752
+ "type": "uint256"
1753
+ }
1754
+ ],
1755
+ "name": "repayBorrowVerify",
1756
+ "outputs": [],
1757
+ "stateMutability": "nonpayable",
1758
+ "type": "function"
1759
+ },
1760
+ {
1761
+ "inputs": [
1762
+ {
1763
+ "internalType": "address",
1764
+ "name": "vTokenCollateral",
1765
+ "type": "address"
1766
+ },
1767
+ {
1768
+ "internalType": "address",
1769
+ "name": "vTokenBorrowed",
1770
+ "type": "address"
1771
+ },
1772
+ {
1773
+ "internalType": "address",
1774
+ "name": "liquidator",
1775
+ "type": "address"
1776
+ },
1777
+ {
1778
+ "internalType": "address",
1779
+ "name": "borrower",
1780
+ "type": "address"
1781
+ },
1782
+ {
1783
+ "internalType": "uint256",
1784
+ "name": "seizeTokens",
1785
+ "type": "uint256"
1786
+ }
1787
+ ],
1788
+ "name": "seizeVerify",
1789
+ "outputs": [],
1790
+ "stateMutability": "nonpayable",
1791
+ "type": "function"
1792
+ },
1578
1793
  {
1579
1794
  "inputs": [
1580
1795
  {
@@ -1753,6 +1968,19 @@
1753
1968
  "stateMutability": "nonpayable",
1754
1969
  "type": "function"
1755
1970
  },
1971
+ {
1972
+ "inputs": [
1973
+ {
1974
+ "internalType": "contract IPrime",
1975
+ "name": "_prime",
1976
+ "type": "address"
1977
+ }
1978
+ ],
1979
+ "name": "setPrimeToken",
1980
+ "outputs": [],
1981
+ "stateMutability": "nonpayable",
1982
+ "type": "function"
1983
+ },
1756
1984
  {
1757
1985
  "inputs": [
1758
1986
  {
@@ -1798,6 +2026,34 @@
1798
2026
  "stateMutability": "nonpayable",
1799
2027
  "type": "function"
1800
2028
  },
2029
+ {
2030
+ "inputs": [
2031
+ {
2032
+ "internalType": "address",
2033
+ "name": "vToken",
2034
+ "type": "address"
2035
+ },
2036
+ {
2037
+ "internalType": "address",
2038
+ "name": "src",
2039
+ "type": "address"
2040
+ },
2041
+ {
2042
+ "internalType": "address",
2043
+ "name": "dst",
2044
+ "type": "address"
2045
+ },
2046
+ {
2047
+ "internalType": "uint256",
2048
+ "name": "transferTokens",
2049
+ "type": "uint256"
2050
+ }
2051
+ ],
2052
+ "name": "transferVerify",
2053
+ "outputs": [],
2054
+ "stateMutability": "nonpayable",
2055
+ "type": "function"
2056
+ },
1801
2057
  {
1802
2058
  "inputs": [
1803
2059
  {
@@ -14609,7 +14865,7 @@
14609
14865
  ]
14610
14866
  },
14611
14867
  "VTokenImpl": {
14612
- "address": "0x3630AD592d07294aB37336b734aB053685dDD35c",
14868
+ "address": "0xa4Fd54cACdA379FB7CaA783B83Cc846f8ac0Faa6",
14613
14869
  "abi": [
14614
14870
  {
14615
14871
  "inputs": [],
@@ -3,7 +3,7 @@
3
3
  "chainId": "11155111",
4
4
  "addresses": {
5
5
  "ComptrollerBeacon": "0x6cE54143a88CC22500D49D744fb6535D66a8294F",
6
- "ComptrollerImpl": "0x9D7496EA4DF696FcD279076cF21EE400eE43d965",
6
+ "ComptrollerImpl": "0x0bA3dBDb53a367e9132587c7Fc985153A2E25f08",
7
7
  "Comptroller_Core": "0x7Aa39ab4BcA897F403425C9C6FDbd0f882Be0D70",
8
8
  "Comptroller_Curve": "0xD298182D3ACb43e98e32757FF09C91F203e9E67E",
9
9
  "Comptroller_Stablecoins": "0x18eF8D2bee415b731C25662568dc1035001cEB2c",
@@ -33,7 +33,7 @@
33
33
  "RewardsDistributor_Core_3": "0xa822b4aadc53A7641ce84c690C3109fD336440Aa",
34
34
  "RewardsDistributor_Core_3_Proxy": "0xa822b4aadc53A7641ce84c690C3109fD336440Aa",
35
35
  "VTokenBeacon": "0x0463a7E5221EAE1990cEddB51A5821a68cdA6008",
36
- "VTokenImpl": "0x3630AD592d07294aB37336b734aB053685dDD35c",
36
+ "VTokenImpl": "0xa4Fd54cACdA379FB7CaA783B83Cc846f8ac0Faa6",
37
37
  "VToken_vCRV_Core": "0x121E3be152F283319310D807ed847E8b98319C1e",
38
38
  "VToken_vCRV_Curve": "0x9Db62c5BBc6fb79416545FcCBDB2204099217b78",
39
39
  "VToken_vUSDC_Core": "0xF87bceab8DD37489015B426bA931e08A4D787616",
@@ -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;
@@ -10,32 +10,13 @@ export declare class PoolRegistryInterface__factory {
10
10
  }[];
11
11
  name: string;
12
12
  outputs: {
13
- components: {
14
- internalType: string;
15
- name: string;
16
- type: string;
17
- }[];
18
13
  internalType: string;
19
14
  name: string;
20
15
  type: string;
21
16
  }[];
22
17
  stateMutability: string;
23
18
  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
- })[];
19
+ }[];
39
20
  static createInterface(): PoolRegistryInterfaceInterface;
40
21
  static connect(address: string, signerOrProvider: Signer | Provider): PoolRegistryInterface;
41
22
  }
@@ -6,111 +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
- {
50
- inputs: [
51
- {
52
- internalType: "address",
53
- name: "comptroller",
54
- type: "address",
55
- },
56
- ],
57
- name: "getPoolByComptroller",
58
- outputs: [
59
- {
60
- components: [
61
- {
62
- internalType: "string",
63
- name: "name",
64
- type: "string",
65
- },
66
- {
67
- internalType: "address",
68
- name: "creator",
69
- type: "address",
70
- },
71
- {
72
- internalType: "address",
73
- name: "comptroller",
74
- type: "address",
75
- },
76
- {
77
- internalType: "uint256",
78
- name: "blockPosted",
79
- type: "uint256",
80
- },
81
- {
82
- internalType: "uint256",
83
- name: "timestampPosted",
84
- type: "uint256",
85
- },
86
- ],
87
- internalType: "struct PoolRegistryInterface.VenusPool",
88
- name: "",
89
- type: "tuple",
90
- },
91
- ],
92
- stateMutability: "view",
93
- type: "function",
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
9
  {
115
10
  inputs: [
116
11
  {
@@ -135,42 +30,6 @@ const _abi = [
135
30
  stateMutability: "view",
136
31
  type: "function",
137
32
  },
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
33
  ];
175
34
  class PoolRegistryInterface__factory {
176
35
  static createInterface() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "2.3.0",
3
+ "version": "2.4.0-dev.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",