@aastar/core 0.16.7

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 (136) hide show
  1. package/LICENSE +21 -0
  2. package/dist/abis/BLSAggregator.json +686 -0
  3. package/dist/abis/BLSValidator.json +42 -0
  4. package/dist/abis/DVTValidator.json +368 -0
  5. package/dist/abis/Eip7702Support.json +24 -0
  6. package/dist/abis/EntryPoint.json +1382 -0
  7. package/dist/abis/GToken.json +513 -0
  8. package/dist/abis/GTokenStaking.json +949 -0
  9. package/dist/abis/LegacyAccount.json +625 -0
  10. package/dist/abis/MySBT.json +1518 -0
  11. package/dist/abis/Paymaster.json +1143 -0
  12. package/dist/abis/PaymasterFactory.json +640 -0
  13. package/dist/abis/Registry.json +1942 -0
  14. package/dist/abis/ReputationSystem.json +699 -0
  15. package/dist/abis/SenderCreator.json +99 -0
  16. package/dist/abis/Simple7702Account.json +395 -0
  17. package/dist/abis/SimpleAccount.json +560 -0
  18. package/dist/abis/SimpleAccountFactory.json +111 -0
  19. package/dist/abis/SimpleAccountFactoryV08.json +87 -0
  20. package/dist/abis/SimpleAccountV08.json +557 -0
  21. package/dist/abis/SuperPaymaster.json +1781 -0
  22. package/dist/abis/UserOperationLib.json +57 -0
  23. package/dist/abis/abi.config.json +24 -0
  24. package/dist/abis/index.d.ts +1126 -0
  25. package/dist/abis/index.js +91 -0
  26. package/dist/abis/xPNTsFactory.json +718 -0
  27. package/dist/abis/xPNTsToken.json +1280 -0
  28. package/dist/actions/StateValidator.d.ts +68 -0
  29. package/dist/actions/StateValidator.js +187 -0
  30. package/dist/actions/StateValidator.test.d.ts +1 -0
  31. package/dist/actions/StateValidator.test.js +144 -0
  32. package/dist/actions/account.d.ts +55 -0
  33. package/dist/actions/account.js +133 -0
  34. package/dist/actions/account.test.d.ts +1 -0
  35. package/dist/actions/account.test.js +118 -0
  36. package/dist/actions/aggregator.d.ts +17 -0
  37. package/dist/actions/aggregator.js +31 -0
  38. package/dist/actions/aggregator.test.d.ts +1 -0
  39. package/dist/actions/aggregator.test.js +67 -0
  40. package/dist/actions/dvt.d.ts +30 -0
  41. package/dist/actions/dvt.js +41 -0
  42. package/dist/actions/dvt.test.d.ts +1 -0
  43. package/dist/actions/dvt.test.js +98 -0
  44. package/dist/actions/entryPoint.d.ts +90 -0
  45. package/dist/actions/entryPoint.js +211 -0
  46. package/dist/actions/entryPoint.test.d.ts +1 -0
  47. package/dist/actions/entryPoint.test.js +139 -0
  48. package/dist/actions/factory.d.ts +215 -0
  49. package/dist/actions/factory.js +442 -0
  50. package/dist/actions/factory.test.d.ts +1 -0
  51. package/dist/actions/factory.test.js +197 -0
  52. package/dist/actions/faucet.d.ts +48 -0
  53. package/dist/actions/faucet.js +337 -0
  54. package/dist/actions/faucet.test.d.ts +1 -0
  55. package/dist/actions/faucet.test.js +120 -0
  56. package/dist/actions/gtokenExtended.d.ts +39 -0
  57. package/dist/actions/gtokenExtended.js +115 -0
  58. package/dist/actions/gtokenExtended.test.d.ts +1 -0
  59. package/dist/actions/gtokenExtended.test.js +118 -0
  60. package/dist/actions/index.d.ts +15 -0
  61. package/dist/actions/index.js +17 -0
  62. package/dist/actions/paymasterV4.d.ts +170 -0
  63. package/dist/actions/paymasterV4.js +334 -0
  64. package/dist/actions/paymasterV4.test.d.ts +1 -0
  65. package/dist/actions/paymasterV4.test.js +159 -0
  66. package/dist/actions/registry.d.ts +246 -0
  67. package/dist/actions/registry.js +667 -0
  68. package/dist/actions/registry.test.d.ts +1 -0
  69. package/dist/actions/registry.test.js +360 -0
  70. package/dist/actions/reputation.d.ts +129 -0
  71. package/dist/actions/reputation.js +281 -0
  72. package/dist/actions/reputation.test.d.ts +1 -0
  73. package/dist/actions/reputation.test.js +169 -0
  74. package/dist/actions/sbt.d.ts +191 -0
  75. package/dist/actions/sbt.js +533 -0
  76. package/dist/actions/sbt.test.d.ts +1 -0
  77. package/dist/actions/sbt.test.js +256 -0
  78. package/dist/actions/staking.d.ts +132 -0
  79. package/dist/actions/staking.js +330 -0
  80. package/dist/actions/staking.test.d.ts +1 -0
  81. package/dist/actions/staking.test.js +223 -0
  82. package/dist/actions/superPaymaster.d.ts +237 -0
  83. package/dist/actions/superPaymaster.js +644 -0
  84. package/dist/actions/superPaymaster.test.d.ts +1 -0
  85. package/dist/actions/superPaymaster.test.js +287 -0
  86. package/dist/actions/tokens.d.ts +229 -0
  87. package/dist/actions/tokens.js +415 -0
  88. package/dist/actions/tokens.test.d.ts +1 -0
  89. package/dist/actions/tokens.test.js +53 -0
  90. package/dist/actions/validators.d.ts +194 -0
  91. package/dist/actions/validators.js +433 -0
  92. package/dist/actions/validators.test.d.ts +1 -0
  93. package/dist/actions/validators.test.js +215 -0
  94. package/dist/branding.d.ts +30 -0
  95. package/dist/branding.js +30 -0
  96. package/dist/clients/BaseClient.d.ts +25 -0
  97. package/dist/clients/BaseClient.js +66 -0
  98. package/dist/clients/types.d.ts +60 -0
  99. package/dist/clients/types.js +1 -0
  100. package/dist/clients.d.ts +5 -0
  101. package/dist/clients.js +11 -0
  102. package/dist/communities.d.ts +52 -0
  103. package/dist/communities.js +73 -0
  104. package/dist/config/ContractConfigManager.d.ts +20 -0
  105. package/dist/config/ContractConfigManager.js +48 -0
  106. package/dist/constants.d.ts +88 -0
  107. package/dist/constants.js +125 -0
  108. package/dist/contract-addresses.d.ts +110 -0
  109. package/dist/contract-addresses.js +99 -0
  110. package/dist/contracts.d.ts +424 -0
  111. package/dist/contracts.js +343 -0
  112. package/dist/contracts.test.d.ts +1 -0
  113. package/dist/contracts.test.js +40 -0
  114. package/dist/crypto/blsSigner.d.ts +64 -0
  115. package/dist/crypto/blsSigner.js +98 -0
  116. package/dist/crypto/index.d.ts +1 -0
  117. package/dist/crypto/index.js +1 -0
  118. package/dist/index.d.ts +21 -0
  119. package/dist/index.js +21 -0
  120. package/dist/networks.d.ts +127 -0
  121. package/dist/networks.js +118 -0
  122. package/dist/requirementChecker.d.ts +38 -0
  123. package/dist/requirementChecker.js +139 -0
  124. package/dist/requirementChecker.test.d.ts +1 -0
  125. package/dist/requirementChecker.test.js +60 -0
  126. package/dist/roles.d.ts +204 -0
  127. package/dist/roles.js +211 -0
  128. package/dist/roles.test.d.ts +1 -0
  129. package/dist/roles.test.js +23 -0
  130. package/dist/utils/validation.d.ts +24 -0
  131. package/dist/utils/validation.js +56 -0
  132. package/dist/utils/validation.test.d.ts +1 -0
  133. package/dist/utils/validation.test.js +40 -0
  134. package/dist/utils.d.ts +12 -0
  135. package/dist/utils.js +14 -0
  136. package/package.json +33 -0
