@funkit/core 2.1.0 → 2.1.2-next.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.
@@ -5,68 +5,157 @@
5
5
  {
6
6
  "anonymous": false,
7
7
  "inputs": [
8
- { "indexed": false, "internalType": "address", "name": "previousAdmin", "type": "address" },
9
- { "indexed": false, "internalType": "address", "name": "newAdmin", "type": "address" }
8
+ {
9
+ "indexed": false,
10
+ "internalType": "address",
11
+ "name": "previousAdmin",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "indexed": false,
16
+ "internalType": "address",
17
+ "name": "newAdmin",
18
+ "type": "address"
19
+ }
10
20
  ],
11
21
  "name": "AdminChanged",
12
22
  "type": "event"
13
23
  },
14
24
  {
15
25
  "anonymous": false,
16
- "inputs": [{ "indexed": true, "internalType": "address", "name": "beacon", "type": "address" }],
26
+ "inputs": [
27
+ {
28
+ "indexed": true,
29
+ "internalType": "address",
30
+ "name": "beacon",
31
+ "type": "address"
32
+ }
33
+ ],
17
34
  "name": "BeaconUpgraded",
18
35
  "type": "event"
19
36
  },
20
37
  {
21
38
  "anonymous": false,
22
- "inputs": [{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }],
39
+ "inputs": [
40
+ {
41
+ "indexed": false,
42
+ "internalType": "uint256",
43
+ "name": "amount",
44
+ "type": "uint256"
45
+ }
46
+ ],
23
47
  "name": "DepositToEntryPoint",
24
48
  "type": "event"
25
49
  },
26
50
  {
27
51
  "anonymous": false,
28
- "inputs": [{ "indexed": true, "internalType": "address", "name": "newEntryPoint", "type": "address" }],
52
+ "inputs": [
53
+ {
54
+ "indexed": true,
55
+ "internalType": "address",
56
+ "name": "newEntryPoint",
57
+ "type": "address"
58
+ }
59
+ ],
29
60
  "name": "EntryPointChanged",
30
61
  "type": "event"
31
62
  },
32
63
  {
33
64
  "anonymous": false,
34
- "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }],
65
+ "inputs": [
66
+ {
67
+ "indexed": false,
68
+ "internalType": "uint8",
69
+ "name": "version",
70
+ "type": "uint8"
71
+ }
72
+ ],
35
73
  "name": "Initialized",
36
74
  "type": "event"
37
75
  },
38
76
  {
39
77
  "anonymous": false,
40
78
  "inputs": [
41
- { "indexed": true, "internalType": "address", "name": "token", "type": "address" },
42
- { "indexed": true, "internalType": "address", "name": "dest", "type": "address" },
43
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
79
+ {
80
+ "indexed": true,
81
+ "internalType": "address",
82
+ "name": "token",
83
+ "type": "address"
84
+ },
85
+ {
86
+ "indexed": true,
87
+ "internalType": "address",
88
+ "name": "dest",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "uint256",
94
+ "name": "amount",
95
+ "type": "uint256"
96
+ }
44
97
  ],
45
98
  "name": "TransferERC20",
46
99
  "type": "event"
47
100
  },
48
101
  {
49
102
  "anonymous": false,
50
- "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }],
103
+ "inputs": [
104
+ {
105
+ "indexed": true,
106
+ "internalType": "address",
107
+ "name": "implementation",
108
+ "type": "address"
109
+ }
110
+ ],
51
111
  "name": "Upgraded",
52
112
  "type": "event"
53
113
  },
