@verified-network/verified-sdk 2.4.9 → 2.5.1

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 (49) hide show
  1. package/dist/contract/amm/margin/index.d.ts +1 -1
  2. package/dist/contract/amm/margin/index.js +2 -2
  3. package/dist/contract/amm/primary/index.d.ts +1 -1
  4. package/dist/contract/amm/primary/index.js +2 -2
  5. package/dist/contract/amm/secondary/index.d.ts +1 -1
  6. package/dist/contract/amm/secondary/index.js +2 -2
  7. package/dist/contract/bond/index.d.ts +1 -1
  8. package/dist/contract/bond/index.js +2 -2
  9. package/dist/contract/cash/index.d.ts +1 -1
  10. package/dist/contract/cash/index.js +2 -2
  11. package/dist/contract/client/index.d.ts +1 -1
  12. package/dist/contract/client/index.js +2 -2
  13. package/dist/contract/custody/index.d.ts +1 -1
  14. package/dist/contract/custody/index.js +2 -2
  15. package/dist/contract/distribution/index.d.ts +1 -1
  16. package/dist/contract/distribution/index.js +2 -2
  17. package/dist/contract/erc20/index.d.ts +1 -1
  18. package/dist/contract/erc20/index.js +2 -2
  19. package/dist/contract/factory/index.d.ts +1 -1
  20. package/dist/contract/factory/index.js +2 -2
  21. package/dist/contract/index.d.ts +2 -1
  22. package/dist/contract/index.js +85 -37
  23. package/dist/contract/liquidity/index.d.ts +1 -1
  24. package/dist/contract/liquidity/index.js +2 -2
  25. package/dist/contract/loans/compound/index.d.ts +1 -1
  26. package/dist/contract/loans/compound/index.js +2 -2
  27. package/dist/contract/pool/index.d.ts +1 -1
  28. package/dist/contract/pool/index.js +2 -2
  29. package/dist/contract/rates/index.d.ts +1 -1
  30. package/dist/contract/rates/index.js +2 -2
  31. package/dist/contract/securitiesfactory/index.d.ts +1 -1
  32. package/dist/contract/securitiesfactory/index.js +2 -2
  33. package/dist/contract/security/index.d.ts +1 -1
  34. package/dist/contract/security/index.js +2 -2
  35. package/dist/contract/token/index.d.ts +1 -1
  36. package/dist/contract/token/index.js +2 -2
  37. package/dist/contractAddress/index.js +302 -302
  38. package/dist/lib/abi/boostrap.d.ts +878 -0
  39. package/dist/lib/abi/boostrap.js +1151 -0
  40. package/dist/lib/abi/boostrap.json +1150 -0
  41. package/dist/lib/abi/composability.d.ts +66 -0
  42. package/dist/lib/abi/composability.js +273 -0
  43. package/dist/lib/abi/entrypoint.d.ts +775 -0
  44. package/dist/lib/abi/entrypoint.js +660 -0
  45. package/dist/lib/abi/factory.json +325 -0
  46. package/dist/lib/biconomyRNFix.d.ts +20737 -0
  47. package/dist/lib/biconomyRNFix.js +974 -0
  48. package/dist/utils/constants.js +3 -0
  49. package/package.json +2 -2