@@ -0,0 +1,99 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "createSender",
10
+ "inputs": [
11
+ {
12
+ "name": "initCode",
13
+ "type": "bytes",
14
+ "internalType": "bytes"
15
+ }
16
+ ],
17
+ "outputs": [
18
+ {
19
+ "name": "sender",
20
+ "type": "address",
21
+ "internalType": "address"
22
+ }
23
+ ],
24
+ "stateMutability": "nonpayable"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "entryPoint",
29
+ "inputs": [],
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "type": "address",
34
+ "internalType": "address"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "name": "initEip7702Sender",
42
+ "inputs": [
43
+ {
44
+ "name": "sender",
45
+ "type": "address",
46
+ "internalType": "address"
47
+ },
48
+ {
49
+ "name": "initCallData",
50
+ "type": "bytes",
51
+ "internalType": "bytes"
52
+ }
53
+ ],
54
+ "outputs": [],
55
+ "stateMutability": "nonpayable"
56
+ },
57
+ {
58
+ "type": "error",
59
+ "name": "FailedOpWithRevert",
60
+ "inputs": [
61
+ {
62
+ "name": "opIndex",
63
+ "type": "uint256",
64
+ "internalType": "uint256"
65
+ },
66
+ {
67
+ "name": "reason",
68
+ "type": "string",
69
+ "internalType": "string"
70
+ },
71
+ {
72
+ "name": "inner",
73
+ "type": "bytes",
74
+ "internalType": "bytes"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "type": "error",
80
+ "name": "NotFromEntryPoint",
81
+ "inputs": [
82
+ {
83
+ "name": "msgSender",
84
+ "type": "address",
85
+ "internalType": "address"
86
+ },
87
+ {
88
+ "name": "entity",
89
+ "type": "address",
90
+ "internalType": "address"
91
+ },
92
+ {
93
+ "name": "entryPoint",
94
+ "type": "address",
95
+ "internalType": "address"
96
+ }
97
+ ]
98
+ }
99
+ ]
@@ -0,0 +1,395 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "anEntryPoint",
7
+ "type": "address",
8
+ "internalType": "contract IEntryPoint"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "fallback",
15
+ "stateMutability": "payable"
16
+ },
17
+ {
18
+ "type": "receive",
19
+ "stateMutability": "payable"
20
+ },
21
+ {
22
+ "type": "function",
23
+ "name": "entryPoint",
24
+ "inputs": [],
25
+ "outputs": [
26
+ {
27
+ "name": "",
28
+ "type": "address",
29
+ "internalType": "contract IEntryPoint"
30
+ }
31
+ ],
32
+ "stateMutability": "view"
33
+ },
34
+ {
35
+ "type": "function",
36
+ "name": "execute",
37
+ "inputs": [
38
+ {
39
+ "name": "target",
40
+ "type": "address",
41
+ "internalType": "address"
42
+ },
43
+ {
44
+ "name": "value",
45
+ "type": "uint256",
46
+ "internalType": "uint256"
47
+ },
48
+ {
49
+ "name": "data",
50
+ "type": "bytes",
51
+ "internalType": "bytes"
52
+ }
53
+ ],
54
+ "outputs": [],
55
+ "stateMutability": "nonpayable"
56
+ },
57
+ {
58
+ "type": "function",
59
+ "name": "executeBatch",
60
+ "inputs": [
61
+ {
62
+ "name": "calls",
63
+ "type": "tuple[]",
64
+ "internalType": "struct BaseAccount.Call[]",
65
+ "components": [
66
+ {
67
+ "name": "target",
68
+ "type": "address",
69
+ "internalType": "address"
70
+ },
71
+ {
72
+ "name": "value",
73
+ "type": "uint256",
74
+ "internalType": "uint256"
75
+ },
76
+ {
77
+ "name": "data",
78
+ "type": "bytes",
79
+ "internalType": "bytes"
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "outputs": [],
85
+ "stateMutability": "nonpayable"
86
+ },
87
+ {
88
+ "type": "function",
89
+ "name": "getNonce",
90
+ "inputs": [],
91
+ "outputs": [
92
+ {
93
+ "name": "",
94
+ "type": "uint256",
95
+ "internalType": "uint256"
96
+ }
97
+ ],
98
+ "stateMutability": "view"
99
+ },
100
+ {
101
+ "type": "function",
102
+ "name": "isValidSignature",
103
+ "inputs": [
104
+ {
105
+ "name": "hash",
106
+ "type": "bytes32",
107
+ "internalType": "bytes32"
108
+ },
109
+ {
110
+ "name": "signature",
111
+ "type": "bytes",
112
+ "internalType": "bytes"
113
+ }
114
+ ],
115
+ "outputs": [
116
+ {
117
+ "name": "magicValue",
118
+ "type": "bytes4",
119
+ "internalType": "bytes4"
120
+ }
121
+ ],
122
+ "stateMutability": "view"
123
+ },
124
+ {
125
+ "type": "function",
126
+ "name": "onERC1155BatchReceived",
127
+ "inputs": [
128
+ {
129
+ "name": "",
130
+ "type": "address",
131
+ "internalType": "address"
132
+ },
133
+ {
134
+ "name": "",
135
+ "type": "address",
136
+ "internalType": "address"
137
+ },
138
+ {
139
+ "name": "",
140
+ "type": "uint256[]",
141
+ "internalType": "uint256[]"
142
+ },
143
+ {
144
+ "name": "",
145
+ "type": "uint256[]",
146
+ "internalType": "uint256[]"
147
+ },
148
+ {
149
+ "name": "",
150
+ "type": "bytes",
151
+ "internalType": "bytes"
152
+ }
153
+ ],
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "bytes4",
158
+ "internalType": "bytes4"
159
+ }
160
+ ],
161
+ "stateMutability": "nonpayable"
162
+ },
163
+ {
164
+ "type": "function",
165
+ "name": "onERC1155Received",
166
+ "inputs": [
167
+ {
168
+ "name": "",
169
+ "type": "address",
170
+ "internalType": "address"
171
+ },
172
+ {
173
+ "name": "",
174
+ "type": "address",
175
+ "internalType": "address"
176
+ },
177
+ {
178
+ "name": "",
179
+ "type": "uint256",
180
+ "internalType": "uint256"
181
+ },
182
+ {
183
+ "name": "",
184
+ "type": "uint256",
185
+ "internalType": "uint256"
186
+ },
187
+ {
188
+ "name": "",
189
+ "type": "bytes",
190
+ "internalType": "bytes"
191
+ }
192
+ ],
193
+ "outputs": [
194
+ {
195
+ "name": "",
196
+ "type": "bytes4",
197
+ "internalType": "bytes4"
198
+ }
199
+ ],
200
+ "stateMutability": "nonpayable"
201
+ },
202
+ {
203
+ "type": "function",
204
+ "name": "onERC721Received",
205
+ "inputs": [
206
+ {
207
+ "name": "",
208
+ "type": "address",
209
+ "internalType": "address"
210
+ },
211
+ {
212
+ "name": "",
213
+ "type": "address",
214
+ "internalType": "address"
215
+ },
216
+ {
217
+ "name": "",
218
+ "type": "uint256",
219
+ "internalType": "uint256"
220
+ },
221
+ {
222
+ "name": "",
223
+ "type": "bytes",
224
+ "internalType": "bytes"
225
+ }
226
+ ],
227
+ "outputs": [
228
+ {
229
+ "name": "",
230
+ "type": "bytes4",
231
+ "internalType": "bytes4"
232
+ }
233
+ ],
234
+ "stateMutability": "nonpayable"
235
+ },
236
+ {
237
+ "type": "function",
238
+ "name": "supportsInterface",
239
+ "inputs": [
240
+ {
241
+ "name": "id",
242
+ "type": "bytes4",
243
+ "internalType": "bytes4"
244
+ }
245
+ ],
246
+ "outputs": [
247
+ {
248
+ "name": "",
249
+ "type": "bool",
250
+ "internalType": "bool"
251
+ }
252
+ ],
253
+ "stateMutability": "pure"
254
+ },
255
+ {
256
+ "type": "function",
257
+ "name": "validateUserOp",
258
+ "inputs": [
259
+ {
260
+ "name": "userOp",
261
+ "type": "tuple",
262
+ "internalType": "struct PackedUserOperation",
263
+ "components": [
264
+ {
265
+ "name": "sender",
266
+ "type": "address",
267
+ "internalType": "address"
268
+ },
269
+ {
270
+ "name": "nonce",
271
+ "type": "uint256",
272
+ "internalType": "uint256"
273
+ },
274
+ {
275
+ "name": "initCode",
276
+ "type": "bytes",
277
+ "internalType": "bytes"
278
+ },
279
+ {
280
+ "name": "callData",
281
+ "type": "bytes",
282
+ "internalType": "bytes"
283
+ },
284
+ {
285
+ "name": "accountGasLimits",
286
+ "type": "bytes32",
287
+ "internalType": "bytes32"
288
+ },
289
+ {
290
+ "name": "preVerificationGas",
291
+ "type": "uint256",
292
+ "internalType": "uint256"
293
+ },
294
+ {
295
+ "name": "gasFees",
296
+ "type": "bytes32",
297
+ "internalType": "bytes32"
298
+ },
299
+ {
300
+ "name": "paymasterAndData",
301
+ "type": "bytes",
302
+ "internalType": "bytes"
303
+ },
304
+ {
305
+ "name": "signature",
306
+ "type": "bytes",
307
+ "internalType": "bytes"
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "name": "userOpHash",
313
+ "type": "bytes32",
314
+ "internalType": "bytes32"
315
+ },
316
+ {
317
+ "name": "missingAccountFunds",
318
+ "type": "uint256",
319
+ "internalType": "uint256"
320
+ }
321
+ ],
322
+ "outputs": [
323
+ {
324
+ "name": "validationData",
325
+ "type": "uint256",
326
+ "internalType": "uint256"
327
+ }
328
+ ],
329
+ "stateMutability": "nonpayable"
330
+ },
331
+ {
332
+ "type": "error",
333
+ "name": "ECDSAInvalidSignature",
334
+ "inputs": []
335
+ },
336
+ {
337
+ "type": "error",
338
+ "name": "ECDSAInvalidSignatureLength",
339
+ "inputs": [
340
+ {
341
+ "name": "length",
342
+ "type": "uint256",
343
+ "internalType": "uint256"
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "type": "error",
349
+ "name": "ECDSAInvalidSignatureS",
350
+ "inputs": [
351
+ {
352
+ "name": "s",
353
+ "type": "bytes32",
354
+ "internalType": "bytes32"
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "type": "error",
360
+ "name": "ExecuteError",
361
+ "inputs": [
362
+ {
363
+ "name": "index",
364
+ "type": "uint256",
365
+ "internalType": "uint256"
366
+ },
367
+ {
368
+ "name": "error",
369
+ "type": "bytes",
370
+ "internalType": "bytes"
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "type": "error",
376
+ "name": "NotFromEntryPoint",
377
+ "inputs": [
378
+ {
379
+ "name": "msgSender",
380
+ "type": "address",
381
+ "internalType": "address"
382
+ },
383
+ {
384
+ "name": "entity",
385
+ "type": "address",
386
+ "internalType": "address"
387
+ },
388
+ {
389
+ "name": "entryPoint",
390
+ "type": "address",
391
+ "internalType": "address"
392
+ }
393
+ ]
394
+ }
395
+ ]