@aastar/sdk 0.20.3 → 0.20.5

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 (58) hide show
  1. package/README.md +33 -25
  2. package/dist/UserClient-UYIHF6UJ.js +6 -0
  3. package/dist/{UserClient-JMNNZT4P.js.map → UserClient-UYIHF6UJ.js.map} +1 -1
  4. package/dist/account.js +3 -3
  5. package/dist/admin.js +3 -3
  6. package/dist/airaccount.js +1 -4497
  7. package/dist/airaccount.js.map +1 -1
  8. package/dist/channel.js +3 -3
  9. package/dist/{chunk-R2RATIK2.js → chunk-42KVVOOU.js} +9 -9
  10. package/dist/{chunk-R2RATIK2.js.map → chunk-42KVVOOU.js.map} +1 -1
  11. package/dist/{chunk-QNYP7RPI.js → chunk-6UHVUGDT.js} +3 -3
  12. package/dist/{chunk-QNYP7RPI.js.map → chunk-6UHVUGDT.js.map} +1 -1
  13. package/dist/{chunk-YSDWB6DO.js → chunk-FBDMID2J.js} +3 -3
  14. package/dist/{chunk-YSDWB6DO.js.map → chunk-FBDMID2J.js.map} +1 -1
  15. package/dist/{chunk-LNICTATJ.js → chunk-FIS3RUGL.js} +6 -6
  16. package/dist/{chunk-LNICTATJ.js.map → chunk-FIS3RUGL.js.map} +1 -1
  17. package/dist/{chunk-O454V5ML.js → chunk-HNTLDUL7.js} +3 -3
  18. package/dist/{chunk-O454V5ML.js.map → chunk-HNTLDUL7.js.map} +1 -1
  19. package/dist/{chunk-NAPMVAVJ.js → chunk-I3VRFZA4.js} +3 -3
  20. package/dist/{chunk-NAPMVAVJ.js.map → chunk-I3VRFZA4.js.map} +1 -1
  21. package/dist/{chunk-ZJLIKMCA.js → chunk-NRH56SAJ.js} +13 -3
  22. package/dist/chunk-NRH56SAJ.js.map +1 -0
  23. package/dist/{chunk-M5ORP2PM.js → chunk-QJT4IOIS.js} +8 -8
  24. package/dist/{chunk-M5ORP2PM.js.map → chunk-QJT4IOIS.js.map} +1 -1
  25. package/dist/{chunk-TBDMSJVL.js → chunk-TIH7D4FQ.js} +12 -12
  26. package/dist/{chunk-TBDMSJVL.js.map → chunk-TIH7D4FQ.js.map} +1 -1
  27. package/dist/{chunk-KL6SCEIU.js → chunk-VYU6P7HB.js} +4 -4
  28. package/dist/{chunk-KL6SCEIU.js.map → chunk-VYU6P7HB.js.map} +1 -1
  29. package/dist/chunk-WPSWFZKF.js +4499 -0
  30. package/dist/chunk-WPSWFZKF.js.map +1 -0
  31. package/dist/{chunk-5TDDS3T5.js → chunk-ZFIKBDBT.js} +3 -3
  32. package/dist/{chunk-5TDDS3T5.js.map → chunk-ZFIKBDBT.js.map} +1 -1
  33. package/dist/{chunk-Y3KP7R2Y.js → chunk-ZGOEADCO.js} +3 -3
  34. package/dist/{chunk-Y3KP7R2Y.js.map → chunk-ZGOEADCO.js.map} +1 -1
  35. package/dist/{contract-addresses-VLAHHXOO.js → contract-addresses-ADEWLDHE.js} +3 -3
  36. package/dist/{contract-addresses-VLAHHXOO.js.map → contract-addresses-ADEWLDHE.js.map} +1 -1
  37. package/dist/core.js +2 -2
  38. package/dist/dapp.js +3 -3
  39. package/dist/{dist-WMYQOYRO.js → dist-GVWCRI4F.js} +5 -5
  40. package/dist/{dist-WMYQOYRO.js.map → dist-GVWCRI4F.js.map} +1 -1
  41. package/dist/enduser.js +4 -4
  42. package/dist/identity.js +3 -3
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.js +22 -22
  45. package/dist/index.js.map +1 -1
  46. package/dist/{index.node-GNYPFVZQ.js → index.node-KIKM4EG6.js} +4 -4
  47. package/dist/{index.node-GNYPFVZQ.js.map → index.node-KIKM4EG6.js.map} +1 -1
  48. package/dist/kms.d.ts +2 -0
  49. package/dist/kms.js +5 -0
  50. package/dist/kms.js.map +1 -0
  51. package/dist/operator.js +3 -3
  52. package/dist/paymaster.js +3 -3
  53. package/dist/tokens.js +3 -3
  54. package/dist/x402.js +3 -3
  55. package/package.json +20 -16
  56. package/LICENSE +0 -180
  57. package/dist/UserClient-JMNNZT4P.js +0 -6
  58. package/dist/chunk-ZJLIKMCA.js.map +0 -1
@@ -1,5 +1,5 @@
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, 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';
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, getCanonicalAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-ZJLIKMCA.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, 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-TIH7D4FQ.js';
2
+ export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-NRH56SAJ.js';
3
3
  import './chunk-PZ5AY32C.js';
