@aastar/sdk 0.20.4 → 0.20.6

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 (92) hide show
  1. package/README.md +32 -24
  2. package/dist/BaseClient-BjbYP0cf.d.ts +88 -0
  3. package/dist/UserClient-AIIHB54I.js +6 -0
  4. package/dist/{UserClient-JMNNZT4P.js.map → UserClient-AIIHB54I.js.map} +1 -1
  5. package/dist/account.d.ts +48 -1
  6. package/dist/account.js +3 -3
  7. package/dist/admin.d.ts +62 -1
  8. package/dist/admin.js +3 -3
  9. package/dist/airaccount.d.ts +4 -2
  10. package/dist/airaccount.js +2 -4498
  11. package/dist/airaccount.js.map +1 -1
  12. package/dist/channel-CkRRbzT8.d.ts +77 -0
  13. package/dist/channel.d.ts +64 -1
  14. package/dist/channel.js +3 -3
  15. package/dist/{chunk-YSDWB6DO.js → chunk-4EZD7LPE.js} +30 -24
  16. package/dist/chunk-4EZD7LPE.js.map +1 -0
  17. package/dist/{chunk-TBDMSJVL.js → chunk-6QYXGMCR.js} +513 -322
  18. package/dist/chunk-6QYXGMCR.js.map +1 -0
  19. package/dist/{chunk-QNYP7RPI.js → chunk-7ARJ3OSU.js} +29 -21
  20. package/dist/chunk-7ARJ3OSU.js.map +1 -0
  21. package/dist/{chunk-KL6SCEIU.js → chunk-BN5WY5GM.js} +16 -14
  22. package/dist/chunk-BN5WY5GM.js.map +1 -0
  23. package/dist/{chunk-5TDDS3T5.js → chunk-FJ7XECC5.js} +4 -4
  24. package/dist/chunk-FJ7XECC5.js.map +1 -0
  25. package/dist/{chunk-4KRQXOTI.js → chunk-FUU7RIIA.js} +113 -102
  26. package/dist/chunk-FUU7RIIA.js.map +1 -0
  27. package/dist/{chunk-ZJLIKMCA.js → chunk-G3UJC4EL.js} +17 -8
  28. package/dist/chunk-G3UJC4EL.js.map +1 -0
  29. package/dist/{chunk-M5ORP2PM.js → chunk-KDH3UPKD.js} +10 -13
  30. package/dist/chunk-KDH3UPKD.js.map +1 -0
  31. package/dist/chunk-KISL64KW.js +4245 -0
  32. package/dist/chunk-KISL64KW.js.map +1 -0
  33. package/dist/{chunk-Y3KP7R2Y.js → chunk-LXWIPTPX.js} +5 -5
  34. package/dist/chunk-LXWIPTPX.js.map +1 -0
  35. package/dist/{chunk-NAPMVAVJ.js → chunk-MVEWJIPY.js} +124 -110
  36. package/dist/chunk-MVEWJIPY.js.map +1 -0
  37. package/dist/{chunk-LNICTATJ.js → chunk-PAABYXS6.js} +33 -40
  38. package/dist/chunk-PAABYXS6.js.map +1 -0
  39. package/dist/{chunk-O454V5ML.js → chunk-PKCHRXFR.js} +8 -12
  40. package/dist/chunk-PKCHRXFR.js.map +1 -0
  41. package/dist/{chunk-R2RATIK2.js → chunk-TENYCMJ3.js} +31 -31
  42. package/dist/chunk-TENYCMJ3.js.map +1 -0
  43. package/dist/{contract-addresses-VLAHHXOO.js → contract-addresses-N3TOL2WL.js} +3 -3
  44. package/dist/{contract-addresses-VLAHHXOO.js.map → contract-addresses-N3TOL2WL.js.map} +1 -1
  45. package/dist/core.d.ts +6930 -13
  46. package/dist/core.js +2 -2
  47. package/dist/dapp.d.ts +127 -1
  48. package/dist/dapp.js +12 -13
  49. package/dist/dapp.js.map +1 -1
  50. package/dist/doc-types-471vSmPO.d.ts +16 -0
  51. package/dist/enduser.d.ts +261 -1
  52. package/dist/enduser.js +4 -4
  53. package/dist/identity.d.ts +81 -1
  54. package/dist/identity.js +3 -3
  55. package/dist/index-B6SfEQxo.d.ts +47 -0
  56. package/dist/index.d.ts +55 -14
  57. package/dist/index.js +22 -22
  58. package/dist/index.js.map +1 -1
  59. package/dist/kms.d.ts +2986 -0
  60. package/dist/kms.js +5 -0
  61. package/dist/kms.js.map +1 -0
  62. package/dist/operator.d.ts +164 -1
  63. package/dist/operator.js +3 -3
  64. package/dist/paymaster.d.ts +312 -1
  65. package/dist/paymaster.js +3 -3
  66. package/dist/{index.node-GNYPFVZQ.js → src-L5SI5WNB.js} +4 -4
  67. package/dist/src-L5SI5WNB.js.map +1 -0
  68. package/dist/{dist-WMYQOYRO.js → src-X5MIV3EB.js} +5 -5
  69. package/dist/src-X5MIV3EB.js.map +1 -0
  70. package/dist/tier-router-DLiMxs0h.d.ts +321 -0
  71. package/dist/tokens.d.ts +64 -1
  72. package/dist/tokens.js +3 -3
  73. package/dist/x402.d.ts +373 -1
  74. package/dist/x402.js +3 -3
  75. package/package.json +19 -15
  76. package/LICENSE +0 -180
  77. package/dist/UserClient-JMNNZT4P.js +0 -6
  78. package/dist/chunk-4KRQXOTI.js.map +0 -1
  79. package/dist/chunk-5TDDS3T5.js.map +0 -1
  80. package/dist/chunk-KL6SCEIU.js.map +0 -1
  81. package/dist/chunk-LNICTATJ.js.map +0 -1
  82. package/dist/chunk-M5ORP2PM.js.map +0 -1
  83. package/dist/chunk-NAPMVAVJ.js.map +0 -1
  84. package/dist/chunk-O454V5ML.js.map +0 -1
  85. package/dist/chunk-QNYP7RPI.js.map +0 -1
  86. package/dist/chunk-R2RATIK2.js.map +0 -1
  87. package/dist/chunk-TBDMSJVL.js.map +0 -1
  88. package/dist/chunk-Y3KP7R2Y.js.map +0 -1
  89. package/dist/chunk-YSDWB6DO.js.map +0 -1
  90. package/dist/chunk-ZJLIKMCA.js.map +0 -1
  91. package/dist/dist-WMYQOYRO.js.map +0 -1
  92. package/dist/index.node-GNYPFVZQ.js.map +0 -1
