@aastar/sdk 0.22.0 → 0.23.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 (107) hide show
  1. package/dist/UserClient-J3JPDIG7.cjs +15 -0
  2. package/dist/{UserClient-AJOGJXOC.cjs.map → UserClient-J3JPDIG7.cjs.map} +1 -1
  3. package/dist/UserClient-XTHQ2AP3.js +6 -0
  4. package/dist/{UserClient-Y65JLJ23.js.map → UserClient-XTHQ2AP3.js.map} +1 -1
  5. package/dist/account.cjs +7 -7
  6. package/dist/account.js +2 -2
  7. package/dist/admin.cjs +3 -3
  8. package/dist/admin.js +2 -2
  9. package/dist/airaccount.cjs +117 -97
  10. package/dist/airaccount.d.cts +2 -1
  11. package/dist/airaccount.d.ts +2 -1
  12. package/dist/airaccount.js +2 -2
  13. package/dist/channel.cjs +6 -6
  14. package/dist/channel.js +2 -2
  15. package/dist/{chunk-VUNNHEND.js → chunk-2DDWYKF2.js} +9 -9
  16. package/dist/{chunk-VUNNHEND.js.map → chunk-2DDWYKF2.js.map} +1 -1
  17. package/dist/{chunk-MG72SGVS.cjs → chunk-2GZMRCQW.cjs} +5 -5
  18. package/dist/{chunk-MG72SGVS.cjs.map → chunk-2GZMRCQW.cjs.map} +1 -1
  19. package/dist/{chunk-T2GF4S3E.js → chunk-2UDF62XV.js} +6 -6
  20. package/dist/{chunk-T2GF4S3E.js.map → chunk-2UDF62XV.js.map} +1 -1
  21. package/dist/{chunk-XTF6MNIK.js → chunk-2WBSYPUY.js} +3 -3
  22. package/dist/{chunk-XTF6MNIK.js.map → chunk-2WBSYPUY.js.map} +1 -1
  23. package/dist/{chunk-2TS6T2WY.js → chunk-5G5SB6CP.js} +3 -3
  24. package/dist/{chunk-2TS6T2WY.js.map → chunk-5G5SB6CP.js.map} +1 -1
  25. package/dist/{chunk-BBZAD5G2.cjs → chunk-6I22EW6V.cjs} +11 -11
  26. package/dist/{chunk-BBZAD5G2.cjs.map → chunk-6I22EW6V.cjs.map} +1 -1
  27. package/dist/{chunk-6ISQM3SF.cjs → chunk-6PJAHZZ2.cjs} +26 -26
  28. package/dist/{chunk-6ISQM3SF.cjs.map → chunk-6PJAHZZ2.cjs.map} +1 -1
  29. package/dist/{chunk-RF3MSLRW.cjs → chunk-CGKPULZX.cjs} +16 -16
  30. package/dist/{chunk-RF3MSLRW.cjs.map → chunk-CGKPULZX.cjs.map} +1 -1
  31. package/dist/{chunk-SNVHOCU6.js → chunk-D23CZFOM.js} +3 -3
  32. package/dist/{chunk-SNVHOCU6.js.map → chunk-D23CZFOM.js.map} +1 -1
  33. package/dist/{chunk-7RNOKMAJ.cjs → chunk-E37CPC2U.cjs} +9 -9
  34. package/dist/{chunk-7RNOKMAJ.cjs.map → chunk-E37CPC2U.cjs.map} +1 -1
  35. package/dist/{chunk-LKSQASFZ.js → chunk-EZC7Q3SG.js} +3 -3
  36. package/dist/{chunk-LKSQASFZ.js.map → chunk-EZC7Q3SG.js.map} +1 -1
  37. package/dist/{chunk-JCK7VAZF.js → chunk-H5EQBNC6.js} +8 -8
  38. package/dist/{chunk-JCK7VAZF.js.map → chunk-H5EQBNC6.js.map} +1 -1
  39. package/dist/{chunk-OVNOSAL3.cjs → chunk-LAZA3JD7.cjs} +182 -6
  40. package/dist/chunk-LAZA3JD7.cjs.map +1 -0
  41. package/dist/{chunk-TS5CXRNI.cjs → chunk-MFBTMF5U.cjs} +3 -3
  42. package/dist/{chunk-TS5CXRNI.cjs.map → chunk-MFBTMF5U.cjs.map} +1 -1
  43. package/dist/{chunk-XZDMKHKG.js → chunk-PFMCPSS4.js} +3 -3
  44. package/dist/{chunk-XZDMKHKG.js.map → chunk-PFMCPSS4.js.map} +1 -1
  45. package/dist/{chunk-7HO4IUHZ.cjs → chunk-PKYWLTIJ.cjs} +32 -32
  46. package/dist/{chunk-7HO4IUHZ.cjs.map → chunk-PKYWLTIJ.cjs.map} +1 -1
  47. package/dist/{chunk-MQMTICTP.js → chunk-SXLWFZFX.js} +3 -3
  48. package/dist/{chunk-MQMTICTP.js.map → chunk-SXLWFZFX.js.map} +1 -1
  49. package/dist/{chunk-UUT246S2.js → chunk-TM2LH4ZE.js} +3 -3
  50. package/dist/{chunk-UUT246S2.js.map → chunk-TM2LH4ZE.js.map} +1 -1
  51. package/dist/{chunk-R3N7L7RE.js → chunk-UMTCWOQV.js} +4 -4
  52. package/dist/{chunk-R3N7L7RE.js.map → chunk-UMTCWOQV.js.map} +1 -1
  53. package/dist/{chunk-DOVGH7HB.cjs → chunk-UQMMEDHO.cjs} +4 -4
  54. package/dist/{chunk-DOVGH7HB.cjs.map → chunk-UQMMEDHO.cjs.map} +1 -1
  55. package/dist/{chunk-FZLBMUPN.cjs → chunk-UULR2KA6.cjs} +5 -5
  56. package/dist/{chunk-FZLBMUPN.cjs.map → chunk-UULR2KA6.cjs.map} +1 -1
  57. package/dist/{chunk-6OWZOTE7.js → chunk-V65JXHM6.js} +178 -7
  58. package/dist/chunk-V65JXHM6.js.map +1 -0
  59. package/dist/{chunk-3OIVYXUG.cjs → chunk-W4ENVPZH.cjs} +6 -6
  60. package/dist/{chunk-3OIVYXUG.cjs.map → chunk-W4ENVPZH.cjs.map} +1 -1
  61. package/dist/{chunk-BLA57KBS.cjs → chunk-XFJSY5LG.cjs} +12 -12
  62. package/dist/{chunk-BLA57KBS.cjs.map → chunk-XFJSY5LG.cjs.map} +1 -1
  63. package/dist/core.cjs +202 -202
  64. package/dist/core.d.cts +3 -516
  65. package/dist/core.d.ts +3 -516
  66. package/dist/core.js +1 -1
  67. package/dist/dapp.cjs +5 -5
  68. package/dist/dapp.js +2 -2
  69. package/dist/enduser.cjs +6 -6
  70. package/dist/enduser.js +3 -3
  71. package/dist/identity.cjs +5 -5
  72. package/dist/identity.js +2 -2
  73. package/dist/index.cjs +303 -303
  74. package/dist/index.d.cts +4 -2
  75. package/dist/index.d.ts +4 -2
  76. package/dist/index.js +15 -15
  77. package/dist/initConfig-D8jgrcDb.d.cts +518 -0
  78. package/dist/initConfig-D8jgrcDb.d.ts +518 -0
  79. package/dist/kms.cjs +117 -97
  80. package/dist/kms.d.cts +183 -3
  81. package/dist/kms.d.ts +183 -3
  82. package/dist/kms.js +2 -2
  83. package/dist/operator.cjs +6 -6
  84. package/dist/operator.js +2 -2
  85. package/dist/paymaster.cjs +15 -15
  86. package/dist/paymaster.js +2 -2
  87. package/dist/{src-SCR3OCME.js → src-2P72LYVT.js} +3 -3
  88. package/dist/src-2P72LYVT.js.map +1 -0
  89. package/dist/{src-UQ4RDCJG.cjs → src-4Q2WFLO2.cjs} +204 -204
  90. package/dist/src-4Q2WFLO2.cjs.map +1 -0
  91. package/dist/{src-WGYHZSLY.cjs → src-HECKBVR2.cjs} +17 -17
  92. package/dist/src-HECKBVR2.cjs.map +1 -0
  93. package/dist/{src-MDGW57S5.js → src-KLP4Q2Y3.js} +4 -4
  94. package/dist/src-KLP4Q2Y3.js.map +1 -0
  95. package/dist/tokens.cjs +3 -3
  96. package/dist/tokens.js +2 -2
  97. package/dist/x402.cjs +25 -25
  98. package/dist/x402.js +2 -2
  99. package/package.json +1 -1
  100. package/dist/UserClient-AJOGJXOC.cjs +0 -15
  101. package/dist/UserClient-Y65JLJ23.js +0 -6
  102. package/dist/chunk-6OWZOTE7.js.map +0 -1
  103. package/dist/chunk-OVNOSAL3.cjs.map +0 -1
  104. package/dist/src-MDGW57S5.js.map +0 -1
  105. package/dist/src-SCR3OCME.js.map +0 -1
  106. package/dist/src-UQ4RDCJG.cjs.map +0 -1
  107. package/dist/src-WGYHZSLY.cjs.map +0 -1
