@aastar/sdk 0.18.0 → 0.20.2

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 (103) hide show
  1. package/LICENSE +180 -21
  2. package/dist/UserClient-YUHCJJJL.js +6 -0
  3. package/dist/UserClient-YUHCJJJL.js.map +1 -0
  4. package/dist/account.d.ts +1 -0
  5. package/dist/account.js +6 -0
  6. package/dist/account.js.map +1 -0
  7. package/dist/admin.d.ts +1 -0
  8. package/dist/admin.js +6 -0
  9. package/dist/admin.js.map +1 -0
  10. package/dist/airaccount.d.ts +2 -0
  11. package/dist/airaccount.js +4501 -0
  12. package/dist/airaccount.js.map +1 -0
  13. package/dist/channel.d.ts +1 -0
  14. package/dist/channel.js +6 -0
  15. package/dist/channel.js.map +1 -0
  16. package/dist/chunk-4DVUM4MC.js +106 -0
  17. package/dist/chunk-4DVUM4MC.js.map +1 -0
  18. package/dist/chunk-4KRQXOTI.js +4421 -0
  19. package/dist/chunk-4KRQXOTI.js.map +1 -0
  20. package/dist/chunk-DI3E6PMI.js +426 -0
  21. package/dist/chunk-DI3E6PMI.js.map +1 -0
  22. package/dist/chunk-DSZ372PH.js +333 -0
  23. package/dist/chunk-DSZ372PH.js.map +1 -0
  24. package/dist/chunk-HVAB4TTT.js +116 -0
  25. package/dist/chunk-HVAB4TTT.js.map +1 -0
  26. package/dist/chunk-MPOMWT2J.js +1140 -0
  27. package/dist/chunk-MPOMWT2J.js.map +1 -0
  28. package/dist/chunk-NZGXB2C5.js +115 -0
  29. package/dist/chunk-NZGXB2C5.js.map +1 -0
  30. package/dist/chunk-O3Y7II3B.js +578 -0
  31. package/dist/chunk-O3Y7II3B.js.map +1 -0
  32. package/dist/chunk-OSPRJZ5T.js +113 -0
  33. package/dist/chunk-OSPRJZ5T.js.map +1 -0
  34. package/dist/chunk-PCLPYRTX.js +229 -0
  35. package/dist/chunk-PCLPYRTX.js.map +1 -0
  36. package/dist/chunk-PZ5AY32C.js +9 -0
  37. package/dist/chunk-PZ5AY32C.js.map +1 -0
  38. package/dist/chunk-XFI3AK32.js +416 -0
  39. package/dist/chunk-XFI3AK32.js.map +1 -0
  40. package/dist/chunk-YHM77LIP.js +432 -0
  41. package/dist/chunk-YHM77LIP.js.map +1 -0
  42. package/dist/chunk-ZSSNU3UF.js +42091 -0
  43. package/dist/chunk-ZSSNU3UF.js.map +1 -0
  44. package/dist/contract-addresses-JE3X6DFY.js +4 -0
  45. package/dist/contract-addresses-JE3X6DFY.js.map +1 -0
  46. package/dist/core.d.ts +13 -0
  47. package/dist/core.js +5 -0
  48. package/dist/core.js.map +1 -0
  49. package/dist/dapp.d.ts +1 -0
  50. package/dist/dapp.js +283 -0
  51. package/dist/dapp.js.map +1 -0
  52. package/dist/dist-GHTBO7CD.js +6 -0
  53. package/dist/dist-GHTBO7CD.js.map +1 -0
  54. package/dist/enduser.d.ts +1 -0
  55. package/dist/enduser.js +7 -0
  56. package/dist/enduser.js.map +1 -0
  57. package/dist/identity.d.ts +1 -0
  58. package/dist/identity.js +6 -0
  59. package/dist/identity.js.map +1 -0
  60. package/dist/index.d.ts +601 -13
  61. package/dist/index.js +1639 -28
  62. package/dist/index.js.map +1 -0
  63. package/dist/index.node-55LOPHNQ.js +5 -0
  64. package/dist/index.node-55LOPHNQ.js.map +1 -0
  65. package/dist/lib-VRTYVDUO.js +1861 -0
  66. package/dist/lib-VRTYVDUO.js.map +1 -0
  67. package/dist/operator.d.ts +1 -0
  68. package/dist/operator.js +6 -0
  69. package/dist/operator.js.map +1 -0
  70. package/dist/paymaster.d.ts +1 -0
  71. package/dist/paymaster.js +6 -0
  72. package/dist/paymaster.js.map +1 -0
  73. package/dist/tokens.d.ts +1 -0
  74. package/dist/tokens.js +6 -0
  75. package/dist/tokens.js.map +1 -0
  76. package/dist/x402.d.ts +1 -0
  77. package/dist/x402.js +6 -0
  78. package/dist/x402.js.map +1 -0
  79. package/package.json +87 -18
  80. package/dist/clients/ExperimentClient.d.ts +0 -34
  81. package/dist/clients/ExperimentClient.js +0 -58
  82. package/dist/clients/admin.d.ts +0 -11
  83. package/dist/clients/admin.js +0 -20
  84. package/dist/clients/community.d.ts +0 -40
  85. package/dist/clients/community.js +0 -300
  86. package/dist/clients/endUser.d.ts +0 -77
  87. package/dist/clients/endUser.js +0 -298
  88. package/dist/clients/operator.d.ts +0 -66
  89. package/dist/clients/operator.js +0 -209
  90. package/dist/errors/decoder.d.ts +0 -6
  91. package/dist/errors/decoder.js +0 -44
  92. package/dist/utils/errorHandler.d.ts +0 -40
  93. package/dist/utils/errorHandler.js +0 -114
  94. package/dist/utils/funding.d.ts +0 -115
  95. package/dist/utils/funding.js +0 -188
  96. package/dist/utils/keys.d.ts +0 -61
  97. package/dist/utils/keys.js +0 -130
  98. package/dist/utils/roleData.d.ts +0 -66
  99. package/dist/utils/roleData.js +0 -128
  100. package/dist/utils/testScenarios.d.ts +0 -33
  101. package/dist/utils/testScenarios.js +0 -85
  102. package/dist/utils/userOp.d.ts +0 -89
  103. package/dist/utils/userOp.js +0 -231
