@hashpower/collateral-abi 0.3.0 → 0.4.0
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/README.md +1 -1
- package/deployments.json +10 -2
- package/dist/CollateralVault.d.ts +217 -0
- package/dist/CollateralVault.js +276 -0
- package/dist/ContractErrors.d.ts +12 -0
- package/dist/ContractErrors.js +15 -0
- package/dist/ICollateralVault.d.ts +52 -0
- package/dist/ICollateralVault.js +68 -0
- package/json/CollateralVault.json +276 -0
- package/json/ContractErrors.json +15 -0
- package/json/ICollateralVault.json +68 -0
- package/package.json +1 -1
package/dist/ContractErrors.d.ts
CHANGED
|
@@ -38,10 +38,18 @@ export declare const contractErrors: readonly [{
|
|
|
38
38
|
}];
|
|
39
39
|
readonly name: "OwnableInvalidOwner";
|
|
40
40
|
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "Halted";
|
|
44
|
+
readonly type: "error";
|
|
41
45
|
}, {
|
|
42
46
|
readonly inputs: readonly [];
|
|
43
47
|
readonly name: "ZeroAmount";
|
|
44
48
|
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [];
|
|
51
|
+
readonly name: "DebtAboveCap";
|
|
52
|
+
readonly type: "error";
|
|
45
53
|
}, {
|
|
46
54
|
readonly inputs: readonly [];
|
|
47
55
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
@@ -78,6 +86,10 @@ export declare const contractErrors: readonly [{
|
|
|
78
86
|
readonly inputs: readonly [];
|
|
79
87
|
readonly name: "AccessControlBadConfirmation";
|
|
80
88
|
readonly type: "error";
|
|
89
|
+
}, {
|
|
90
|
+
readonly inputs: readonly [];
|
|
91
|
+
readonly name: "NotHalted";
|
|
92
|
+
readonly type: "error";
|
|
81
93
|
}, {
|
|
82
94
|
readonly inputs: readonly [];
|
|
83
95
|
readonly name: "LinearMarketAlreadyRegistered";
|
package/dist/ContractErrors.js
CHANGED
|
@@ -52,11 +52,21 @@ export const contractErrors = [
|
|
|
52
52
|
"name": "OwnableInvalidOwner",
|
|
53
53
|
"type": "error"
|
|
54
54
|
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [],
|
|
57
|
+
"name": "Halted",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
55
60
|
{
|
|
56
61
|
"inputs": [],
|
|
57
62
|
"name": "ZeroAmount",
|
|
58
63
|
"type": "error"
|
|
59
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"inputs": [],
|
|
67
|
+
"name": "DebtAboveCap",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
60
70
|
{
|
|
61
71
|
"inputs": [],
|
|
62
72
|
"name": "ReentrancyGuardReentrantCall",
|
|
@@ -105,6 +115,11 @@ export const contractErrors = [
|
|
|
105
115
|
"name": "AccessControlBadConfirmation",
|
|
106
116
|
"type": "error"
|
|
107
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"inputs": [],
|
|
120
|
+
"name": "NotHalted",
|
|
121
|
+
"type": "error"
|
|
122
|
+
},
|
|
108
123
|
{
|
|
109
124
|
"inputs": [],
|
|
110
125
|
"name": "LinearMarketAlreadyRegistered",
|
|
@@ -108,6 +108,16 @@ export declare const ICollateralVaultAbi: readonly [{
|
|
|
108
108
|
}];
|
|
109
109
|
readonly stateMutability: "view";
|
|
110
110
|
readonly type: "function";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "halted";
|
|
114
|
+
readonly outputs: readonly [{
|
|
115
|
+
readonly internalType: "bool";
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly type: "bool";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
readonly type: "function";
|
|
111
121
|
}, {
|
|
112
122
|
readonly inputs: readonly [{
|
|
113
123
|
readonly internalType: "address";
|
|
@@ -144,6 +154,38 @@ export declare const ICollateralVaultAbi: readonly [{
|
|
|
144
154
|
readonly outputs: readonly [];
|
|
145
155
|
readonly stateMutability: "nonpayable";
|
|
146
156
|
readonly type: "function";
|
|
157
|
+
}, {
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
readonly name: "from";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly internalType: "address";
|
|
164
|
+
readonly name: "to";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "amount";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "settleTransfer";
|
|
172
|
+
readonly outputs: readonly [{
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
readonly name: "moved";
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
}];
|
|
177
|
+
readonly stateMutability: "nonpayable";
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
}, {
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
readonly name: "timingDebt";
|
|
182
|
+
readonly outputs: readonly [{
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly stateMutability: "view";
|
|
188
|
+
readonly type: "function";
|
|
147
189
|
}, {
|
|
148
190
|
readonly inputs: readonly [];
|
|
149
191
|
readonly name: "totalSupply";
|
|
@@ -194,6 +236,16 @@ export declare const ICollateralVaultAbi: readonly [{
|
|
|
194
236
|
}];
|
|
195
237
|
readonly stateMutability: "nonpayable";
|
|
196
238
|
readonly type: "function";
|
|
239
|
+
}, {
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly name: "uncoveredLoss";
|
|
242
|
+
readonly outputs: readonly [{
|
|
243
|
+
readonly internalType: "uint256";
|
|
244
|
+
readonly name: "";
|
|
245
|
+
readonly type: "uint256";
|
|
246
|
+
}];
|
|
247
|
+
readonly stateMutability: "view";
|
|
248
|
+
readonly type: "function";
|
|
197
249
|
}, {
|
|
198
250
|
readonly inputs: readonly [{
|
|
199
251
|
readonly internalType: "address";
|
package/dist/ICollateralVault.js
CHANGED
|
@@ -142,6 +142,19 @@ export const ICollateralVaultAbi = [
|
|
|
142
142
|
"stateMutability": "view",
|
|
143
143
|
"type": "function"
|
|
144
144
|
},
|
|
145
|
+
{
|
|
146
|
+
"inputs": [],
|
|
147
|
+
"name": "halted",
|
|
148
|
+
"outputs": [
|
|
149
|
+
{
|
|
150
|
+
"internalType": "bool",
|
|
151
|
+
"name": "",
|
|
152
|
+
"type": "bool"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"stateMutability": "view",
|
|
156
|
+
"type": "function"
|
|
157
|
+
},
|
|
145
158
|
{
|
|
146
159
|
"inputs": [
|
|
147
160
|
{
|
|
@@ -188,6 +201,48 @@ export const ICollateralVaultAbi = [
|
|
|
188
201
|
"stateMutability": "nonpayable",
|
|
189
202
|
"type": "function"
|
|
190
203
|
},
|
|
204
|
+
{
|
|
205
|
+
"inputs": [
|
|
206
|
+
{
|
|
207
|
+
"internalType": "address",
|
|
208
|
+
"name": "from",
|
|
209
|
+
"type": "address"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"internalType": "address",
|
|
213
|
+
"name": "to",
|
|
214
|
+
"type": "address"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"internalType": "uint256",
|
|
218
|
+
"name": "amount",
|
|
219
|
+
"type": "uint256"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"name": "settleTransfer",
|
|
223
|
+
"outputs": [
|
|
224
|
+
{
|
|
225
|
+
"internalType": "uint256",
|
|
226
|
+
"name": "moved",
|
|
227
|
+
"type": "uint256"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"stateMutability": "nonpayable",
|
|
231
|
+
"type": "function"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"inputs": [],
|
|
235
|
+
"name": "timingDebt",
|
|
236
|
+
"outputs": [
|
|
237
|
+
{
|
|
238
|
+
"internalType": "uint256",
|
|
239
|
+
"name": "",
|
|
240
|
+
"type": "uint256"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"stateMutability": "view",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
191
246
|
{
|
|
192
247
|
"inputs": [],
|
|
193
248
|
"name": "totalSupply",
|
|
@@ -254,6 +309,19 @@ export const ICollateralVaultAbi = [
|
|
|
254
309
|
"stateMutability": "nonpayable",
|
|
255
310
|
"type": "function"
|
|
256
311
|
},
|
|
312
|
+
{
|
|
313
|
+
"inputs": [],
|
|
314
|
+
"name": "uncoveredLoss",
|
|
315
|
+
"outputs": [
|
|
316
|
+
{
|
|
317
|
+
"internalType": "uint256",
|
|
318
|
+
"name": "",
|
|
319
|
+
"type": "uint256"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"stateMutability": "view",
|
|
323
|
+
"type": "function"
|
|
324
|
+
},
|
|
257
325
|
{
|
|
258
326
|
"inputs": [
|
|
259
327
|
{
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"name": "AddressEmptyCode",
|
|
16
16
|
"type": "error"
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [],
|
|
20
|
+
"name": "DebtAboveCap",
|
|
21
|
+
"type": "error"
|
|
22
|
+
},
|
|
18
23
|
{
|
|
19
24
|
"inputs": [
|
|
20
25
|
{
|
|
@@ -127,6 +132,11 @@
|
|
|
127
132
|
"name": "FunctionDisabled",
|
|
128
133
|
"type": "error"
|
|
129
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"inputs": [],
|
|
137
|
+
"name": "Halted",
|
|
138
|
+
"type": "error"
|
|
139
|
+
},
|
|
130
140
|
{
|
|
131
141
|
"inputs": [],
|
|
132
142
|
"name": "InvalidDependency",
|
|
@@ -147,6 +157,11 @@
|
|
|
147
157
|
"name": "NotAuthorized",
|
|
148
158
|
"type": "error"
|
|
149
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"inputs": [],
|
|
162
|
+
"name": "NotHalted",
|
|
163
|
+
"type": "error"
|
|
164
|
+
},
|
|
150
165
|
{
|
|
151
166
|
"inputs": [],
|
|
152
167
|
"name": "NotInitializing",
|
|
@@ -260,6 +275,37 @@
|
|
|
260
275
|
"name": "AuthorizedCallerSet",
|
|
261
276
|
"type": "event"
|
|
262
277
|
},
|
|
278
|
+
{
|
|
279
|
+
"anonymous": false,
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"indexed": true,
|
|
283
|
+
"internalType": "address",
|
|
284
|
+
"name": "payer",
|
|
285
|
+
"type": "address"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"indexed": true,
|
|
289
|
+
"internalType": "address",
|
|
290
|
+
"name": "receiver",
|
|
291
|
+
"type": "address"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"indexed": false,
|
|
295
|
+
"internalType": "uint256",
|
|
296
|
+
"name": "amount",
|
|
297
|
+
"type": "uint256"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"indexed": true,
|
|
301
|
+
"internalType": "address",
|
|
302
|
+
"name": "venue",
|
|
303
|
+
"type": "address"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"name": "BadDebt",
|
|
307
|
+
"type": "event"
|
|
308
|
+
},
|
|
263
309
|
{
|
|
264
310
|
"anonymous": false,
|
|
265
311
|
"inputs": [
|
|
@@ -298,6 +344,25 @@
|
|
|
298
344
|
"name": "Initialized",
|
|
299
345
|
"type": "event"
|
|
300
346
|
},
|
|
347
|
+
{
|
|
348
|
+
"anonymous": false,
|
|
349
|
+
"inputs": [
|
|
350
|
+
{
|
|
351
|
+
"indexed": false,
|
|
352
|
+
"internalType": "uint256",
|
|
353
|
+
"name": "oldCap",
|
|
354
|
+
"type": "uint256"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"indexed": false,
|
|
358
|
+
"internalType": "uint256",
|
|
359
|
+
"name": "newCap",
|
|
360
|
+
"type": "uint256"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"name": "InsuranceDebtCapSet",
|
|
364
|
+
"type": "event"
|
|
365
|
+
},
|
|
301
366
|
{
|
|
302
367
|
"anonymous": false,
|
|
303
368
|
"inputs": [
|
|
@@ -406,6 +471,50 @@
|
|
|
406
471
|
"name": "Upgraded",
|
|
407
472
|
"type": "event"
|
|
408
473
|
},
|
|
474
|
+
{
|
|
475
|
+
"anonymous": false,
|
|
476
|
+
"inputs": [
|
|
477
|
+
{
|
|
478
|
+
"indexed": false,
|
|
479
|
+
"internalType": "enum CollateralVault.HaltReason",
|
|
480
|
+
"name": "reason",
|
|
481
|
+
"type": "uint8"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"indexed": false,
|
|
485
|
+
"internalType": "uint256",
|
|
486
|
+
"name": "debt",
|
|
487
|
+
"type": "uint256"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"indexed": false,
|
|
491
|
+
"internalType": "uint256",
|
|
492
|
+
"name": "effectiveCap",
|
|
493
|
+
"type": "uint256"
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
"name": "VaultHalted",
|
|
497
|
+
"type": "event"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"anonymous": false,
|
|
501
|
+
"inputs": [
|
|
502
|
+
{
|
|
503
|
+
"indexed": false,
|
|
504
|
+
"internalType": "uint256",
|
|
505
|
+
"name": "debt",
|
|
506
|
+
"type": "uint256"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"indexed": false,
|
|
510
|
+
"internalType": "uint256",
|
|
511
|
+
"name": "effectiveCap",
|
|
512
|
+
"type": "uint256"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"name": "VaultResumed",
|
|
516
|
+
"type": "event"
|
|
517
|
+
},
|
|
409
518
|
{
|
|
410
519
|
"anonymous": false,
|
|
411
520
|
"inputs": [
|
|
@@ -664,6 +773,39 @@
|
|
|
664
773
|
"stateMutability": "nonpayable",
|
|
665
774
|
"type": "function"
|
|
666
775
|
},
|
|
776
|
+
{
|
|
777
|
+
"inputs": [],
|
|
778
|
+
"name": "effectiveInsuranceDebtCap",
|
|
779
|
+
"outputs": [
|
|
780
|
+
{
|
|
781
|
+
"internalType": "uint256",
|
|
782
|
+
"name": "",
|
|
783
|
+
"type": "uint256"
|
|
784
|
+
}
|
|
785
|
+
],
|
|
786
|
+
"stateMutability": "view",
|
|
787
|
+
"type": "function"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"inputs": [],
|
|
791
|
+
"name": "halt",
|
|
792
|
+
"outputs": [],
|
|
793
|
+
"stateMutability": "nonpayable",
|
|
794
|
+
"type": "function"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"inputs": [],
|
|
798
|
+
"name": "halted",
|
|
799
|
+
"outputs": [
|
|
800
|
+
{
|
|
801
|
+
"internalType": "bool",
|
|
802
|
+
"name": "",
|
|
803
|
+
"type": "bool"
|
|
804
|
+
}
|
|
805
|
+
],
|
|
806
|
+
"stateMutability": "view",
|
|
807
|
+
"type": "function"
|
|
808
|
+
},
|
|
667
809
|
{
|
|
668
810
|
"inputs": [
|
|
669
811
|
{
|
|
@@ -677,6 +819,52 @@
|
|
|
677
819
|
"stateMutability": "nonpayable",
|
|
678
820
|
"type": "function"
|
|
679
821
|
},
|
|
822
|
+
{
|
|
823
|
+
"inputs": [],
|
|
824
|
+
"name": "initializeV2",
|
|
825
|
+
"outputs": [],
|
|
826
|
+
"stateMutability": "nonpayable",
|
|
827
|
+
"type": "function"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"inputs": [],
|
|
831
|
+
"name": "insuranceCapital",
|
|
832
|
+
"outputs": [
|
|
833
|
+
{
|
|
834
|
+
"internalType": "int256",
|
|
835
|
+
"name": "",
|
|
836
|
+
"type": "int256"
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
"stateMutability": "view",
|
|
840
|
+
"type": "function"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"inputs": [],
|
|
844
|
+
"name": "insuranceDebt",
|
|
845
|
+
"outputs": [
|
|
846
|
+
{
|
|
847
|
+
"internalType": "uint256",
|
|
848
|
+
"name": "",
|
|
849
|
+
"type": "uint256"
|
|
850
|
+
}
|
|
851
|
+
],
|
|
852
|
+
"stateMutability": "view",
|
|
853
|
+
"type": "function"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"inputs": [],
|
|
857
|
+
"name": "insuranceDebtCap",
|
|
858
|
+
"outputs": [
|
|
859
|
+
{
|
|
860
|
+
"internalType": "uint256",
|
|
861
|
+
"name": "",
|
|
862
|
+
"type": "uint256"
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
"stateMutability": "view",
|
|
866
|
+
"type": "function"
|
|
867
|
+
},
|
|
680
868
|
{
|
|
681
869
|
"inputs": [],
|
|
682
870
|
"name": "insuranceFundBalance",
|
|
@@ -795,6 +983,13 @@
|
|
|
795
983
|
"stateMutability": "nonpayable",
|
|
796
984
|
"type": "function"
|
|
797
985
|
},
|
|
986
|
+
{
|
|
987
|
+
"inputs": [],
|
|
988
|
+
"name": "resume",
|
|
989
|
+
"outputs": [],
|
|
990
|
+
"stateMutability": "nonpayable",
|
|
991
|
+
"type": "function"
|
|
992
|
+
},
|
|
798
993
|
{
|
|
799
994
|
"inputs": [
|
|
800
995
|
{
|
|
@@ -813,6 +1008,19 @@
|
|
|
813
1008
|
"stateMutability": "nonpayable",
|
|
814
1009
|
"type": "function"
|
|
815
1010
|
},
|
|
1011
|
+
{
|
|
1012
|
+
"inputs": [
|
|
1013
|
+
{
|
|
1014
|
+
"internalType": "uint256",
|
|
1015
|
+
"name": "newCap",
|
|
1016
|
+
"type": "uint256"
|
|
1017
|
+
}
|
|
1018
|
+
],
|
|
1019
|
+
"name": "setInsuranceDebtCap",
|
|
1020
|
+
"outputs": [],
|
|
1021
|
+
"stateMutability": "nonpayable",
|
|
1022
|
+
"type": "function"
|
|
1023
|
+
},
|
|
816
1024
|
{
|
|
817
1025
|
"inputs": [
|
|
818
1026
|
{
|
|
@@ -826,6 +1034,35 @@
|
|
|
826
1034
|
"stateMutability": "nonpayable",
|
|
827
1035
|
"type": "function"
|
|
828
1036
|
},
|
|
1037
|
+
{
|
|
1038
|
+
"inputs": [
|
|
1039
|
+
{
|
|
1040
|
+
"internalType": "address",
|
|
1041
|
+
"name": "from",
|
|
1042
|
+
"type": "address"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"internalType": "address",
|
|
1046
|
+
"name": "to",
|
|
1047
|
+
"type": "address"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"internalType": "uint256",
|
|
1051
|
+
"name": "amount",
|
|
1052
|
+
"type": "uint256"
|
|
1053
|
+
}
|
|
1054
|
+
],
|
|
1055
|
+
"name": "settleTransfer",
|
|
1056
|
+
"outputs": [
|
|
1057
|
+
{
|
|
1058
|
+
"internalType": "uint256",
|
|
1059
|
+
"name": "moved",
|
|
1060
|
+
"type": "uint256"
|
|
1061
|
+
}
|
|
1062
|
+
],
|
|
1063
|
+
"stateMutability": "nonpayable",
|
|
1064
|
+
"type": "function"
|
|
1065
|
+
},
|
|
829
1066
|
{
|
|
830
1067
|
"inputs": [],
|
|
831
1068
|
"name": "symbol",
|
|
@@ -839,6 +1076,19 @@
|
|
|
839
1076
|
"stateMutability": "view",
|
|
840
1077
|
"type": "function"
|
|
841
1078
|
},
|
|
1079
|
+
{
|
|
1080
|
+
"inputs": [],
|
|
1081
|
+
"name": "timingDebt",
|
|
1082
|
+
"outputs": [
|
|
1083
|
+
{
|
|
1084
|
+
"internalType": "uint256",
|
|
1085
|
+
"name": "",
|
|
1086
|
+
"type": "uint256"
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
"stateMutability": "view",
|
|
1090
|
+
"type": "function"
|
|
1091
|
+
},
|
|
842
1092
|
{
|
|
843
1093
|
"inputs": [],
|
|
844
1094
|
"name": "totalSupply",
|
|
@@ -852,6 +1102,19 @@
|
|
|
852
1102
|
"stateMutability": "view",
|
|
853
1103
|
"type": "function"
|
|
854
1104
|
},
|
|
1105
|
+
{
|
|
1106
|
+
"inputs": [],
|
|
1107
|
+
"name": "traderBadDebtTotal",
|
|
1108
|
+
"outputs": [
|
|
1109
|
+
{
|
|
1110
|
+
"internalType": "uint256",
|
|
1111
|
+
"name": "",
|
|
1112
|
+
"type": "uint256"
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"stateMutability": "view",
|
|
1116
|
+
"type": "function"
|
|
1117
|
+
},
|
|
855
1118
|
{
|
|
856
1119
|
"inputs": [
|
|
857
1120
|
{
|
|
@@ -918,6 +1181,19 @@
|
|
|
918
1181
|
"stateMutability": "nonpayable",
|
|
919
1182
|
"type": "function"
|
|
920
1183
|
},
|
|
1184
|
+
{
|
|
1185
|
+
"inputs": [],
|
|
1186
|
+
"name": "uncoveredLoss",
|
|
1187
|
+
"outputs": [
|
|
1188
|
+
{
|
|
1189
|
+
"internalType": "uint256",
|
|
1190
|
+
"name": "",
|
|
1191
|
+
"type": "uint256"
|
|
1192
|
+
}
|
|
1193
|
+
],
|
|
1194
|
+
"stateMutability": "view",
|
|
1195
|
+
"type": "function"
|
|
1196
|
+
},
|
|
921
1197
|
{
|
|
922
1198
|
"inputs": [
|
|
923
1199
|
{
|
package/json/ContractErrors.json
CHANGED
|
@@ -52,11 +52,21 @@
|
|
|
52
52
|
"name": "OwnableInvalidOwner",
|
|
53
53
|
"type": "error"
|
|
54
54
|
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [],
|
|
57
|
+
"name": "Halted",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
55
60
|
{
|
|
56
61
|
"inputs": [],
|
|
57
62
|
"name": "ZeroAmount",
|
|
58
63
|
"type": "error"
|
|
59
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"inputs": [],
|
|
67
|
+
"name": "DebtAboveCap",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
60
70
|
{
|
|
61
71
|
"inputs": [],
|
|
62
72
|
"name": "ReentrancyGuardReentrantCall",
|
|
@@ -105,6 +115,11 @@
|
|
|
105
115
|
"name": "AccessControlBadConfirmation",
|
|
106
116
|
"type": "error"
|
|
107
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"inputs": [],
|
|
120
|
+
"name": "NotHalted",
|
|
121
|
+
"type": "error"
|
|
122
|
+
},
|
|
108
123
|
{
|
|
109
124
|
"inputs": [],
|
|
110
125
|
"name": "LinearMarketAlreadyRegistered",
|
|
@@ -142,6 +142,19 @@
|
|
|
142
142
|
"stateMutability": "view",
|
|
143
143
|
"type": "function"
|
|
144
144
|
},
|
|
145
|
+
{
|
|
146
|
+
"inputs": [],
|
|
147
|
+
"name": "halted",
|
|
148
|
+
"outputs": [
|
|
149
|
+
{
|
|
150
|
+
"internalType": "bool",
|
|
151
|
+
"name": "",
|
|
152
|
+
"type": "bool"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"stateMutability": "view",
|
|
156
|
+
"type": "function"
|
|
157
|
+
},
|
|
145
158
|
{
|
|
146
159
|
"inputs": [
|
|
147
160
|
{
|
|
@@ -188,6 +201,48 @@
|
|
|
188
201
|
"stateMutability": "nonpayable",
|
|
189
202
|
"type": "function"
|
|
190
203
|
},
|
|
204
|
+
{
|
|
205
|
+
"inputs": [
|
|
206
|
+
{
|
|
207
|
+
"internalType": "address",
|
|
208
|
+
"name": "from",
|
|
209
|
+
"type": "address"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"internalType": "address",
|
|
213
|
+
"name": "to",
|
|
214
|
+
"type": "address"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"internalType": "uint256",
|
|
218
|
+
"name": "amount",
|
|
219
|
+
"type": "uint256"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"name": "settleTransfer",
|
|
223
|
+
"outputs": [
|
|
224
|
+
{
|
|
225
|
+
"internalType": "uint256",
|
|
226
|
+
"name": "moved",
|
|
227
|
+
"type": "uint256"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"stateMutability": "nonpayable",
|
|
231
|
+
"type": "function"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"inputs": [],
|
|
235
|
+
"name": "timingDebt",
|
|
236
|
+
"outputs": [
|
|
237
|
+
{
|
|
238
|
+
"internalType": "uint256",
|
|
239
|
+
"name": "",
|
|
240
|
+
"type": "uint256"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"stateMutability": "view",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
191
246
|
{
|
|
192
247
|
"inputs": [],
|
|
193
248
|
"name": "totalSupply",
|
|
@@ -254,6 +309,19 @@
|
|
|
254
309
|
"stateMutability": "nonpayable",
|
|
255
310
|
"type": "function"
|
|
256
311
|
},
|
|
312
|
+
{
|
|
313
|
+
"inputs": [],
|
|
314
|
+
"name": "uncoveredLoss",
|
|
315
|
+
"outputs": [
|
|
316
|
+
{
|
|
317
|
+
"internalType": "uint256",
|
|
318
|
+
"name": "",
|
|
319
|
+
"type": "uint256"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"stateMutability": "view",
|
|
323
|
+
"type": "function"
|
|
324
|
+
},
|
|
257
325
|
{
|
|
258
326
|
"inputs": [
|
|
259
327
|
{
|