@paraswap/dex-lib 4.0.16 → 4.0.17-usual-pp.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.
Files changed (36) hide show
  1. package/build/abi/usual-pp/abi.json +750 -0
  2. package/build/dex/fluid-dex/fluid-dex.js +2 -0
  3. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  4. package/build/dex/index.js +2 -0
  5. package/build/dex/index.js.map +1 -1
  6. package/build/dex/usual/usual.js +1 -1
  7. package/build/dex/usual/usual.js.map +1 -1
  8. package/build/dex/usual-pp/config.d.ts +3 -0
  9. package/build/dex/usual-pp/config.js +19 -0
  10. package/build/dex/usual-pp/config.js.map +1 -0
  11. package/build/dex/usual-pp/pool.d.ts +17 -0
  12. package/build/dex/usual-pp/pool.js +57 -0
  13. package/build/dex/usual-pp/pool.js.map +1 -0
  14. package/build/dex/usual-pp/types.d.ts +15 -0
  15. package/build/dex/usual-pp/types.js +3 -0
  16. package/build/dex/usual-pp/types.js.map +1 -0
  17. package/build/dex/usual-pp/usual-pp.d.ts +36 -0
  18. package/build/dex/usual-pp/usual-pp.js +167 -0
  19. package/build/dex/usual-pp/usual-pp.js.map +1 -0
  20. package/build/dex/usual-pp/utils.d.ts +4 -0
  21. package/build/dex/usual-pp/utils.js +18 -0
  22. package/build/dex/usual-pp/utils.js.map +1 -0
  23. package/package.json +1 -1
  24. package/src/abi/usual-pp/abi.json +750 -0
  25. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +0 -10
  26. package/src/dex/fluid-dex/fluid-dex.ts +6 -0
  27. package/src/dex/index.ts +2 -0
  28. package/src/dex/usual/usual.ts +1 -1
  29. package/src/dex/usual-pp/config.ts +18 -0
  30. package/src/dex/usual-pp/pool.ts +77 -0
  31. package/src/dex/usual-pp/types.ts +12 -0
  32. package/src/dex/usual-pp/usual-events.test.ts +70 -0
  33. package/src/dex/usual-pp/usual-integration.test.ts +143 -0
  34. package/src/dex/usual-pp/usual-pp.e2e.test.ts +76 -0
  35. package/src/dex/usual-pp/usual-pp.ts +208 -0
  36. package/src/dex/usual-pp/utils.ts +27 -0