54
114
  {
55
115
  "anonymous": false,
56
116
  "inputs": [
57
- { "indexed": true, "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" },
117
+ {
118
+ "indexed": true,
119
+ "internalType": "bytes32",
120
+ "name": "userOpHash",
121
+ "type": "bytes32"
122
+ },
58
123
  {
59
124
  "components": [
60
125
  { "internalType": "address", "name": "sender", "type": "address" },
61
126
  { "internalType": "uint256", "name": "nonce", "type": "uint256" },
62
127
  { "internalType": "bytes", "name": "initCode", "type": "bytes" },
63
128
  { "internalType": "bytes", "name": "callData", "type": "bytes" },
64
- { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" },
65
- { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" },
66
- { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" },
67
- { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" },
68
- { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" },
69
- { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" },
129
+ {
130
+ "internalType": "uint256",
131
+ "name": "callGasLimit",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "internalType": "uint256",
136
+ "name": "verificationGasLimit",
137
+ "type": "uint256"
138
+ },
139
+ {
140
+ "internalType": "uint256",
141
+ "name": "preVerificationGas",
142
+ "type": "uint256"
143
+ },
144
+ {
145
+ "internalType": "uint256",
146
+ "name": "maxFeePerGas",
147
+ "type": "uint256"
148
+ },
149
+ {
150
+ "internalType": "uint256",
151
+ "name": "maxPriorityFeePerGas",
152
+ "type": "uint256"
153
+ },
154
+ {
155
+ "internalType": "bytes",
156
+ "name": "paymasterAndData",
157
+ "type": "bytes"
158
+ },
70
159
  { "internalType": "bytes", "name": "signature", "type": "bytes" }
71
160
  ],
72
161
  "indexed": false,
@@ -74,8 +163,18 @@
74
163
  "name": "userOp",
75
164
  "type": "tuple"
76
165
  },
77
- { "indexed": false, "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" },
78
- { "indexed": false, "internalType": "uint256", "name": "missingAccountFunds", "type": "uint256" }
166
+ {
167
+ "indexed": false,
168
+ "internalType": "uint256",
169
+ "name": "sigTimeRange",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "indexed": false,
174
+ "internalType": "uint256",
175
+ "name": "missingAccountFunds",
176
+ "type": "uint256"
177
+ }
79
178
  ],
80
179
  "name": "UserOpValidated",
81
180
  "type": "event"
@@ -83,8 +182,18 @@
83
182
  {
84
183
  "anonymous": false,
85
184
  "inputs": [
86
- { "indexed": true, "internalType": "address", "name": "withdrawAddress", "type": "address" },
87
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
185
+ {
186
+ "indexed": true,
187
+ "internalType": "address",
188
+ "name": "withdrawAddress",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "uint256",
194
+ "name": "amount",
195
+ "type": "uint256"
196
+ }
88
197
  ],
89
198
  "name": "WithdrawFromEntryPoint",
90
199
  "type": "event"
@@ -121,7 +230,9 @@
121
230
  "type": "function"
122
231
  },
123
232
  {
124
- "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
233
+ "inputs": [
234
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
235
+ ],
125
236
  "name": "depositToEntryPoint",
126
237
  "outputs": [],
127
238
  "stateMutability": "nonpayable",
@@ -130,7 +241,9 @@
130
241
  {
131
242
  "inputs": [],
132
243
  "name": "entryPoint",
133
- "outputs": [{ "internalType": "contractIEntryPoint", "name": "", "type": "address" }],
244
+ "outputs": [
245
+ { "internalType": "contractIEntryPoint", "name": "", "type": "address" }
246
+ ],
134
247
  "stateMutability": "view",
135
248
  "type": "function"
136
249
  },
@@ -153,7 +266,11 @@
153
266
  {
154
267
  "components": [
155
268
  { "internalType": "address", "name": "token", "type": "address" },
156
- { "internalType": "addresspayable", "name": "recipient", "type": "address" },
269
+ {
270
+ "internalType": "addresspayable",
271
+ "name": "recipient",
272
+ "type": "address"
273
+ },
157
274
  { "internalType": "uint256", "name": "amount", "type": "uint256" }
158
275
  ],
159
276
  "internalType": "structUserOperationFee",
@@ -191,12 +308,20 @@
191
308
  {
192
309
  "inputs": [],
193
310
  "name": "factory",
194
- "outputs": [{ "internalType": "contractIFunWalletFactory", "name": "", "type": "address" }],
311
+ "outputs": [
312
+ {
313
+ "internalType": "contractIFunWalletFactory",
314
+ "name": "",
315
+ "type": "address"
316
+ }
317
+ ],
195
318
  "stateMutability": "view",
196
319
  "type": "function"
197
320
  },
198
321
  {
199
- "inputs": [{ "internalType": "address", "name": "validation", "type": "address" }],
322
+ "inputs": [
323
+ { "internalType": "address", "name": "validation", "type": "address" }
324
+ ],
200
325
  "name": "getNextValidation",
201
326
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
202
327
  "stateMutability": "view",
@@ -205,7 +330,9 @@
205
330
  {
206
331
  "inputs": [{ "internalType": "uint32", "name": "key", "type": "uint32" }],
207
332
  "name": "getNonce",
208
- "outputs": [{ "internalType": "uint256", "name": "out", "type": "uint256" }],
333
+ "outputs": [
334
+ { "internalType": "uint256", "name": "out", "type": "uint256" }
335
+ ],
209
336
  "stateMutability": "view",
210
337
  "type": "function"
211
338
  },
@@ -222,16 +349,22 @@
222
349
  "type": "function"
223
350
  },
224
351
  {
225
- "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }],
352
+ "inputs": [
353
+ { "internalType": "bytes32", "name": "key", "type": "bytes32" }
354
+ ],
226
355
  "name": "getState",
227
356
  "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
228
357
  "stateMutability": "view",
229
358
  "type": "function"
230
359
  },
231
360
  {
232
- "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }],
361
+ "inputs": [
362
+ { "internalType": "bytes32", "name": "key", "type": "bytes32" }
363
+ ],
233
364
  "name": "getState32",
234
- "outputs": [{ "internalType": "bytes32", "name": "out", "type": "bytes32" }],
365
+ "outputs": [
366
+ { "internalType": "bytes32", "name": "out", "type": "bytes32" }
367
+ ],
235
368
  "stateMutability": "view",
236
369
  "type": "function"
237
370
  },
@@ -241,7 +374,9 @@
241
374
  { "internalType": "address", "name": "addr", "type": "address" }
242
375
  ],
243
376
  "name": "getState32WithAddr",
244
- "outputs": [{ "internalType": "bytes32", "name": "out", "type": "bytes32" }],
377
+ "outputs": [
378
+ { "internalType": "bytes32", "name": "out", "type": "bytes32" }
379
+ ],
245
380
  "stateMutability": "view",
246
381
  "type": "function"
247
382
  },
@@ -255,12 +390,16 @@
255
390
  {
256
391
  "inputs": [],
257
392
  "name": "getValidations",
258
- "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }],
393
+ "outputs": [
394
+ { "internalType": "address[]", "name": "", "type": "address[]" }
395
+ ],
259
396
  "stateMutability": "view",
260
397
  "type": "function"
261
398
  },
262
399
  {
263
- "inputs": [{ "internalType": "bytes", "name": "validationData", "type": "bytes" }],
400
+ "inputs": [
401
+ { "internalType": "bytes", "name": "validationData", "type": "bytes" }
402
+ ],
264
403
  "name": "initValidations",
265
404
  "outputs": [],
266
405
  "stateMutability": "nonpayable",
@@ -268,8 +407,16 @@
268
407
  },
269
408
  {
270
409
  "inputs": [
271
- { "internalType": "contractIEntryPoint", "name": "_newEntryPoint", "type": "address" },
272
- { "internalType": "bytes", "name": "validationInitData", "type": "bytes" }
410
+ {
411
+ "internalType": "contractIEntryPoint",
412
+ "name": "_newEntryPoint",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "bytes",
417
+ "name": "validationInitData",
418
+ "type": "bytes"
419
+ }
273
420
  ],
274
421
  "name": "initialize",
275
422
  "outputs": [],
@@ -285,12 +432,16 @@
285
432
  { "internalType": "bytes32", "name": "_hash", "type": "bytes32" }
286
433
  ],
287
434
  "name": "isValidAction",
288
- "outputs": [{ "internalType": "uint256", "name": "out", "type": "uint256" }],
435
+ "outputs": [
436
+ { "internalType": "uint256", "name": "out", "type": "uint256" }
437
+ ],
289
438
  "stateMutability": "view",
290
439
  "type": "function"
291
440
  },
292
441
  {
293
- "inputs": [{ "internalType": "address", "name": "validation", "type": "address" }],
442
+ "inputs": [
443
+ { "internalType": "address", "name": "validation", "type": "address" }
444
+ ],
294
445
  "name": "isValidation",
295
446
  "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
296
447
  "stateMutability": "view",
@@ -363,7 +514,11 @@
363
514
  },
364
515
  {
365
516
  "inputs": [
366
- { "internalType": "address", "name": "prevValidation", "type": "address" },
517
+ {
518
+ "internalType": "address",
519
+ "name": "prevValidation",
520
+ "type": "address"
521
+ },
367
522
  { "internalType": "address", "name": "validation", "type": "address" }
368
523
  ],
369
524
  "name": "removeValidation",
@@ -399,7 +554,9 @@
399
554
  "type": "function"
400
555
  },
401
556
  {
402
- "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }],
557
+ "inputs": [
558
+ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }
559
+ ],
403
560
  "name": "supportsInterface",
404
561
  "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
405
562
  "stateMutability": "view",
@@ -431,7 +588,13 @@
431
588
  "type": "function"
432
589
  },
433
590
  {
434
- "inputs": [{ "internalType": "contractIEntryPoint", "name": "_newEntryPoint", "type": "address" }],
591
+ "inputs": [
592
+ {
593
+ "internalType": "contractIEntryPoint",
594
+ "name": "_newEntryPoint",
595
+ "type": "address"
596
+ }
597
+ ],
435
598
  "name": "updateEntryPoint",
436
599
  "outputs": [],
437
600
  "stateMutability": "nonpayable",
@@ -439,10 +602,26 @@
439
602
  },
440
603
  {
441
604
  "inputs": [
442
- { "internalType": "address", "name": "prevValidation", "type": "address" },
443
- { "internalType": "address", "name": "oldValidation", "type": "address" },
444
- { "internalType": "address", "name": "newValidation", "type": "address" },
445
- { "internalType": "bytes", "name": "newValidationInitData", "type": "bytes" }
605
+ {
606
+ "internalType": "address",
607
+ "name": "prevValidation",
608
+ "type": "address"
609
+ },
610
+ {
611
+ "internalType": "address",
612
+ "name": "oldValidation",
613
+ "type": "address"
614
+ },
615
+ {
616
+ "internalType": "address",
617
+ "name": "newValidation",
618
+ "type": "address"
619
+ },
620
+ {
621
+ "internalType": "bytes",
622
+ "name": "newValidationInitData",
623
+ "type": "bytes"
624
+ }
446
625
  ],
447
626
  "name": "updateValidation",
448
627
  "outputs": [],
@@ -450,7 +629,13 @@
450
629
  "type": "function"
451
630
  },
452
631
  {
453
- "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }],
632
+ "inputs": [
633
+ {
634
+ "internalType": "address",
635
+ "name": "newImplementation",
636
+ "type": "address"
637
+ }
638
+ ],
454
639
  "name": "upgradeTo",
455
640
  "outputs": [],
456
641
  "stateMutability": "nonpayable",
@@ -458,7 +643,11 @@
458
643
  },
459
644
  {
460
645
  "inputs": [
461
- { "internalType": "address", "name": "newImplementation", "type": "address" },
646
+ {
647
+ "internalType": "address",
648
+ "name": "newImplementation",
649
+ "type": "address"
650
+ },
462
651
  { "internalType": "bytes", "name": "data", "type": "bytes" }
463
652
  ],
464
653
  "name": "upgradeToAndCall",
@@ -487,12 +676,36 @@
487
676
  { "internalType": "uint256", "name": "nonce", "type": "uint256" },
488
677
  { "internalType": "bytes", "name": "initCode", "type": "bytes" },
489
678
  { "internalType": "bytes", "name": "callData", "type": "bytes" },
490
- { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" },
491
- { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" },
492
- { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" },
493
- { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" },
494
- { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" },
495
- { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" },
679
+ {
680
+ "internalType": "uint256",
681
+ "name": "callGasLimit",
682
+ "type": "uint256"
683
+ },
684
+ {
685
+ "internalType": "uint256",
686
+ "name": "verificationGasLimit",
687
+ "type": "uint256"
688
+ },
689
+ {
690
+ "internalType": "uint256",
691
+ "name": "preVerificationGas",
692
+ "type": "uint256"
693
+ },
694
+ {
695
+ "internalType": "uint256",
696
+ "name": "maxFeePerGas",
697
+ "type": "uint256"
698
+ },
699
+ {
700
+ "internalType": "uint256",
701
+ "name": "maxPriorityFeePerGas",
702
+ "type": "uint256"
703
+ },
704
+ {
705
+ "internalType": "bytes",
706
+ "name": "paymasterAndData",
707
+ "type": "bytes"
708
+ },
496
709
  { "internalType": "bytes", "name": "signature", "type": "bytes" }
497
710
  ],
498
711
  "internalType": "structUserOperation",
@@ -500,16 +713,26 @@
500
713
  "type": "tuple"
501
714
  },
502
715
  { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" },
503
- { "internalType": "uint256", "name": "missingAccountFunds", "type": "uint256" }
716
+ {
717
+ "internalType": "uint256",
718
+ "name": "missingAccountFunds",
719
+ "type": "uint256"
720
+ }
504
721
  ],
505
722
  "name": "validateUserOp",
506
- "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }],
723
+ "outputs": [
724
+ { "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }
725
+ ],
507
726
  "stateMutability": "nonpayable",
508
727
  "type": "function"
509
728
  },
510
729
  {
511
730
  "inputs": [
512
- { "internalType": "addresspayable", "name": "withdrawAddress", "type": "address" },
731
+ {
732
+ "internalType": "addresspayable",
733
+ "name": "withdrawAddress",
734
+ "type": "address"
735
+ },
513
736
  { "internalType": "uint256", "name": "amount", "type": "uint256" }
514
737
  ],
515
738
  "name": "withdrawFromEntryPoint",
@@ -529,6 +752,7 @@
529
752
  "36865": "0xc42F0Eb7FFBAeAce750CEfE83f32c5DBC219681D",
530
753
  "42161": "0xc42F0Eb7FFBAeAce750CEfE83f32c5DBC219681D",
531
754
  "421614": "0x502077DCE504514e3e8f35706525AaC51D6e9852",
532
- "5000": "0x645E1F9102d1d5eA60d05d11B5D90Fb8c0c92169"
755
+ "5000": "0x645E1F9102d1d5eA60d05d11B5D90Fb8c0c92169",
756
+ "534352": "0xA6952BaD754D6d959216D89fcA0D695fED01b7b5"
533
757
  }
534
758
  }