4
- //# sourceMappingURL=index.node-GNYPFVZQ.js.map
5
- //# sourceMappingURL=index.node-GNYPFVZQ.js.map
4
+ //# sourceMappingURL=index.node-KIKM4EG6.js.map
5
+ //# sourceMappingURL=index.node-KIKM4EG6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.node-GNYPFVZQ.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.node-KIKM4EG6.js"}
package/dist/kms.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from '@aastar/airaccount/server';
2
+ export * from '@aastar/airaccount';
package/dist/kms.js ADDED
@@ -0,0 +1,5 @@
1
+ export { ACCOUNT_ABI, AGENT_SESSION_KEY_VALIDATOR_ABI, AIRACCOUNT_ABI, AIRACCOUNT_ADDRESSES, AIRACCOUNT_FACTORY_ABI, AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI, AIR_ACCOUNT_DELEGATE_ABI, AIR_ACCOUNT_DELEGATE_ADDRESS, ALG_ID, AccountManager, AgentRegistryService, BLSSignatureService, CALLDATA_PARSER_REGISTRY_ABI, ConsoleLogger, DEFAULT_CREDENTIAL_ID, DEFAULT_KMS_ENDPOINT, DEFAULT_ORIGIN, DEFAULT_RP_ID, DvtPendingConfirmationError, EIP7702DelegateService, ENTRYPOINT_ABI_V6, ENTRYPOINT_ABI_V7_V8, ENTRYPOINT_ADDRESSES, ERC20_ABI, ERC8004Service, ERC8004_ADDRESSES, EXECUTE_BATCH_SELECTOR, EXECUTE_SELECTOR, EXECUTE_USER_OP_SELECTOR, EntryPointVersion, EthereumProvider, FACTORY_ABI_V6, FACTORY_ABI_V7_V8, FORCE_EXIT_MODULE_ABI, ForceExitService, GLOBAL_GUARD_ABI, GuardChecker, GuardStateReader, KmsAgentService, KmsHttpClient, KmsManager, KmsMonitorService, KmsPaymentSigner, KmsSessionService, KmsSigner, L2_TYPE, LocalWalletSigner, MAX_GUARDIANS, MODULE_TYPE, MemoryStorage, ModuleManager, P256PasskeySigner, PaymasterManager, PaymasterPriceStalenessError, RECOVERY_THRESHOLD, RECOVERY_TIMELOCK_SECONDS, RecoveryService, SESSION_KEY_VALIDATOR_ABI, SessionKeyService, SilentLogger, TIER_GUARD_HOOK_ABI, TokenService, TransferManager, VALIDATOR_ABI, WEIGHT_CHANGE_EXPIRY_SECONDS, WEIGHT_CHANGE_THRESHOLD, WEIGHT_CHANGE_TIMELOCK_SECONDS, WalletManager, WeightedSignatureService, YAAAServerClient, base64UrlDecode, base64UrlEncode, beginAuthenticationChallenge, beginGrantSessionChallenge, buildAuthenticationCredential, buildAuthenticatorData, buildClientDataJSON, buildInstallModuleHash, buildUninstallModuleHash, computeOapdSalt, erc8004AddressesForChain, getOapdAddress, getOapdAddressWithChainId, isExecuteUserOpWrapped, isOapdDeployed, isPendingConfirmation, packP256SessionSignature, packSecp256k1SessionSignature, runAuthenticationCeremony, runGrantSessionCeremony, runWebAuthnCeremony, sepoliaV07Config, validateConfig, wrapExecuteUserOp } from './chunk-WPSWFZKF.js';
2
+ export { BLSManager, CryptoUtil, ERC4337Utils, PasskeyManager, UserOpBuilder, YAAAClient } from './chunk-4KRQXOTI.js';
3
+ import './chunk-PZ5AY32C.js';
4
+ //# sourceMappingURL=kms.js.map
5
+ //# sourceMappingURL=kms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"kms.js"}
package/dist/operator.js CHANGED
@@ -1,6 +1,6 @@
1
- export { OperatorLifecycle, PaymasterOperatorClient, ProposalState, ProtocolClient } from './chunk-KL6SCEIU.js';
2
- import './chunk-TBDMSJVL.js';
3
- import './chunk-ZJLIKMCA.js';
1
+ export { OperatorLifecycle, PaymasterOperatorClient, ProposalState, ProtocolClient } from './chunk-VYU6P7HB.js';
2
+ import './chunk-TIH7D4FQ.js';
3
+ import './chunk-NRH56SAJ.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  //# sourceMappingURL=operator.js.map
6
6
  //# sourceMappingURL=operator.js.map
package/dist/paymaster.js CHANGED
@@ -1,6 +1,6 @@
1
- export { PaymasterClient, PaymasterManager, PaymasterOperator, SuperPaymasterAdminClient, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, checkEligibility, formatUserOpV07, getPaymasterV4Middleware, getSuperPaymasterMiddleware, getUserOpHashV07, tuneGasLimit } from './chunk-NAPMVAVJ.js';
2
- import './chunk-TBDMSJVL.js';
3
- import './chunk-ZJLIKMCA.js';
1
+ export { PaymasterClient, PaymasterManager, PaymasterOperator, SuperPaymasterAdminClient, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, checkEligibility, formatUserOpV07, getPaymasterV4Middleware, getSuperPaymasterMiddleware, getUserOpHashV07, tuneGasLimit } from './chunk-I3VRFZA4.js';
2
+ import './chunk-TIH7D4FQ.js';
3
+ import './chunk-NRH56SAJ.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  //# sourceMappingURL=paymaster.js.map
6
6
  //# sourceMappingURL=paymaster.js.map
package/dist/tokens.js CHANGED
@@ -1,6 +1,6 @@
1
- export { FinanceClient } from './chunk-M5ORP2PM.js';
2
- import './chunk-TBDMSJVL.js';
3
- import './chunk-ZJLIKMCA.js';
1
+ export { FinanceClient } from './chunk-QJT4IOIS.js';
2
+ import './chunk-TIH7D4FQ.js';
3
+ import './chunk-NRH56SAJ.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  //# sourceMappingURL=tokens.js.map
6
6
  //# sourceMappingURL=tokens.js.map
package/dist/x402.js CHANGED
@@ -1,6 +1,6 @@
1
- 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';
2
- import './chunk-TBDMSJVL.js';
3
- import './chunk-ZJLIKMCA.js';
1
+ 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-6UHVUGDT.js';
2
+ import './chunk-TIH7D4FQ.js';
3
+ import './chunk-NRH56SAJ.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  //# sourceMappingURL=x402.js.map
6
6
  //# sourceMappingURL=x402.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aastar/sdk",
3
- "version": "0.20.3",
3
+ "version": "0.20.5",
4
4
  "description": "All-in-one TypeScript SDK for the AAStar Protocol / Mycelium Network — ERC-4337 account abstraction, gasless transactions, SuperPaymaster gas sponsorship, KMS WebAuthn passkeys, BLS aggregate signatures, multi-chain (Optimism + Ethereum) community economies & reputation. Single bundled package with subpath exports.",
5
5
  "keywords": [
6
6
  "erc-4337",
@@ -31,7 +31,7 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "license": "MIT",
34
+ "license": "Apache-2.0",
35
35
  "main": "dist/index.js",
36
36
  "module": "dist/index.js",
37
37
  "types": "dist/index.d.ts",
@@ -84,6 +84,10 @@
84
84
  "types": "./dist/admin.d.ts",
85
85
  "import": "./dist/admin.js"
86
86
  },
87
+ "./kms": {
88
+ "types": "./dist/kms.d.ts",
89
+ "import": "./dist/kms.js"
90
+ },
87
91
  "./airaccount": {
88
92
  "types": "./dist/airaccount.d.ts",
89
93
  "import": "./dist/airaccount.js"
@@ -111,24 +115,24 @@
111
115
  }
112
116
  },
113
117
  "devDependencies": {
118
+ "@aastar/account": "workspace:*",
119
+ "@aastar/core": "workspace:*",
120
+ "@aastar/dapp": "workspace:*",
121
+ "@aastar/enduser": "workspace:*",
122
+ "@aastar/identity": "workspace:*",
123
+ "@aastar/paymaster": "workspace:*",
124
+ "@aastar/tokens": "workspace:*",
125
+ "@aastar/operator": "workspace:*",
126
+ "@aastar/admin": "workspace:*",
127
+ "@aastar/airaccount": "workspace:*",
128
+ "@aastar/x402": "workspace:*",
129
+ "@aastar/channel": "workspace:*",
114
130
  "tsup": "^8.0.0",
115
- "typescript": "5.7.2",
116
- "@aastar/account": "0.20.1",
117
- "@aastar/enduser": "0.20.1",
118
- "@aastar/dapp": "0.20.1",
119
- "@aastar/tokens": "0.20.1",
120
- "@aastar/identity": "0.20.1",
121
- "@aastar/admin": "0.20.1",
122
- "@aastar/x402": "0.20.1",
123
- "@aastar/core": "0.20.1",
124
- "@aastar/airaccount": "0.20.1",
125
- "@aastar/operator": "0.20.1",
126
- "@aastar/channel": "0.20.1",
127
- "@aastar/paymaster": "0.20.1"
131
+ "typescript": "5.7.2"
128
132
  },