@@ -1 +1,81 @@
1
- export * from '@aastar/identity';
1
+ import { Address, Hash } from 'viem';
2
+ import { P as PublicClient, W as WalletClient } from './doc-types-471vSmPO.js';
3
+
4
+ /**
5
+ * Check if user holds MySBT token (identity verification).
6
+ *
7
+ * Does NOT swallow read errors: `balanceOf` returns 0 for a non-holder, so any
8
+ * thrown error is an RPC/transport/contract failure — masking it as
9
+ * `{ hasSBT: false }` would turn a transient RPC blip into a false "no SBT" and
10
+ * wrongly fail eligibility checks. The error propagates so the caller can retry
11
+ * or surface "couldn't determine" rather than "no SBT".
12
+ */
13
+ declare function checkMySBT(client: any, sbtAddress: Address, user: Address): Promise<{
14
+ hasSBT: boolean;
15
+ balance: bigint;
16
+ }>;
17
+ /**
18
+ * Fetch MySBT token ID for a specific user.
19
+ * MySBT exposes `getUserSBT(address) -> uint256` (alias of the `userToSBT`
20
+ * mapping), which returns the user's tokenId or 0 when they hold no SBT.
21
+ *
22
+ * Returns the tokenId, or `null` ONLY for the genuine "no SBT" sentinel (id == 0).
23
+ * Read errors are NOT swallowed (see {@link checkMySBT}): a transient RPC failure
24
+ * must not be reported as "no SBT" (a false negative for eligibility). The error
25
+ * propagates to the caller.
26
+ */
27
+ declare function getMySBTId(client: any, sbtAddress: Address, user: Address): Promise<bigint | null>;
28
+
29
+ declare class ReputationClient {
30
+ private client;
31
+ private reputationAddress;
32
+ /** @internal */
33
+ private walletClient?;
34
+ /**
35
+ * Initialize ReputationClient
36
+ * @param client The public client for queries
37
+ * @param reputationAddress The address of the reputation system contract
38
+ * @param walletClient Optional wallet client for write operations
39
+ */
40
+ constructor(client: PublicClient, reputationAddress: Address, walletClient?: WalletClient);
41
+ /**
42
+ * Compute reputation score for a user
43
+ */
44
+ computeScore(user: Address, communities: Address[], ruleIds: `0x${string}`[][], activities: bigint[][]): Promise<bigint>;
45
+ /**
46
+ * Get global reputation score for a user
47
+ * @param user User address
48
+ * @returns Reputation score
49
+ */
50
+ getGlobalReputation(user: Address): Promise<number>;
51
+ /**
52
+ * Get credit limit based on reputation
53
+ * @param user User address
54
+ * @returns Credit limit in wei (Mock logic closely tied to Reputation)
55
+ */
56
+ getCreditLimit(user: Address): Promise<bigint>;
57
+ /**
58
+ * Get reputation score breakdown
59
+ * @param user User address
60
+ * @returns Detailed reputation breakdown (Mock implementation awaiting contract V4)
61
+ */
62
+ getReputationBreakdown(user: Address): Promise<{
63
+ baseScore: number;
64
+ stakingBonus: number;
65
+ activityBonus: number;
66
+ penaltyDeduction: number;
67
+ total: number;
68
+ }>;
69
+ /**
70
+ * Submit reputation proof (off-chain data to on-chain)
71
+ * @param params Proof parameters
72
+ * @returns Transaction hash
73
+ */
74
+ submitReputationProof(params: {
75
+ proofType: 'github' | 'twitter' | 'on-chain-activity';
76
+ proofData: string;
77
+ signature: Hash;
78
+ }): Promise<Hash>;
79
+ }
80
+
81
+ export { ReputationClient, checkMySBT, getMySBTId };
package/dist/identity.js CHANGED
@@ -1,6 +1,6 @@
1
- export { ReputationClient, checkMySBT, getMySBTId } from './chunk-O454V5ML.js';
2
- import './chunk-TBDMSJVL.js';
3
- import './chunk-ZJLIKMCA.js';
1
+ export { ReputationClient, checkMySBT, getMySBTId } from './chunk-PKCHRXFR.js';
2
+ import './chunk-6QYXGMCR.js';
3
+ import './chunk-G3UJC4EL.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  //# sourceMappingURL=identity.js.map
6
6
  //# sourceMappingURL=identity.js.map
