@aastar/sdk 0.24.1 → 0.25.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.
Files changed (132) hide show
  1. package/dist/UserClient-5PQP6APK.js +6 -0
  2. package/dist/{UserClient-KYDCMAIU.js.map → UserClient-5PQP6APK.js.map} +1 -1
  3. package/dist/UserClient-CD7R3335.cjs +15 -0
  4. package/dist/{UserClient-S6LS3CB6.cjs.map → UserClient-CD7R3335.cjs.map} +1 -1
  5. package/dist/account.cjs +8 -8
  6. package/dist/account.js +3 -3
  7. package/dist/addresses-D12T3kLs.d.cts +210 -0
  8. package/dist/addresses-D12T3kLs.d.ts +210 -0
  9. package/dist/admin.cjs +4 -4
  10. package/dist/admin.js +3 -3
  11. package/dist/airaccount.cjs +111 -103
  12. package/dist/airaccount.d.cts +1 -1
  13. package/dist/airaccount.d.ts +1 -1
  14. package/dist/airaccount.js +3 -3
  15. package/dist/channel.cjs +7 -7
  16. package/dist/channel.js +3 -3
  17. package/dist/{chunk-72JZKARR.cjs → chunk-2RHBOBL7.cjs} +6 -6
  18. package/dist/{chunk-72JZKARR.cjs.map → chunk-2RHBOBL7.cjs.map} +1 -1
  19. package/dist/{chunk-BYVG7MO7.js → chunk-6DZCDV4Q.js} +2137 -13
  20. package/dist/chunk-6DZCDV4Q.js.map +1 -0
  21. package/dist/{chunk-VEAYV52I.cjs → chunk-6IZASQSB.cjs} +236 -109
  22. package/dist/chunk-6IZASQSB.cjs.map +1 -0
  23. package/dist/{chunk-NVYVTCHJ.cjs → chunk-7HTUDNH3.cjs} +11 -11
  24. package/dist/{chunk-NVYVTCHJ.cjs.map → chunk-7HTUDNH3.cjs.map} +1 -1
  25. package/dist/{chunk-PNBK2CLK.js → chunk-7JVL5CU3.js} +3 -3
  26. package/dist/{chunk-PNBK2CLK.js.map → chunk-7JVL5CU3.js.map} +1 -1
  27. package/dist/{chunk-654GQ7G7.js → chunk-A4FO6FKN.js} +3 -3
  28. package/dist/{chunk-654GQ7G7.js.map → chunk-A4FO6FKN.js.map} +1 -1
  29. package/dist/{chunk-A4ICWCHR.cjs → chunk-CI4UJW5Y.cjs} +5 -5
  30. package/dist/{chunk-A4ICWCHR.cjs.map → chunk-CI4UJW5Y.cjs.map} +1 -1
  31. package/dist/{chunk-RZ2M2RVP.js → chunk-COTHBCR2.js} +3 -3
  32. package/dist/{chunk-RZ2M2RVP.js.map → chunk-COTHBCR2.js.map} +1 -1
  33. package/dist/{chunk-2UC7UPHV.js → chunk-D2RDBN46.js} +227 -102
  34. package/dist/chunk-D2RDBN46.js.map +1 -0
  35. package/dist/{chunk-WVOJV4Q5.cjs → chunk-FIMXPANS.cjs} +4 -4
  36. package/dist/{chunk-WVOJV4Q5.cjs.map → chunk-FIMXPANS.cjs.map} +1 -1
  37. package/dist/{chunk-MXJEULSE.cjs → chunk-G33MXEHU.cjs} +29 -2
  38. package/dist/chunk-G33MXEHU.cjs.map +1 -0
  39. package/dist/{chunk-D667CUUS.cjs → chunk-GASCTLKR.cjs} +9 -9
  40. package/dist/{chunk-D667CUUS.cjs.map → chunk-GASCTLKR.cjs.map} +1 -1
  41. package/dist/{chunk-PXQDAFXD.js → chunk-IG4BG25C.js} +6 -6
  42. package/dist/{chunk-PXQDAFXD.js.map → chunk-IG4BG25C.js.map} +1 -1
  43. package/dist/{chunk-5PH5CSM7.cjs → chunk-J3UAXGNP.cjs} +16 -16
  44. package/dist/{chunk-5PH5CSM7.cjs.map → chunk-J3UAXGNP.cjs.map} +1 -1
  45. package/dist/{chunk-WC25H5VG.js → chunk-JCEUTCFZ.js} +4 -4
  46. package/dist/{chunk-WC25H5VG.js.map → chunk-JCEUTCFZ.js.map} +1 -1
  47. package/dist/{chunk-MOJJ7QF6.cjs → chunk-KOWTQJIX.cjs} +2177 -49
  48. package/dist/chunk-KOWTQJIX.cjs.map +1 -0
  49. package/dist/chunk-L6D2AGTF.js +500 -0
  50. package/dist/chunk-L6D2AGTF.js.map +1 -0
  51. package/dist/{chunk-VHY6R2PI.cjs → chunk-LRPAX5AG.cjs} +32 -32
  52. package/dist/{chunk-VHY6R2PI.cjs.map → chunk-LRPAX5AG.cjs.map} +1 -1
  53. package/dist/{chunk-UCLK6LTB.js → chunk-MBWBHKUE.js} +28 -3
  54. package/dist/chunk-MBWBHKUE.js.map +1 -0
  55. package/dist/{chunk-BOVDJSMK.cjs → chunk-NHDZQPDE.cjs} +26 -26
  56. package/dist/{chunk-BOVDJSMK.cjs.map → chunk-NHDZQPDE.cjs.map} +1 -1
  57. package/dist/{chunk-HNJBQR5U.cjs → chunk-OBPTMV5W.cjs} +5 -5
  58. package/dist/{chunk-HNJBQR5U.cjs.map → chunk-OBPTMV5W.cjs.map} +1 -1
  59. package/dist/{chunk-JMW5AHLC.js → chunk-QTXPAGNX.js} +9 -9
  60. package/dist/{chunk-JMW5AHLC.js.map → chunk-QTXPAGNX.js.map} +1 -1
  61. package/dist/{chunk-WVJ4LQVB.js → chunk-UANSP3OK.js} +3 -3
  62. package/dist/{chunk-WVJ4LQVB.js.map → chunk-UANSP3OK.js.map} +1 -1
  63. package/dist/{chunk-DAMWXGKD.js → chunk-UTSFTWFC.js} +3 -3
  64. package/dist/{chunk-DAMWXGKD.js.map → chunk-UTSFTWFC.js.map} +1 -1
  65. package/dist/chunk-WTURYJEA.cjs +504 -0
  66. package/dist/chunk-WTURYJEA.cjs.map +1 -0
  67. package/dist/{chunk-LDARLWS3.js → chunk-YR7CTWY6.js} +3 -3
  68. package/dist/{chunk-LDARLWS3.js.map → chunk-YR7CTWY6.js.map} +1 -1
  69. package/dist/{contract-addresses-RABD77VP.cjs → contract-addresses-6K6IB5OB.cjs} +13 -13
  70. package/dist/{contract-addresses-RABD77VP.cjs.map → contract-addresses-6K6IB5OB.cjs.map} +1 -1
  71. package/dist/{contract-addresses-TVXSRQ7I.js → contract-addresses-CHZ7PK5H.js} +3 -3
  72. package/dist/{contract-addresses-TVXSRQ7I.js.map → contract-addresses-CHZ7PK5H.js.map} +1 -1
  73. package/dist/core.cjs +285 -261
  74. package/dist/core.d.cts +6 -175
  75. package/dist/core.d.ts +6 -175
  76. package/dist/core.js +2 -2
  77. package/dist/dapp.cjs +6 -6
  78. package/dist/dapp.js +3 -3
  79. package/dist/email.cjs +91 -0
  80. package/dist/email.cjs.map +1 -0
  81. package/dist/email.d.cts +115 -0
  82. package/dist/email.d.ts +115 -0
  83. package/dist/email.js +88 -0
  84. package/dist/email.js.map +1 -0
  85. package/dist/enduser.cjs +7 -7
  86. package/dist/enduser.js +4 -4
  87. package/dist/identity.cjs +6 -6
  88. package/dist/identity.js +3 -3
  89. package/dist/index.cjs +406 -374
  90. package/dist/index.d.cts +3 -2
  91. package/dist/index.d.ts +3 -2
  92. package/dist/index.js +17 -17
  93. package/dist/kms.cjs +111 -103
  94. package/dist/kms.d.cts +199 -19
  95. package/dist/kms.d.ts +199 -19
  96. package/dist/kms.js +3 -3
  97. package/dist/operator.cjs +7 -7
  98. package/dist/operator.js +3 -3
  99. package/dist/paymaster.cjs +16 -16
  100. package/dist/paymaster.js +3 -3
  101. package/dist/{src-N72HAQXS.cjs → src-DNURNUIA.cjs} +287 -263
  102. package/dist/src-DNURNUIA.cjs.map +1 -0
  103. package/dist/{src-72GWEAPA.cjs → src-DZDH3BSU.cjs} +18 -18
  104. package/dist/src-DZDH3BSU.cjs.map +1 -0
  105. package/dist/{src-UNS5B7FX.js → src-EVM7OESP.js} +5 -5
  106. package/dist/src-EVM7OESP.js.map +1 -0
  107. package/dist/src-FY3KAPPC.js +5 -0
  108. package/dist/src-FY3KAPPC.js.map +1 -0
  109. package/dist/tokens.cjs +12 -4
  110. package/dist/tokens.d.cts +133 -1
  111. package/dist/tokens.d.ts +133 -1
  112. package/dist/tokens.js +3 -3
  113. package/dist/x402.cjs +26 -26
  114. package/dist/x402.js +3 -3
  115. package/package.json +17 -2
  116. package/dist/UserClient-KYDCMAIU.js +0 -6
  117. package/dist/UserClient-S6LS3CB6.cjs +0 -15
  118. package/dist/chunk-2UC7UPHV.js.map +0 -1
  119. package/dist/chunk-7RVONA2R.js +0 -226
  120. package/dist/chunk-7RVONA2R.js.map +0 -1
  121. package/dist/chunk-BYVG7MO7.js.map +0 -1
  122. package/dist/chunk-GDH4DSVM.cjs +0 -228
  123. package/dist/chunk-GDH4DSVM.cjs.map +0 -1
  124. package/dist/chunk-MOJJ7QF6.cjs.map +0 -1
  125. package/dist/chunk-MXJEULSE.cjs.map +0 -1
  126. package/dist/chunk-UCLK6LTB.js.map +0 -1
  127. package/dist/chunk-VEAYV52I.cjs.map +0 -1
  128. package/dist/src-5URXSFKD.js +0 -5
  129. package/dist/src-5URXSFKD.js.map +0 -1
  130. package/dist/src-72GWEAPA.cjs.map +0 -1
  131. package/dist/src-N72HAQXS.cjs.map +0 -1
  132. package/dist/src-UNS5B7FX.js.map +0 -1