@@ -0,0 +1,750 @@
1
+ [
2
+ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
+ {
4
+ "inputs": [
5
+ { "internalType": "address", "name": "target", "type": "address" }
6
+ ],
7
+ "name": "AddressEmptyCode",
8
+ "type": "error"
9
+ },
10
+ {
11
+ "inputs": [
12
+ { "internalType": "address", "name": "account", "type": "address" }
13
+ ],
14
+ "name": "AddressInsufficientBalance",
15
+ "type": "error"
16
+ },
17
+ { "inputs": [], "name": "AmountIsZero", "type": "error" },
18
+ { "inputs": [], "name": "AmountMustBeGreaterThanZero", "type": "error" },
19
+ { "inputs": [], "name": "AmountTooBig", "type": "error" },
20
+ { "inputs": [], "name": "ApprovalFailed", "type": "error" },
21
+ { "inputs": [], "name": "Blacklisted", "type": "error" },
22
+ { "inputs": [], "name": "BondFinished", "type": "error" },
23
+ { "inputs": [], "name": "BondNotFinished", "type": "error" },
24
+ { "inputs": [], "name": "BondNotStarted", "type": "error" },
25
+ { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" },
26
+ {
27
+ "inputs": [
28
+ { "internalType": "uint256", "name": "length", "type": "uint256" }
29
+ ],
30
+ "name": "ECDSAInvalidSignatureLength",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
35
+ "name": "ECDSAInvalidSignatureS",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [
40
+ { "internalType": "address", "name": "spender", "type": "address" },
41
+ { "internalType": "uint256", "name": "allowance", "type": "uint256" },
42
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
43
+ ],
44
+ "name": "ERC20InsufficientAllowance",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [
49
+ { "internalType": "address", "name": "sender", "type": "address" },
50
+ { "internalType": "uint256", "name": "balance", "type": "uint256" },
51
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
52
+ ],
53
+ "name": "ERC20InsufficientBalance",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [
58
+ { "internalType": "address", "name": "approver", "type": "address" }
59
+ ],
60
+ "name": "ERC20InvalidApprover",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [
65
+ { "internalType": "address", "name": "receiver", "type": "address" }
66
+ ],
67
+ "name": "ERC20InvalidReceiver",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ { "internalType": "address", "name": "sender", "type": "address" }
73
+ ],
74
+ "name": "ERC20InvalidSender",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ { "internalType": "address", "name": "spender", "type": "address" }
80
+ ],
81
+ "name": "ERC20InvalidSpender",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [
86
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
87
+ ],
88
+ "name": "ERC2612ExpiredSignature",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [
93
+ { "internalType": "address", "name": "signer", "type": "address" },
94
+ { "internalType": "address", "name": "owner", "type": "address" }
95
+ ],
96
+ "name": "ERC2612InvalidSigner",
97
+ "type": "error"
98
+ },
99
+ { "inputs": [], "name": "EnforcedPause", "type": "error" },
100
+ { "inputs": [], "name": "ExpectedPause", "type": "error" },
101
+ { "inputs": [], "name": "FailedInnerCall", "type": "error" },
102
+ { "inputs": [], "name": "FloorPriceNotSet", "type": "error" },
103
+ { "inputs": [], "name": "FloorPriceTooHigh", "type": "error" },
104
+ { "inputs": [], "name": "InsufficientUsd0ppBalance", "type": "error" },
105
+ {
106
+ "inputs": [
107
+ { "internalType": "address", "name": "account", "type": "address" },
108
+ { "internalType": "uint256", "name": "currentNonce", "type": "uint256" }
109
+ ],
110
+ "name": "InvalidAccountNonce",
111
+ "type": "error"
112
+ },
113
+ { "inputs": [], "name": "InvalidInitialization", "type": "error" },
114
+ { "inputs": [], "name": "InvalidInput", "type": "error" },
115
+ { "inputs": [], "name": "InvalidInputArraysLength", "type": "error" },
116
+ { "inputs": [], "name": "MathOverflowedMulDiv", "type": "error" },
117
+ { "inputs": [], "name": "NotAuthorized", "type": "error" },
118
+ { "inputs": [], "name": "NotInitializing", "type": "error" },
119
+ { "inputs": [], "name": "NotPermittedToEarlyUnlock", "type": "error" },
120
+ { "inputs": [], "name": "NullAddress", "type": "error" },
121
+ { "inputs": [], "name": "OutOfBounds", "type": "error" },
122
+ { "inputs": [], "name": "OutsideEarlyUnlockTimeframe", "type": "error" },
123
+ { "inputs": [], "name": "PARNotRequired", "type": "error" },
124
+ { "inputs": [], "name": "PARNotSuccessful", "type": "error" },
125
+ { "inputs": [], "name": "PARUSD0InputExceedsBalance", "type": "error" },
126
+ { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" },
127
+ {
128
+ "inputs": [
129
+ { "internalType": "address", "name": "token", "type": "address" }
130
+ ],
131
+ "name": "SafeERC20FailedOperation",
132
+ "type": "error"
133
+ },
134
+ {
135
+ "anonymous": false,
136
+ "inputs": [
137
+ {
138
+ "indexed": true,
139
+ "internalType": "address",
140
+ "name": "owner",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "indexed": true,
145
+ "internalType": "address",
146
+ "name": "spender",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "indexed": false,
151
+ "internalType": "uint256",
152
+ "name": "value",
153
+ "type": "uint256"
154
+ }
155
+ ],
156
+ "name": "Approval",
157
+ "type": "event"
158
+ },
159
+ {
160
+ "anonymous": false,
161
+ "inputs": [
162
+ {
163
+ "indexed": true,
164
+ "internalType": "address",
165
+ "name": "user",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "name": "BondEarlyUnlockDisabled",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "anonymous": false,
174
+ "inputs": [
175
+ {
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "user",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "indexed": false,
183
+ "internalType": "uint256",
184
+ "name": "amount",
185
+ "type": "uint256"
186
+ }
187
+ ],
188
+ "name": "BondUnwrapped",
189
+ "type": "event"
190
+ },
191
+ {
192
+ "anonymous": false,
193
+ "inputs": [
194
+ {
195
+ "indexed": true,
196
+ "internalType": "address",
197
+ "name": "user",
198
+ "type": "address"
199
+ },
200
+ {
201
+ "indexed": false,
202
+ "internalType": "uint256",
203
+ "name": "amount",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "name": "BondUnwrappedDuringEarlyUnlock",
208
+ "type": "event"
209
+ },
210
+ {
211
+ "anonymous": false,
212
+ "inputs": [],
213
+ "name": "EIP712DomainChanged",
214
+ "type": "event"
215
+ },
216
+ {
217
+ "anonymous": false,
218
+ "inputs": [
219
+ {
220
+ "indexed": false,
221
+ "internalType": "address[]",
222
+ "name": "addressesToAllocateTo",
223
+ "type": "address[]"
224
+ },
225
+ {
226
+ "indexed": false,
227
+ "internalType": "uint256[]",
228
+ "name": "earlyUnlockBalances",
229
+ "type": "uint256[]"
230
+ }
231
+ ],
232
+ "name": "EarlyUnlockBalancesSet",
233
+ "type": "event"
234
+ },
235
+ {
236
+ "anonymous": false,
237
+ "inputs": [
238
+ {
239
+ "indexed": false,
240
+ "internalType": "uint256",
241
+ "name": "earlyUnlockStart",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint256",
247
+ "name": "earlyUnlockEnd",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "EarlyUnlockPeriodSet",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [
257
+ {
258
+ "indexed": true,
259
+ "internalType": "address",
260
+ "name": "account",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "indexed": false,
265
+ "internalType": "uint256",
266
+ "name": "balance",
267
+ "type": "uint256"
268
+ }
269
+ ],
270
+ "name": "EmergencyWithdraw",
271
+ "type": "event"
272
+ },
273
+ {
274
+ "anonymous": false,
275
+ "inputs": [
276
+ {
277
+ "indexed": false,
278
+ "internalType": "uint256",
279
+ "name": "newFloorPrice",
280
+ "type": "uint256"
281
+ }
282
+ ],
283
+ "name": "FloorPriceUpdated",
284
+ "type": "event"
285
+ },
286
+ {
287
+ "anonymous": false,
288
+ "inputs": [
289
+ {
290
+ "indexed": false,
291
+ "internalType": "uint64",
292
+ "name": "version",
293
+ "type": "uint64"
294
+ }
295
+ ],
296
+ "name": "Initialized",
297
+ "type": "event"
298
+ },
299
+ {
300
+ "anonymous": false,
301
+ "inputs": [
302
+ {
303
+ "indexed": true,
304
+ "internalType": "address",
305
+ "name": "user",
306
+ "type": "address"
307
+ },
308
+ {
309
+ "indexed": false,
310
+ "internalType": "uint256",
311
+ "name": "amount",
312
+ "type": "uint256"
313
+ }
314
+ ],
315
+ "name": "PARMechanismActivated",
316
+ "type": "event"
317
+ },
318
+ {
319
+ "anonymous": false,
320
+ "inputs": [
321
+ {
322
+ "indexed": false,
323
+ "internalType": "address",
324
+ "name": "account",
325
+ "type": "address"
326
+ }
327
+ ],
328
+ "name": "Paused",
329
+ "type": "event"
330
+ },
331
+ {
332
+ "anonymous": false,
333
+ "inputs": [
334
+ {
335
+ "indexed": true,
336
+ "internalType": "address",
337
+ "name": "from",
338
+ "type": "address"
339
+ },
340
+ {
341
+ "indexed": true,
342
+ "internalType": "address",
343
+ "name": "to",
344
+ "type": "address"
345
+ },
346
+ {
347
+ "indexed": false,
348
+ "internalType": "uint256",
349
+ "name": "value",
350
+ "type": "uint256"
351
+ }
352
+ ],
353
+ "name": "Transfer",
354
+ "type": "event"
355
+ },
356
+ {
357
+ "anonymous": false,
358
+ "inputs": [
359
+ {
360
+ "indexed": false,
361
+ "internalType": "address",
362
+ "name": "account",
363
+ "type": "address"
364
+ }
365
+ ],
366
+ "name": "Unpaused",
367
+ "type": "event"
368
+ },
369
+ {
370
+ "anonymous": false,
371
+ "inputs": [
372
+ {
373
+ "indexed": true,
374
+ "internalType": "address",
375
+ "name": "user",
376
+ "type": "address"
377
+ },
378
+ {
379
+ "indexed": false,
380
+ "internalType": "uint256",
381
+ "name": "usd0ppAmount",
382
+ "type": "uint256"
383
+ },
384
+ {
385
+ "indexed": false,
386
+ "internalType": "uint256",
387
+ "name": "usd0Amount",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "name": "Usd0ppUnlockedFloorPrice",
392
+ "type": "event"
393
+ },
394
+ {
395
+ "inputs": [],
396
+ "name": "DOMAIN_SEPARATOR",
397
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
398
+ "stateMutability": "view",
399
+ "type": "function"
400
+ },
401
+ {
402
+ "inputs": [],
403
+ "name": "Usd0PPStorageV0Location",
404
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
405
+ "stateMutability": "view",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [
410
+ {
411
+ "internalType": "address[]",
412
+ "name": "addressesToAllocateTo",
413
+ "type": "address[]"
414
+ },
415
+ {
416
+ "internalType": "uint256[]",
417
+ "name": "balancesToAllocate",
418
+ "type": "uint256[]"
419
+ }
420
+ ],
421
+ "name": "allocateEarlyUnlockBalance",
422
+ "outputs": [],
423
+ "stateMutability": "nonpayable",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [
428
+ { "internalType": "address", "name": "owner", "type": "address" },
429
+ { "internalType": "address", "name": "spender", "type": "address" }
430
+ ],
431
+ "name": "allowance",
432
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
433
+ "stateMutability": "view",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [
438
+ { "internalType": "address", "name": "spender", "type": "address" },
439
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
440
+ ],
441
+ "name": "approve",
442
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
443
+ "stateMutability": "nonpayable",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [
448
+ { "internalType": "address", "name": "account", "type": "address" }
449
+ ],
450
+ "name": "balanceOf",
451
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
452
+ "stateMutability": "view",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [],
457
+ "name": "decimals",
458
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ },
462
+ {
463
+ "inputs": [],
464
+ "name": "eip712Domain",
465
+ "outputs": [
466
+ { "internalType": "bytes1", "name": "fields", "type": "bytes1" },
467
+ { "internalType": "string", "name": "name", "type": "string" },
468
+ { "internalType": "string", "name": "version", "type": "string" },
469
+ { "internalType": "uint256", "name": "chainId", "type": "uint256" },
470
+ {
471
+ "internalType": "address",
472
+ "name": "verifyingContract",
473
+ "type": "address"
474
+ },
475
+ { "internalType": "bytes32", "name": "salt", "type": "bytes32" },
476
+ { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }
477
+ ],
478
+ "stateMutability": "view",
479
+ "type": "function"
480
+ },
481
+ {
482
+ "inputs": [
483
+ { "internalType": "address", "name": "safeAccount", "type": "address" }
484
+ ],
485
+ "name": "emergencyWithdraw",
486
+ "outputs": [],
487
+ "stateMutability": "nonpayable",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [
492
+ { "internalType": "address", "name": "addressToCheck", "type": "address" }
493
+ ],
494
+ "name": "getAllocationEarlyUnlock",
495
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
496
+ "stateMutability": "view",
497
+ "type": "function"
498
+ },
499
+ {
500
+ "inputs": [
501
+ { "internalType": "address", "name": "user", "type": "address" }
502
+ ],
503
+ "name": "getBondEarlyUnlockDisabled",
504
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
505
+ "stateMutability": "view",
506
+ "type": "function"
507
+ },
508
+ {
509
+ "inputs": [],
510
+ "name": "getEndTime",
511
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
512
+ "stateMutability": "view",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [],
517
+ "name": "getFloorPrice",
518
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
519
+ "stateMutability": "view",
520
+ "type": "function"
521
+ },
522
+ {
523
+ "inputs": [],
524
+ "name": "getStartTime",
525
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
526
+ "stateMutability": "view",
527
+ "type": "function"
528
+ },
529
+ {
530
+ "inputs": [],
531
+ "name": "getTemporaryUnlockEndTime",
532
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
533
+ "stateMutability": "view",
534
+ "type": "function"
535
+ },
536
+ {
537
+ "inputs": [],
538
+ "name": "getTemporaryUnlockStartTime",
539
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
540
+ "stateMutability": "view",
541
+ "type": "function"
542
+ },
543
+ {
544
+ "inputs": [],
545
+ "name": "initializeV1",
546
+ "outputs": [],
547
+ "stateMutability": "nonpayable",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ { "internalType": "uint256", "name": "amountUsd0", "type": "uint256" }
553
+ ],
554
+ "name": "mint",
555
+ "outputs": [],
556
+ "stateMutability": "nonpayable",
557
+ "type": "function"
558
+ },
559
+ {
560
+ "inputs": [
561
+ { "internalType": "uint256", "name": "amountUsd0", "type": "uint256" },
562
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
563
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
564
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
565
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
566
+ ],
567
+ "name": "mintWithPermit",
568
+ "outputs": [],
569
+ "stateMutability": "nonpayable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [],
574
+ "name": "name",
575
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
576
+ "stateMutability": "view",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [
581
+ { "internalType": "address", "name": "owner", "type": "address" }
582
+ ],
583
+ "name": "nonces",
584
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [],
590
+ "name": "pause",
591
+ "outputs": [],
592
+ "stateMutability": "nonpayable",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [],
597
+ "name": "paused",
598
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
599
+ "stateMutability": "view",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [
604
+ { "internalType": "address", "name": "owner", "type": "address" },
605
+ { "internalType": "address", "name": "spender", "type": "address" },
606
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
607
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
608
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
609
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
610
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
611
+ ],
612
+ "name": "permit",
613
+ "outputs": [],
614
+ "stateMutability": "nonpayable",
615
+ "type": "function"
616
+ },
617
+ {
618
+ "inputs": [
619
+ { "internalType": "address", "name": "user", "type": "address" }
620
+ ],
621
+ "name": "setBondEarlyUnlockDisabled",
622
+ "outputs": [],
623
+ "stateMutability": "nonpayable",
624
+ "type": "function"
625
+ },
626
+ {
627
+ "inputs": [
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "bondEarlyUnlockStart",
631
+ "type": "uint256"
632
+ },
633
+ {
634
+ "internalType": "uint256",
635
+ "name": "bondEarlyUnlockEnd",
636
+ "type": "uint256"
637
+ }
638
+ ],
639
+ "name": "setupEarlyUnlockPeriod",
640
+ "outputs": [],
641
+ "stateMutability": "nonpayable",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [],
646
+ "name": "symbol",
647
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
648
+ "stateMutability": "view",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [
653
+ { "internalType": "uint256", "name": "amountToUnwrap", "type": "uint256" }
654
+ ],
655
+ "name": "temporaryOneToOneExitUnwrap",
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "inputs": [],
662
+ "name": "totalBondTimes",
663
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
664
+ "stateMutability": "pure",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [],
669
+ "name": "totalSupply",
670
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
671
+ "stateMutability": "view",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [
676
+ { "internalType": "address", "name": "to", "type": "address" },
677
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
678
+ ],
679
+ "name": "transfer",
680
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
681
+ "stateMutability": "nonpayable",
682
+ "type": "function"
683
+ },
684
+ {
685
+ "inputs": [
686
+ { "internalType": "address", "name": "from", "type": "address" },
687
+ { "internalType": "address", "name": "to", "type": "address" },
688
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
689
+ ],
690
+ "name": "transferFrom",
691
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
692
+ "stateMutability": "nonpayable",
693
+ "type": "function"
694
+ },
695
+ {
696
+ "inputs": [
697
+ { "internalType": "uint256", "name": "parUsd0Amount", "type": "uint256" },
698
+ {
699
+ "internalType": "uint256",
700
+ "name": "minimumPARMechanismGainedAmount",
701
+ "type": "uint256"
702
+ }
703
+ ],
704
+ "name": "triggerPARMechanismCurvepool",
705
+ "outputs": [],
706
+ "stateMutability": "nonpayable",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [
711
+ { "internalType": "uint256", "name": "usd0ppAmount", "type": "uint256" }
712
+ ],
713
+ "name": "unlockUsd0ppFloorPrice",
714
+ "outputs": [],
715
+ "stateMutability": "nonpayable",
716
+ "type": "function"
717
+ },
718
+ {
719
+ "inputs": [],
720
+ "name": "unpause",
721
+ "outputs": [],
722
+ "stateMutability": "nonpayable",
723
+ "type": "function"
724
+ },
725
+ {
726
+ "inputs": [],
727
+ "name": "unwrap",
728
+ "outputs": [],
729
+ "stateMutability": "nonpayable",
730
+ "type": "function"
731
+ },
732
+ {
733
+ "inputs": [
734
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
735
+ ],
736
+ "name": "unwrapPegMaintainer",
737
+ "outputs": [],
738
+ "stateMutability": "nonpayable",
739
+ "type": "function"
740
+ },
741
+ {
742
+ "inputs": [
743
+ { "internalType": "uint256", "name": "newFloorPrice", "type": "uint256" }
744
+ ],
745
+ "name": "updateFloorPrice",
746
+ "outputs": [],
747
+ "stateMutability": "nonpayable",
748
+ "type": "function"
749
+ }
750
+ ]