@@ -0,0 +1,47 @@
1
+ import { Address } from 'viem';
2
+
3
+ type PaymasterConfig = {
4
+ paymasterAddress: Address;
5
+ operator: Address;
6
+ maxRate?: bigint;
7
+ verificationGasLimit?: bigint;
8
+ postOpGasLimit?: bigint;
9
+ };
10
+ /**
11
+ * Constructs the middleware for SuperPaymaster.
12
+ * Returns the `paymasterAndData` hex string.
13
+ */
14
+ declare function getSuperPaymasterMiddleware(config: PaymasterConfig): {
15
+ sponsorUserOperation: (args: {
16
+ userOperation: any;
17
+ }) => Promise<{
18
+ paymasterAndData: `0x${string}`;
19
+ verificationGasLimit: bigint;
20
+ preVerificationGas: any;
21
+ }>;
22
+ };
23
+ /**
24
+ * Enhanced eligibility check for SuperPaymaster V3.
25
+ * Validates that user has sufficient credit with the given operator.
26
+ */
27
+ declare function checkEligibility(client: any, paymaster: Address, user: Address, operator: Address): Promise<{
28
+ eligible: boolean;
29
+ credit?: bigint;
30
+ token?: Address;
31
+ }>;
32
+ /**
33
+ * Admin Client for SuperPaymaster V3
34
+ */
35
+ declare class SuperPaymasterAdminClient {
36
+ private client;
37
+ private paymasterAddress;
38
+ constructor(client: any, paymasterAddress: Address);
39
+ getOperator(operator: Address): Promise<any>;
40
+ static configureOperator(wallet: any, paymaster: Address, token: Address, treasury: Address): Promise<any>;
41
+ static setOperatorPaused(wallet: any, paymaster: Address, operator: Address, paused: boolean): Promise<any>;
42
+ static updateReputation(wallet: any, paymaster: Address, operator: Address, score: bigint): Promise<any>;
43
+ static setAPNTsToken(wallet: any, paymaster: Address, token: Address): Promise<any>;
44
+ static setXPNTsFactory(wallet: any, paymaster: Address, factory: Address): Promise<any>;
45
+ }
46
+
47
+ export { type PaymasterConfig as P, SuperPaymasterAdminClient as S, checkEligibility as c, getSuperPaymasterMiddleware as g };
package/dist/index.d.ts CHANGED
@@ -1,17 +1,21 @@
1
- import { RegistryActions, SBTActions, SuperPaymasterActions, PaymasterActions, StakingActions, DVTActions, XPNTsFactoryActions, AggregatorActions } from '@aastar/core';
2
- export * from '@aastar/core';
3
- export * from '@aastar/account';
4
- export * from '@aastar/paymaster';
5
- export * from '@aastar/identity';
6
- export * from '@aastar/tokens';
7
- export * from '@aastar/x402';
8
- export * from '@aastar/channel';
1
+ import { RegistryActions, SBTActions, SuperPaymasterActions, PaymasterActions, StakingActions, DVTActions, XPNTsFactoryActions, AggregatorActions } from './core.js';
2
+ 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, AccountActions, AccountBalance, AccountFactoryActions, AgentActions, AgentRegistryABI, AgentRegistryActions, AgentRegistryArtifact, AgentSponsorshipPolicy, AirAccountActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AirAccountFactoryActions, AssetPolicy, AssetPolicyInput, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSAlgorithmActions, BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, BalanceValidationParams, BatchMintResult, BundlerClient, BundlerResponse, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, CanonicalAddresses, CheckResourcesOptions, CommunityConfig, CommunityProfile, ContractCategory, ContractConfigManager, ContractNetwork, ContractScope, ContractScopeInput, 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, DVTAccountSignatureParams, DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, DeploymentValidationParams, DryRunValidationResult, ENTRY_POINT_ADDRESS, ERC20Actions, EnsOptions, EntryPointABI, EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, FaucetConfig, FaucetPreparationResult, ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, GTokenActions, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, HashToFieldU0U1, HeliosTransportConfig, INITIAL_ROLE_STAKES, InitConfig, LINKS, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, NetworkContracts, NodeType, OFFICIAL_ADDRESSES, OperatorConfig, OperatorMode, P256SessionState, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryActions, PaymasterFactoryArtifact, PendingExit, PendingModuleInstall, PolicyDecision, PolicyRegistryABI, PolicyRegistryActions, PolicyRegistryArtifact, 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, RegistryArtifact, ReputationActions, ReputationBreakdown, ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, ResolvedAPNTsToken, ResourceBoolCheck, ResourceReport, ResourceStakeCheck, RoleConfig, RoleConfigDetailed, RolePermissionLevel, RoleRequirement, RoleValidationParams, SBTData, SBTMembership, SBT_ADDRESS, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorActions, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, SlashRecord, SpendCounter, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, SuperPaymasterConfig, SupportedChainId, SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, TokenActions, TokenBalanceValidationParams, TokenConfig, UserOperationV07, V2_SUMMARY, ValidationParams, ValidationResult, X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountFactoryActions, applyConfig, blsAlgorithmActions, createAAStarPublicClient, createHeliosTransport, describeSupportedChains, dvtActions, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, 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, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './core.js';
3
+ export { P as PublicClient, W as WalletClient } from './doc-types-471vSmPO.js';
4
+ export { a as BaseClient, B as BusinessResult, C as ClientConfig, T as TransactionOptions } from './BaseClient-BjbYP0cf.js';
5
+ export { a as ChannelActions, C as ChannelState, c as channelActions } from './channel-CkRRbzT8.js';
6
+ export { EOAWalletClient, SimpleSmartAccount, UserOpClient, createEOAWalletClient, getUserOpHash, packUserOpLimits, toSimpleSmartAccount } from './account.js';
7
+ export { P as PaymasterConfig, S as SuperPaymasterAdminClient, c as checkEligibility, g as getSuperPaymasterMiddleware } from './index-B6SfEQxo.js';
8
+ export { BuildPaymasterDataParams, GaslessReadinessReport, GaslessTransactionConfig, PaymasterClient, PaymasterManager, PaymasterOperator, PaymasterType, PaymasterV4MiddlewareConfig, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, formatUserOpV07, getPaymasterV4Middleware, getUserOpHashV07, tuneGasLimit } from './paymaster.js';
9
+ export { ReputationClient, checkMySBT, getMySBTId } from './identity.js';
10
+ export { FinanceClient } from './tokens.js';
11
+ export { DirectPaymentPayload, EIP3009Authorization, EIP3009_TYPES, FacilitatorClient, FacilitatorConfig, FacilitatorSupported, GTOKEN_EIP712_DOMAIN, HEADER_PAYMENT_REQUIRED, HEADER_PAYMENT_RESPONSE, HEADER_PAYMENT_SIGNATURE, HEADER_V1_PAYMENT, HEADER_V1_PAYMENT_RESPONSE, NetworkId, PaymentPayload, PaymentRequired, PaymentRequirements, ResourceInfo, SettleResponse, VerifyResponse, X402Client, X402ClientConfig, X402PaymentParams, decodePaymentPayload, decodePaymentRequired, decodeSettleResponse, encodePaymentPayload, encodePaymentRequired, encodeSettleResponse, extractPaymentRequired, extractSettleResponse, generateNonce, getEIP3009Domain, signCancelAuthorization, signGTokenTransferWithAuthorization, signReceiveWithAuthorization, signTransferWithAuthorization } from './x402.js';
12
+ export { ChannelClient, ChannelClientConfig, ChannelConfig, SignedVoucher, VOUCHER_TYPES, VoucherParams, getVoucherDomain, signVoucher } from './channel.js';
9
13
  import { Client, Transport, Chain, Account, PublicActions, WalletActions, Address, Hex, Hash, PublicClient } from 'viem';