129
133
  "scripts": {
130
134
  "build": "tsup",
131
135
  "example:local": "tsx examples/regression_test.ts",
132
136
  "test": "vitest run"
133
137
  }
134
- }
138
+ }
package/LICENSE DELETED
@@ -1,180 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction, and
10
- distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by the
13
- copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all other
16
- entities that control, are controlled by, or are under common control with
17
- that entity. For the purposes of this definition, "control" means (i) the
18
- power, direct or indirect, to cause the direction or management of such
19
- entity, whether by contract or otherwise, or (ii) ownership of fifty
20
- percent (50%) or more of the outstanding shares, or (iii) beneficial
21
- ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity exercising
24
- permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation source,
28
- and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical transformation
31
- or translation of a Source form, including but not limited to compiled
32
- object code, generated documentation, and conversions to other media types.
33
-
34
- "Work" shall mean the work of authorship, whether in Source or Object form,
35
- made available under the License, as indicated by a copyright notice that
36
- is included in or attached to the work (an example is provided in the
37
- Appendix below).
38
-
39
- "Derivative Works" shall mean any work, whether in Source or Object form,
40
- that is based on (or derived from) the Work and for which the editorial
41
- revisions, annotations, elaborations, or other modifications represent,
42
- as a whole, an original work of authorship. For the purposes of this
43
- License, Derivative Works shall not include works that remain separable
44
- from, or merely link (or bind by name) to the interfaces of, the Work
45
- and Derivative Works thereof.
46
-
47
- "Contribution" shall mean any work of authorship, including the original
48
- version of the Work and any modifications or additions to that Work or
49
- Derivative Works thereof, that is intentionally submitted to the Licensor
50
- for inclusion in the Work by the copyright owner or by an individual or
51
- Legal Entity authorized to submit on behalf of the copyright owner. For
52
- the purposes of this definition, "submitted" means any form of electronic,
53
- verbal, or written communication sent to the Licensor or its
54
- representatives, including but not limited to communication on electronic
55
- mailing lists, source code control systems, and issue tracking systems
56
- that are managed by, or on behalf of, the Licensor for the purpose of
57
- discussing and improving the Work, but excluding communication that is
58
- conspicuously marked or otherwise designated in writing by the copyright
59
- owner as "Not a Contribution."
60
-
61
- "Contributor" shall mean Licensor and any individual or Legal Entity on
62
- behalf of whom a Contribution has been received by the Licensor and
63
- subsequently incorporated within the Work.
64
-
65
- 2. Grant of Copyright License. Subject to the terms and conditions of this
66
- License, each Contributor hereby grants to You a perpetual, worldwide,
67
- non-exclusive, no-charge, royalty-free, irrevocable copyright license to
68
- reproduce, prepare Derivative Works of, publicly display, publicly perform,
69
- sublicense, and distribute the Work and such Derivative Works in Source or
70
- Object form.
71
-
72
- 3. Grant of Patent License. Subject to the terms and conditions of this
73
- License, each Contributor hereby grants to You a perpetual, worldwide,
74
- non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
75
- this section) patent license to make, have made, use, offer to sell, sell,
76
- import, and otherwise transfer the Work, where such license applies only
77
- to those patent claims licensable by such Contributor that are necessarily
78
- infringed by their Contribution(s) alone or by combination of their
79
- Contribution(s) with the Work to which such Contribution(s) was submitted.
80
- If You institute patent litigation against any entity (including a
81
- cross-claim or counterclaim in a lawsuit) alleging that the Work or a
82
- Contribution incorporated within the Work constitutes direct or
83
- contributory patent infringement, then any patent licenses granted to You
84
- under this License for that Work shall terminate as of the date such
85
- litigation is filed.
86
-
87
- 4. Redistribution. You may reproduce and distribute copies of the Work or
88
- Derivative Works thereof in any medium, with or without modifications, and
89
- in Source or Object form, provided that You meet the following conditions:
90
-
91
- (a) You must give any other recipients of the Work or Derivative Works a
92
- copy of this License; and
93
-
94
- (b) You must cause any modified files to carry prominent notices stating
95
- that You changed the files; and
96
-
97
- (c) You must retain, in the Source form of any Derivative Works that You
98
- distribute, all copyright, patent, trademark, and attribution notices from
99
- the Source form of the Work, excluding those notices that do not pertain to
100
- any part of the Derivative Works; and
101
-
102
- (d) If the Work includes a "NOTICE" text file as part of its distribution,
103
- then any Derivative Works that You distribute must include a readable copy
104
- of the attribution notices contained within such NOTICE file, excluding any
105
- notices that do not pertain to any part of the Derivative Works, in at
106
- least one of the following places: within a NOTICE text file distributed as
107
- part of the Derivative Works; within the Source form or documentation, if
108
- provided along with the Derivative Works; or, within a display generated by
109
- the Derivative Works, if and wherever such third-party notices normally
110
- appear. The contents of the NOTICE file are for informational purposes only
111
- and do not modify the License. You may add Your own attribution notices
112
- within Derivative Works that You distribute, alongside or as an addendum to
113
- the NOTICE text from the Work, provided that such additional attribution
114
- notices cannot be construed as modifying the License.
115
-
116
- You may add Your own copyright statement to Your modifications and may
117
- provide additional or different license terms and conditions for use,
118
- reproduction, or distribution of Your modifications, or for any such
119
- Derivative Works as a whole, provided Your use, reproduction, and
120
- distribution of the Work otherwise complies with the conditions stated in
121
- this License.
122
-
123
- 5. Submission of Contributions. Unless You explicitly state otherwise, any
124
- Contribution intentionally submitted for inclusion in the Work by You to
125
- the Licensor shall be under the terms and conditions of this License,
126
- without any additional terms or conditions. Notwithstanding the above,
127
- nothing herein shall supersede or modify the terms of any separate license
128
- agreement you may have executed with Licensor regarding such Contributions.
129
-
130
- 6. Trademarks. This License does not grant permission to use the trade
131
- names, trademarks, service marks, or product names of the Licensor, except
132
- as required for reasonable and customary use in describing the origin of
133
- the Work and reproducing the content of the NOTICE file.
134
-
135
- 7. Disclaimer of Warranty. Unless required by applicable law or agreed to
136
- in writing, Licensor provides the Work (and each Contributor provides its
137
- Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
138
- KIND, either express or implied, including, without limitation, any
139
- warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
140
- FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
141
- determining the appropriateness of using or redistributing the Work and
142
- assume any risks associated with Your exercise of permissions under this
143
- License.
144
-
145
- 8. Limitation of Liability. In no event and under no legal theory, whether
146
- in tort (including negligence), contract, or otherwise, unless required by
147
- applicable law (such as deliberate and grossly negligent acts) or agreed to
148
- in writing, shall any Contributor be liable to You for damages, including
149
- any direct, indirect, special, incidental, or consequential damages of any
150
- character arising as a result of this License or out of the use or
151
- inability to use the Work (including but not limited to damages for loss of
152
- goodwill, work stoppage, computer failure or malfunction, or any and all
153
- other commercial damages or losses), even if such Contributor has been
154
- advised of the possibility of such damages.
155
-
156
- 9. Accepting Warranty or Additional Liability. While redistributing the
157
- Work or Derivative Works thereof, You may choose to offer, and charge a fee
158
- for, acceptance of support, warranty, indemnity, or other liability
159
- obligations and/or rights consistent with this License. However, in
160
- accepting such obligations, You may act only on Your own behalf and on Your
161
- sole responsibility, not on behalf of any other Contributor, and only if
162
- You agree to indemnify, defend, and hold each Contributor harmless for any
163
- liability incurred by, or claims asserted against, such Contributor by
164
- reason of your accepting any such warranty or additional liability.
165
-
166
- END OF TERMS AND CONDITIONS
167
-
168
- Copyright 2024-present MushroomDAO Contributors
169
-
170
- Licensed under the Apache License, Version 2.0 (the "License");
171
- you may not use this file except in compliance with the License.
172
- You may obtain a copy of the License at
173
-
174
- http://www.apache.org/licenses/LICENSE-2.0
175
-
176
- Unless required by applicable law or agreed to in writing, software
177
- distributed under the License is distributed on an "AS IS" BASIS,
178
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
- See the License for the specific language governing permissions and
180
- limitations under the License.
@@ -1,6 +0,0 @@
1
- export { UserClient } from './chunk-LNICTATJ.js';
2
- import './chunk-TBDMSJVL.js';
3
- import './chunk-ZJLIKMCA.js';
4
- import './chunk-PZ5AY32C.js';
5
- //# sourceMappingURL=UserClient-JMNNZT4P.js.map
6
- //# sourceMappingURL=UserClient-JMNNZT4P.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../core/dist/addresses.js","../../core/dist/constants.js","../../core/dist/contract-addres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BAAA;AAAA,EAC3B,4BAAA,EAA8B;AAClC;AAIO,IAAM,oBAAA,GAAuB;AAAA,EAChC,YAAA,EAAc,qBAAA;AAAA,EACd,aAAA,EAAe;AACnB;AAIO,IAAM,kBAAA,GAAqB;AAAA,EAC9B,YAAa,mBAAA,IAAuB;AACxC;AAIO,IAAM,gBAAA,GAAmB;AAAA,EAC5B,WAAA,EAAa,4CAAA;AAAA;AAAA,EACb,mBAAA,EAAqB;AAAA;AACzB;AAIO,IAAM,gBAAA,GAAmB;AAAA,EAC5B,MAAA,EAAQ,QAAQ,GAAA,CAAI,qBAAA;AAAA,EACpB,KAAA,EAAO,QAAQ,GAAA,CAAI,oBAAA;AAAA,EACnB,QAAA,EAAU,QAAQ,GAAA,CAAI;AAC1B;AAIO,IAAM,aAAA,GAAgB;AAAA,EACzB,GAAG,cAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,oBAAA;AAAA,EACH,GAAG,sBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,oBAAA;AAAA,EACH,GAAG;AACP","file":"chunk-ZJLIKMCA.js","sourcesContent":["/**\n * Canonical Contract Addresses for Supported Networks\n * These are hardcoded as defaults for NPM distribution.\n *\n * SINGLE SOURCE OF TRUTH for SDK contract addresses (Beta3.1 P2.8).\n * The root `config.{network}.json` files are dev/deploy-time overrides and MUST\n * agree with this table for any network that has a chainId entry here. The\n * `scripts/check-address-consistency.ts` drift check (CI: `pnpm run check:addresses`)\n * enforces that. NOTE: `@aastar/shared-config` is a separate external repo (vendored\n * as git submodules under ext/ and lib/), NOT a workspace package and NOT the SDK's\n * source of truth — do not treat it as canonical here.\n */\nexport const CANONICAL_ADDRESSES = {\n // --- Optimism (Chain ID: 10) ---\n 10: {\n registry: \"0x997686219F31405503D32728B1f094F115EF24e7\",\n gToken: \"0x8d6Fe002dDacCcFBD377F684EC1825f2E1ab7ef6\",\n staking: \"0x7A1216C2d814D2389698C64eD23AA1aA9Eb6343E\",\n sbt: \"0x28eBFc5fc03B1d7648254AbF1C7B39DbFdef1a94\",\n reputationSystem: \"0xA9560898dC0eE4F9Ed3F1db17dbf74dE65e925c2\",\n superPaymaster: \"0xA2c9A6e95f19f5D2a364CBCbB5f0b32B1B4d140E\",\n paymasterFactory: \"0x58A7F6E44a57028A255794119F8b37124c9a7eB8\",\n paymasterV4: \"0x67a70a578E142b950987081e7016906ae4F56Df4\", // AAStar Community PM (Jason)\n paymasterV4Impl: \"0xc4dd13F7825409EEC13FBCBdD9D8f6d618207cca\",\n xPNTsFactory: \"0x864971a26384d9DCC7115f0bBC428e2623F28b6e\",\n blsAggregator: \"0x1C305372ecc5a36CBef1FA371392234bCD55eB19\",\n blsValidator: \"0xA88ADec5A8dc422B57488272d5aD5913d728942A\",\n dvtValidator: \"0x31Ede6454a56293f7cf2323CA5d5F9a6230558Fb\",\n entryPoint: \"0x0000000071727De22E5E9d8BAf0edAc6f37da032\",\n aPNTs: \"0x0B41C78081B5A141eb4C3C7E7FD8E58A7Bde553B\",\n priceFeed: \"0x13e3Ee699D1909E989722E753853AE30b17e08c5\",\n simpleAccountFactory: \"0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985\",\n microPaymentChannel: \"0x0000000000000000000000000000000000000000\",\n agentIdentityRegistry: \"0x0000000000000000000000000000000000000000\",\n agentReputationRegistry: \"0x0000000000000000000000000000000000000000\",\n // ERC-8004 agent validation registry (SP v5.4) — not yet deployed on this chain.\n agentValidationRegistry: \"0x0000000000000000000000000000000000000000\",\n // --- AirAccount v0.17.2-beta.2 stack (not yet deployed on this chain) ---\n aaStarBLSAlgorithm: \"0x0000000000000000000000000000000000000000\",\n aaStarValidator: \"0x0000000000000000000000000000000000000000\",\n aaStarBLSAggregator: \"0x0000000000000000000000000000000000000000\",\n sessionKeyValidator: \"0x0000000000000000000000000000000000000000\",\n forceExitModule: \"0x0000000000000000000000000000000000000000\",\n airAccountDelegate: \"0x0000000000000000000000000000000000000000\",\n calldataParserRegistry: \"0x0000000000000000000000000000000000000000\",\n airAccountFactoryV7: \"0x0000000000000000000000000000000000000000\",\n airAccountV7Impl: \"0x0000000000000000000000000000000000000000\",\n airAccountExtension: \"0x0000000000000000000000000000000000000000\",\n agentRegistry: \"0x0000000000000000000000000000000000000000\",\n // SP v5.4 PolicyRegistry (DVT layer-1) — not yet deployed on this chain.\n policyRegistry: \"0x0000000000000000000000000000000000000000\",\n // SP v5.4 x402 settlement facilitator — not yet deployed on this chain.\n x402Facilitator: \"0x0000000000000000000000000000000000000000\",\n // SP v5.4 governance TimelockController — not yet deployed on this chain.\n timelockController: \"0x0000000000000000000000000000000000000000\",\n // Mycelium community PNTs token — Sepolia-only testbed; zero on mainnets.\n // Kept here so the inferred CanonicalAddresses union has `pnts` on every\n // chain (consumers see Address, not Address|undefined per-chain).\n pnts: \"0x0000000000000000000000000000000000000000\",\n },\n // --- Sepolia (Chain ID: 11155111) ---\n // Source of truth: SuperPaymaster repo `deployments/config.sepolia.json`\n // AirAccount repo docs/e2e/E2E_TESTDATA_v0.18.0-beta.2.md\n // Latest sync: 2026-06-16 — SuperPaymaster v5.4.0-beta.1-redeploy (fresh Sepolia\n // redeploy, deployments/config.sepolia.json updateTime 2026-06-16) + AirAccount\n // contracts v0.19.0-beta.2 (pin only; surface identical to v0.18.0-beta.2, same addresses).\n // SP proxy 0x0300... (impl 0x24a945...), Registry 0x3F92... (impl 0x177033...)\n // v5.4 keys: x402Facilitator 0x326Fc3..., policyRegistry 0x8c2488..., timelockController 0xB734df...\n // AirAccount v0.19.0-beta.2 factory 0x1b69... (NEW ctor: impl injected as arg 1).\n // NOTE: #60 syncs the v0.18 read-layer + addresses ONLY; v0.18 runtime-signing\n // behavioral changes (BLS packer / #45 hash_to_curve binding) are a separate follow-up.\n // NOTE: `paymasterV4` below is a per-community AOA proxy (not in core config);\n // verify against the community's own deployment before use.\n 11155111: {\n registry: \"0x3F920B25f8b65988359C372F66F036E48adFc556\",\n gToken: \"0x20a051502a7AE6e40cfFd6EBe59057538E698984\",\n staking: \"0x3B363598746Ea57314d4869B160940948c569D48\",\n sbt: \"0x072A0D12f4212B6baD7c6d0A633eaffbDE9105bF\",\n reputationSystem: \"0x7fEd690E1663755e24a1C9d6164336809d68a578\",\n superPaymaster: \"0x030025f40d509b1a99547bAEb3795bD27F7182b7\", // proxy (impl 0x24a94572...; 2026-06-16 redeploy)\n paymasterFactory: \"0x0Aa06EA5295eeD4D48c93c594Db1CBf3626971A5\",\n paymasterV4: \"0x1f0D4eF151a79948070D387BaC43b1321F0c41e3\", // Anni's V4 proxy — NOT in core config, verify separately\n paymasterV4Impl: \"0x59DCA5861aaDA602fE1BFbfcc36DFAc36C58623d\",\n xPNTsFactory: \"0xCec3655525a112882E74Fb7C26AcB267a07724cb\", // 2026-06-16 redeploy (was 0xc312...)\n blsAggregator: \"0x15387e161c1b3dAe7c66Fbd5c1F32837B58B2e79\", // SP BLSAggregator 2026-06-16 redeploy (was 0x7ec7...)\n blsValidator: \"0x0A71C5a32b8CBC517523D2C88b539Ab22AeF0654\", // deprecated; aggregator verifies BLS inline\n dvtValidator: \"0x19BA9829C784E4A41b68960b9c0bA55f83718997\",\n entryPoint: \"0x0000000071727De22E5E9d8BAf0edAc6f37da032\",\n aPNTs: \"0x9e66B457E0ABb1F139FD8A596d00f784eBA2873b\", // AAStar aPNTs (deployer operator)\n priceFeed: \"0x694AA1769357215DE4FAC081bf1f309aDC325306\", // Sepolia Chainlink ETH/USD\n simpleAccountFactory: \"0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985\",\n microPaymentChannel: \"0x405851A141Cde827E33247d4D4089Af2814c2FF5\", // SP v5.4 2026-06-16 redeploy (was 0xfCC9...)\n agentIdentityRegistry: \"0x8004A818BFB912233c491871b3d84c89A494BD9e\", // ERC-8004 vanity addr (beta.3)\n agentReputationRegistry: \"0x8004B663056A597Dffe9eCcC1965A193B7388713\",\n // ERC-8004 agent validation registry (SP v5.4) — present in SP config.\n agentValidationRegistry: \"0x8004Cb1BF31DAf7788923b405b754f57acEB4272\",\n // --- AirAccount v0.19.0-beta.2 stack (FULL Sepolia redeploy 2026-06-16) ---\n // v0.19 has NO new Solidity logic (feature set identical to v0.18.0-beta.2), but it\n // bumped ACCOUNT_VERSION/FACTORY_VERSION/accountId() → \"0.19.0\", which changes bytecode\n // and therefore redeployed the ENTIRE stack to fresh addresses. All 11 below moved —\n // the v0.18.0-beta.2 addresses are now stale. Verified by the v0.19 36-scenario on-chain\n // E2E (Safe-guardian recovery #42 + KMS contract-side #67) + DVT real-node validate=0.\n // Source of truth: AirAccount repo CHANGELOG.md [v0.19.0-beta.2] \"Deployed (Sepolia 2026-06-16)\".\n // NOTE: factory ctor is NEW — impl injected as arg 1.\n aaStarBLSAlgorithm: \"0x68c381Ad3A2e3380F22840008027E9Ec2783F43A\", // v0.19.0-beta.2 (#45 on-chain hash_to_curve; Ownable2Step; aggregator() getter)\n aaStarValidator: \"0xC20A986Bcd5bF5Cc2fE5fFde6b155B8419E0389e\", // v0.19.0-beta.2 (ValidatorRouter, set-once validator)\n aaStarBLSAggregator: \"0x77f7bf95B8602b7851f392F412257539242947e0\", // v0.19.0-beta.2 (new ctor (blsAlgorithm, entryPoint))\n sessionKeyValidator: \"0x70de2e36004d6Ddc24DEB80e1Ef76c03EdC0c2AE\", // v0.19.0-beta.2 (cap + velocity)\n forceExitModule: \"0xd882a16Ea37Be463D1885EF4a397Dbbf157dC211\", // v0.19.0-beta.2 (TOCTOU re-verify)\n airAccountDelegate: \"0xA8D7f70c9D36bC4a4eb14F0dCEE19053FCB3309f\", // v0.19.0-beta.2\n calldataParserRegistry: \"0xb8Af1C039dF88F6bD9fE36Ca683492a3c09e7D17\", // v0.19.0-beta.2\n airAccountFactoryV7: \"0x52c5190E7308Ea9B149157FF016cC99B6C6bf984\", // v0.19.0-beta.2 (NEW ctor: implementation injected as arg 1)\n airAccountV7Impl: \"0x7fe62d512f0b8238DE6Ff17175DcE40eA312bBF2\", // v0.19.0-beta.2\n airAccountExtension: \"0xD61C0F3DE6D98070E9986743d35A56d56855A249\", // v0.19.0-beta.2 (module-install timelock)\n agentRegistry: \"0x3895b3E6fEf4e121E6289dC7881A0eEd5283C652\", // v0.19.0-beta.2 (bindFactory set-once)\n // SP v5.4 PolicyRegistry (DVT layer-1), deployed on Sepolia.\n // Source of truth: SuperPaymaster repo deployments/config.sepolia.json (v5.4.0-beta.1).\n policyRegistry: \"0x8c2488d46d5447418558c38AA6441720df656094\",\n // SP v5.4 x402 settlement facilitator (verify/settle EIP-3009 + direct xPNTs).\n x402Facilitator: \"0x326Fc3413c8A0185b0179B971C69813B6dFD971B\",\n // SP v5.4 governance TimelockController (2-day minDelay; gates PolicyRegistry loosen/unfreeze).\n timelockController: \"0xB734df3c0A1809bc06708512363D368Ac51dF1A2\",\n // Base PNTs token — authoritative value from the SuperPaymaster Sepolia\n // deployment (deployments/config.sepolia.json) and config.sepolia.json here.\n // Was 0x6A230Fa25b9Ec12eeF8eeb8d2FbE32CF29c6edC6 (\"Anni's xPNTsToken\"), which\n // drifted from the live deployment; realigned per \"Sepolia deployment is the\n // source of truth\". A community-specific xPNTs belongs under its own key, not\n // the canonical base `pnts`.\n pnts: \"0xC687f8a115D308ECD39658a8EE33bC3c8F75EE31\",\n },\n // --- OP Sepolia (Chain ID: 11155420) ---\n 11155420: {\n registry: \"0xcf6860Ab57de8669756997e414D9c52B6e301972\",\n gToken: \"0xC341c88453372021d0221834307613c2e99fE718\",\n staking: \"0x5f57B931C849e8E255F22755506eB2255aB22a7C\",\n sbt: \"0x2c3Ca1553dC1B8870381E8E56C7b3e3A3ae162f0\",\n reputationSystem: \"0x891EC0f84D9275839B8dAf74e87B23F2DBd7f9c9\",\n superPaymaster: \"0x9eC1FE8134A1C05aD34ba2E4e8758dAe0a009B94\",\n paymasterFactory: \"0x1e3b9d12eAc27867a523d0537902441B0E7D98d8\",\n paymasterV4: \"0xf250416C940605a1D423ccd059668219cf7D80ea\",\n paymasterV4Impl: \"0x906123080207F250B1C9F299991512Cb31f35b2f\",\n xPNTsFactory: \"0x7792a49C9E91e0E9B631B27D885d15e971B7482A\",\n blsAggregator: \"0x6e06b17b1a4D2D973F7E3e026e24b4393315736c\",\n blsValidator: \"0x260fa905CcE1f5b29Afe9d627c01fAAE4A66A7F5\",\n dvtValidator: \"0x0087cA806109E150438116cAA414580BB5fa9195\",\n entryPoint: \"0x0000000071727De22E5E9d8BAf0edAc6f37da032\",\n aPNTs: \"0x3BBcA92Ad828b3dD619c980Ba09f929b9d2BC440\",\n priceFeed: \"0x61Ec26aA57019C486B10502285c5A3D4A4750AD7\",\n simpleAccountFactory: \"0x91E6060613810449d098b0b5EC8b51A0fe8C8985\",\n microPaymentChannel: \"0x0000000000000000000000000000000000000000\",\n agentIdentityRegistry: \"0x0000000000000000000000000000000000000000\",\n agentReputationRegistry: \"0x0000000000000000000000000000000000000000\",\n // ERC-8004 agent validation registry (SP v5.4) — not yet deployed on this chain.\n agentValidationRegistry: \"0x0000000000000000000000000000000000000000\",\n // --- AirAccount v0.17.2-beta.2 stack (not yet deployed on this chain) ---\n aaStarBLSAlgorithm: \"0x0000000000000000000000000000000000000000\",\n aaStarValidator: \"0x0000000000000000000000000000000000000000\",\n aaStarBLSAggregator: \"0x0000000000000000000000000000000000000000\",\n sessionKeyValidator: \"0x0000000000000000000000000000000000000000\",\n forceExitModule: \"0x0000000000000000000000000000000000000000\",\n airAccountDelegate: \"0x0000000000000000000000000000000000000000\",\n calldataParserRegistry: \"0x0000000000000000000000000000000000000000\",\n airAccountFactoryV7: \"0x0000000000000000000000000000000000000000\",\n airAccountV7Impl: \"0x0000000000000000000000000000000000000000\",\n airAccountExtension: \"0x0000000000000000000000000000000000000000\",\n agentRegistry: \"0x0000000000000000000000000000000000000000\",\n // SP v5.4 PolicyRegistry (DVT layer-1) — not yet deployed on this chain.\n policyRegistry: \"0x0000000000000000000000000000000000000000\",\n // SP v5.4 x402 settlement facilitator — not yet deployed on this chain.\n x402Facilitator: \"0x0000000000000000000000000000000000000000\",\n // SP v5.4 governance TimelockController — not yet deployed on this chain.\n timelockController: \"0x0000000000000000000000000000000000000000\",\n // Mycelium community PNTs token — Sepolia-only testbed; zero on mainnets.\n pnts: \"0x0000000000000000000000000000000000000000\",\n }\n};\n/**\n * Chain IDs that have a canonical address book in {@link CANONICAL_ADDRESSES}.\n *\n * @example\n * ```ts\n * listSupportedChainIds(); // [10, 11155111, 11155420]\n * ```\n */\nexport function listSupportedChainIds() {\n return Object.keys(CANONICAL_ADDRESSES).map(Number);\n}\n/** True if {@link CANONICAL_ADDRESSES} has an entry for `chainId`. */\nexport function isSupportedChainId(chainId) {\n return Object.prototype.hasOwnProperty.call(CANONICAL_ADDRESSES, chainId);\n}\n/**\n * Resolve the canonical contract address book for a chain, keyed by `chainId`,\n * normalized to the key names the role-based client factories expect.\n *\n * The canonical table uses `staking` / `sbt`; the historical client factories\n * (and many consumers) reference `gTokenStaking` / `mySBT`. This helper returns\n * the canonical set plus those aliases so a single object satisfies both, which\n * is what makes `createEndUserClient({ chain })` resolve addresses automatically\n * — no manual `addresses` needed for any supported chain.\n *\n * @param chainId - EVM chain id (e.g. 10 = Optimism, 11155111 = Sepolia).\n * @returns The normalized address record, or `undefined` if the chain has no\n * canonical entry (caller must then pass `addresses` explicitly).\n *\n * @example\n * ```ts\n * import { optimism } from 'viem/chains';\n * const addrs = getCanonicalAddresses(optimism.id); // chainId 10\n * addrs?.registry; addrs?.mySBT; // alias of `sbt`\n * ```\n */\nexport function getCanonicalAddresses(chainId) {\n if (!isSupportedChainId(chainId))\n return undefined;\n const a = CANONICAL_ADDRESSES[chainId];\n return {\n ...a,\n // Aliases bridging the canonical table's key names to the client factories'.\n gTokenStaking: a.staking,\n mySBT: a.sbt,\n };\n}\n","import { CANONICAL_ADDRESSES } from './addresses.js';\n// Browser-safe network detection\nconst network = (typeof process !== 'undefined' && process.env && process.env.NETWORK) || 'anvil';\nlet internalConfig = {};\n// 2. Identify Chain ID and resolve canonical defaults\nlet chainIdStr = (typeof process !== 'undefined' && process.env && process.env.CHAIN_ID) || internalConfig.chainId;\nlet chainId = chainIdStr ? Number(chainIdStr) : (network === 'optimism' ? 10 : (network === 'mainnet' ? 1 : (network === 'sepolia' ? 11155111 : (network === 'op-sepolia' ? 11155420 : 0))));\nlet defaults = CANONICAL_ADDRESSES[chainId] || {};\n/**\n * Helper to resolve address\n */\nfunction resolveAddr(envKey, configKey) {\n const envVal = (typeof process !== 'undefined' && process.env) ? process.env[envKey] : undefined;\n return (envVal || internalConfig[configKey] || defaults[configKey]);\n}\nfunction resolveVal(envKey, configKey) {\n const envVal = (typeof process !== 'undefined' && process.env) ? process.env[envKey] : undefined;\n return envVal || internalConfig[configKey] || defaults[configKey];\n}\n/**\n * Contract Addresses (Priority: ENV > Local Config > Canonical Defaults)\n */\nexport let CONTRACT_SRC_HASH = resolveVal('SRC_HASH', 'srcHash');\nexport let REGISTRY_ADDRESS = resolveAddr('REGISTRY', 'registry');\nexport let GTOKEN_ADDRESS = resolveAddr('GTOKEN', 'gToken');\nexport let GTOKEN_STAKING_ADDRESS = resolveAddr('STAKING', 'staking');\nexport let SBT_ADDRESS = resolveAddr('SBT', 'sbt');\nexport let REPUTATION_SYSTEM_ADDRESS = resolveAddr('REPUTATION_SYSTEM', 'reputationSystem');\nexport let SUPER_PAYMASTER_ADDRESS = resolveAddr('SUPER_PAYMASTER', 'superPaymaster');\nexport let PAYMASTER_FACTORY_ADDRESS = resolveAddr('PAYMASTER_FACTORY', 'paymasterFactory');\nexport let PAYMASTER_V4_ADDRESS = resolveAddr('PAYMASTER_V4', 'paymasterV4');\nexport let PAYMASTER_V4_IMPL_ADDRESS = resolveAddr('PAYMASTER_V4_IMPL', 'paymasterV4Impl');\nexport let XPNTS_FACTORY_ADDRESS = resolveAddr('XPNTS_FACTORY', 'xPNTsFactory');\nexport let BLS_AGGREGATOR_ADDRESS = resolveAddr('BLS_AGGREGATOR', 'blsAggregator');\nexport let BLS_VALIDATOR_ADDRESS = resolveAddr('BLS_VALIDATOR', 'blsValidator');\nexport let DVT_VALIDATOR_ADDRESS = resolveAddr('DVT_VALIDATOR', 'dvtValidator');\nexport let ENTRY_POINT_ADDRESS = resolveAddr('ENTRY_POINT', 'entryPoint');\nexport let APNTS_ADDRESS = resolveAddr('APNTS', 'aPNTs');\nexport let MICRO_PAYMENT_CHANNEL_ADDRESS = resolveAddr('MICRO_PAYMENT_CHANNEL', 'microPaymentChannel');\nexport let AGENT_IDENTITY_REGISTRY_ADDRESS = resolveAddr('AGENT_IDENTITY_REGISTRY', 'agentIdentityRegistry');\nexport let AGENT_REPUTATION_REGISTRY_ADDRESS = resolveAddr('AGENT_REPUTATION_REGISTRY', 'agentReputationRegistry');\n/**\n * Apply external configuration (for Node.js environment)\n */\nexport function applyConfig(newConfig) {\n internalConfig = newConfig;\n // Re-calculate derived values\n const envChainId = (typeof process !== 'undefined' && process.env) ? process.env.CHAIN_ID : undefined;\n chainIdStr = envChainId || internalConfig.chainId;\n chainId = chainIdStr ? Number(chainIdStr) : (network === 'optimism' ? 10 : (network === 'mainnet' ? 1 : (network === 'sepolia' ? 11155111 : (network === 'op-sepolia' ? 11155420 : 0))));\n defaults = CANONICAL_ADDRESSES[chainId] || {};\n // Re-assign exports\n CONTRACT_SRC_HASH = resolveVal('SRC_HASH', 'srcHash');\n REGISTRY_ADDRESS = resolveAddr('REGISTRY', 'registry');\n GTOKEN_ADDRESS = resolveAddr('GTOKEN', 'gToken');\n GTOKEN_STAKING_ADDRESS = resolveAddr('STAKING', 'staking');\n SBT_ADDRESS = resolveAddr('SBT', 'sbt');\n REPUTATION_SYSTEM_ADDRESS = resolveAddr('REPUTATION_SYSTEM', 'reputationSystem');\n SUPER_PAYMASTER_ADDRESS = resolveAddr('SUPER_PAYMASTER', 'superPaymaster');\n PAYMASTER_FACTORY_ADDRESS = resolveAddr('PAYMASTER_FACTORY', 'paymasterFactory');\n PAYMASTER_V4_ADDRESS = resolveAddr('PAYMASTER_V4', 'paymasterV4');\n PAYMASTER_V4_IMPL_ADDRESS = resolveAddr('PAYMASTER_V4_IMPL', 'paymasterV4Impl');\n XPNTS_FACTORY_ADDRESS = resolveAddr('XPNTS_FACTORY', 'xPNTsFactory');\n BLS_AGGREGATOR_ADDRESS = resolveAddr('BLS_AGGREGATOR', 'blsAggregator');\n BLS_VALIDATOR_ADDRESS = resolveAddr('BLS_VALIDATOR', 'blsValidator');\n DVT_VALIDATOR_ADDRESS = resolveAddr('DVT_VALIDATOR', 'dvtValidator');\n ENTRY_POINT_ADDRESS = resolveAddr('ENTRY_POINT', 'entryPoint');\n APNTS_ADDRESS = resolveAddr('APNTS', 'aPNTs');\n MICRO_PAYMENT_CHANNEL_ADDRESS = resolveAddr('MICRO_PAYMENT_CHANNEL', 'microPaymentChannel');\n AGENT_IDENTITY_REGISTRY_ADDRESS = resolveAddr('AGENT_IDENTITY_REGISTRY', 'agentIdentityRegistry');\n AGENT_REPUTATION_REGISTRY_ADDRESS = resolveAddr('AGENT_REPUTATION_REGISTRY', 'agentReputationRegistry');\n}\n/**\n * Common Constants\n */\nexport const FAUCET_API_URL = \"https://faucet-aastar.vercel.app\";\nexport const SERVICE_FEE_RATE = 200;\nexport const MAX_SERVICE_FEE = 1000;\nexport const BPS_DENOMINATOR = 10000;\nexport const DEFAULT_GAS_TOKEN_MINT_AMOUNT = \"100\";\nexport const DEFAULT_USDT_MINT_AMOUNT = \"10\";\nexport const TEST_ACCOUNT_POOL_SIZE = 20;\nexport const NODE_STAKE_AMOUNTS = {\n LITE: 30,\n STANDARD: 100,\n SUPER: 300,\n ENTERPRISE: 1000,\n};\nexport const DEFAULT_APNTS_PRICE_USD = \"0.02\";\nexport const CHAIN_SEPOLIA = 11155111;\nexport const CHAIN_MAINNET = 1;\nexport const DEFAULT_TOKEN_SYMBOL = 'GT';\nexport const DEFAULT_TOKEN_NAME = 'Governance Token';\nexport const DEFAULT_VERIFICATION_GAS_LIMIT = 200000n;\nexport const DEFAULT_CALL_GAS_LIMIT = 100000n;\nexport const DEFAULT_PRE_VERIFICATION_GAS = 50000n;\nexport const DEFAULT_TIMEOUT_MS = 30000;\n","/**\n * Contract Addresses - Single Source of Truth\n * All contract addresses for Sepolia testnet\n *\n * This file serves as the single source of truth for all contract addresses.\n * All other files reference these constants to avoid duplication.\n */\nimport { REGISTRY_ADDRESS, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, SUPER_PAYMASTER_ADDRESS, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, APNTS_ADDRESS, SBT_ADDRESS, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, XPNTS_FACTORY_ADDRESS, BLS_AGGREGATOR_ADDRESS, MICRO_PAYMENT_CHANNEL_ADDRESS, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, } from './constants.js';\n/**\n * Core System Addresses\n */\nexport const CORE_ADDRESSES = {\n registry: REGISTRY_ADDRESS,\n gToken: GTOKEN_ADDRESS,\n gTokenStaking: GTOKEN_STAKING_ADDRESS,\n superPaymaster: SUPER_PAYMASTER_ADDRESS,\n paymasterFactory: PAYMASTER_FACTORY_ADDRESS,\n aPNTs: APNTS_ADDRESS,\n mySBT: SBT_ADDRESS,\n paymasterV4: (process.env.PAYMASTER_V4_PROXY || PAYMASTER_V4_ADDRESS || PAYMASTER_V4_IMPL_ADDRESS),\n dvtValidator: DVT_VALIDATOR_ADDRESS,\n entryPoint: ENTRY_POINT_ADDRESS,\n xPNTsFactory: XPNTS_FACTORY_ADDRESS,\n microPaymentChannel: MICRO_PAYMENT_CHANNEL_ADDRESS,\n agentIdentityRegistry: AGENT_IDENTITY_REGISTRY_ADDRESS,\n agentReputationRegistry: AGENT_REPUTATION_REGISTRY_ADDRESS,\n};\n/**\n * Token System Addresses\n */\nexport const TOKEN_ADDRESSES = {\n xPNTsFactory: XPNTS_FACTORY_ADDRESS,\n};\n/**\n * Test Token Addresses (For Development & Testing)\n */\nexport const TEST_TOKEN_ADDRESSES = {\n mockUSDT: process.env.TEST_MOCK_USDT,\n aPNTs: process.env.TEST_APNTS,\n bPNTs: process.env.TEST_BPNTS,\n};\n/**\n * Test Account Addresses (For Development & Testing)\n */\nexport const TEST_ACCOUNT_ADDRESSES = {\n // Official EntryPoint 0.6 Factory for Sepolia\n simpleAccountFactory: (process.env.SIMPLE_ACCOUNT_FACTORY || '0x9406Cc6185a346906296840746125a0E44976454'),\n};\n/**\n * Paymaster Addresses\n */\nexport const PAYMASTER_ADDRESSES = {\n paymasterV4_1: process.env.PAYMASTER_V4_ADDRESS,\n paymasterV4_1iImplementation: PAYMASTER_V4_IMPL_ADDRESS,\n};\n/**\n * Monitoring System Addresses\n */\nexport const MONITORING_ADDRESSES = {\n dvtValidator: DVT_VALIDATOR_ADDRESS,\n blsAggregator: BLS_AGGREGATOR_ADDRESS,\n};\n/**\n * Official Contract Addresses\n */\nexport const OFFICIAL_ADDRESSES = {\n entryPoint: (ENTRY_POINT_ADDRESS || '0x0000000071727De22E5E9d8BAf0edAc6f37da032'),\n};\n/**\n * Community Owner Addresses\n */\nexport const COMMUNITY_OWNERS = {\n aastarOwner: '0x411BD567E46C0781248dbB6a9211891C032885e5', // Deployer 1\n breadCommunityOwner: '0xe24b6f321B0140716a2b671ed0D983bb64E7DaFA', // OWNER2\n};\n/**\n * Test Community Addresses (Registered in Registry v2.2.0 on 2025-11-08)\n */\nexport const TEST_COMMUNITIES = {\n aastar: process.env.TEST_COMMUNITY_AASTAR,\n bread: process.env.TEST_COMMUNITY_BREAD,\n mycelium: process.env.TEST_COMMUNITY_MYCELIUM,\n};\n/**\n * All Addresses Combined (for reference)\n */\nexport const ALL_ADDRESSES = {\n ...CORE_ADDRESSES,\n ...TOKEN_ADDRESSES,\n ...TEST_TOKEN_ADDRESSES,\n ...TEST_ACCOUNT_ADDRESSES,\n ...PAYMASTER_ADDRESSES,\n ...MONITORING_ADDRESSES,\n ...OFFICIAL_ADDRESSES,\n};\n"]}