@dhedge/v2-sdk 1.9.8 → 1.9.9

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.
@@ -0,0 +1,770 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "amount",
12
+ "type": "uint256"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "minAmount",
17
+ "type": "uint256"
18
+ }
19
+ ],
20
+ "name": "AmountTooSmall",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "supplied",
28
+ "type": "uint256"
29
+ },
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "accepted",
33
+ "type": "uint256"
34
+ }
35
+ ],
36
+ "name": "HighSlippage",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "uint256",
43
+ "name": "fee",
44
+ "type": "uint256"
45
+ }
46
+ ],
47
+ "name": "InvalidFee",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "skewFraction",
55
+ "type": "uint256"
56
+ }
57
+ ],
58
+ "name": "MaxSkewReached",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [],
63
+ "name": "ModuleKeyEmpty",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "msgSender",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "OnlyAuthorizedModule",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "internalType": "address",
81
+ "name": "msgSender",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "name": "OnlyOwner",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "PriceImpactDuringFullWithdraw",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "PriceImpactDuringWithdraw",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "string",
102
+ "name": "variableName",
103
+ "type": "string"
104
+ }
105
+ ],
106
+ "name": "ZeroAddress",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "anonymous": false,
111
+ "inputs": [
112
+ {
113
+ "indexed": true,
114
+ "internalType": "address",
115
+ "name": "owner",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "spender",
122
+ "type": "address"
123
+ },
124
+ {
125
+ "indexed": false,
126
+ "internalType": "uint256",
127
+ "name": "value",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "name": "Approval",
132
+ "type": "event"
133
+ },
134
+ {
135
+ "anonymous": false,
136
+ "inputs": [
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint8",
140
+ "name": "version",
141
+ "type": "uint8"
142
+ }
143
+ ],
144
+ "name": "Initialized",
145
+ "type": "event"
146
+ },
147
+ {
148
+ "anonymous": false,
149
+ "inputs": [
150
+ {
151
+ "indexed": true,
152
+ "internalType": "address",
153
+ "name": "account",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "uint256",
159
+ "name": "amount",
160
+ "type": "uint256"
161
+ }
162
+ ],
163
+ "name": "Locked",
164
+ "type": "event"
165
+ },
166
+ {
167
+ "anonymous": false,
168
+ "inputs": [
169
+ {
170
+ "indexed": true,
171
+ "internalType": "address",
172
+ "name": "from",
173
+ "type": "address"
174
+ },
175
+ {
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "to",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "indexed": false,
183
+ "internalType": "uint256",
184
+ "name": "value",
185
+ "type": "uint256"
186
+ }
187
+ ],
188
+ "name": "Transfer",
189
+ "type": "event"
190
+ },
191
+ {
192
+ "anonymous": false,
193
+ "inputs": [
194
+ {
195
+ "indexed": true,
196
+ "internalType": "address",
197
+ "name": "account",
198
+ "type": "address"
199
+ },
200
+ {
201
+ "indexed": false,
202
+ "internalType": "uint256",
203
+ "name": "amount",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "name": "Unlocked",
208
+ "type": "event"
209
+ },
210
+ {
211
+ "inputs": [],
212
+ "name": "MIN_LIQUIDITY",
213
+ "outputs": [
214
+ {
215
+ "internalType": "uint256",
216
+ "name": "",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "stateMutability": "view",
221
+ "type": "function"
222
+ },
223
+ {
224
+ "inputs": [],
225
+ "name": "MODULE_KEY",
226
+ "outputs": [
227
+ {
228
+ "internalType": "bytes32",
229
+ "name": "",
230
+ "type": "bytes32"
231
+ }
232
+ ],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [
238
+ {
239
+ "internalType": "address",
240
+ "name": "owner",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "internalType": "address",
245
+ "name": "spender",
246
+ "type": "address"
247
+ }
248
+ ],
249
+ "name": "allowance",
250
+ "outputs": [
251
+ {
252
+ "internalType": "uint256",
253
+ "name": "",
254
+ "type": "uint256"
255
+ }
256
+ ],
257
+ "stateMutability": "view",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "address",
264
+ "name": "spender",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "amount",
270
+ "type": "uint256"
271
+ }
272
+ ],
273
+ "name": "approve",
274
+ "outputs": [
275
+ {
276
+ "internalType": "bool",
277
+ "name": "",
278
+ "type": "bool"
279
+ }
280
+ ],
281
+ "stateMutability": "nonpayable",
282
+ "type": "function"
283
+ },
284
+ {
285
+ "inputs": [
286
+ {
287
+ "internalType": "address",
288
+ "name": "account",
289
+ "type": "address"
290
+ }
291
+ ],
292
+ "name": "balanceOf",
293
+ "outputs": [
294
+ {
295
+ "internalType": "uint256",
296
+ "name": "",
297
+ "type": "uint256"
298
+ }
299
+ ],
300
+ "stateMutability": "view",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [],
305
+ "name": "decimals",
306
+ "outputs": [
307
+ {
308
+ "internalType": "uint8",
309
+ "name": "",
310
+ "type": "uint8"
311
+ }
312
+ ],
313
+ "stateMutability": "view",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [
318
+ {
319
+ "internalType": "address",
320
+ "name": "spender",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "subtractedValue",
326
+ "type": "uint256"
327
+ }
328
+ ],
329
+ "name": "decreaseAllowance",
330
+ "outputs": [
331
+ {
332
+ "internalType": "bool",
333
+ "name": "",
334
+ "type": "bool"
335
+ }
336
+ ],
337
+ "stateMutability": "nonpayable",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [
342
+ {
343
+ "internalType": "address",
344
+ "name": "_account",
345
+ "type": "address"
346
+ },
347
+ {
348
+ "internalType": "uint64",
349
+ "name": "_executableAtTime",
350
+ "type": "uint64"
351
+ },
352
+ {
353
+ "components": [
354
+ {
355
+ "internalType": "uint256",
356
+ "name": "depositAmount",
357
+ "type": "uint256"
358
+ },
359
+ {
360
+ "internalType": "uint256",
361
+ "name": "minAmountOut",
362
+ "type": "uint256"
363
+ }
364
+ ],
365
+ "internalType": "struct FlatcoinStructs.AnnouncedStableDeposit",
366
+ "name": "_announcedDeposit",
367
+ "type": "tuple"
368
+ }
369
+ ],
370
+ "name": "executeDeposit",
371
+ "outputs": [
372
+ {
373
+ "internalType": "uint256",
374
+ "name": "_liquidityMinted",
375
+ "type": "uint256"
376
+ }
377
+ ],
378
+ "stateMutability": "nonpayable",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [
383
+ {
384
+ "internalType": "address",
385
+ "name": "_account",
386
+ "type": "address"
387
+ },
388
+ {
389
+ "internalType": "uint64",
390
+ "name": "_executableAtTime",
391
+ "type": "uint64"
392
+ },
393
+ {
394
+ "components": [
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "withdrawAmount",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "internalType": "uint256",
402
+ "name": "minAmountOut",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "internalType": "struct FlatcoinStructs.AnnouncedStableWithdraw",
407
+ "name": "_announcedWithdraw",
408
+ "type": "tuple"
409
+ }
410
+ ],
411
+ "name": "executeWithdraw",
412
+ "outputs": [
413
+ {
414
+ "internalType": "uint256",
415
+ "name": "_amountOut",
416
+ "type": "uint256"
417
+ },
418
+ {
419
+ "internalType": "uint256",
420
+ "name": "_withdrawFee",
421
+ "type": "uint256"
422
+ }
423
+ ],
424
+ "stateMutability": "nonpayable",
425
+ "type": "function"
426
+ },
427
+ {
428
+ "inputs": [
429
+ {
430
+ "internalType": "address",
431
+ "name": "_account",
432
+ "type": "address"
433
+ }
434
+ ],
435
+ "name": "getLockedAmount",
436
+ "outputs": [
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "_amountLocked",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "stateMutability": "view",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [
448
+ {
449
+ "internalType": "address",
450
+ "name": "spender",
451
+ "type": "address"
452
+ },
453
+ {
454
+ "internalType": "uint256",
455
+ "name": "addedValue",
456
+ "type": "uint256"
457
+ }
458
+ ],
459
+ "name": "increaseAllowance",
460
+ "outputs": [
461
+ {
462
+ "internalType": "bool",
463
+ "name": "",
464
+ "type": "bool"
465
+ }
466
+ ],
467
+ "stateMutability": "nonpayable",
468
+ "type": "function"
469
+ },
470
+ {
471
+ "inputs": [
472
+ {
473
+ "internalType": "contract IFlatcoinVault",
474
+ "name": "_vault",
475
+ "type": "address"
476
+ },
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "_stableWithdrawFee",
480
+ "type": "uint256"
481
+ }
482
+ ],
483
+ "name": "initialize",
484
+ "outputs": [],
485
+ "stateMutability": "nonpayable",
486
+ "type": "function"
487
+ },
488
+ {
489
+ "inputs": [
490
+ {
491
+ "internalType": "address",
492
+ "name": "_account",
493
+ "type": "address"
494
+ },
495
+ {
496
+ "internalType": "uint256",
497
+ "name": "_amount",
498
+ "type": "uint256"
499
+ }
500
+ ],
501
+ "name": "lock",
502
+ "outputs": [],
503
+ "stateMutability": "nonpayable",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [],
508
+ "name": "name",
509
+ "outputs": [
510
+ {
511
+ "internalType": "string",
512
+ "name": "",
513
+ "type": "string"
514
+ }
515
+ ],
516
+ "stateMutability": "view",
517
+ "type": "function"
518
+ },
519
+ {
520
+ "inputs": [
521
+ {
522
+ "internalType": "uint256",
523
+ "name": "_stableWithdrawFee",
524
+ "type": "uint256"
525
+ }
526
+ ],
527
+ "name": "setStableWithdrawFee",
528
+ "outputs": [],
529
+ "stateMutability": "nonpayable",
530
+ "type": "function"
531
+ },
532
+ {
533
+ "inputs": [
534
+ {
535
+ "internalType": "contract IFlatcoinVault",
536
+ "name": "_vault",
537
+ "type": "address"
538
+ }
539
+ ],
540
+ "name": "setVault",
541
+ "outputs": [],
542
+ "stateMutability": "nonpayable",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [
547
+ {
548
+ "internalType": "uint32",
549
+ "name": "_maxAge",
550
+ "type": "uint32"
551
+ }
552
+ ],
553
+ "name": "stableCollateralPerShare",
554
+ "outputs": [
555
+ {
556
+ "internalType": "uint256",
557
+ "name": "_collateralPerShare",
558
+ "type": "uint256"
559
+ }
560
+ ],
561
+ "stateMutability": "view",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [],
566
+ "name": "stableCollateralPerShare",
567
+ "outputs": [
568
+ {
569
+ "internalType": "uint256",
570
+ "name": "_collateralPerShare",
571
+ "type": "uint256"
572
+ }
573
+ ],
574
+ "stateMutability": "view",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [],
579
+ "name": "stableCollateralTotalAfterSettlement",
580
+ "outputs": [
581
+ {
582
+ "internalType": "uint256",
583
+ "name": "_stableCollateralBalance",
584
+ "type": "uint256"
585
+ }
586
+ ],
587
+ "stateMutability": "view",
588
+ "type": "function"
589
+ },
590
+ {
591
+ "inputs": [
592
+ {
593
+ "internalType": "uint32",
594
+ "name": "_maxAge",
595
+ "type": "uint32"
596
+ }
597
+ ],
598
+ "name": "stableCollateralTotalAfterSettlement",
599
+ "outputs": [
600
+ {
601
+ "internalType": "uint256",
602
+ "name": "_stableCollateralBalance",
603
+ "type": "uint256"
604
+ }
605
+ ],
606
+ "stateMutability": "view",
607
+ "type": "function"
608
+ },
609
+ {
610
+ "inputs": [
611
+ {
612
+ "internalType": "uint256",
613
+ "name": "_depositAmount",
614
+ "type": "uint256"
615
+ }
616
+ ],
617
+ "name": "stableDepositQuote",
618
+ "outputs": [
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "_amountOut",
622
+ "type": "uint256"
623
+ }
624
+ ],
625
+ "stateMutability": "view",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "stableWithdrawFee",
631
+ "outputs": [
632
+ {
633
+ "internalType": "uint256",
634
+ "name": "",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [
643
+ {
644
+ "internalType": "uint256",
645
+ "name": "_withdrawAmount",
646
+ "type": "uint256"
647
+ }
648
+ ],
649
+ "name": "stableWithdrawQuote",
650
+ "outputs": [
651
+ {
652
+ "internalType": "uint256",
653
+ "name": "_amountOut",
654
+ "type": "uint256"
655
+ }
656
+ ],
657
+ "stateMutability": "view",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "inputs": [],
662
+ "name": "symbol",
663
+ "outputs": [
664
+ {
665
+ "internalType": "string",
666
+ "name": "",
667
+ "type": "string"
668
+ }
669
+ ],
670
+ "stateMutability": "view",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [],
675
+ "name": "totalSupply",
676
+ "outputs": [
677
+ {
678
+ "internalType": "uint256",
679
+ "name": "",
680
+ "type": "uint256"
681
+ }
682
+ ],
683
+ "stateMutability": "view",
684
+ "type": "function"
685
+ },
686
+ {
687
+ "inputs": [
688
+ {
689
+ "internalType": "address",
690
+ "name": "to",
691
+ "type": "address"
692
+ },
693
+ {
694
+ "internalType": "uint256",
695
+ "name": "amount",
696
+ "type": "uint256"
697
+ }
698
+ ],
699
+ "name": "transfer",
700
+ "outputs": [
701
+ {
702
+ "internalType": "bool",
703
+ "name": "",
704
+ "type": "bool"
705
+ }
706
+ ],
707
+ "stateMutability": "nonpayable",
708
+ "type": "function"
709
+ },
710
+ {
711
+ "inputs": [
712
+ {
713
+ "internalType": "address",
714
+ "name": "from",
715
+ "type": "address"
716
+ },
717
+ {
718
+ "internalType": "address",
719
+ "name": "to",
720
+ "type": "address"
721
+ },
722
+ {
723
+ "internalType": "uint256",
724
+ "name": "amount",
725
+ "type": "uint256"
726
+ }
727
+ ],
728
+ "name": "transferFrom",
729
+ "outputs": [
730
+ {
731
+ "internalType": "bool",
732
+ "name": "",
733
+ "type": "bool"
734
+ }
735
+ ],
736
+ "stateMutability": "nonpayable",
737
+ "type": "function"
738
+ },
739
+ {
740
+ "inputs": [
741
+ {
742
+ "internalType": "address",
743
+ "name": "_account",
744
+ "type": "address"
745
+ },
746
+ {
747
+ "internalType": "uint256",
748
+ "name": "_amount",
749
+ "type": "uint256"
750
+ }
751
+ ],
752
+ "name": "unlock",
753
+ "outputs": [],
754
+ "stateMutability": "nonpayable",
755
+ "type": "function"
756
+ },
757
+ {
758
+ "inputs": [],
759
+ "name": "vault",
760
+ "outputs": [
761
+ {
762
+ "internalType": "contract IFlatcoinVault",
763
+ "name": "",
764
+ "type": "address"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ }
770
+ ]