10
- export * from '@aastar/enduser';
11
- export * from '@aastar/operator';
12
- export * from '@aastar/admin';
13
- import * as airaccount from '@aastar/airaccount';
14
- export { airaccount as AirAccount };
14
+ export { CommunityClient, CommunityClientConfig, CommunityInfo, CreateCommunityParams, GaslessConfig, OnboardResult, ReputationData, UserClient, UserClientConfig, UserLifecycle, UserLifecycleConfig } from './enduser.js';
15
+ export { OperatorClientConfig, OperatorLifecycle, OperatorStatus, PaymasterOperatorClient, ProposalState, ProtocolClient, ProtocolClientConfig, SponsorshipPolicy } from './operator.js';
16
+ export { ProtocolGovernance, ProtocolParams } from './admin.js';
17
+ import { A as ALG_BLS, a as ALG_CUMULATIVE_T2, b as ALG_CUMULATIVE_T3, c as ALG_ECDSA, d as ALG_P256, e as AlgId, B as BLSConfig, f as BLSManager, g as BLSNode, h as BLSSignatureData, i as BeginAuthenticationResponse, j as BeginRegistrationResponse, k as BeginTransactionVerificationResponse, C as CryptoUtil, l as CumulativeT2SignatureData, m as CumulativeT3SignatureData, E as ERC4337Utils, G as GasEstimate, n as GuardStatus, P as PackedUserOperation$1, o as PasskeyAuthenticationParams, p as PasskeyInfo, q as PasskeyManager, r as PasskeyRegistrationParams, s as PreCheckResult, T as TierConfig, t as TierLevel, u as TransactionVerificationParams, U as UserOpBuilder, v as UserOperation, Y as YAAAClient, w as YAAAConfig, x as algIdForTier, y as resolveTier } from './tier-router-DLiMxs0h.js';
18
+ import 'node_modules/viem/_types';
15
19
 