package/dist/core.d.ts CHANGED
@@ -2,6 +2,8 @@ import { Address, Chain, Hex, Account, Hash, BlockNumber, BlockTag, PublicClient
2
2
  import { P as PublicClient } from './doc-types-471vSmPO.js';
3
3
  export { W as WalletClient } from './doc-types-471vSmPO.js';
4
4
  export { a as BaseClient, B as BusinessResult, C as ClientConfig, T as TransactionOptions } from './BaseClient-BjbYP0cf.js';
5
+ import { I as InitConfig } from './initConfig-D8jgrcDb.js';
6
+ export { A as AirAccountActions, B as BuildInitConfigParams, D as DryRunValidationResult, G as GuardianSpec, O as OperatorConfig, d as PackedUserOperation, P as PendingModuleInstall, R as ResolvedAPNTsToken, a as SlashRecord, S as SuperPaymasterActions, T as TokenConfig, b as airAccountActions, c as buildInitConfig, s as superPaymasterActions } from './initConfig-D8jgrcDb.js';
5
7
  export { a as ChannelActions, C as ChannelState, c as channelActions } from './channel-CkRRbzT8.js';
6
8
  import * as node_modules_viem__types from 'node_modules/viem/_types';
7
9
 
@@ -3959,356 +3961,6 @@ type SBTActions = {
3959
3961
  };
3960
3962
  declare const sbtActions: (address: Address) => (client: PublicClient$1 | WalletClient) => SBTActions;
3961
3963
 
3962
- /**
3963
- * ERC-4337 v0.7 PackedUserOperation tuple, matching the `struct PackedUserOperation`
3964
- * input of `dryRunValidation` / `validatePaymasterUserOp` in the SuperPaymaster ABI.
3965
- * Field order is load-bearing: viem encodes the tuple positionally from this shape.
3966
- */
3967
- type PackedUserOperation = {
3968
- sender: Address;
3969
- nonce: bigint;
3970
- initCode: Hex;
3971
- callData: Hex;
3972
- accountGasLimits: Hex;
3973
- preVerificationGas: bigint;
3974
- gasFees: Hex;
3975
- paymasterAndData: Hex;
3976
- signature: Hex;
3977
- };
3978
- /**
3979
- * Result of an off-chain `dryRunValidation` pre-flight check.
3980
- * `ok` mirrors whether the paymaster would accept the UserOp; `reasonCode` is a
3981
- * bytes32 machine-readable rejection code (zero when `ok` is true).
3982
- */
3983
- type DryRunValidationResult = {
3984
- ok: boolean;
3985
- reasonCode: Hex;
3986
- };
3987
- type SlashRecord = {
3988
- timestamp: bigint;
3989
- amount: bigint;
3990
- reputationLoss: bigint;
3991
- reason: string;
3992
- level: number;
3993
- };
3994
- type OperatorConfig = {
3995
- aPNTsBalance: bigint;
3996
- isConfigured: boolean;
3997
- isPaused: boolean;
3998
- xPNTsToken: Address;
3999
- reputation: number;
4000
- minTxInterval: number;
4001
- treasury: Address;
4002
- totalSpent: bigint;
4003
- totalTxSponsored: bigint;
4004
- };
4005
- /**
4006
- * Runtime-resolved aPNTs token state read live from the SuperPaymaster contract.
4007
- *
4008
- * The contract exposes the currently active token via `APNTS_TOKEN()` and an
4009
- * upcoming (timelocked) token via `pendingAPNTsToken()` / `pendingAPNTsTokenEta()`.
4010
- * Consumers should prefer `active` and may surface `pending` to warn about an
4011
- * upcoming migration.
4012
- */
4013
- type ResolvedAPNTsToken = {
4014
- /** Currently active aPNTs token address, read from `APNTS_TOKEN()`. */
4015
- active: Address;
4016
- /** aPNTs token queued for migration; `zeroAddress` when none is queued. */
4017
- pending: Address;
4018
- /** Unix-second ETA when the pending change becomes executable; `0n` when none is queued. */
4019
- pendingEta: bigint;
4020
- /** True only when `active` came from the explicit `fallback` option after a failed chain read. */
4021
- fallbackUsed: boolean;
4022
- };
4023
- type SuperPaymasterActions = {
4024
- deposit: (args: {
4025
- amount: bigint;
4026
- account?: Account | Address;
4027
- }) => Promise<Hash>;
4028
- depositETH: (args: {
4029
- value: bigint;
4030
- account?: Account | Address;
4031
- }) => Promise<Hash>;
4032
- depositFor: (args: {
4033
- targetOperator: Address;
4034
- amount: bigint;
4035
- account?: Account | Address;
4036
- }) => Promise<Hash>;
4037
- withdrawTo: (args: {
4038
- to: Address;
4039
- amount: bigint;
4040
- account?: Account | Address;
4041
- }) => Promise<Hash>;
4042
- withdraw: (args: {
4043
- amount: bigint;
4044
- account?: Account | Address;
4045
- }) => Promise<Hash>;
4046
- addStake: (args: {
4047
- unstakeDelaySec: number;
4048
- value: bigint;
4049
- account?: Account | Address;
4050
- }) => Promise<Hash>;
4051
- unlockStake: (args: {
4052
- account?: Account | Address;
4053
- }) => Promise<Hash>;
4054
- withdrawStake: (args: {
4055
- to: Address;
4056
- account?: Account | Address;
4057
- }) => Promise<Hash>;
4058
- configureOperator: (args: {
4059
- xPNTsToken: Address;
4060
- opTreasury: Address;
4061
- account?: Account | Address;
4062
- }) => Promise<Hash>;
4063
- setOperatorPaused: (args: {
4064
- operator: Address;
4065
- paused: boolean;
4066
- account?: Account | Address;
4067
- }) => Promise<Hash>;
4068
- setOperatorLimits: (args: {
4069
- minTxInterval: number;
4070
- account?: Account | Address;
4071
- }) => Promise<Hash>;
4072
- updateReputation: (args: {
4073
- operator: Address;
4074
- newScore: bigint;
4075
- account?: Account | Address;
4076
- }) => Promise<Hash>;
4077
- executeSlashWithBLS: (args: {
4078
- operator: Address;
4079
- level: number;
4080
- proof: Hex;
4081
- account?: Account | Address;
4082
- }) => Promise<Hash>;
4083
- slashOperator: (args: {
4084
- operator: Address;
4085
- level: number;
4086
- penaltyAmount: bigint;
4087
- reason: string;
4088
- account?: Account | Address;
4089
- }) => Promise<Hash>;
4090
- updateBlockedStatus: (args: {
4091
- operator: Address;
4092
- users: Address[];
4093
- statuses: boolean[];
4094
- account?: Account | Address;
4095
- }) => Promise<Hash>;
4096
- updateSBTStatus: (args: {
4097
- user: Address;
4098
- status: boolean;
4099
- account?: Account | Address;
4100
- }) => Promise<Hash>;
4101
- /** Read the unrecovered debt recorded for a user after a failed burn/recordDebt. */
4102
- pendingDebts: (args: {
4103
- token: Address;
4104
- user: Address;
4105
- }) => Promise<bigint>;
4106
- /** Operator retries recovering up to `amount` of the user's pending debt. */
4107
- retryPendingDebt: (args: {
4108
- token: Address;
4109
- user: Address;
4110
- amount: bigint;
4111
- account?: Account | Address;
4112
- }) => Promise<Hash>;
4113
- /** Operator force-clears the user's pending-debt entry without recording it. */
4114
- clearPendingDebt: (args: {
4115
- token: Address;
4116
- user: Address;
4117
- account?: Account | Address;
4118
- }) => Promise<Hash>;
4119
- setAPNTSPrice: (args: {
4120
- newPrice: bigint;
4121
- account?: Account | Address;
4122
- }) => Promise<Hash>;
4123
- updatePrice: (args: {
4124
- account?: Account | Address;
4125
- }) => Promise<Hash>;
4126
- updatePriceDVT: (args: {
4127
- price: bigint;
4128
- updatedAt: bigint;
4129
- proof: Hex;
4130
- account?: Account | Address;
4131
- }) => Promise<Hash>;
4132
- setProtocolFee: (args: {
4133
- newFeeBPS: bigint;
4134
- account?: Account | Address;
4135
- }) => Promise<Hash>;
4136
- setTreasury: (args: {
4137
- treasury: Address;
4138
- account?: Account | Address;
4139
- }) => Promise<Hash>;
4140
- setXPNTsFactory: (args: {
4141
- factory: Address;
4142
- account?: Account | Address;
4143
- }) => Promise<Hash>;
4144
- setAPNTsToken: (args: {
4145
- token: Address;
4146
- account?: Account | Address;
4147
- }) => Promise<Hash>;
4148
- /** @deprecated The deployed SuperPaymaster ABI has no direct `setBLSAggregator` — the aggregator change is timelocked via {@link queueBLSAggregator} + {@link applyBLSAggregator}. Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4149
- setBLSAggregator: (args: {
4150
- aggregator: Address;
4151
- account?: Account | Address;
4152
- }) => Promise<Hash>;
4153
- withdrawProtocolRevenue: (args: {
4154
- to: Address;
4155
- amount: bigint;
4156
- account?: Account | Address;
4157
- }) => Promise<Hash>;
4158
- executeAPNTsTokenChange: (args: {
4159
- account?: Account | Address;
4160
- }) => Promise<Hash>;
4161
- cancelAPNTsTokenChange: (args: {
4162
- account?: Account | Address;
4163
- }) => Promise<Hash>;
4164
- pendingAPNTsToken: () => Promise<Address>;
4165
- pendingAPNTsTokenEta: () => Promise<bigint>;
4166
- /**
4167
- * Resolve the live aPNTs token address from chain instead of relying on a static constant.
4168
- *
4169
- * Reads `APNTS_TOKEN()` (active), `pendingAPNTsToken()` and `pendingAPNTsTokenEta()`
4170
- * in parallel and returns them as a structured result. Prefer `active` for runtime use.
4171
- *
4172
- * If `fallback` is supplied and the chain reads fail, the static `fallback` address is
4173
- * returned with `fallbackUsed: true` (pending fields zeroed). Without a `fallback` the
4174
- * underlying error is re-thrown rather than silently masked.
4175
- */
4176
- resolveAPNTsToken: (args?: {
4177
- fallback?: Address;
4178
- }) => Promise<ResolvedAPNTsToken>;
4179
- emergencySetPrice: (args: {
4180
- newPrice: bigint;
4181
- account?: Account | Address;
4182
- }) => Promise<Hash>;
4183
- executeEmergencyPrice: (args: {
4184
- account?: Account | Address;
4185
- }) => Promise<Hash>;
4186
- cancelEmergencyPrice: (args: {
4187
- account?: Account | Address;
4188
- }) => Promise<Hash>;
4189
- emergencyPendingPrice: () => Promise<bigint>;
4190
- emergencyActivatedAt: () => Promise<bigint>;
4191
- emergencyQueuedAt: () => Promise<bigint>;
4192
- EMERGENCY_TIMELOCK: () => Promise<bigint>;
4193
- queueBLSAggregator: (args: {
4194
- aggregator: Address;
4195
- account?: Account | Address;
4196
- }) => Promise<Hash>;
4197
- applyBLSAggregator: (args: {
4198
- account?: Account | Address;
4199
- }) => Promise<Hash>;
4200
- onTransferReceived: (args: {
4201
- operator: Address;
4202
- from: Address;
4203
- value: bigint;
4204
- data: Hex;
4205
- }) => Promise<Hex>;
4206
- validatePaymasterUserOp: (args: {
4207
- userOp: any;
4208
- userOpHash: Hex;
4209
- maxCost: bigint;
4210
- }) => Promise<{
4211
- context: Hex;
4212
- validationData: bigint;
4213
- }>;
4214
- /**
4215
- * Off-chain pre-flight validation of a UserOp against this paymaster.
4216
- * Returns `{ ok, reasonCode }` so callers can detect AA34-style rejections
4217
- * before submitting the UserOp on-chain. View call; never mutates state.
4218
- */
4219
- dryRunValidation: (args: {
4220
- userOp: PackedUserOperation;
4221
- maxCost: bigint;
4222
- }) => Promise<DryRunValidationResult>;
4223
- operators: (args: {
4224
- operator: Address;
4225
- }) => Promise<OperatorConfig>;
4226
- getAvailableCredit: (args: {
4227
- user: Address;
4228
- token: Address;
4229
- }) => Promise<bigint>;
4230
- getDeposit: () => Promise<bigint>;
4231
- getLatestSlash: (args: {
4232
- operator: Address;
4233
- }) => Promise<SlashRecord>;
4234
- getSlashCount: (args: {
4235
- operator: Address;
4236
- }) => Promise<bigint>;
4237
- getSlashHistory: (args: {
4238
- operator: Address;
4239
- }) => Promise<SlashRecord[]>;
4240
- slashHistory: (args: {
4241
- operator: Address;
4242
- index: bigint;
4243
- }) => Promise<SlashRecord>;
4244
- userOpState: (args: {
4245
- user: Address;
4246
- operator: Address;
4247
- }) => Promise<{
4248
- lastTimestamp: number;
4249
- isBlocked: boolean;
4250
- }>;
4251
- cachedPrice: () => Promise<{
4252
- price: bigint;
4253
- updatedAt: bigint;
4254
- roundId: bigint;
4255
- decimals: number;
4256
- }>;
4257
- aPNTsPriceUSD: () => Promise<bigint>;
4258
- protocolFeeBPS: () => Promise<bigint>;
4259
- protocolRevenue: () => Promise<bigint>;
4260
- totalTrackedBalance: () => Promise<bigint>;
4261
- priceStalenessThreshold: () => Promise<bigint>;
4262
- sbtHolders: (args: {
4263
- user: Address;
4264
- }) => Promise<boolean>;
4265
- /** True when the Chainlink ETH/USD feed is considered stale by the contract. */
4266
- isChainlinkStale: () => Promise<boolean>;
4267
- /** Current pricing mode (uint8 enum on the contract). */
4268
- priceMode: () => Promise<number>;
4269
- /** Unix-second timestamp until which the cached price remains valid (uint48). */
4270
- priceValidUntil: () => Promise<bigint>;
4271
- /** Address of the BLS aggregator pending the timelock (`zeroAddress` if none queued). */
4272
- pendingBLSAgg: () => Promise<Address>;
4273
- /** Unix-second ETA at which the pending BLS aggregator change becomes executable (uint48). */
4274
- pendingBLSAggEta: () => Promise<bigint>;
4275
- APNTS_TOKEN: () => Promise<Address>;
4276
- REGISTRY: () => Promise<Address>;
4277
- BLS_AGGREGATOR: () => Promise<Address>;
4278
- ETH_USD_PRICE_FEED: () => Promise<Address>;
4279
- treasury: () => Promise<Address>;
4280
- xpntsFactory: () => Promise<Address>;
4281
- entryPoint: () => Promise<Address>;
4282
- /** @deprecated Removed in the v5.x contract refactor — not in the deployed SuperPaymaster ABI. Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4283
- MAX_PROTOCOL_FEE: () => Promise<bigint>;
4284
- /** @deprecated Removed from SuperPaymaster in the v5.x refactor (this bound belongs to the standalone Paymaster contract). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4285
- MAX_ETH_USD_PRICE: () => Promise<bigint>;
4286
- /** @deprecated Removed from SuperPaymaster in the v5.x refactor (this bound belongs to the standalone Paymaster contract). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4287
- MIN_ETH_USD_PRICE: () => Promise<bigint>;
4288
- /** @deprecated Removed in the v5.x contract refactor — not in the deployed SuperPaymaster ABI. Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4289
- PAYMASTER_DATA_OFFSET: () => Promise<bigint>;
4290
- /** @deprecated Removed in the v5.x contract refactor — not in the deployed SuperPaymaster ABI. Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4291
- PRICE_CACHE_DURATION: () => Promise<bigint>;
4292
- /** @deprecated Removed in the v5.x contract refactor — not in the deployed SuperPaymaster ABI. Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4293
- RATE_OFFSET: () => Promise<bigint>;
4294
- /** @deprecated Removed in the v5.x contract refactor — not in the deployed SuperPaymaster ABI. Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4295
- VALIDATION_BUFFER_BPS: () => Promise<bigint>;
4296
- /** @deprecated Removed in the v5.x contract refactor — not in the deployed SuperPaymaster ABI. Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
4297
- BPS_DENOMINATOR: () => Promise<bigint>;
4298
- /** Duration (seconds) of the aPNTs-token-change timelock. */
4299
- APNTS_TOKEN_TIMELOCK: () => Promise<bigint>;
4300
- owner: () => Promise<Address>;
4301
- transferOwnership: (args: {
4302
- newOwner: Address;
4303
- account?: Account | Address;
4304
- }) => Promise<Hash>;
4305
- renounceOwnership: (args: {
4306
- account?: Account | Address;
4307
- }) => Promise<Hash>;
4308
- version: () => Promise<string>;
4309
- };
4310
- declare const superPaymasterActions: (address: Address) => (client: PublicClient$1 | WalletClient) => SuperPaymasterActions;
4311
-
4312
3964
  type PaymasterActions = {
4313
3965
  depositFor: (args: {
4314
3966
  user: Address;
@@ -5921,136 +5573,6 @@ type GTokenAuthorizationActions = GTokenActions & {
5921
5573
  };
5922
5574
  declare const gTokenAuthorizationActions: (client: PublicClient$1 | WalletClient) => GTokenAuthorizationActions;
5923
5575
 
5924
- type TokenConfig = {
5925
- tier1Limit: bigint;
5926
- tier2Limit: bigint;
5927
- dailyLimit: bigint;
5928
- };
5929
- type InitConfig = {
5930
- guardians: readonly [Address, Address, Address];
5931
- guardianP256X: readonly [Hex, Hex, Hex];
5932
- guardianP256Y: readonly [Hex, Hex, Hex];
5933
- dailyLimit: bigint;
5934
- approvedAlgIds: readonly number[];
5935
- minDailyLimit: bigint;
5936
- initialTokens: readonly Address[];
5937
- initialTokenConfigs: readonly TokenConfig[];
5938
- };
5939
- type PendingModuleInstall = {
5940
- module: Address;
5941
- moduleTypeId: number;
5942
- proposedAt: number;
5943
- executeAfter: number;
5944
- initDataHash: Hex;
5945
- };
5946
- type AirAccountActions = {
5947
- owner: () => Promise<Address>;
5948
- guardianCount: () => Promise<number>;
5949
- guardians: (args: {
5950
- index: bigint | number;
5951
- }) => Promise<Address>;
5952
- accountId: () => Promise<string>;
5953
- isValidSignature: (args: {
5954
- hash: Hex;
5955
- sig: Hex;
5956
- }) => Promise<Hex>;
5957
- requiredTier: (args: {
5958
- txValue: bigint;
5959
- }) => Promise<number>;
5960
- supportsModule: (args: {
5961
- moduleTypeId: bigint;
5962
- }) => Promise<boolean>;
5963
- p256KeyX: () => Promise<Hex>;
5964
- p256KeyY: () => Promise<Hex>;
5965
- parserRegistry: () => Promise<Address>;
5966
- moduleManagementNonce: () => Promise<bigint>;
5967
- moduleInstallTimelock: () => Promise<bigint>;
5968
- pendingModuleInstall: () => Promise<PendingModuleInstall>;
5969
- setP256Key: (args: {
5970
- x: Hex;
5971
- y: Hex;
5972
- account?: Account | Address;
5973
- }) => Promise<Hash>;
5974
- setTierLimits: (args: {
5975
- tier1: bigint;
5976
- tier2: bigint;
5977
- account?: Account | Address;
5978
- }) => Promise<Hash>;
5979
- setValidator: (args: {
5980
- validator: Address;
5981
- account?: Account | Address;
5982
- }) => Promise<Hash>;
5983
- setParserRegistry: (args: {
5984
- registry: Address;
5985
- account?: Account | Address;
5986
- }) => Promise<Hash>;
5987
- /**
5988
- * Execute calls via an installed executor module (ERC-7579 `executeFromExecutor`).
5989
- * NOTE: this is a state-changing tx, so it resolves to the transaction `Hash` — the
5990
- * on-chain `bytes[] returnData` is NOT recoverable from a write. If you need the
5991
- * decoded return data, `simulateContract`/`call` the same function separately.
5992
- */
5993
- executeFromExecutor: (args: {
5994
- mode: Hex;
5995
- executionCalldata: Hex;
5996
- account?: Account | Address;
5997
- }) => Promise<Hash>;
5998
- validateUserOp: (args: {
5999
- userOp: PackedUserOperation;
6000
- userOpHash: Hex;
6001
- missingAccountFunds: bigint;
6002
- account?: Account | Address;
6003
- }) => Promise<Hash>;
6004
- initializeAgentAccount: (args: {
6005
- entryPoint: Address;
6006
- owner: Address;
6007
- config: InitConfig;
6008
- guardAddr: Address;
6009
- account?: Account | Address;
6010
- }) => Promise<Hash>;
6011
- guardAddTokenConfig: (args: {
6012
- token: Address;
6013
- config: TokenConfig;
6014
- account?: Account | Address;
6015
- }) => Promise<Hash>;
6016
- guardApproveAlgorithm: (args: {
6017
- algId: number;
6018
- account?: Account | Address;
6019
- }) => Promise<Hash>;
6020
- guardDecreaseDailyLimit: (args: {
6021
- newLimit: bigint;
6022
- account?: Account | Address;
6023
- }) => Promise<Hash>;
6024
- guardDecreaseTokenDailyLimit: (args: {
6025
- token: Address;
6026
- newLimit: bigint;
6027
- account?: Account | Address;
6028
- }) => Promise<Hash>;
6029
- guardSetStrictMode: (args: {
6030
- enabled: boolean;
6031
- account?: Account | Address;
6032
- }) => Promise<Hash>;
6033
- proposeModuleInstall: (args: {
6034
- moduleTypeId: bigint;
6035
- module: Address;
6036
- initData: Hex;
6037
- account?: Account | Address;
6038
- }) => Promise<Hash>;
6039
- executeModuleInstall: (args: {
6040
- moduleInitData: Hex;
6041
- account?: Account | Address;
6042
- }) => Promise<Hash>;
6043
- cancelModuleInstall: (args: {
6044
- account?: Account | Address;
6045
- }) => Promise<Hash>;
6046
- setModuleInstallTimelock: (args: {
6047
- newTimelock: bigint;
6048
- guardianSigs: Hex;
6049
- account?: Account | Address;
6050
- }) => Promise<Hash>;
6051
- };
6052
- declare const airAccountActions: (address: Address) => (client: PublicClient$1 | WalletClient) => AirAccountActions;
6053
-
6054
5576
  type AirAccountFactoryActions = {
6055
5577
  getAddressWithChainId: (args: {
6056
5578
  owner: Address;
@@ -6271,41 +5793,6 @@ type AirAccountExtensionActions = {
6271
5793
  };
6272
5794
  declare const airAccountExtensionActions: (address: Address) => (client: PublicClient$1 | WalletClient) => AirAccountExtensionActions;
6273
5795
 
6274
- /** One guardian slot for {@link buildInitConfig}: supply EXACTLY one of `ecdsa` or `p256`. */
6275
- interface GuardianSpec {
6276
- /** An ECDSA (EOA / Safe) guardian address. Mutually exclusive with `p256`. */
6277
- ecdsa?: Address;
6278
- /** A P-256 (WebAuthn passkey) guardian public key (x, y, each bytes32). Mutually exclusive with `ecdsa`. */
6279
- p256?: {
6280
- x: Hex;
6281
- y: Hex;
6282
- };
6283
- }
6284
- /** Parameters for {@link buildInitConfig}. */
6285
- interface BuildInitConfigParams {
6286
- /** Up to 3 guardian slots (ECDSA and/or P-256, freely mixed). Empty/omitted ⇒ no guardians. */
6287
- guardians?: readonly GuardianSpec[];
6288
- /** Per-account daily spend limit (wei). Must be > 0 to enable the on-chain GUARD. */
6289
- dailyLimit: bigint;
6290
- /**
6291
- * Validator algorithm ids approved at init (e.g. 2 = ECDSA, 1 = P-256/passkey). If omitted,
6292
- * derived from the owner/guardian mix is NOT possible (owner alg is separate), so it defaults
6293
- * to `[2]` (ECDSA) plus `1` (P-256) when any P-256 guardian is present.
6294
- */
6295
- approvedAlgIds?: readonly number[];
6296
- /** Floor the daily limit can be decreased to via the guard. Defaults to 0. */
6297
- minDailyLimit?: bigint;
6298
- /** ERC-20 tokens to pre-register with the guard. Defaults to none. */
6299
- initialTokens?: readonly Address[];
6300
- /** Per-token tier configs, index-aligned with `initialTokens`. Defaults to none. */
6301
- initialTokenConfigs?: readonly TokenConfig[];
6302
- }
6303
- /**
6304
- * Build a v0.20.0 `InitConfig` with mixed ECDSA + P-256 guardians.
6305
- * @throws {AAStarError} if any slot is ambiguous, the sentinel is misused, or > 3 guardians are given.
6306
- */
6307
- declare function buildInitConfig(params: BuildInitConfigParams): InitConfig;
6308
-
6309
5796
  type AgentRegistryActions = {
6310
5797
  deployer: () => Promise<Address>;
6311
5798
  factory: () => Promise<Address>;
@@ -7380,4 +6867,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
7380
6867
  verified: boolean;
7381
6868
  }>;
7382
6869
 
7383
- export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, type AirAccountActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, 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 BuildInitConfigParams, 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_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 DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, type DryRunValidationResult, 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 GuardianSpec, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, type 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 OperatorConfig, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, type PackedUserOperation, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, type PendingModuleInstall, 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 ResolvedAPNTsToken, 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 SlashRecord, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, type SuperPaymasterActions, 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 TokenConfig, 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, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, describeSupportedChains, dvtActions, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getCanonicalAddresses, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isSupportedChainId, isV2Contract, listSupportedChainIds, lookupAddress, 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 };
6870
+ export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, 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, 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_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 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, 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, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getCanonicalAddresses, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isSupportedChainId, isV2Contract, listSupportedChainIds, lookupAddress, 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,4 +1,4 @@
1
- export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, 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, 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, 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, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, 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-2TS6T2WY.js';
1
+ export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, 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, 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, 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, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, 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-5G5SB6CP.js';
2
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';
3
3
  import './chunk-PZ5AY32C.js';
4
4
  //# sourceMappingURL=core.js.map
package/dist/dapp.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkBBZAD5G2_cjs = require('./chunk-BBZAD5G2.cjs');
4
- var chunkTS5CXRNI_cjs = require('./chunk-TS5CXRNI.cjs');
3
+ var chunk6I22EW6V_cjs = require('./chunk-6I22EW6V.cjs');
4
+ var chunkMFBTMF5U_cjs = require('./chunk-MFBTMF5U.cjs');
5
5
  require('./chunk-MXJEULSE.cjs');
6
6
  require('./chunk-Q7SFCCGT.cjs');
7
7
  var viem = require('viem');
@@ -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 = chunkTS5CXRNI_cjs.createAAStarPublicClient(rpcUrl, chain);
35
+ const client = chunkMFBTMF5U_cjs.createAAStarPublicClient(rpcUrl, chain);
36
36
  const limit = await client.readContract({
37
37
  address: registryAddress,
38
- abi: chunkTS5CXRNI_cjs.RegistryABI,
38
+ abi: chunkMFBTMF5U_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 = chunkBBZAD5G2_cjs.getSuperPaymasterMiddleware(config);
61
+ const middleware = chunk6I22EW6V_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,5 +1,5 @@
1
- import { getSuperPaymasterMiddleware } from './chunk-SNVHOCU6.js';
2
- import { createAAStarPublicClient, RegistryABI } from './chunk-2TS6T2WY.js';
1
+ import { getSuperPaymasterMiddleware } from './chunk-D23CZFOM.js';
2
+ import { createAAStarPublicClient, RegistryABI } from './chunk-5G5SB6CP.js';
3
3
  import './chunk-UCLK6LTB.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  import { parseAbi, createPublicClient, http, hashTypedData, hashMessage, hexToBytes, encodeFunctionData } from 'viem';
package/dist/enduser.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk6ISQM3SF_cjs = require('./chunk-6ISQM3SF.cjs');
4
- var chunkRF3MSLRW_cjs = require('./chunk-RF3MSLRW.cjs');
5
- require('./chunk-TS5CXRNI.cjs');
3
+ var chunk6PJAHZZ2_cjs = require('./chunk-6PJAHZZ2.cjs');
4
+ var chunkCGKPULZX_cjs = require('./chunk-CGKPULZX.cjs');
5
+ require('./chunk-MFBTMF5U.cjs');
6
6
  require('./chunk-MXJEULSE.cjs');
7
7
  require('./chunk-Q7SFCCGT.cjs');
8
8
 
@@ -10,15 +10,15 @@ require('./chunk-Q7SFCCGT.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "CommunityClient", {
12
12
  enumerable: true,
13
- get: function () { return chunk6ISQM3SF_cjs.CommunityClient; }
13
+ get: function () { return chunk6PJAHZZ2_cjs.CommunityClient; }
14
14
  });
15
15
  Object.defineProperty(exports, "UserLifecycle", {
16
16
  enumerable: true,
17
- get: function () { return chunk6ISQM3SF_cjs.UserLifecycle; }
17
+ get: function () { return chunk6PJAHZZ2_cjs.UserLifecycle; }
18
18
  });
19
19
  Object.defineProperty(exports, "UserClient", {
20
20
  enumerable: true,
21
- get: function () { return chunkRF3MSLRW_cjs.UserClient; }
21
+ get: function () { return chunkCGKPULZX_cjs.UserClient; }
22
22
  });
23
23
  //# sourceMappingURL=enduser.cjs.map
24
24
  //# sourceMappingURL=enduser.cjs.map