@somnia-chain/contracts-sdk 0.3.7 → 0.3.8

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,644 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export const abi_afc6a4821e4a = [
3
+ {
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable",
6
+ "type": "constructor"
7
+ },
8
+ {
9
+ "inputs": [],
10
+ "name": "DEFAULT_COOLDOWN",
11
+ "outputs": [
12
+ {
13
+ "internalType": "uint256",
14
+ "name": "",
15
+ "type": "uint256"
16
+ }
17
+ ],
18
+ "stateMutability": "view",
19
+ "type": "function"
20
+ },
21
+ {
22
+ "inputs": [],
23
+ "name": "MAX_COOLDOWN",
24
+ "outputs": [
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "stateMutability": "view",
32
+ "type": "function"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "UPGRADE_INTERFACE_VERSION",
37
+ "outputs": [
38
+ {
39
+ "internalType": "string",
40
+ "name": "",
41
+ "type": "string"
42
+ }
43
+ ],
44
+ "stateMutability": "view",
45
+ "type": "function"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "acceptOwnership",
50
+ "outputs": [],
51
+ "stateMutability": "nonpayable",
52
+ "type": "function"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "cancelWithdrawal",
57
+ "outputs": [],
58
+ "stateMutability": "nonpayable",
59
+ "type": "function"
60
+ },
61
+ {
62
+ "inputs": [],
63
+ "name": "cooldown",
64
+ "outputs": [
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "stateMutability": "view",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "deposit",
77
+ "outputs": [],
78
+ "stateMutability": "payable",
79
+ "type": "function"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "address",
85
+ "name": "account",
86
+ "type": "address"
87
+ }
88
+ ],
89
+ "name": "depositFor",
90
+ "outputs": [],
91
+ "stateMutability": "payable",
92
+ "type": "function"
93
+ },
94
+ {
95
+ "inputs": [
96
+ {
97
+ "internalType": "address",
98
+ "name": "account",
99
+ "type": "address"
100
+ }
101
+ ],
102
+ "name": "eligibleBalance",
103
+ "outputs": [
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "stateMutability": "view",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "internalType": "address",
117
+ "name": "account",
118
+ "type": "address"
119
+ }
120
+ ],
121
+ "name": "getLock",
122
+ "outputs": [
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "locked",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "requested",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "internalType": "uint256",
135
+ "name": "unlockAt",
136
+ "type": "uint256"
137
+ }
138
+ ],
139
+ "stateMutability": "view",
140
+ "type": "function"
141
+ },
142
+ {
143
+ "inputs": [
144
+ {
145
+ "internalType": "address",
146
+ "name": "owner_",
147
+ "type": "address"
148
+ }
149
+ ],
150
+ "name": "initialize",
151
+ "outputs": [],
152
+ "stateMutability": "nonpayable",
153
+ "type": "function"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "owner",
158
+ "outputs": [
159
+ {
160
+ "internalType": "address",
161
+ "name": "",
162
+ "type": "address"
163
+ }
164
+ ],
165
+ "stateMutability": "view",
166
+ "type": "function"
167
+ },
168
+ {
169
+ "inputs": [],
170
+ "name": "pendingOwner",
171
+ "outputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "",
175
+ "type": "address"
176
+ }
177
+ ],
178
+ "stateMutability": "view",
179
+ "type": "function"
180
+ },
181
+ {
182
+ "inputs": [],
183
+ "name": "proxiableUUID",
184
+ "outputs": [
185
+ {
186
+ "internalType": "bytes32",
187
+ "name": "",
188
+ "type": "bytes32"
189
+ }
190
+ ],
191
+ "stateMutability": "view",
192
+ "type": "function"
193
+ },
194
+ {
195
+ "inputs": [],
196
+ "name": "renounceOwnership",
197
+ "outputs": [],
198
+ "stateMutability": "nonpayable",
199
+ "type": "function"
200
+ },
201
+ {
202
+ "inputs": [
203
+ {
204
+ "internalType": "uint256",
205
+ "name": "amount",
206
+ "type": "uint256"
207
+ }
208
+ ],
209
+ "name": "requestWithdrawal",
210
+ "outputs": [],
211
+ "stateMutability": "nonpayable",
212
+ "type": "function"
213
+ },
214
+ {
215
+ "inputs": [
216
+ {
217
+ "internalType": "uint256",
218
+ "name": "newCooldown",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "name": "setCooldown",
223
+ "outputs": [],
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "inputs": [],
229
+ "name": "totalLocked",
230
+ "outputs": [
231
+ {
232
+ "internalType": "uint256",
233
+ "name": "",
234
+ "type": "uint256"
235
+ }
236
+ ],
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "address",
244
+ "name": "newOwner",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "transferOwnership",
249
+ "outputs": [],
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [
255
+ {
256
+ "internalType": "address",
257
+ "name": "newImplementation",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "internalType": "bytes",
262
+ "name": "data",
263
+ "type": "bytes"
264
+ }
265
+ ],
266
+ "name": "upgradeToAndCall",
267
+ "outputs": [],
268
+ "stateMutability": "payable",
269
+ "type": "function"
270
+ },
271
+ {
272
+ "inputs": [],
273
+ "name": "withdraw",
274
+ "outputs": [],
275
+ "stateMutability": "nonpayable",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [
280
+ {
281
+ "internalType": "address payable",
282
+ "name": "to",
283
+ "type": "address"
284
+ }
285
+ ],
286
+ "name": "withdrawTo",
287
+ "outputs": [],
288
+ "stateMutability": "nonpayable",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "anonymous": false,
293
+ "inputs": [
294
+ {
295
+ "indexed": false,
296
+ "internalType": "uint256",
297
+ "name": "oldCooldown",
298
+ "type": "uint256"
299
+ },
300
+ {
301
+ "indexed": false,
302
+ "internalType": "uint256",
303
+ "name": "newCooldown",
304
+ "type": "uint256"
305
+ }
306
+ ],
307
+ "name": "CooldownSet",
308
+ "type": "event"
309
+ },
310
+ {
311
+ "anonymous": false,
312
+ "inputs": [
313
+ {
314
+ "indexed": true,
315
+ "internalType": "address",
316
+ "name": "account",
317
+ "type": "address"
318
+ },
319
+ {
320
+ "indexed": true,
321
+ "internalType": "address",
322
+ "name": "from",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "internalType": "uint256",
328
+ "name": "amount",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "uint256",
334
+ "name": "locked",
335
+ "type": "uint256"
336
+ }
337
+ ],
338
+ "name": "Deposited",
339
+ "type": "event"
340
+ },
341
+ {
342
+ "anonymous": false,
343
+ "inputs": [
344
+ {
345
+ "indexed": false,
346
+ "internalType": "uint64",
347
+ "name": "version",
348
+ "type": "uint64"
349
+ }
350
+ ],
351
+ "name": "Initialized",
352
+ "type": "event"
353
+ },
354
+ {
355
+ "anonymous": false,
356
+ "inputs": [
357
+ {
358
+ "indexed": true,
359
+ "internalType": "address",
360
+ "name": "previousOwner",
361
+ "type": "address"
362
+ },
363
+ {
364
+ "indexed": true,
365
+ "internalType": "address",
366
+ "name": "newOwner",
367
+ "type": "address"
368
+ }
369
+ ],
370
+ "name": "OwnershipTransferStarted",
371
+ "type": "event"
372
+ },
373
+ {
374
+ "anonymous": false,
375
+ "inputs": [
376
+ {
377
+ "indexed": true,
378
+ "internalType": "address",
379
+ "name": "previousOwner",
380
+ "type": "address"
381
+ },
382
+ {
383
+ "indexed": true,
384
+ "internalType": "address",
385
+ "name": "newOwner",
386
+ "type": "address"
387
+ }
388
+ ],
389
+ "name": "OwnershipTransferred",
390
+ "type": "event"
391
+ },
392
+ {
393
+ "anonymous": false,
394
+ "inputs": [
395
+ {
396
+ "indexed": true,
397
+ "internalType": "address",
398
+ "name": "implementation",
399
+ "type": "address"
400
+ }
401
+ ],
402
+ "name": "Upgraded",
403
+ "type": "event"
404
+ },
405
+ {
406
+ "anonymous": false,
407
+ "inputs": [
408
+ {
409
+ "indexed": true,
410
+ "internalType": "address",
411
+ "name": "account",
412
+ "type": "address"
413
+ },
414
+ {
415
+ "indexed": false,
416
+ "internalType": "uint256",
417
+ "name": "amount",
418
+ "type": "uint256"
419
+ }
420
+ ],
421
+ "name": "WithdrawalCancelled",
422
+ "type": "event"
423
+ },
424
+ {
425
+ "anonymous": false,
426
+ "inputs": [
427
+ {
428
+ "indexed": true,
429
+ "internalType": "address",
430
+ "name": "account",
431
+ "type": "address"
432
+ },
433
+ {
434
+ "indexed": false,
435
+ "internalType": "uint256",
436
+ "name": "amount",
437
+ "type": "uint256"
438
+ },
439
+ {
440
+ "indexed": false,
441
+ "internalType": "uint256",
442
+ "name": "unlockAt",
443
+ "type": "uint256"
444
+ }
445
+ ],
446
+ "name": "WithdrawalRequested",
447
+ "type": "event"
448
+ },
449
+ {
450
+ "anonymous": false,
451
+ "inputs": [
452
+ {
453
+ "indexed": true,
454
+ "internalType": "address",
455
+ "name": "account",
456
+ "type": "address"
457
+ },
458
+ {
459
+ "indexed": true,
460
+ "internalType": "address",
461
+ "name": "to",
462
+ "type": "address"
463
+ },
464
+ {
465
+ "indexed": false,
466
+ "internalType": "uint256",
467
+ "name": "amount",
468
+ "type": "uint256"
469
+ },
470
+ {
471
+ "indexed": false,
472
+ "internalType": "uint256",
473
+ "name": "locked",
474
+ "type": "uint256"
475
+ }
476
+ ],
477
+ "name": "Withdrawn",
478
+ "type": "event"
479
+ },
480
+ {
481
+ "inputs": [
482
+ {
483
+ "internalType": "address",
484
+ "name": "target",
485
+ "type": "address"
486
+ }
487
+ ],
488
+ "name": "AddressEmptyCode",
489
+ "type": "error"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "uint256",
495
+ "name": "unlockAt",
496
+ "type": "uint256"
497
+ }
498
+ ],
499
+ "name": "CooldownActive",
500
+ "type": "error"
501
+ },
502
+ {
503
+ "inputs": [
504
+ {
505
+ "internalType": "uint256",
506
+ "name": "cooldown",
507
+ "type": "uint256"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "max",
512
+ "type": "uint256"
513
+ }
514
+ ],
515
+ "name": "CooldownTooLong",
516
+ "type": "error"
517
+ },
518
+ {
519
+ "inputs": [
520
+ {
521
+ "internalType": "address",
522
+ "name": "implementation",
523
+ "type": "address"
524
+ }
525
+ ],
526
+ "name": "ERC1967InvalidImplementation",
527
+ "type": "error"
528
+ },
529
+ {
530
+ "inputs": [],
531
+ "name": "ERC1967NonPayable",
532
+ "type": "error"
533
+ },
534
+ {
535
+ "inputs": [],
536
+ "name": "FailedCall",
537
+ "type": "error"
538
+ },
539
+ {
540
+ "inputs": [
541
+ {
542
+ "internalType": "uint256",
543
+ "name": "requested",
544
+ "type": "uint256"
545
+ },
546
+ {
547
+ "internalType": "uint256",
548
+ "name": "locked",
549
+ "type": "uint256"
550
+ }
551
+ ],
552
+ "name": "InsufficientLocked",
553
+ "type": "error"
554
+ },
555
+ {
556
+ "inputs": [],
557
+ "name": "InvalidInitialization",
558
+ "type": "error"
559
+ },
560
+ {
561
+ "inputs": [],
562
+ "name": "MaturedRequestPending",
563
+ "type": "error"
564
+ },
565
+ {
566
+ "inputs": [],
567
+ "name": "NoWithdrawalRequest",
568
+ "type": "error"
569
+ },
570
+ {
571
+ "inputs": [],
572
+ "name": "NotInitializing",
573
+ "type": "error"
574
+ },
575
+ {
576
+ "inputs": [
577
+ {
578
+ "internalType": "address",
579
+ "name": "owner",
580
+ "type": "address"
581
+ }
582
+ ],
583
+ "name": "OwnableInvalidOwner",
584
+ "type": "error"
585
+ },
586
+ {
587
+ "inputs": [
588
+ {
589
+ "internalType": "address",
590
+ "name": "account",
591
+ "type": "address"
592
+ }
593
+ ],
594
+ "name": "OwnableUnauthorizedAccount",
595
+ "type": "error"
596
+ },
597
+ {
598
+ "inputs": [],
599
+ "name": "ReentrancyGuardReentrantCall",
600
+ "type": "error"
601
+ },
602
+ {
603
+ "inputs": [],
604
+ "name": "TransferFailed",
605
+ "type": "error"
606
+ },
607
+ {
608
+ "inputs": [],
609
+ "name": "UUPSUnauthorizedCallContext",
610
+ "type": "error"
611
+ },
612
+ {
613
+ "inputs": [
614
+ {
615
+ "internalType": "bytes32",
616
+ "name": "slot",
617
+ "type": "bytes32"
618
+ }
619
+ ],
620
+ "name": "UUPSUnsupportedProxiableUUID",
621
+ "type": "error"
622
+ },
623
+ {
624
+ "inputs": [],
625
+ "name": "ZeroAccount",
626
+ "type": "error"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "ZeroAmount",
631
+ "type": "error"
632
+ },
633
+ {
634
+ "inputs": [],
635
+ "name": "ZeroOwner",
636
+ "type": "error"
637
+ },
638
+ {
639
+ "inputs": [],
640
+ "name": "ZeroRecipient",
641
+ "type": "error"
642
+ }
643
+ ];
644
+ export const digest = "sha256:afc6a4821e4a977ef346cc9fac5639ead89fa12633c557a536bee73f18a0fdd5";
@@ -1,4 +1,4 @@
1
- export declare const abi_f320d0632271: readonly [{
1
+ export declare const abi_cb9634da4f5e: readonly [{
2
2
  readonly inputs: readonly [];
3
3
  readonly stateMutability: "nonpayable";
4
4
  readonly type: "constructor";
@@ -498,7 +498,11 @@ export declare const abi_f320d0632271: readonly [{
498
498
  readonly stateMutability: "view";
499
499
  readonly type: "function";
500
500
  }, {
501
- readonly inputs: readonly [];
501
+ readonly inputs: readonly [{
502
+ readonly internalType: "uint256";
503
+ readonly name: "kickMs";
504
+ readonly type: "uint256";
505
+ }];
502
506
  readonly name: "kickBatchExternal";
503
507
  readonly outputs: readonly [];
504
508
  readonly stateMutability: "nonpayable";
@@ -1687,4 +1691,4 @@ export declare const abi_f320d0632271: readonly [{
1687
1691
  readonly name: "UUPSUnsupportedProxiableUUID";
1688
1692
  readonly type: "error";
1689
1693
  }];
1690
- export declare const digest = "sha256:f320d06322712e3d97728fd617be1e5874351a8825e0f9755588c0397b01f1fa";
1694
+ export declare const digest = "sha256:cb9634da4f5eb9550d905cdb45852c9a83a9d21c6301cabf542b5b999c55f7ca";
@@ -1,5 +1,5 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export const abi_f320d0632271 = [
2
+ export const abi_cb9634da4f5e = [
3
3
  {
4
4
  "inputs": [],
5
5
  "stateMutability": "nonpayable",
@@ -643,7 +643,13 @@ export const abi_f320d0632271 = [
643
643
  "type": "function"
644
644
  },
645
645
  {
646
- "inputs": [],
646
+ "inputs": [
647
+ {
648
+ "internalType": "uint256",
649
+ "name": "kickMs",
650
+ "type": "uint256"
651
+ }
652
+ ],
647
653
  "name": "kickBatchExternal",
648
654
  "outputs": [],
649
655
  "stateMutability": "nonpayable",
@@ -2178,4 +2184,4 @@ export const abi_f320d0632271 = [
2178
2184
  "type": "error"
2179
2185
  }
2180
2186
  ];
2181
- export const digest = "sha256:f320d06322712e3d97728fd617be1e5874351a8825e0f9755588c0397b01f1fa";
2187
+ export const digest = "sha256:cb9634da4f5eb9550d905cdb45852c9a83a9d21c6301cabf542b5b999c55f7ca";