package/LICENSE CHANGED
@@ -1,21 +1,180 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 AAStar
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the
13
+ copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other
16
+ entities that control, are controlled by, or are under common control with
17
+ that entity. For the purposes of this definition, "control" means (i) the
18
+ power, direct or indirect, to cause the direction or management of such
19
+ entity, whether by contract or otherwise, or (ii) ownership of fifty
20
+ percent (50%) or more of the outstanding shares, or (iii) beneficial
21
+ ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
24
+ permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation source,
28
+ and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical transformation
31
+ or translation of a Source form, including but not limited to compiled
32
+ object code, generated documentation, and conversions to other media types.
33
+
34
+ "Work" shall mean the work of authorship, whether in Source or Object form,
35
+ made available under the License, as indicated by a copyright notice that
36
+ is included in or attached to the work (an example is provided in the
37
+ Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object form,
40
+ that is based on (or derived from) the Work and for which the editorial
41
+ revisions, annotations, elaborations, or other modifications represent,
42
+ as a whole, an original work of authorship. For the purposes of this
43
+ License, Derivative Works shall not include works that remain separable
44
+ from, or merely link (or bind by name) to the interfaces of, the Work
45
+ and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean any work of authorship, including the original
48
+ version of the Work and any modifications or additions to that Work or
49
+ Derivative Works thereof, that is intentionally submitted to the Licensor
50
+ for inclusion in the Work by the copyright owner or by an individual or
51
+ Legal Entity authorized to submit on behalf of the copyright owner. For
52
+ the purposes of this definition, "submitted" means any form of electronic,
53
+ verbal, or written communication sent to the Licensor or its
54
+ representatives, including but not limited to communication on electronic
55
+ mailing lists, source code control systems, and issue tracking systems
56
+ that are managed by, or on behalf of, the Licensor for the purpose of
57
+ discussing and improving the Work, but excluding communication that is
58
+ conspicuously marked or otherwise designated in writing by the copyright
59
+ owner as "Not a Contribution."
60
+
61
+ "Contributor" shall mean Licensor and any individual or Legal Entity on
62
+ behalf of whom a Contribution has been received by the Licensor and
63
+ subsequently incorporated within the Work.
64
+
65
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
66
+ License, each Contributor hereby grants to You a perpetual, worldwide,
67
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
68
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
69
+ sublicense, and distribute the Work and such Derivative Works in Source or
70
+ Object form.
71
+
72
+ 3. Grant of Patent License. Subject to the terms and conditions of this
73
+ License, each Contributor hereby grants to You a perpetual, worldwide,
74
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
75
+ this section) patent license to make, have made, use, offer to sell, sell,
76
+ import, and otherwise transfer the Work, where such license applies only
77
+ to those patent claims licensable by such Contributor that are necessarily
78
+ infringed by their Contribution(s) alone or by combination of their
79
+ Contribution(s) with the Work to which such Contribution(s) was submitted.
80
+ If You institute patent litigation against any entity (including a
81
+ cross-claim or counterclaim in a lawsuit) alleging that the Work or a
82
+ Contribution incorporated within the Work constitutes direct or
83
+ contributory patent infringement, then any patent licenses granted to You
84
+ under this License for that Work shall terminate as of the date such
85
+ litigation is filed.
86
+
87
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
88
+ Derivative Works thereof in any medium, with or without modifications, and
89
+ in Source or Object form, provided that You meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative Works a
92
+ copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices stating
95
+ that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works that You
98
+ distribute, all copyright, patent, trademark, and attribution notices from
99
+ the Source form of the Work, excluding those notices that do not pertain to
100
+ any part of the Derivative Works; and
101
+
102
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
103
+ then any Derivative Works that You distribute must include a readable copy
104
+ of the attribution notices contained within such NOTICE file, excluding any
105
+ notices that do not pertain to any part of the Derivative Works, in at
106
+ least one of the following places: within a NOTICE text file distributed as
107
+ part of the Derivative Works; within the Source form or documentation, if
108
+ provided along with the Derivative Works; or, within a display generated by
109
+ the Derivative Works, if and wherever such third-party notices normally
110
+ appear. The contents of the NOTICE file are for informational purposes only
111
+ and do not modify the License. You may add Your own attribution notices
112
+ within Derivative Works that You distribute, alongside or as an addendum to
113
+ the NOTICE text from the Work, provided that such additional attribution
114
+ notices cannot be construed as modifying the License.
115
+
116
+ You may add Your own copyright statement to Your modifications and may
117
+ provide additional or different license terms and conditions for use,
118
+ reproduction, or distribution of Your modifications, or for any such
119
+ Derivative Works as a whole, provided Your use, reproduction, and
120
+ distribution of the Work otherwise complies with the conditions stated in
121
+ this License.
122
+
123
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
124
+ Contribution intentionally submitted for inclusion in the Work by You to
125
+ the Licensor shall be under the terms and conditions of this License,
126
+ without any additional terms or conditions. Notwithstanding the above,
127
+ nothing herein shall supersede or modify the terms of any separate license
128
+ agreement you may have executed with Licensor regarding such Contributions.
129
+
130
+ 6. Trademarks. This License does not grant permission to use the trade
131
+ names, trademarks, service marks, or product names of the Licensor, except
132
+ as required for reasonable and customary use in describing the origin of
133
+ the Work and reproducing the content of the NOTICE file.
134
+
135
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to
136
+ in writing, Licensor provides the Work (and each Contributor provides its
137
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
138
+ KIND, either express or implied, including, without limitation, any
139
+ warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
140
+ FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
141
+ determining the appropriateness of using or redistributing the Work and
142
+ assume any risks associated with Your exercise of permissions under this
143
+ License.
144
+
145
+ 8. Limitation of Liability. In no event and under no legal theory, whether
146
+ in tort (including negligence), contract, or otherwise, unless required by
147
+ applicable law (such as deliberate and grossly negligent acts) or agreed to
148
+ in writing, shall any Contributor be liable to You for damages, including
149
+ any direct, indirect, special, incidental, or consequential damages of any
150
+ character arising as a result of this License or out of the use or
151
+ inability to use the Work (including but not limited to damages for loss of
152
+ goodwill, work stoppage, computer failure or malfunction, or any and all
153
+ other commercial damages or losses), even if such Contributor has been
154
+ advised of the possibility of such damages.
155
+
156
+ 9. Accepting Warranty or Additional Liability. While redistributing the
157
+ Work or Derivative Works thereof, You may choose to offer, and charge a fee
158
+ for, acceptance of support, warranty, indemnity, or other liability
159
+ obligations and/or rights consistent with this License. However, in
160
+ accepting such obligations, You may act only on Your own behalf and on Your
161
+ sole responsibility, not on behalf of any other Contributor, and only if
162
+ You agree to indemnify, defend, and hold each Contributor harmless for any
163
+ liability incurred by, or claims asserted against, such Contributor by
164
+ reason of your accepting any such warranty or additional liability.
165
+
166
+ END OF TERMS AND CONDITIONS
167
+
168
+ Copyright 2024-present MushroomDAO Contributors
169
+
170
+ Licensed under the Apache License, Version 2.0 (the "License");
171
+ you may not use this file except in compliance with the License.
172
+ You may obtain a copy of the License at
173
+
174
+ http://www.apache.org/licenses/LICENSE-2.0
175
+
176
+ Unless required by applicable law or agreed to in writing, software
177
+ distributed under the License is distributed on an "AS IS" BASIS,
178
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
+ See the License for the specific language governing permissions and
180
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ export { UserClient } from './chunk-DI3E6PMI.js';
2
+ import './chunk-ZSSNU3UF.js';
3
+ import './chunk-DSZ372PH.js';
4
+ import './chunk-PZ5AY32C.js';
5
+ //# sourceMappingURL=UserClient-YUHCJJJL.js.map
6
+ //# sourceMappingURL=UserClient-YUHCJJJL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"UserClient-YUHCJJJL.js"}
@@ -0,0 +1 @@
1
+ export * from '@aastar/account';
@@ -0,0 +1,6 @@
1
+ export { UserOpClient, createEOAWalletClient, getUserOpHash, packUserOpLimits, toSimpleSmartAccount } from './chunk-HVAB4TTT.js';
2
+ import './chunk-ZSSNU3UF.js';
3
+ import './chunk-DSZ372PH.js';
4
+ import './chunk-PZ5AY32C.js';
5
+ //# sourceMappingURL=account.js.map
6
+ //# sourceMappingURL=account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"account.js"}
@@ -0,0 +1 @@
1
+ export * from '@aastar/admin';
package/dist/admin.js ADDED
@@ -0,0 +1,6 @@
1
+ export { ProtocolGovernance } from './chunk-4DVUM4MC.js';
2
+ import './chunk-ZSSNU3UF.js';
3
+ import './chunk-DSZ372PH.js';
4
+ import './chunk-PZ5AY32C.js';
5
+ //# sourceMappingURL=admin.js.map
6
+ //# sourceMappingURL=admin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"admin.js"}
@@ -0,0 +1,2 @@
1
+ export * from '@aastar/airaccount/server';
2
+ export * from '@aastar/airaccount';