16
20
  type EndUserClient = Client<Transport, Chain, Account | undefined> & PublicActions<Transport, Chain, Account | undefined> & WalletActions<Chain, Account | undefined> & RegistryActions & SBTActions & SuperPaymasterActions & PaymasterActions & {
17
21
  /**
@@ -237,6 +241,43 @@ declare class ExperimentClient {
237
241
  getRecords(): ExperimentRecord[];
238
242
  }
239
243
 
244
+ declare const index_ALG_BLS: typeof ALG_BLS;
245
+ declare const index_ALG_CUMULATIVE_T2: typeof ALG_CUMULATIVE_T2;
246
+ declare const index_ALG_CUMULATIVE_T3: typeof ALG_CUMULATIVE_T3;
247
+ declare const index_ALG_ECDSA: typeof ALG_ECDSA;
248
+ declare const index_ALG_P256: typeof ALG_P256;
249
+ declare const index_AlgId: typeof AlgId;
250
+ declare const index_BLSConfig: typeof BLSConfig;
251
+ declare const index_BLSManager: typeof BLSManager;
252
+ declare const index_BLSNode: typeof BLSNode;
253
+ declare const index_BLSSignatureData: typeof BLSSignatureData;
254
+ declare const index_BeginAuthenticationResponse: typeof BeginAuthenticationResponse;
255
+ declare const index_BeginRegistrationResponse: typeof BeginRegistrationResponse;
256
+ declare const index_BeginTransactionVerificationResponse: typeof BeginTransactionVerificationResponse;
257
+ declare const index_CryptoUtil: typeof CryptoUtil;
258
+ declare const index_CumulativeT2SignatureData: typeof CumulativeT2SignatureData;
259
+ declare const index_CumulativeT3SignatureData: typeof CumulativeT3SignatureData;
260
+ declare const index_ERC4337Utils: typeof ERC4337Utils;
261
+ declare const index_GasEstimate: typeof GasEstimate;
262
+ declare const index_GuardStatus: typeof GuardStatus;
263
+ declare const index_PasskeyAuthenticationParams: typeof PasskeyAuthenticationParams;
264
+ declare const index_PasskeyInfo: typeof PasskeyInfo;
265
+ declare const index_PasskeyManager: typeof PasskeyManager;
266
+ declare const index_PasskeyRegistrationParams: typeof PasskeyRegistrationParams;
267
+ declare const index_PreCheckResult: typeof PreCheckResult;
268
+ declare const index_TierConfig: typeof TierConfig;
269
+ declare const index_TierLevel: typeof TierLevel;
270
+ declare const index_TransactionVerificationParams: typeof TransactionVerificationParams;
271
+ declare const index_UserOpBuilder: typeof UserOpBuilder;
272
+ declare const index_UserOperation: typeof UserOperation;
273
+ declare const index_YAAAClient: typeof YAAAClient;
274
+ declare const index_YAAAConfig: typeof YAAAConfig;
275
+ declare const index_algIdForTier: typeof algIdForTier;
276
+ declare const index_resolveTier: typeof resolveTier;
277
+ declare namespace index {
278
+ export { index_ALG_BLS as ALG_BLS, index_ALG_CUMULATIVE_T2 as ALG_CUMULATIVE_T2, index_ALG_CUMULATIVE_T3 as ALG_CUMULATIVE_T3, index_ALG_ECDSA as ALG_ECDSA, index_ALG_P256 as ALG_P256, index_AlgId as AlgId, index_BLSConfig as BLSConfig, index_BLSManager as BLSManager, index_BLSNode as BLSNode, index_BLSSignatureData as BLSSignatureData, index_BeginAuthenticationResponse as BeginAuthenticationResponse, index_BeginRegistrationResponse as BeginRegistrationResponse, index_BeginTransactionVerificationResponse as BeginTransactionVerificationResponse, index_CryptoUtil as CryptoUtil, index_CumulativeT2SignatureData as CumulativeT2SignatureData, index_CumulativeT3SignatureData as CumulativeT3SignatureData, index_ERC4337Utils as ERC4337Utils, index_GasEstimate as GasEstimate, index_GuardStatus as GuardStatus, PackedUserOperation$1 as PackedUserOperation, index_PasskeyAuthenticationParams as PasskeyAuthenticationParams, index_PasskeyInfo as PasskeyInfo, index_PasskeyManager as PasskeyManager, index_PasskeyRegistrationParams as PasskeyRegistrationParams, index_PreCheckResult as PreCheckResult, index_TierConfig as TierConfig, index_TierLevel as TierLevel, index_TransactionVerificationParams as TransactionVerificationParams, index_UserOpBuilder as UserOpBuilder, index_UserOperation as UserOperation, index_YAAAClient as YAAAClient, index_YAAAConfig as YAAAConfig, index_algIdForTier as algIdForTier, index_resolveTier as resolveTier };
279
+ }
280
+
240
281
  declare const RoleIds: {
241
282
  readonly PAYMASTER_SUPER: `0x${string}`;
242
283
  readonly DVT: `0x${string}`;
@@ -608,4 +649,4 @@ declare const CustomErrors: {
608
649
  };
609
650
  declare function decodeContractError(error: any): string | null;
610
651
 
611
- export { type AdminClient, CustomErrors, type EndUserClient, type EnsureFundingParams, ExperimentClient, type ExperimentRecord, type FundETHParams, type FundTokenParams, FundingManager, type FundingParams, type FundingResult, KeyManager, type KeyPair, type CommunityClient as LegacyCommunityClient, type OperatorClient, type PackedUserOperation, type PaymasterGasParams, RoleDataFactory, type RoleId, RoleIds, type ScenarioParams, type UserOpGasParams, UserOpScenarioBuilder, UserOpScenarioType, UserOperationBuilder, createAdminClient, createCommunityClient, createEndUserClient, createOperatorClient, decodeContractError };
652
+ export { type AdminClient, AggregatorActions, index as AirAccount, CustomErrors, DVTActions, type EndUserClient, type EnsureFundingParams, ExperimentClient, type ExperimentRecord, type FundETHParams, type FundTokenParams, FundingManager, type FundingParams, type FundingResult, index as KMS, KeyManager, type KeyPair, type CommunityClient as LegacyCommunityClient, type OperatorClient, type PackedUserOperation, PaymasterActions, type PaymasterGasParams, RegistryActions, RoleDataFactory, type RoleId, RoleIds, SBTActions, type ScenarioParams, StakingActions, SuperPaymasterActions, type UserOpGasParams, UserOpScenarioBuilder, UserOpScenarioType, UserOperationBuilder, XPNTsFactoryActions, createAdminClient, createCommunityClient, createEndUserClient, createOperatorClient, decodeContractError };
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- export { ChannelClient, VOUCHER_TYPES, getVoucherDomain, signVoucher } from './chunk-Y3KP7R2Y.js';
2
- export { CommunityClient, UserLifecycle } from './chunk-R2RATIK2.js';
3
- export { UserClient } from './chunk-LNICTATJ.js';
4
- export { OperatorLifecycle, PaymasterOperatorClient, ProposalState, ProtocolClient } from './chunk-KL6SCEIU.js';
5
- export { ProtocolGovernance } from './chunk-5TDDS3T5.js';
6
- export { dist_exports as AirAccount } from './chunk-4KRQXOTI.js';
7
- export { UserOpClient, createEOAWalletClient, getUserOpHash, packUserOpLimits, toSimpleSmartAccount } from './chunk-YSDWB6DO.js';
8
- export { ReputationClient, checkMySBT, getMySBTId } from './chunk-O454V5ML.js';
9
- export { FinanceClient } from './chunk-M5ORP2PM.js';
10
- export { PaymasterClient, PaymasterManager, PaymasterOperator, SuperPaymasterAdminClient, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, checkEligibility, formatUserOpV07, getPaymasterV4Middleware, getSuperPaymasterMiddleware, getUserOpHashV07, tuneGasLimit } from './chunk-NAPMVAVJ.js';
11
- export { EIP3009_TYPES, FacilitatorClient, GTOKEN_EIP712_DOMAIN, HEADER_PAYMENT_REQUIRED, HEADER_PAYMENT_RESPONSE, HEADER_PAYMENT_SIGNATURE, HEADER_V1_PAYMENT, HEADER_V1_PAYMENT_RESPONSE, X402Client, decodePaymentPayload, decodePaymentRequired, decodeSettleResponse, encodePaymentPayload, encodePaymentRequired, encodeSettleResponse, extractPaymentRequired, extractSettleResponse, generateNonce, getEIP3009Domain, signCancelAuthorization, signGTokenTransferWithAuthorization, signReceiveWithAuthorization, signTransferWithAuthorization } from './chunk-QNYP7RPI.js';
12
- import { paymasterActions, superPaymasterActions, sbtActions, registryActions, RegistryABI, stakingActions, aggregatorActions, xPNTsFactoryActions, dvtActions, SuperPaymasterABI, xPNTsTokenABI, PaymasterFactoryABI } from './chunk-TBDMSJVL.js';
13
- 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, INITIAL_ROLE_STAKES, LINKS, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, 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, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, V2_SUMMARY, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountFactoryActions, blsAlgorithmActions, channelActions, createAAStarPublicClient, createHeliosTransport, dvtActions, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, 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, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './chunk-TBDMSJVL.js';
14
- import { getCanonicalAddresses, listSupportedChainIds, TEST_ACCOUNT_ADDRESSES, TOKEN_ADDRESSES, CORE_ADDRESSES, TEST_TOKEN_ADDRESSES } from './chunk-ZJLIKMCA.js';
15
- 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, getCanonicalAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-ZJLIKMCA.js';
1
+ export { ChannelClient, VOUCHER_TYPES, getVoucherDomain, signVoucher } from './chunk-LXWIPTPX.js';
2
+ export { CommunityClient, UserLifecycle } from './chunk-TENYCMJ3.js';
3
+ export { UserClient } from './chunk-PAABYXS6.js';
4
+ export { OperatorLifecycle, PaymasterOperatorClient, ProposalState, ProtocolClient } from './chunk-BN5WY5GM.js';
5
+ export { ProtocolGovernance } from './chunk-FJ7XECC5.js';
6
+ export { src_exports as AirAccount, src_exports as KMS } from './chunk-FUU7RIIA.js';
7
+ export { UserOpClient, createEOAWalletClient, getUserOpHash, packUserOpLimits, toSimpleSmartAccount } from './chunk-4EZD7LPE.js';
8
+ export { ReputationClient, checkMySBT, getMySBTId } from './chunk-PKCHRXFR.js';
9
+ export { FinanceClient } from './chunk-KDH3UPKD.js';
10
+ export { PaymasterClient, PaymasterManager, PaymasterOperator, SuperPaymasterAdminClient, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, checkEligibility, formatUserOpV07, getPaymasterV4Middleware, getSuperPaymasterMiddleware, getUserOpHashV07, tuneGasLimit } from './chunk-MVEWJIPY.js';
11
+ export { EIP3009_TYPES, FacilitatorClient, GTOKEN_EIP712_DOMAIN, HEADER_PAYMENT_REQUIRED, HEADER_PAYMENT_RESPONSE, HEADER_PAYMENT_SIGNATURE, HEADER_V1_PAYMENT, HEADER_V1_PAYMENT_RESPONSE, X402Client, decodePaymentPayload, decodePaymentRequired, decodeSettleResponse, encodePaymentPayload, encodePaymentRequired, encodeSettleResponse, extractPaymentRequired, extractSettleResponse, generateNonce, getEIP3009Domain, signCancelAuthorization, signGTokenTransferWithAuthorization, signReceiveWithAuthorization, signTransferWithAuthorization } from './chunk-7ARJ3OSU.js';
12
+ import { paymasterActions, superPaymasterActions, sbtActions, registryActions, RegistryABI, stakingActions, aggregatorActions, xPNTsFactoryActions, dvtActions, SuperPaymasterABI, xPNTsTokenABI, PaymasterFactoryABI } from './chunk-6QYXGMCR.js';
13
+ 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, INITIAL_ROLE_STAKES, LINKS, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, 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, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, V2_SUMMARY, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountFactoryActions, blsAlgorithmActions, channelActions, createAAStarPublicClient, createHeliosTransport, dvtActions, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, 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, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './chunk-6QYXGMCR.js';
14
+ import { getCanonicalAddresses, describeSupportedChains, TEST_ACCOUNT_ADDRESSES, TOKEN_ADDRESSES, CORE_ADDRESSES, TEST_TOKEN_ADDRESSES } from './chunk-G3UJC4EL.js';
15
+ 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-G3UJC4EL.js';
16
16
  import './chunk-PZ5AY32C.js';
17
17
  import { keccak256, stringToBytes, createClient, publicActions, walletActions, parseAbi, decodeAbiParameters, encodeAbiParameters, zeroAddress, decodeErrorResult, formatEther, http, createPublicClient, createWalletClient, parseEther, erc20Abi, concat, pad, parseAbiParameters, toBytes, encodeFunctionData } from 'viem';
18
18
  import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';
@@ -32,7 +32,7 @@ function createEndUserClient({
32
32
  const chainDefaults = getCanonicalAddresses(chain.id);
33
33
  if (!chainDefaults && !addresses) {
34
34
  throw new Error(
35
- `[createEndUserClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${listSupportedChainIds().join(", ")}.`
35
+ `[createEndUserClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${describeSupportedChains()}.`
36
36
  );
37
37
  }
38
38
  const usedAddresses = { ...CORE_ADDRESSES, ...TOKEN_ADDRESSES, ...TEST_ACCOUNT_ADDRESSES, ...chainDefaults, ...addresses };
@@ -232,7 +232,7 @@ function createEndUserClient({
232
232
  async checkJoinRequirements(address) {
233
233
  const accountToUse = address || account?.address;
234
234
  if (!accountToUse) throw new Error("Account address required for requirement check");
235
- const { RequirementChecker: RequirementChecker2 } = await import('./index.node-GNYPFVZQ.js');
235
+ const { RequirementChecker: RequirementChecker2 } = await import('./src-L5SI5WNB.js');
236
236
  const checker = new RequirementChecker2(client, usedAddresses);
237
237
  return await checker.checkRequirements({
238
238
  address: accountToUse,
@@ -242,7 +242,7 @@ function createEndUserClient({
242
242
  });
243
243
  },
244
244
  async createSmartAccount({ owner, salt = 0n }) {
245
- const { SimpleAccountFactoryABI: SimpleAccountFactoryABI2 } = await import('./index.node-GNYPFVZQ.js');
245
+ const { SimpleAccountFactoryABI: SimpleAccountFactoryABI2 } = await import('./src-L5SI5WNB.js');
246
246
  const { encodeFunctionData: encodeFunctionData2, concat: concat2 } = await import('viem');
247
247
  let factoryAddress = usedAddresses.simpleAccountFactory;
248
248
  console.log(` SDK: Using SimpleAccountFactory: ${factoryAddress} (Owner: ${owner}, Salt: ${salt})`);
@@ -273,7 +273,7 @@ function createEndUserClient({
273
273
  if (isDeployed) {
274
274
  console.log(` \u2139\uFE0F Account ${accountAddress} already deployed.`);
275
275
  } else {
276
- const { SimpleAccountFactoryABI: SimpleAccountFactoryABI2 } = await import('./index.node-GNYPFVZQ.js');
276
+ const { SimpleAccountFactoryABI: SimpleAccountFactoryABI2 } = await import('./src-L5SI5WNB.js');
277
277
  let factoryAddress = usedAddresses.simpleAccountFactory;
278
278
  if (!factoryAddress || factoryAddress === "0x0000000000000000000000000000000000000000") {
279
279
  factoryAddress = "0x9406Cc6185a346906296840746125a0E44976454";
@@ -493,7 +493,7 @@ function createOperatorClient({
493
493
  const chainDefaults = getCanonicalAddresses(chain.id);
494
494
  if (!chainDefaults && !addresses) {
495
495
  throw new Error(
496
- `[createOperatorClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${listSupportedChainIds().join(", ")}.`
496
+ `[createOperatorClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${describeSupportedChains()}.`
497
497
  );
498
498
  }
499
499
  const usedAddresses = { ...CORE_ADDRESSES, ...TEST_TOKEN_ADDRESSES, ...TEST_ACCOUNT_ADDRESSES, ...chainDefaults, ...addresses };
@@ -708,7 +708,7 @@ function createCommunityClient({
708
708
  const chainDefaults = getCanonicalAddresses(chain.id);
709
709
  if (!chainDefaults && !addresses) {
710
710
  throw new Error(
711
- `[createCommunityClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${listSupportedChainIds().join(", ")}.`
711
+ `[createCommunityClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${describeSupportedChains()}.`
712
712
  );
713
713
  }
714
714
  const usedAddresses = { ...CORE_ADDRESSES, ...TEST_TOKEN_ADDRESSES, ...chainDefaults, ...addresses };
@@ -980,7 +980,7 @@ function createAdminClient({
980
980
  const chainDefaults = getCanonicalAddresses(chain.id);
981
981
  if (!chainDefaults && !addresses) {
982
982
  throw new Error(
983
- `[createAdminClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${listSupportedChainIds().join(", ")}.`
983
+ `[createAdminClient] No canonical addresses for chainId ${chain.id}. Pass \`addresses\` explicitly, or use a supported chain: ${describeSupportedChains()}.`
984
984
  );
985
985
  }
986
986
  const usedAddresses = { ...CORE_ADDRESSES, ...TOKEN_ADDRESSES, ...chainDefaults, ...addresses };