package/dist/core.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Address, Chain, Hex, Account, Hash, BlockNumber, BlockTag, PublicClient as PublicClient$1, WalletClient, CustomTransportConfig } from 'viem';
2
+ export { C as CANONICAL_ADDRESSES, a as CanonicalAddresses, b as LAUNCH_SALE_ADDRESSES, L as LaunchSaleAddresses, S as SupportedChainId, d as describeSupportedChains, c as getCanonicalAddresses, g as getLaunchSaleAddresses, i as isSupportedChainId, l as listSupportedChainIds } from './addresses-D12T3kLs.cjs';
2
3
  import { P as PublicClient } from './doc-types-471vSmPO.cjs';
3
4
  export { W as WalletClient } from './doc-types-471vSmPO.cjs';
4
5
  export { a as BaseClient, B as BusinessResult, C as ClientConfig, T as TransactionOptions } from './BaseClient-CkBhQ1ou.cjs';
@@ -146,180 +147,6 @@ declare const ALL_ADDRESSES: {
146
147
  readonly agentReputationRegistry: `0x${string}`;
147
148
  };
148
149
 
149
- /**
150
- * Canonical Contract Addresses for Supported Networks
151
- * These are hardcoded as defaults for NPM distribution.
152
- *
153
- * SINGLE SOURCE OF TRUTH for SDK contract addresses (Beta3.1 P2.8).
154
- * The root `config.{network}.json` files are dev/deploy-time overrides and MUST
155
- * agree with this table for any network that has a chainId entry here. The
156
- * `scripts/check-address-consistency.ts` drift check (CI: `pnpm run check:addresses`)
157
- * enforces that. NOTE: `@aastar/shared-config` is a separate external repo (vendored
158
- * as git submodules under ext/ and lib/), NOT a workspace package and NOT the SDK's
159
- * source of truth — do not treat it as canonical here.
160
- */
161
-
162
- declare const CANONICAL_ADDRESSES: {
163
- readonly 10: {
164
- readonly registry: "0x997686219F31405503D32728B1f094F115EF24e7";
165
- readonly gToken: "0x8d6Fe002dDacCcFBD377F684EC1825f2E1ab7ef6";
166
- readonly staking: "0x7A1216C2d814D2389698C64eD23AA1aA9Eb6343E";
167
- readonly sbt: "0x28eBFc5fc03B1d7648254AbF1C7B39DbFdef1a94";
168
- readonly reputationSystem: "0xA9560898dC0eE4F9Ed3F1db17dbf74dE65e925c2";
169
- readonly superPaymaster: "0xA2c9A6e95f19f5D2a364CBCbB5f0b32B1B4d140E";
170
- readonly paymasterFactory: "0x58A7F6E44a57028A255794119F8b37124c9a7eB8";
171
- readonly paymasterV4: "0x67a70a578E142b950987081e7016906ae4F56Df4";
172
- readonly paymasterV4Impl: "0xc4dd13F7825409EEC13FBCBdD9D8f6d618207cca";
173
- readonly xPNTsFactory: "0x864971a26384d9DCC7115f0bBC428e2623F28b6e";
174
- readonly blsAggregator: "0x1C305372ecc5a36CBef1FA371392234bCD55eB19";
175
- readonly blsValidator: "0xA88ADec5A8dc422B57488272d5aD5913d728942A";
176
- readonly dvtValidator: "0x31Ede6454a56293f7cf2323CA5d5F9a6230558Fb";
177
- readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
178
- readonly aPNTs: "0x0B41C78081B5A141eb4C3C7E7FD8E58A7Bde553B";
179
- readonly priceFeed: "0x13e3Ee699D1909E989722E753853AE30b17e08c5";
180
- readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
181
- readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
182
- readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
183
- readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
184
- readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
185
- readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
186
- readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
187
- readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
188
- readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
189
- readonly forceExitModule: "0x0000000000000000000000000000000000000000";
190
- readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
191
- readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
192
- readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
193
- readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
194
- readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
195
- readonly agentRegistry: "0x0000000000000000000000000000000000000000";
196
- readonly policyRegistry: "0x0000000000000000000000000000000000000000";
197
- readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
198
- readonly timelockController: "0x0000000000000000000000000000000000000000";
199
- readonly pnts: "0x0000000000000000000000000000000000000000";
200
- };
201
- readonly 11155111: {
202
- readonly registry: "0x3F920B25f8b65988359C372F66F036E48adFc556";
203
- readonly gToken: "0x20a051502a7AE6e40cfFd6EBe59057538E698984";
204
- readonly staking: "0x3B363598746Ea57314d4869B160940948c569D48";
205
- readonly sbt: "0x072A0D12f4212B6baD7c6d0A633eaffbDE9105bF";
206
- readonly reputationSystem: "0x7fEd690E1663755e24a1C9d6164336809d68a578";
207
- readonly superPaymaster: "0x030025f40d509b1a99547bAEb3795bD27F7182b7";
208
- readonly paymasterFactory: "0x0Aa06EA5295eeD4D48c93c594Db1CBf3626971A5";
209
- readonly paymasterV4: "0x1f0D4eF151a79948070D387BaC43b1321F0c41e3";
210
- readonly paymasterV4Impl: "0x59DCA5861aaDA602fE1BFbfcc36DFAc36C58623d";
211
- readonly xPNTsFactory: "0xCec3655525a112882E74Fb7C26AcB267a07724cb";
212
- readonly blsAggregator: "0x15387e161c1b3dAe7c66Fbd5c1F32837B58B2e79";
213
- readonly blsValidator: "0x0A71C5a32b8CBC517523D2C88b539Ab22AeF0654";
214
- readonly dvtValidator: "0x19BA9829C784E4A41b68960b9c0bA55f83718997";
215
- readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
216
- readonly aPNTs: "0x9e66B457E0ABb1F139FD8A596d00f784eBA2873b";
217
- readonly priceFeed: "0x694AA1769357215DE4FAC081bf1f309aDC325306";
218
- readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
219
- readonly microPaymentChannel: "0x405851A141Cde827E33247d4D4089Af2814c2FF5";
220
- readonly agentIdentityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e";
221
- readonly agentReputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713";
222
- readonly agentValidationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
223
- readonly aaStarBLSAlgorithm: "0xAF525A161CB17e0A1b6254ef0B8d8473bdA05174";
224
- readonly aaStarValidator: "0xfcDfd17a373E037c3F9C8ffE2c781915E7Ae6e11";
225
- readonly aaStarBLSAggregator: "0x35775df9a4f4dB42Ea0C46118a12dDd0cEc70609";
226
- readonly sessionKeyValidator: "0x6810CfB7c72D16e044a17694fAa8076e517264D0";
227
- readonly forceExitModule: "0x3fDe77868b74a7979A40a2293a1CD265fbe66EEc";
228
- readonly airAccountDelegate: "0xd2735E54C5f5f2BF523b8a9ddd0E183624c3f2c0";
229
- readonly calldataParserRegistry: "0x7dEea4544446826601014bD94d0F6432A67496F5";
230
- readonly airAccountFactoryV7: "0x99C9300d52EDD9f4B7135DEd1811fBa6FFa1DDC6";
231
- readonly airAccountV7Impl: "0xd51db7eB20FF99c8588281CBe1785681Bb17D473";
232
- readonly airAccountExtension: "0x5529f50811814E0a4966cFC21200DCeF9C3FCb5B";
233
- readonly agentRegistry: "0xbcE1163817EEBA2E07d39424427B10937bF1D121";
234
- readonly policyRegistry: "0x8c2488d46d5447418558c38AA6441720df656094";
235
- readonly x402Facilitator: "0x326Fc3413c8A0185b0179B971C69813B6dFD971B";
236
- readonly timelockController: "0xB734df3c0A1809bc06708512363D368Ac51dF1A2";
237
- readonly pnts: "0xC687f8a115D308ECD39658a8EE33bC3c8F75EE31";
238
- };
239
- readonly 11155420: {
240
- readonly registry: "0xcf6860Ab57de8669756997e414D9c52B6e301972";
241
- readonly gToken: "0xC341c88453372021d0221834307613c2e99fE718";
242
- readonly staking: "0x5f57B931C849e8E255F22755506eB2255aB22a7C";
243
- readonly sbt: "0x2c3Ca1553dC1B8870381E8E56C7b3e3A3ae162f0";
244
- readonly reputationSystem: "0x891EC0f84D9275839B8dAf74e87B23F2DBd7f9c9";
245
- readonly superPaymaster: "0x9eC1FE8134A1C05aD34ba2E4e8758dAe0a009B94";
246
- readonly paymasterFactory: "0x1e3b9d12eAc27867a523d0537902441B0E7D98d8";
247
- readonly paymasterV4: "0xf250416C940605a1D423ccd059668219cf7D80ea";
248
- readonly paymasterV4Impl: "0x906123080207F250B1C9F299991512Cb31f35b2f";
249
- readonly xPNTsFactory: "0x7792a49C9E91e0E9B631B27D885d15e971B7482A";
250
- readonly blsAggregator: "0x6e06b17b1a4D2D973F7E3e026e24b4393315736c";
251
- readonly blsValidator: "0x260fa905CcE1f5b29Afe9d627c01fAAE4A66A7F5";
252
- readonly dvtValidator: "0x0087cA806109E150438116cAA414580BB5fa9195";
253
- readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
254
- readonly aPNTs: "0x3BBcA92Ad828b3dD619c980Ba09f929b9d2BC440";
255
- readonly priceFeed: "0x61Ec26aA57019C486B10502285c5A3D4A4750AD7";
256
- readonly simpleAccountFactory: "0x91E6060613810449d098b0b5EC8b51A0fe8C8985";
257
- readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
258
- readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
259
- readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
260
- readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
261
- readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
262
- readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
263
- readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
264
- readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
265
- readonly forceExitModule: "0x0000000000000000000000000000000000000000";
266
- readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
267
- readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
268
- readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
269
- readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
270
- readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
271
- readonly agentRegistry: "0x0000000000000000000000000000000000000000";
272
- readonly policyRegistry: "0x0000000000000000000000000000000000000000";
273
- readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
274
- readonly timelockController: "0x0000000000000000000000000000000000000000";
275
- readonly pnts: "0x0000000000000000000000000000000000000000";
276
- };
277
- };
278
- type CanonicalAddresses = (typeof CANONICAL_ADDRESSES)[keyof typeof CANONICAL_ADDRESSES];
279
- type SupportedChainId = keyof typeof CANONICAL_ADDRESSES;
280
- /**
281
- * Chain IDs that have a canonical address book in {@link CANONICAL_ADDRESSES}.
282
- *
283
- * @example
284
- * ```ts
285
- * listSupportedChainIds(); // [10, 11155111, 11155420]
286
- * ```
287
- */
288
- declare function listSupportedChainIds(): number[];
289
- /** True if {@link CANONICAL_ADDRESSES} has an entry for `chainId`. */
290
- declare function isSupportedChainId(chainId: number): chainId is SupportedChainId;
291
- /**
292
- * Resolve the canonical contract address book for a chain, keyed by `chainId`,
293
- * normalized to the key names the role-based client factories expect.
294
- *
295
- * The canonical table uses `staking` / `sbt`; the historical client factories
296
- * (and many consumers) reference `gTokenStaking` / `mySBT`. This helper returns
297
- * the canonical set plus those aliases so a single object satisfies both, which
298
- * is what makes `createEndUserClient({ chain })` resolve addresses automatically
299
- * — no manual `addresses` needed for any supported chain.
300
- *
301
- * @param chainId - EVM chain id (e.g. 10 = Optimism, 11155111 = Sepolia).
302
- * @returns The normalized address record, or `undefined` if the chain has no
303
- * canonical entry (caller must then pass `addresses` explicitly).
304
- *
305
- * @example
306
- * ```ts
307
- * import { optimism } from 'viem/chains';
308
- * const addrs = getCanonicalAddresses(optimism.id); // chainId 10
309
- * addrs?.registry; addrs?.mySBT; // alias of `sbt`
310
- * ```
311
- */
312
- declare function getCanonicalAddresses(chainId: number): (CanonicalAddresses & {
313
- gTokenStaking: Address;
314
- mySBT: Address;
315
- }) | undefined;
316
- /**
317
- * A friendly, human-readable list of the supported chains for error messages —
318
- * e.g. `"OP Mainnet (10), Sepolia (11155111), OP Sepolia (11155420)"`. Names come
319
- * from viem/chains so callers recognize them by the same label viem uses.
320
- */
321
- declare function describeSupportedChains(): string;
322
-
323
150
  /**
324
151
  * AAstar Smart Contract Addresses
325
152
  *
@@ -3207,6 +3034,10 @@ declare const AirAccountExtensionArtifact: {
3207
3034
  anonymous?: undefined;
3208
3035
  })[];
3209
3036
  };
3037
+ declare const ERC20ABI: any;
3038
+ declare const SaleContractV2ABI: any;
3039
+ declare const APNTsSaleContractABI: any;
3040
+ declare const BuyHelperABI: any;
3210
3041
 
3211
3042
  /**
3212
3043
  * Creates a standard AAStar public client for any given chain.
@@ -6967,4 +6798,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
6967
6798
  verified: boolean;
6968
6799
  }>;
6969
6800
 
6970
- export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CanonicalAddresses, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_DVT_NODES, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTNode, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, ENTRY_POINT_ADDRESS, type ERC20Actions, type EncodeWebAuthnAssertionParams, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, type GuardianOpLabel, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, InitConfig, LINKS, MAX_GUARDIAN_SLOT, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, RECOVERY_NONCE_SLOT, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, type ScalarLike, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, type SignP256GuardianAssertionParams, type SignedP256GuardianAssertion, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedChainId, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TIER_LIMIT_NONCE_SLOT, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, WEBAUTHN_GET_CHALLENGE_PREFIX, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, describeSupportedChains, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getCanonicalAddresses, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isSupportedChainId, isV2Contract, listSupportedChainIds, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
6801
+ export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, APNTsSaleContractABI, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse, BuyHelperABI, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_DVT_NODES, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTNode, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, ENTRY_POINT_ADDRESS, ERC20ABI, type ERC20Actions, type EncodeWebAuthnAssertionParams, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, type GuardianOpLabel, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, InitConfig, LINKS, MAX_GUARDIAN_SLOT, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, RECOVERY_NONCE_SLOT, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, SaleContractV2ABI, type ScalarLike, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, type SignP256GuardianAssertionParams, type SignedP256GuardianAssertion, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TIER_LIMIT_NONCE_SLOT, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, WEBAUTHN_GET_CHALLENGE_PREFIX, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
package/dist/core.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Address, Chain, Hex, Account, Hash, BlockNumber, BlockTag, PublicClient as PublicClient$1, WalletClient, CustomTransportConfig } from 'viem';
2
+ export { C as CANONICAL_ADDRESSES, a as CanonicalAddresses, b as LAUNCH_SALE_ADDRESSES, L as LaunchSaleAddresses, S as SupportedChainId, d as describeSupportedChains, c as getCanonicalAddresses, g as getLaunchSaleAddresses, i as isSupportedChainId, l as listSupportedChainIds } from './addresses-D12T3kLs.js';
2
3
  import { P as PublicClient } from './doc-types-471vSmPO.js';
3
4
  export { W as WalletClient } from './doc-types-471vSmPO.js';
4
5
  export { a as BaseClient, B as BusinessResult, C as ClientConfig, T as TransactionOptions } from './BaseClient-BjbYP0cf.js';
@@ -146,180 +147,6 @@ declare const ALL_ADDRESSES: {
146
147
  readonly agentReputationRegistry: `0x${string}`;
147
148
  };
148
149
 
149
- /**
150
- * Canonical Contract Addresses for Supported Networks
151
- * These are hardcoded as defaults for NPM distribution.
152
- *
153
- * SINGLE SOURCE OF TRUTH for SDK contract addresses (Beta3.1 P2.8).
154
- * The root `config.{network}.json` files are dev/deploy-time overrides and MUST
155
- * agree with this table for any network that has a chainId entry here. The
156
- * `scripts/check-address-consistency.ts` drift check (CI: `pnpm run check:addresses`)
157
- * enforces that. NOTE: `@aastar/shared-config` is a separate external repo (vendored
158
- * as git submodules under ext/ and lib/), NOT a workspace package and NOT the SDK's
159
- * source of truth — do not treat it as canonical here.
160
- */
161
-
162
- declare const CANONICAL_ADDRESSES: {
163
- readonly 10: {
164
- readonly registry: "0x997686219F31405503D32728B1f094F115EF24e7";
165
- readonly gToken: "0x8d6Fe002dDacCcFBD377F684EC1825f2E1ab7ef6";
166
- readonly staking: "0x7A1216C2d814D2389698C64eD23AA1aA9Eb6343E";
167
- readonly sbt: "0x28eBFc5fc03B1d7648254AbF1C7B39DbFdef1a94";
168
- readonly reputationSystem: "0xA9560898dC0eE4F9Ed3F1db17dbf74dE65e925c2";
169
- readonly superPaymaster: "0xA2c9A6e95f19f5D2a364CBCbB5f0b32B1B4d140E";
170
- readonly paymasterFactory: "0x58A7F6E44a57028A255794119F8b37124c9a7eB8";
171
- readonly paymasterV4: "0x67a70a578E142b950987081e7016906ae4F56Df4";
172
- readonly paymasterV4Impl: "0xc4dd13F7825409EEC13FBCBdD9D8f6d618207cca";
173
- readonly xPNTsFactory: "0x864971a26384d9DCC7115f0bBC428e2623F28b6e";
174
- readonly blsAggregator: "0x1C305372ecc5a36CBef1FA371392234bCD55eB19";
175
- readonly blsValidator: "0xA88ADec5A8dc422B57488272d5aD5913d728942A";
176
- readonly dvtValidator: "0x31Ede6454a56293f7cf2323CA5d5F9a6230558Fb";
177
- readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
178
- readonly aPNTs: "0x0B41C78081B5A141eb4C3C7E7FD8E58A7Bde553B";
179
- readonly priceFeed: "0x13e3Ee699D1909E989722E753853AE30b17e08c5";
180
- readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
181
- readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
182
- readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
183
- readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
184
- readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
185
- readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
186
- readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
187
- readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
188
- readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
189
- readonly forceExitModule: "0x0000000000000000000000000000000000000000";
190
- readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
191
- readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
192
- readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
193
- readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
194
- readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
195
- readonly agentRegistry: "0x0000000000000000000000000000000000000000";
196
- readonly policyRegistry: "0x0000000000000000000000000000000000000000";
197
- readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
198
- readonly timelockController: "0x0000000000000000000000000000000000000000";
199
- readonly pnts: "0x0000000000000000000000000000000000000000";
200
- };
201
- readonly 11155111: {
202
- readonly registry: "0x3F920B25f8b65988359C372F66F036E48adFc556";
203
- readonly gToken: "0x20a051502a7AE6e40cfFd6EBe59057538E698984";
204
- readonly staking: "0x3B363598746Ea57314d4869B160940948c569D48";
205
- readonly sbt: "0x072A0D12f4212B6baD7c6d0A633eaffbDE9105bF";
206
- readonly reputationSystem: "0x7fEd690E1663755e24a1C9d6164336809d68a578";
207
- readonly superPaymaster: "0x030025f40d509b1a99547bAEb3795bD27F7182b7";
208
- readonly paymasterFactory: "0x0Aa06EA5295eeD4D48c93c594Db1CBf3626971A5";
209
- readonly paymasterV4: "0x1f0D4eF151a79948070D387BaC43b1321F0c41e3";
210
- readonly paymasterV4Impl: "0x59DCA5861aaDA602fE1BFbfcc36DFAc36C58623d";
211
- readonly xPNTsFactory: "0xCec3655525a112882E74Fb7C26AcB267a07724cb";
212
- readonly blsAggregator: "0x15387e161c1b3dAe7c66Fbd5c1F32837B58B2e79";
213
- readonly blsValidator: "0x0A71C5a32b8CBC517523D2C88b539Ab22AeF0654";
214
- readonly dvtValidator: "0x19BA9829C784E4A41b68960b9c0bA55f83718997";
215
- readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
216
- readonly aPNTs: "0x9e66B457E0ABb1F139FD8A596d00f784eBA2873b";
217
- readonly priceFeed: "0x694AA1769357215DE4FAC081bf1f309aDC325306";
218
- readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
219
- readonly microPaymentChannel: "0x405851A141Cde827E33247d4D4089Af2814c2FF5";
220
- readonly agentIdentityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e";
221
- readonly agentReputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713";
222
- readonly agentValidationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
223
- readonly aaStarBLSAlgorithm: "0xAF525A161CB17e0A1b6254ef0B8d8473bdA05174";
224
- readonly aaStarValidator: "0xfcDfd17a373E037c3F9C8ffE2c781915E7Ae6e11";
225
- readonly aaStarBLSAggregator: "0x35775df9a4f4dB42Ea0C46118a12dDd0cEc70609";
226
- readonly sessionKeyValidator: "0x6810CfB7c72D16e044a17694fAa8076e517264D0";
227
- readonly forceExitModule: "0x3fDe77868b74a7979A40a2293a1CD265fbe66EEc";
228
- readonly airAccountDelegate: "0xd2735E54C5f5f2BF523b8a9ddd0E183624c3f2c0";
229
- readonly calldataParserRegistry: "0x7dEea4544446826601014bD94d0F6432A67496F5";
230
- readonly airAccountFactoryV7: "0x99C9300d52EDD9f4B7135DEd1811fBa6FFa1DDC6";
231
- readonly airAccountV7Impl: "0xd51db7eB20FF99c8588281CBe1785681Bb17D473";
232
- readonly airAccountExtension: "0x5529f50811814E0a4966cFC21200DCeF9C3FCb5B";
233
- readonly agentRegistry: "0xbcE1163817EEBA2E07d39424427B10937bF1D121";
234
- readonly policyRegistry: "0x8c2488d46d5447418558c38AA6441720df656094";
235
- readonly x402Facilitator: "0x326Fc3413c8A0185b0179B971C69813B6dFD971B";
236
- readonly timelockController: "0xB734df3c0A1809bc06708512363D368Ac51dF1A2";
237
- readonly pnts: "0xC687f8a115D308ECD39658a8EE33bC3c8F75EE31";
238
- };
239
- readonly 11155420: {
240
- readonly registry: "0xcf6860Ab57de8669756997e414D9c52B6e301972";
241
- readonly gToken: "0xC341c88453372021d0221834307613c2e99fE718";
242
- readonly staking: "0x5f57B931C849e8E255F22755506eB2255aB22a7C";
243
- readonly sbt: "0x2c3Ca1553dC1B8870381E8E56C7b3e3A3ae162f0";
244
- readonly reputationSystem: "0x891EC0f84D9275839B8dAf74e87B23F2DBd7f9c9";
245
- readonly superPaymaster: "0x9eC1FE8134A1C05aD34ba2E4e8758dAe0a009B94";
246
- readonly paymasterFactory: "0x1e3b9d12eAc27867a523d0537902441B0E7D98d8";
247
- readonly paymasterV4: "0xf250416C940605a1D423ccd059668219cf7D80ea";
248
- readonly paymasterV4Impl: "0x906123080207F250B1C9F299991512Cb31f35b2f";
249
- readonly xPNTsFactory: "0x7792a49C9E91e0E9B631B27D885d15e971B7482A";
250
- readonly blsAggregator: "0x6e06b17b1a4D2D973F7E3e026e24b4393315736c";
251
- readonly blsValidator: "0x260fa905CcE1f5b29Afe9d627c01fAAE4A66A7F5";
252
- readonly dvtValidator: "0x0087cA806109E150438116cAA414580BB5fa9195";
253
- readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
254
- readonly aPNTs: "0x3BBcA92Ad828b3dD619c980Ba09f929b9d2BC440";
255
- readonly priceFeed: "0x61Ec26aA57019C486B10502285c5A3D4A4750AD7";
256
- readonly simpleAccountFactory: "0x91E6060613810449d098b0b5EC8b51A0fe8C8985";
257
- readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
258
- readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
259
- readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
260
- readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
261
- readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
262
- readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
263
- readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
264
- readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
265
- readonly forceExitModule: "0x0000000000000000000000000000000000000000";
266
- readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
267
- readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
268
- readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
269
- readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
270
- readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
271
- readonly agentRegistry: "0x0000000000000000000000000000000000000000";
272
- readonly policyRegistry: "0x0000000000000000000000000000000000000000";
273
- readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
274
- readonly timelockController: "0x0000000000000000000000000000000000000000";
275
- readonly pnts: "0x0000000000000000000000000000000000000000";
276
- };
277
- };
278
- type CanonicalAddresses = (typeof CANONICAL_ADDRESSES)[keyof typeof CANONICAL_ADDRESSES];
279
- type SupportedChainId = keyof typeof CANONICAL_ADDRESSES;
280
- /**
281
- * Chain IDs that have a canonical address book in {@link CANONICAL_ADDRESSES}.
282
- *
283
- * @example
284
- * ```ts
285
- * listSupportedChainIds(); // [10, 11155111, 11155420]
286
- * ```
287
- */
288
- declare function listSupportedChainIds(): number[];
289
- /** True if {@link CANONICAL_ADDRESSES} has an entry for `chainId`. */
290
- declare function isSupportedChainId(chainId: number): chainId is SupportedChainId;
291
- /**
292
- * Resolve the canonical contract address book for a chain, keyed by `chainId`,
293
- * normalized to the key names the role-based client factories expect.
294
- *
295
- * The canonical table uses `staking` / `sbt`; the historical client factories
296
- * (and many consumers) reference `gTokenStaking` / `mySBT`. This helper returns
297
- * the canonical set plus those aliases so a single object satisfies both, which
298
- * is what makes `createEndUserClient({ chain })` resolve addresses automatically
299
- * — no manual `addresses` needed for any supported chain.
300
- *
301
- * @param chainId - EVM chain id (e.g. 10 = Optimism, 11155111 = Sepolia).
302
- * @returns The normalized address record, or `undefined` if the chain has no
303
- * canonical entry (caller must then pass `addresses` explicitly).
304
- *
305
- * @example
306
- * ```ts
307
- * import { optimism } from 'viem/chains';
308
- * const addrs = getCanonicalAddresses(optimism.id); // chainId 10
309
- * addrs?.registry; addrs?.mySBT; // alias of `sbt`
310
- * ```
311
- */
312
- declare function getCanonicalAddresses(chainId: number): (CanonicalAddresses & {
313
- gTokenStaking: Address;
314
- mySBT: Address;
315
- }) | undefined;
316
- /**
317
- * A friendly, human-readable list of the supported chains for error messages —
318
- * e.g. `"OP Mainnet (10), Sepolia (11155111), OP Sepolia (11155420)"`. Names come
319
- * from viem/chains so callers recognize them by the same label viem uses.
320
- */
321
- declare function describeSupportedChains(): string;
322
-
323
150
  /**
324
151
  * AAstar Smart Contract Addresses
325
152
  *
@@ -3207,6 +3034,10 @@ declare const AirAccountExtensionArtifact: {
3207
3034
  anonymous?: undefined;
3208
3035
  })[];
3209
3036
  };
3037
+ declare const ERC20ABI: any;
3038
+ declare const SaleContractV2ABI: any;
3039
+ declare const APNTsSaleContractABI: any;
3040
+ declare const BuyHelperABI: any;
3210
3041
 
3211
3042
  /**
3212
3043
  * Creates a standard AAStar public client for any given chain.
@@ -6967,4 +6798,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
6967
6798
  verified: boolean;
6968
6799
  }>;
6969
6800
 
6970
- export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CanonicalAddresses, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_DVT_NODES, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTNode, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, ENTRY_POINT_ADDRESS, type ERC20Actions, type EncodeWebAuthnAssertionParams, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, type GuardianOpLabel, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, InitConfig, LINKS, MAX_GUARDIAN_SLOT, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, RECOVERY_NONCE_SLOT, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, type ScalarLike, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, type SignP256GuardianAssertionParams, type SignedP256GuardianAssertion, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedChainId, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TIER_LIMIT_NONCE_SLOT, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, WEBAUTHN_GET_CHALLENGE_PREFIX, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, describeSupportedChains, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getCanonicalAddresses, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isSupportedChainId, isV2Contract, listSupportedChainIds, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
6801
+ export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, APNTsSaleContractABI, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse, BuyHelperABI, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_DVT_NODES, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTNode, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, ENTRY_POINT_ADDRESS, ERC20ABI, type ERC20Actions, type EncodeWebAuthnAssertionParams, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, type GuardianOpLabel, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, InitConfig, LINKS, MAX_GUARDIAN_SLOT, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, RECOVERY_NONCE_SLOT, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, SaleContractV2ABI, type ScalarLike, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, type SignP256GuardianAssertionParams, type SignedP256GuardianAssertion, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TIER_LIMIT_NONCE_SLOT, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, WEBAUTHN_GET_CHALLENGE_PREFIX, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALG_BLS, ALL_ROLES, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DEFAULT_DVT_NODES, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, LINKS, MAX_GUARDIAN_SLOT, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, RECOVERY_NONCE_SLOT, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, RegistryArtifact, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, RolePermissionLevel, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, TIER_LIMIT_NONCE_SLOT, V2_SUMMARY, WEBAUTHN_GET_CHALLENGE_PREFIX, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, channelActions, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './chunk-BYVG7MO7.js';
2
- export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-UCLK6LTB.js';
1
+ export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALG_BLS, ALL_ROLES, APNTsSaleContractABI, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, BuyHelperABI, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DEFAULT_DVT_NODES, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, ERC20ABI, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, LINKS, MAX_GUARDIAN_SLOT, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, RECOVERY_NONCE_SLOT, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, RegistryArtifact, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, RolePermissionLevel, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SaleContractV2ABI, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, TIER_LIMIT_NONCE_SLOT, V2_SUMMARY, WEBAUTHN_GET_CHALLENGE_PREFIX, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, channelActions, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './chunk-6DZCDV4Q.js';
2
+ export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, LAUNCH_SALE_ADDRESSES, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, getLaunchSaleAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-MBWBHKUE.js';
3
3
  import './chunk-PZ5AY32C.js';
4
4
  //# sourceMappingURL=core.js.map
5
5
  //# sourceMappingURL=core.js.map
package/dist/dapp.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkNVYVTCHJ_cjs = require('./chunk-NVYVTCHJ.cjs');
4
- var chunkMOJJ7QF6_cjs = require('./chunk-MOJJ7QF6.cjs');
5
- require('./chunk-MXJEULSE.cjs');
3
+ var chunk7HTUDNH3_cjs = require('./chunk-7HTUDNH3.cjs');
4
+ var chunkKOWTQJIX_cjs = require('./chunk-KOWTQJIX.cjs');
5
+ require('./chunk-G33MXEHU.cjs');
6
6
  require('./chunk-Q7SFCCGT.cjs');
7
7
  var viem = require('viem');
8
8
  var react = require('react');
@@ -32,10 +32,10 @@ function useCreditScore({ chain, rpcUrl, registryAddress, userAddress }) {
32
32
  const fetchCredit = async () => {
33
33
  setLoading(true);
34
34
  try {
35
- const client = chunkMOJJ7QF6_cjs.createAAStarPublicClient(rpcUrl, chain);
35
+ const client = chunkKOWTQJIX_cjs.createAAStarPublicClient(rpcUrl, chain);
36
36
  const limit = await client.readContract({
37
37
  address: registryAddress,
38
- abi: chunkMOJJ7QF6_cjs.RegistryABI,
38
+ abi: chunkKOWTQJIX_cjs.RegistryABI,
39
39
  functionName: "getCreditLimit",
40
40
  args: [userAddress]
41
41
  });
@@ -58,7 +58,7 @@ function useSuperPaymaster(config) {
58
58
  setIsLoading(true);
59
59
  setError(null);
60
60
  try {
61
- const middleware = chunkNVYVTCHJ_cjs.getSuperPaymasterMiddleware(config);
61
+ const middleware = chunk7HTUDNH3_cjs.getSuperPaymasterMiddleware(config);
62
62
  const result = await middleware.sponsorUserOperation({ userOperation: userOp });
63
63
  return result.paymasterAndData;
64
64
  } catch (err) {
package/dist/dapp.js CHANGED
@@ -1,6 +1,6 @@
1
- import { getSuperPaymasterMiddleware } from './chunk-LDARLWS3.js';
2
- import { createAAStarPublicClient, RegistryABI } from './chunk-BYVG7MO7.js';
3
- import './chunk-UCLK6LTB.js';
1
+ import { getSuperPaymasterMiddleware } from './chunk-YR7CTWY6.js';
2
+ import { createAAStarPublicClient, RegistryABI } from './chunk-6DZCDV4Q.js';
3
+ import './chunk-MBWBHKUE.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  import { parseAbi, createPublicClient, http, hashTypedData, hashMessage, hexToBytes, encodeFunctionData } from 'viem';
6
6
  import { useState, useEffect, useCallback } from 'react';
package/dist/email.cjs ADDED
@@ -0,0 +1,91 @@
1
+ 'use strict';
2
+
3
+ require('./chunk-Q7SFCCGT.cjs');
4
+ var resend = require('resend');
5
+
6
+ var BatchSendError = class extends Error {
7
+ constructor(message, failures) {
8
+ super(message);
9
+ this.failures = failures;
10
+ this.name = "BatchSendError";
11
+ }
12
+ };
13
+ function toResendPayload(options) {
14
+ return options;
15
+ }
16
+ var ResendMailer = class _ResendMailer {
17
+ client;
18
+ /** @param apiKey - Resend API key from https://resend.com/api-keys */
19
+ constructor(apiKey) {
20
+ if (!apiKey) {
21
+ throw new Error("Resend API key is required. Get yours at https://resend.com/api-keys");
22
+ }
23
+ this.client = new resend.Resend(apiKey);
24
+ }
25
+ /**
26
+ * Send a single email.
27
+ * @returns `{ id }` — Resend email ID for delivery status queries
28
+ */
29
+ async send(options) {
30
+ const { idempotencyKey, ...emailOptions } = options;
31
+ const { data, error } = await this.client.emails.send(
32
+ toResendPayload(emailOptions),
33
+ idempotencyKey ? { idempotencyKey } : void 0
34
+ );
35
+ if (error) throw new Error(`Failed to send email: ${error.message}`);
36
+ if (!data?.id) throw new Error("Resend returned no email ID");
37
+ return { id: data.id };
38
+ }
39
+ /**
40
+ * Send a batch of emails (max 100 per request).
41
+ * `idempotencyKey` is stripped per item — not supported by the batch endpoint.
42
+ *
43
+ * @throws {BatchSendError} if any item is missing an ID in the response
44
+ * @returns Results in the same order as the input
45
+ */
46
+ async sendBatch(emails) {
47
+ if (emails.length === 0) return [];
48
+ if (emails.length > 100) {
49
+ throw new Error("sendBatch supports at most 100 emails per request");
50
+ }
51
+ const payload = emails.map(({ idempotencyKey: _, ...rest }) => toResendPayload(rest));
52
+ const { data, error } = await this.client.batch.send(payload);
53
+ if (error) throw new Error(`Failed to send batch emails: ${error.message}`);
54
+ const results = data ?? [];
55
+ const failures = [];
56
+ const successes = [];
57
+ results.forEach((item, index) => {
58
+ if (!item?.id) {
59
+ failures.push({ index, reason: "No email ID returned for this item" });
60
+ } else {
61
+ successes.push({ index, id: item.id });
62
+ }
63
+ });
64
+ if (failures.length > 0) {
65
+ throw new BatchSendError(
66
+ `sendBatch: ${failures.length} of ${emails.length} emails failed`,
67
+ failures
68
+ );
69
+ }
70
+ return successes;
71
+ }
72
+ /**
73
+ * Create a ResendMailer from the `RESEND_API_KEY` environment variable.
74
+ * Recommended for server-side and CI usage.
75
+ * @throws if the environment variable is not set
76
+ */
77
+ static fromEnv() {
78
+ const key = process.env.RESEND_API_KEY;
79
+ if (!key) {
80
+ throw new Error(
81
+ 'RESEND_API_KEY environment variable is not set. Pass the key directly: new ResendMailer("re_...")'
82
+ );
83
+ }
84
+ return new _ResendMailer(key);
85
+ }
86
+ };
87
+
88
+ exports.BatchSendError = BatchSendError;
89
+ exports.ResendMailer = ResendMailer;
90
+ //# sourceMappingURL=email.cjs.map
91
+ //# sourceMappingURL=email.cjs.map