@venusprotocol/isolated-pools 3.6.0-dev.5 → 3.6.0-dev.6
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/bscmainnet/VTokenImpl.json +197 -73
- package/deployments/bscmainnet.json +70 -5
- package/deployments/bscmainnet_addresses.json +1 -1
- package/deployments/bsctestnet/VTokenImpl.json +194 -70
- package/deployments/bsctestnet.json +70 -5
- package/deployments/bsctestnet_addresses.json +1 -1
- package/deployments/ethereum/VTokenImpl.json +197 -73
- package/deployments/ethereum.json +70 -5
- package/deployments/ethereum_addresses.json +1 -1
- package/deployments/opbnbmainnet/VTokenImpl.json +197 -73
- package/deployments/opbnbmainnet.json +70 -5
- package/deployments/opbnbmainnet_addresses.json +1 -1
- package/deployments/opbnbtestnet/VTokenImpl.json +194 -70
- package/deployments/opbnbtestnet.json +70 -5
- package/deployments/opbnbtestnet_addresses.json +1 -1
- package/deployments/sepolia/VTokenImpl.json +197 -73
- package/deployments/sepolia.json +70 -5
- package/deployments/sepolia_addresses.json +1 -1
- package/dist/deployments/bscmainnet.json +70 -5
- package/dist/deployments/bsctestnet.json +70 -5
- package/dist/deployments/ethereum.json +70 -5
- package/dist/deployments/opbnbmainnet.json +70 -5
- package/dist/deployments/opbnbtestnet.json +70 -5
- package/dist/deployments/sepolia.json +70 -5
- package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
- package/dist/typechain/factories/IVToken__factory.js +1 -201
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +4 -341
- package/typechain/factories/IVToken__factory.ts +1 -201
|
@@ -8296,10 +8296,26 @@
|
|
|
8296
8296
|
]
|
|
8297
8297
|
},
|
|
8298
8298
|
"VTokenImpl": {
|
|
8299
|
-
"address": "
|
|
8299
|
+
"address": "0xbd3AAd064295dcA0f45fab4C6A5adFb0D23a19D2",
|
|
8300
8300
|
"abi": [
|
|
8301
8301
|
{
|
|
8302
|
-
"inputs": [
|
|
8302
|
+
"inputs": [
|
|
8303
|
+
{
|
|
8304
|
+
"internalType": "bool",
|
|
8305
|
+
"name": "timeBased_",
|
|
8306
|
+
"type": "bool"
|
|
8307
|
+
},
|
|
8308
|
+
{
|
|
8309
|
+
"internalType": "uint256",
|
|
8310
|
+
"name": "blocksPerYear_",
|
|
8311
|
+
"type": "uint256"
|
|
8312
|
+
},
|
|
8313
|
+
{
|
|
8314
|
+
"internalType": "uint256",
|
|
8315
|
+
"name": "maxBorrowRateMantissa_",
|
|
8316
|
+
"type": "uint256"
|
|
8317
|
+
}
|
|
8318
|
+
],
|
|
8303
8319
|
"stateMutability": "nonpayable",
|
|
8304
8320
|
"type": "constructor"
|
|
8305
8321
|
},
|
|
@@ -8339,6 +8355,16 @@
|
|
|
8339
8355
|
"name": "HealBorrowUnauthorized",
|
|
8340
8356
|
"type": "error"
|
|
8341
8357
|
},
|
|
8358
|
+
{
|
|
8359
|
+
"inputs": [],
|
|
8360
|
+
"name": "InvalidBlocksPerYear",
|
|
8361
|
+
"type": "error"
|
|
8362
|
+
},
|
|
8363
|
+
{
|
|
8364
|
+
"inputs": [],
|
|
8365
|
+
"name": "InvalidTimeBasedConfiguration",
|
|
8366
|
+
"type": "error"
|
|
8367
|
+
},
|
|
8342
8368
|
{
|
|
8343
8369
|
"inputs": [
|
|
8344
8370
|
{
|
|
@@ -8810,13 +8836,13 @@
|
|
|
8810
8836
|
{
|
|
8811
8837
|
"indexed": false,
|
|
8812
8838
|
"internalType": "uint256",
|
|
8813
|
-
"name": "
|
|
8839
|
+
"name": "oldReduceReservesBlockOrTimestampDelta",
|
|
8814
8840
|
"type": "uint256"
|
|
8815
8841
|
},
|
|
8816
8842
|
{
|
|
8817
8843
|
"indexed": false,
|
|
8818
8844
|
"internalType": "uint256",
|
|
8819
|
-
"name": "
|
|
8845
|
+
"name": "newReduceReservesBlockOrTimestampDelta",
|
|
8820
8846
|
"type": "uint256"
|
|
8821
8847
|
}
|
|
8822
8848
|
],
|
|
@@ -9264,6 +9290,19 @@
|
|
|
9264
9290
|
"stateMutability": "nonpayable",
|
|
9265
9291
|
"type": "function"
|
|
9266
9292
|
},
|
|
9293
|
+
{
|
|
9294
|
+
"inputs": [],
|
|
9295
|
+
"name": "blocksOrSecondsPerYear",
|
|
9296
|
+
"outputs": [
|
|
9297
|
+
{
|
|
9298
|
+
"internalType": "uint256",
|
|
9299
|
+
"name": "",
|
|
9300
|
+
"type": "uint256"
|
|
9301
|
+
}
|
|
9302
|
+
],
|
|
9303
|
+
"stateMutability": "view",
|
|
9304
|
+
"type": "function"
|
|
9305
|
+
},
|
|
9267
9306
|
{
|
|
9268
9307
|
"inputs": [
|
|
9269
9308
|
{
|
|
@@ -9514,6 +9553,19 @@
|
|
|
9514
9553
|
"stateMutability": "view",
|
|
9515
9554
|
"type": "function"
|
|
9516
9555
|
},
|
|
9556
|
+
{
|
|
9557
|
+
"inputs": [],
|
|
9558
|
+
"name": "getBlockNumberOrTimestamp",
|
|
9559
|
+
"outputs": [
|
|
9560
|
+
{
|
|
9561
|
+
"internalType": "uint256",
|
|
9562
|
+
"name": "",
|
|
9563
|
+
"type": "uint256"
|
|
9564
|
+
}
|
|
9565
|
+
],
|
|
9566
|
+
"stateMutability": "view",
|
|
9567
|
+
"type": "function"
|
|
9568
|
+
},
|
|
9517
9569
|
{
|
|
9518
9570
|
"inputs": [],
|
|
9519
9571
|
"name": "getCash",
|
|
@@ -9662,6 +9714,19 @@
|
|
|
9662
9714
|
"stateMutability": "view",
|
|
9663
9715
|
"type": "function"
|
|
9664
9716
|
},
|
|
9717
|
+
{
|
|
9718
|
+
"inputs": [],
|
|
9719
|
+
"name": "isTimeBased",
|
|
9720
|
+
"outputs": [
|
|
9721
|
+
{
|
|
9722
|
+
"internalType": "bool",
|
|
9723
|
+
"name": "",
|
|
9724
|
+
"type": "bool"
|
|
9725
|
+
}
|
|
9726
|
+
],
|
|
9727
|
+
"stateMutability": "view",
|
|
9728
|
+
"type": "function"
|
|
9729
|
+
},
|
|
9665
9730
|
{
|
|
9666
9731
|
"inputs": [],
|
|
9667
9732
|
"name": "isVToken",
|
|
@@ -10079,7 +10144,7 @@
|
|
|
10079
10144
|
"inputs": [
|
|
10080
10145
|
{
|
|
10081
10146
|
"internalType": "uint256",
|
|
10082
|
-
"name": "
|
|
10147
|
+
"name": "_newReduceReservesBlockOrTimestampDelta",
|
|
10083
10148
|
"type": "uint256"
|
|
10084
10149
|
}
|
|
10085
10150
|
],
|
|
@@ -24571,10 +24571,26 @@
|
|
|
24571
24571
|
]
|
|
24572
24572
|
},
|
|
24573
24573
|
"VTokenImpl": {
|
|
24574
|
-
"address": "
|
|
24574
|
+
"address": "0xF360E6470C82EbCa1ECA1de1016A4c18fFE67C48",
|
|
24575
24575
|
"abi": [
|
|
24576
24576
|
{
|
|
24577
|
-
"inputs": [
|
|
24577
|
+
"inputs": [
|
|
24578
|
+
{
|
|
24579
|
+
"internalType": "bool",
|
|
24580
|
+
"name": "timeBased_",
|
|
24581
|
+
"type": "bool"
|
|
24582
|
+
},
|
|
24583
|
+
{
|
|
24584
|
+
"internalType": "uint256",
|
|
24585
|
+
"name": "blocksPerYear_",
|
|
24586
|
+
"type": "uint256"
|
|
24587
|
+
},
|
|
24588
|
+
{
|
|
24589
|
+
"internalType": "uint256",
|
|
24590
|
+
"name": "maxBorrowRateMantissa_",
|
|
24591
|
+
"type": "uint256"
|
|
24592
|
+
}
|
|
24593
|
+
],
|
|
24578
24594
|
"stateMutability": "nonpayable",
|
|
24579
24595
|
"type": "constructor"
|
|
24580
24596
|
},
|
|
@@ -24614,6 +24630,16 @@
|
|
|
24614
24630
|
"name": "HealBorrowUnauthorized",
|
|
24615
24631
|
"type": "error"
|
|
24616
24632
|
},
|
|
24633
|
+
{
|
|
24634
|
+
"inputs": [],
|
|
24635
|
+
"name": "InvalidBlocksPerYear",
|
|
24636
|
+
"type": "error"
|
|
24637
|
+
},
|
|
24638
|
+
{
|
|
24639
|
+
"inputs": [],
|
|
24640
|
+
"name": "InvalidTimeBasedConfiguration",
|
|
24641
|
+
"type": "error"
|
|
24642
|
+
},
|
|
24617
24643
|
{
|
|
24618
24644
|
"inputs": [
|
|
24619
24645
|
{
|
|
@@ -25085,13 +25111,13 @@
|
|
|
25085
25111
|
{
|
|
25086
25112
|
"indexed": false,
|
|
25087
25113
|
"internalType": "uint256",
|
|
25088
|
-
"name": "
|
|
25114
|
+
"name": "oldReduceReservesBlockOrTimestampDelta",
|
|
25089
25115
|
"type": "uint256"
|
|
25090
25116
|
},
|
|
25091
25117
|
{
|
|
25092
25118
|
"indexed": false,
|
|
25093
25119
|
"internalType": "uint256",
|
|
25094
|
-
"name": "
|
|
25120
|
+
"name": "newReduceReservesBlockOrTimestampDelta",
|
|
25095
25121
|
"type": "uint256"
|
|
25096
25122
|
}
|
|
25097
25123
|
],
|
|
@@ -25539,6 +25565,19 @@
|
|
|
25539
25565
|
"stateMutability": "nonpayable",
|
|
25540
25566
|
"type": "function"
|
|
25541
25567
|
},
|
|
25568
|
+
{
|
|
25569
|
+
"inputs": [],
|
|
25570
|
+
"name": "blocksOrSecondsPerYear",
|
|
25571
|
+
"outputs": [
|
|
25572
|
+
{
|
|
25573
|
+
"internalType": "uint256",
|
|
25574
|
+
"name": "",
|
|
25575
|
+
"type": "uint256"
|
|
25576
|
+
}
|
|
25577
|
+
],
|
|
25578
|
+
"stateMutability": "view",
|
|
25579
|
+
"type": "function"
|
|
25580
|
+
},
|
|
25542
25581
|
{
|
|
25543
25582
|
"inputs": [
|
|
25544
25583
|
{
|
|
@@ -25789,6 +25828,19 @@
|
|
|
25789
25828
|
"stateMutability": "view",
|
|
25790
25829
|
"type": "function"
|
|
25791
25830
|
},
|
|
25831
|
+
{
|
|
25832
|
+
"inputs": [],
|
|
25833
|
+
"name": "getBlockNumberOrTimestamp",
|
|
25834
|
+
"outputs": [
|
|
25835
|
+
{
|
|
25836
|
+
"internalType": "uint256",
|
|
25837
|
+
"name": "",
|
|
25838
|
+
"type": "uint256"
|
|
25839
|
+
}
|
|
25840
|
+
],
|
|
25841
|
+
"stateMutability": "view",
|
|
25842
|
+
"type": "function"
|
|
25843
|
+
},
|
|
25792
25844
|
{
|
|
25793
25845
|
"inputs": [],
|
|
25794
25846
|
"name": "getCash",
|
|
@@ -25937,6 +25989,19 @@
|
|
|
25937
25989
|
"stateMutability": "view",
|
|
25938
25990
|
"type": "function"
|
|
25939
25991
|
},
|
|
25992
|
+
{
|
|
25993
|
+
"inputs": [],
|
|
25994
|
+
"name": "isTimeBased",
|
|
25995
|
+
"outputs": [
|
|
25996
|
+
{
|
|
25997
|
+
"internalType": "bool",
|
|
25998
|
+
"name": "",
|
|
25999
|
+
"type": "bool"
|
|
26000
|
+
}
|
|
26001
|
+
],
|
|
26002
|
+
"stateMutability": "view",
|
|
26003
|
+
"type": "function"
|
|
26004
|
+
},
|
|
25940
26005
|
{
|
|
25941
26006
|
"inputs": [],
|
|
25942
26007
|
"name": "isVToken",
|
|
@@ -26354,7 +26419,7 @@
|
|
|
26354
26419
|
"inputs": [
|
|
26355
26420
|
{
|
|
26356
26421
|
"internalType": "uint256",
|
|
26357
|
-
"name": "
|
|
26422
|
+
"name": "_newReduceReservesBlockOrTimestampDelta",
|
|
26358
26423
|
"type": "uint256"
|
|
26359
26424
|
}
|
|
26360
26425
|
],
|
|
@@ -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
|
];
|