@@ -0,0 +1,660 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntrypointAbi = void 0;
4
+ exports.EntrypointAbi = [
5
+ {
6
+ inputs: [
7
+ { internalType: "bool", name: "success", type: "bool" },
8
+ { internalType: "bytes", name: "ret", type: "bytes" },
9
+ ],
10
+ name: "DelegateAndRevert",
11
+ type: "error",
12
+ },
13
+ {
14
+ inputs: [
15
+ { internalType: "uint256", name: "opIndex", type: "uint256" },
16
+ { internalType: "string", name: "reason", type: "string" },
17
+ ],
18
+ name: "FailedOp",
19
+ type: "error",
20
+ },
21
+ {
22
+ inputs: [
23
+ { internalType: "uint256", name: "opIndex", type: "uint256" },
24
+ { internalType: "string", name: "reason", type: "string" },
25
+ { internalType: "bytes", name: "inner", type: "bytes" },
26
+ ],
27
+ name: "FailedOpWithRevert",
28
+ type: "error",
29
+ },
30
+ {
31
+ inputs: [{ internalType: "bytes", name: "returnData", type: "bytes" }],
32
+ name: "PostOpReverted",
33
+ type: "error",
34
+ },
35
+ { inputs: [], name: "ReentrancyGuardReentrantCall", type: "error" },
36
+ {
37
+ inputs: [{ internalType: "address", name: "sender", type: "address" }],
38
+ name: "SenderAddressResult",
39
+ type: "error",
40
+ },
41
+ {
42
+ inputs: [{ internalType: "address", name: "aggregator", type: "address" }],
43
+ name: "SignatureValidationFailed",
44
+ type: "error",
45
+ },
46
+ {
47
+ anonymous: false,
48
+ inputs: [
49
+ {
50
+ indexed: true,
51
+ internalType: "bytes32",
52
+ name: "userOpHash",
53
+ type: "bytes32",
54
+ },
55
+ {
56
+ indexed: true,
57
+ internalType: "address",
58
+ name: "sender",
59
+ type: "address",
60
+ },
61
+ {
62
+ indexed: false,
63
+ internalType: "address",
64
+ name: "factory",
65
+ type: "address",
66
+ },
67
+ {
68
+ indexed: false,
69
+ internalType: "address",
70
+ name: "paymaster",
71
+ type: "address",
72
+ },
73
+ ],
74
+ name: "AccountDeployed",
75
+ type: "event",
76
+ },
77
+ { anonymous: false, inputs: [], name: "BeforeExecution", type: "event" },
78
+ {
79
+ anonymous: false,
80
+ inputs: [
81
+ {
82
+ indexed: true,
83
+ internalType: "address",
84
+ name: "account",
85
+ type: "address",
86
+ },
87
+ {
88
+ indexed: false,
89
+ internalType: "uint256",
90
+ name: "totalDeposit",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ name: "Deposited",
95
+ type: "event",
96
+ },
97
+ {
98
+ anonymous: false,
99
+ inputs: [
100
+ {
101
+ indexed: true,
102
+ internalType: "bytes32",
103
+ name: "userOpHash",
104
+ type: "bytes32",
105
+ },
106
+ {
107
+ indexed: true,
108
+ internalType: "address",
109
+ name: "sender",
110
+ type: "address",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "uint256",
115
+ name: "nonce",
116
+ type: "uint256",
117
+ },
118
+ {
119
+ indexed: false,
120
+ internalType: "bytes",
121
+ name: "revertReason",
122
+ type: "bytes",
123
+ },
124
+ ],
125
+ name: "PostOpRevertReason",
126
+ type: "event",
127
+ },
128
+ {
129
+ anonymous: false,
130
+ inputs: [
131
+ {
132
+ indexed: true,
133
+ internalType: "address",
134
+ name: "aggregator",
135
+ type: "address",
136
+ },
137
+ ],
138
+ name: "SignatureAggregatorChanged",
139
+ type: "event",
140
+ },
141
+ {
142
+ anonymous: false,
143
+ inputs: [
144
+ {
145
+ indexed: true,
146
+ internalType: "address",
147
+ name: "account",
148
+ type: "address",
149
+ },
150
+ {
151
+ indexed: false,
152
+ internalType: "uint256",
153
+ name: "totalStaked",
154
+ type: "uint256",
155
+ },
156
+ {
157
+ indexed: false,
158
+ internalType: "uint256",
159
+ name: "unstakeDelaySec",
160
+ type: "uint256",
161
+ },
162
+ ],
163
+ name: "StakeLocked",
164
+ type: "event",
165
+ },
166
+ {
167
+ anonymous: false,
168
+ inputs: [
169
+ {
170
+ indexed: true,
171
+ internalType: "address",
172
+ name: "account",
173
+ type: "address",
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "uint256",
178
+ name: "withdrawTime",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ name: "StakeUnlocked",
183
+ type: "event",
184
+ },
185
+ {
186
+ anonymous: false,
187
+ inputs: [
188
+ {
189
+ indexed: true,
190
+ internalType: "address",
191
+ name: "account",
192
+ type: "address",
193
+ },
194
+ {
195
+ indexed: false,
196
+ internalType: "address",
197
+ name: "withdrawAddress",
198
+ type: "address",
199
+ },
200
+ {
201
+ indexed: false,
202
+ internalType: "uint256",
203
+ name: "amount",
204
+ type: "uint256",
205
+ },
206
+ ],
207
+ name: "StakeWithdrawn",
208
+ type: "event",
209
+ },
210
+ {
211
+ anonymous: false,
212
+ inputs: [
213
+ {
214
+ indexed: true,
215
+ internalType: "bytes32",
216
+ name: "userOpHash",
217
+ type: "bytes32",
218
+ },
219
+ {
220
+ indexed: true,
221
+ internalType: "address",
222
+ name: "sender",
223
+ type: "address",
224
+ },
225
+ {
226
+ indexed: true,
227
+ internalType: "address",
228
+ name: "paymaster",
229
+ type: "address",
230
+ },
231
+ {
232
+ indexed: false,
233
+ internalType: "uint256",
234
+ name: "nonce",
235
+ type: "uint256",
236
+ },
237
+ { indexed: false, internalType: "bool", name: "success", type: "bool" },
238
+ {
239
+ indexed: false,
240
+ internalType: "uint256",
241
+ name: "actualGasCost",
242
+ type: "uint256",
243
+ },
244
+ {
245
+ indexed: false,
246
+ internalType: "uint256",
247
+ name: "actualGasUsed",
248
+ type: "uint256",
249
+ },
250
+ ],
251
+ name: "UserOperationEvent",
252
+ type: "event",
253
+ },
254
+ {
255
+ anonymous: false,
256
+ inputs: [
257
+ {
258
+ indexed: true,
259
+ internalType: "bytes32",
260
+ name: "userOpHash",
261
+ type: "bytes32",
262
+ },
263
+ {
264
+ indexed: true,
265
+ internalType: "address",
266
+ name: "sender",
267
+ type: "address",
268
+ },
269
+ {
270
+ indexed: false,
271
+ internalType: "uint256",
272
+ name: "nonce",
273
+ type: "uint256",
274
+ },
275
+ ],
276
+ name: "UserOperationPrefundTooLow",
277
+ type: "event",
278
+ },
279
+ {
280
+ anonymous: false,
281
+ inputs: [
282
+ {
283
+ indexed: true,
284
+ internalType: "bytes32",
285
+ name: "userOpHash",
286
+ type: "bytes32",
287
+ },
288
+ {
289
+ indexed: true,
290
+ internalType: "address",
291
+ name: "sender",
292
+ type: "address",
293
+ },
294
+ {
295
+ indexed: false,
296
+ internalType: "uint256",
297
+ name: "nonce",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ indexed: false,
302
+ internalType: "bytes",
303
+ name: "revertReason",
304
+ type: "bytes",
305
+ },
306
+ ],
307
+ name: "UserOperationRevertReason",
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: false,
321
+ internalType: "address",
322
+ name: "withdrawAddress",
323
+ type: "address",
324
+ },
325
+ {
326
+ indexed: false,
327
+ internalType: "uint256",
328
+ name: "amount",
329
+ type: "uint256",
330
+ },
331
+ ],
332
+ name: "Withdrawn",
333
+ type: "event",
334
+ },
335
+ {
336
+ inputs: [
337
+ { internalType: "uint32", name: "unstakeDelaySec", type: "uint32" },
338
+ ],
339
+ name: "addStake",
340
+ outputs: [],
341
+ stateMutability: "payable",
342
+ type: "function",
343
+ },
344
+ {
345
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
346
+ name: "balanceOf",
347
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
348
+ stateMutability: "view",
349
+ type: "function",
350
+ },
351
+ {
352
+ inputs: [
353
+ { internalType: "address", name: "target", type: "address" },
354
+ { internalType: "bytes", name: "data", type: "bytes" },
355
+ ],
356
+ name: "delegateAndRevert",
357
+ outputs: [],
358
+ stateMutability: "nonpayable",
359
+ type: "function",
360
+ },
361
+ {
362
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
363
+ name: "depositTo",
364
+ outputs: [],
365
+ stateMutability: "payable",
366
+ type: "function",
367
+ },
368
+ {
369
+ inputs: [{ internalType: "address", name: "", type: "address" }],
370
+ name: "deposits",
371
+ outputs: [
372
+ { internalType: "uint256", name: "deposit", type: "uint256" },
373
+ { internalType: "bool", name: "staked", type: "bool" },
374
+ { internalType: "uint112", name: "stake", type: "uint112" },
375
+ { internalType: "uint32", name: "unstakeDelaySec", type: "uint32" },
376
+ { internalType: "uint48", name: "withdrawTime", type: "uint48" },
377
+ ],
378
+ stateMutability: "view",
379
+ type: "function",
380
+ },
381
+ {
382
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
383
+ name: "getDepositInfo",
384
+ outputs: [
385
+ {
386
+ components: [
387
+ { internalType: "uint256", name: "deposit", type: "uint256" },
388
+ { internalType: "bool", name: "staked", type: "bool" },
389
+ { internalType: "uint112", name: "stake", type: "uint112" },
390
+ { internalType: "uint32", name: "unstakeDelaySec", type: "uint32" },
391
+ { internalType: "uint48", name: "withdrawTime", type: "uint48" },
392
+ ],
393
+ internalType: "struct IStakeManager.DepositInfo",
394
+ name: "info",
395
+ type: "tuple",
396
+ },
397
+ ],
398
+ stateMutability: "view",
399
+ type: "function",
400
+ },
401
+ {
402
+ inputs: [
403
+ { internalType: "address", name: "sender", type: "address" },
404
+ { internalType: "uint192", name: "key", type: "uint192" },
405
+ ],
406
+ name: "getNonce",
407
+ outputs: [{ internalType: "uint256", name: "nonce", type: "uint256" }],
408
+ stateMutability: "view",
409
+ type: "function",
410
+ },
411
+ {
412
+ inputs: [{ internalType: "bytes", name: "initCode", type: "bytes" }],
413
+ name: "getSenderAddress",
414
+ outputs: [],
415
+ stateMutability: "nonpayable",
416
+ type: "function",
417
+ },
418
+ {
419
+ inputs: [
420
+ {
421
+ components: [
422
+ { internalType: "address", name: "sender", type: "address" },
423
+ { internalType: "uint256", name: "nonce", type: "uint256" },
424
+ { internalType: "bytes", name: "initCode", type: "bytes" },
425
+ { internalType: "bytes", name: "callData", type: "bytes" },
426
+ {
427
+ internalType: "bytes32",
428
+ name: "accountGasLimits",
429
+ type: "bytes32",
430
+ },
431
+ {
432
+ internalType: "uint256",
433
+ name: "preVerificationGas",
434
+ type: "uint256",
435
+ },
436
+ { internalType: "bytes32", name: "gasFees", type: "bytes32" },
437
+ { internalType: "bytes", name: "paymasterAndData", type: "bytes" },
438
+ { internalType: "bytes", name: "signature", type: "bytes" },
439
+ ],
440
+ internalType: "struct PackedUserOperation",
441
+ name: "userOp",
442
+ type: "tuple",
443
+ },
444
+ ],
445
+ name: "getUserOpHash",
446
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
447
+ stateMutability: "view",
448
+ type: "function",
449
+ },
450
+ {
451
+ inputs: [
452
+ {
453
+ components: [
454
+ {
455
+ components: [
456
+ { internalType: "address", name: "sender", type: "address" },
457
+ { internalType: "uint256", name: "nonce", type: "uint256" },
458
+ { internalType: "bytes", name: "initCode", type: "bytes" },
459
+ { internalType: "bytes", name: "callData", type: "bytes" },
460
+ {
461
+ internalType: "bytes32",
462
+ name: "accountGasLimits",
463
+ type: "bytes32",
464
+ },
465
+ {
466
+ internalType: "uint256",
467
+ name: "preVerificationGas",
468
+ type: "uint256",
469
+ },
470
+ { internalType: "bytes32", name: "gasFees", type: "bytes32" },
471
+ {
472
+ internalType: "bytes",
473
+ name: "paymasterAndData",
474
+ type: "bytes",
475
+ },
476
+ { internalType: "bytes", name: "signature", type: "bytes" },
477
+ ],
478
+ internalType: "struct PackedUserOperation[]",
479
+ name: "userOps",
480
+ type: "tuple[]",
481
+ },
482
+ {
483
+ internalType: "contract IAggregator",
484
+ name: "aggregator",
485
+ type: "address",
486
+ },
487
+ { internalType: "bytes", name: "signature", type: "bytes" },
488
+ ],
489
+ internalType: "struct IEntryPoint.UserOpsPerAggregator[]",
490
+ name: "opsPerAggregator",
491
+ type: "tuple[]",
492
+ },
493
+ { internalType: "address payable", name: "beneficiary", type: "address" },
494
+ ],
495
+ name: "handleAggregatedOps",
496
+ outputs: [],
497
+ stateMutability: "nonpayable",
498
+ type: "function",
499
+ },
500
+ {
501
+ inputs: [
502
+ {
503
+ components: [
504
+ { internalType: "address", name: "sender", type: "address" },
505
+ { internalType: "uint256", name: "nonce", type: "uint256" },
506
+ { internalType: "bytes", name: "initCode", type: "bytes" },
507
+ { internalType: "bytes", name: "callData", type: "bytes" },
508
+ {
509
+ internalType: "bytes32",
510
+ name: "accountGasLimits",
511
+ type: "bytes32",
512
+ },
513
+ {
514
+ internalType: "uint256",
515
+ name: "preVerificationGas",
516
+ type: "uint256",
517
+ },
518
+ { internalType: "bytes32", name: "gasFees", type: "bytes32" },
519
+ { internalType: "bytes", name: "paymasterAndData", type: "bytes" },
520
+ { internalType: "bytes", name: "signature", type: "bytes" },
521
+ ],
522
+ internalType: "struct PackedUserOperation[]",
523
+ name: "ops",
524
+ type: "tuple[]",
525
+ },
526
+ { internalType: "address payable", name: "beneficiary", type: "address" },
527
+ ],
528
+ name: "handleOps",
529
+ outputs: [],
530
+ stateMutability: "nonpayable",
531
+ type: "function",
532
+ },
533
+ {
534
+ inputs: [{ internalType: "uint192", name: "key", type: "uint192" }],
535
+ name: "incrementNonce",
536
+ outputs: [],
537
+ stateMutability: "nonpayable",
538
+ type: "function",
539
+ },
540
+ {
541
+ inputs: [
542
+ { internalType: "bytes", name: "callData", type: "bytes" },
543
+ {
544
+ components: [
545
+ {
546
+ components: [
547
+ { internalType: "address", name: "sender", type: "address" },
548
+ { internalType: "uint256", name: "nonce", type: "uint256" },
549
+ {
550
+ internalType: "uint256",
551
+ name: "verificationGasLimit",
552
+ type: "uint256",
553
+ },
554
+ {
555
+ internalType: "uint256",
556
+ name: "callGasLimit",
557
+ type: "uint256",
558
+ },
559
+ {
560
+ internalType: "uint256",
561
+ name: "paymasterVerificationGasLimit",
562
+ type: "uint256",
563
+ },
564
+ {
565
+ internalType: "uint256",
566
+ name: "paymasterPostOpGasLimit",
567
+ type: "uint256",
568
+ },
569
+ {
570
+ internalType: "uint256",
571
+ name: "preVerificationGas",
572
+ type: "uint256",
573
+ },
574
+ { internalType: "address", name: "paymaster", type: "address" },
575
+ {
576
+ internalType: "uint256",
577
+ name: "maxFeePerGas",
578
+ type: "uint256",
579
+ },
580
+ {
581
+ internalType: "uint256",
582
+ name: "maxPriorityFeePerGas",
583
+ type: "uint256",
584
+ },
585
+ ],
586
+ internalType: "struct EntryPoint.MemoryUserOp",
587
+ name: "mUserOp",
588
+ type: "tuple",
589
+ },
590
+ { internalType: "bytes32", name: "userOpHash", type: "bytes32" },
591
+ { internalType: "uint256", name: "prefund", type: "uint256" },
592
+ { internalType: "uint256", name: "contextOffset", type: "uint256" },
593
+ { internalType: "uint256", name: "preOpGas", type: "uint256" },
594
+ ],
595
+ internalType: "struct EntryPoint.UserOpInfo",
596
+ name: "opInfo",
597
+ type: "tuple",
598
+ },
599
+ { internalType: "bytes", name: "context", type: "bytes" },
600
+ ],
601
+ name: "innerHandleOp",
602
+ outputs: [
603
+ { internalType: "uint256", name: "actualGasCost", type: "uint256" },
604
+ ],
605
+ stateMutability: "nonpayable",
606
+ type: "function",
607
+ },
608
+ {
609
+ inputs: [
610
+ { internalType: "address", name: "", type: "address" },
611
+ { internalType: "uint192", name: "", type: "uint192" },
612
+ ],
613
+ name: "nonceSequenceNumber",
614
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
615
+ stateMutability: "view",
616
+ type: "function",
617
+ },
618
+ {
619
+ inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
620
+ name: "supportsInterface",
621
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
622
+ stateMutability: "view",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [],
627
+ name: "unlockStake",
628
+ outputs: [],
629
+ stateMutability: "nonpayable",
630
+ type: "function",
631
+ },
632
+ {
633
+ inputs: [
634
+ {
635
+ internalType: "address payable",
636
+ name: "withdrawAddress",
637
+ type: "address",
638
+ },
639
+ ],
640
+ name: "withdrawStake",
641
+ outputs: [],
642
+ stateMutability: "nonpayable",
643
+ type: "function",
644
+ },
645
+ {
646
+ inputs: [
647
+ {
648
+ internalType: "address payable",
649
+ name: "withdrawAddress",
650
+ type: "address",
651
+ },
652
+ { internalType: "uint256", name: "withdrawAmount", type: "uint256" },
653
+ ],
654
+ name: "withdrawTo",
655
+ outputs: [],
656
+ stateMutability: "nonpayable",
657
+ type: "function",
658
+ },
659
+ { stateMutability: "payable", type: "receive" },
660
+ ];