@aastar/sdk 0.20.5 → 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.
- package/dist/BaseClient-BjbYP0cf.d.ts +88 -0
- package/dist/UserClient-AIIHB54I.js +6 -0
- package/dist/{UserClient-UYIHF6UJ.js.map → UserClient-AIIHB54I.js.map} +1 -1
- package/dist/account.d.ts +48 -1
- package/dist/account.js +3 -3
- package/dist/admin.d.ts +62 -1
- package/dist/admin.js +3 -3
- package/dist/airaccount.d.ts +4 -2
- package/dist/airaccount.js +2 -2
- package/dist/channel-CkRRbzT8.d.ts +77 -0
- package/dist/channel.d.ts +64 -1
- package/dist/channel.js +3 -3
- package/dist/{chunk-FBDMID2J.js → chunk-4EZD7LPE.js} +30 -24
- package/dist/chunk-4EZD7LPE.js.map +1 -0
- package/dist/{chunk-TIH7D4FQ.js → chunk-6QYXGMCR.js} +513 -322
- package/dist/chunk-6QYXGMCR.js.map +1 -0
- package/dist/{chunk-6UHVUGDT.js → chunk-7ARJ3OSU.js} +29 -21
- package/dist/chunk-7ARJ3OSU.js.map +1 -0
- package/dist/{chunk-VYU6P7HB.js → chunk-BN5WY5GM.js} +16 -14
- package/dist/chunk-BN5WY5GM.js.map +1 -0
- package/dist/{chunk-ZFIKBDBT.js → chunk-FJ7XECC5.js} +4 -4
- package/dist/chunk-FJ7XECC5.js.map +1 -0
- package/dist/{chunk-4KRQXOTI.js → chunk-FUU7RIIA.js} +113 -102
- package/dist/chunk-FUU7RIIA.js.map +1 -0
- package/dist/{chunk-NRH56SAJ.js → chunk-G3UJC4EL.js} +6 -7
- package/dist/chunk-G3UJC4EL.js.map +1 -0
- package/dist/{chunk-QJT4IOIS.js → chunk-KDH3UPKD.js} +10 -13
- package/dist/chunk-KDH3UPKD.js.map +1 -0
- package/dist/{chunk-WPSWFZKF.js → chunk-KISL64KW.js} +69 -323
- package/dist/chunk-KISL64KW.js.map +1 -0
- package/dist/{chunk-ZGOEADCO.js → chunk-LXWIPTPX.js} +5 -5
- package/dist/chunk-LXWIPTPX.js.map +1 -0
- package/dist/{chunk-I3VRFZA4.js → chunk-MVEWJIPY.js} +124 -110
- package/dist/chunk-MVEWJIPY.js.map +1 -0
- package/dist/{chunk-FIS3RUGL.js → chunk-PAABYXS6.js} +33 -40
- package/dist/chunk-PAABYXS6.js.map +1 -0
- package/dist/{chunk-HNTLDUL7.js → chunk-PKCHRXFR.js} +8 -12
- package/dist/chunk-PKCHRXFR.js.map +1 -0
- package/dist/{chunk-42KVVOOU.js → chunk-TENYCMJ3.js} +31 -31
- package/dist/chunk-TENYCMJ3.js.map +1 -0
- package/dist/{contract-addresses-ADEWLDHE.js → contract-addresses-N3TOL2WL.js} +3 -3
- package/dist/{contract-addresses-ADEWLDHE.js.map → contract-addresses-N3TOL2WL.js.map} +1 -1
- package/dist/core.d.ts +6930 -13
- package/dist/core.js +2 -2
- package/dist/dapp.d.ts +127 -1
- package/dist/dapp.js +12 -13
- package/dist/dapp.js.map +1 -1
- package/dist/doc-types-471vSmPO.d.ts +16 -0
- package/dist/enduser.d.ts +261 -1
- package/dist/enduser.js +4 -4
- package/dist/identity.d.ts +81 -1
- package/dist/identity.js +3 -3
- package/dist/index-B6SfEQxo.d.ts +47 -0
- package/dist/index.d.ts +55 -15
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/kms.d.ts +2986 -2
- package/dist/kms.js +2 -2
- package/dist/operator.d.ts +164 -1
- package/dist/operator.js +3 -3
- package/dist/paymaster.d.ts +312 -1
- package/dist/paymaster.js +3 -3
- package/dist/{index.node-KIKM4EG6.js → src-L5SI5WNB.js} +4 -4
- package/dist/src-L5SI5WNB.js.map +1 -0
- package/dist/{dist-GVWCRI4F.js → src-X5MIV3EB.js} +5 -5
- package/dist/src-X5MIV3EB.js.map +1 -0
- package/dist/tier-router-DLiMxs0h.d.ts +321 -0
- package/dist/tokens.d.ts +64 -1
- package/dist/tokens.js +3 -3
- package/dist/x402.d.ts +373 -1
- package/dist/x402.js +3 -3
- package/package.json +1 -1
- package/dist/UserClient-UYIHF6UJ.js +0 -6
- package/dist/chunk-42KVVOOU.js.map +0 -1
- package/dist/chunk-4KRQXOTI.js.map +0 -1
- package/dist/chunk-6UHVUGDT.js.map +0 -1
- package/dist/chunk-FBDMID2J.js.map +0 -1
- package/dist/chunk-FIS3RUGL.js.map +0 -1
- package/dist/chunk-HNTLDUL7.js.map +0 -1
- package/dist/chunk-I3VRFZA4.js.map +0 -1
- package/dist/chunk-NRH56SAJ.js.map +0 -1
- package/dist/chunk-QJT4IOIS.js.map +0 -1
- package/dist/chunk-TIH7D4FQ.js.map +0 -1
- package/dist/chunk-VYU6P7HB.js.map +0 -1
- package/dist/chunk-WPSWFZKF.js.map +0 -1
- package/dist/chunk-ZFIKBDBT.js.map +0 -1
- package/dist/chunk-ZGOEADCO.js.map +0 -1
- package/dist/dist-GVWCRI4F.js.map +0 -1
- package/dist/index.node-KIKM4EG6.js.map +0 -1
package/dist/identity.d.ts
CHANGED
|
@@ -1 +1,81 @@
|
|
|
1
|
-
|
|
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-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
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,18 +1,21 @@
|
|
|
1
|
-
import { RegistryActions, SBTActions, SuperPaymasterActions, PaymasterActions, StakingActions, DVTActions, XPNTsFactoryActions, AggregatorActions } from '
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
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
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
export { airaccount as KMS };
|
|
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';
|
|
16
19
|
|
|
17
20
|
type EndUserClient = Client<Transport, Chain, Account | undefined> & PublicActions<Transport, Chain, Account | undefined> & WalletActions<Chain, Account | undefined> & RegistryActions & SBTActions & SuperPaymasterActions & PaymasterActions & {
|
|
18
21
|
/**
|
|
@@ -238,6 +241,43 @@ declare class ExperimentClient {
|
|
|
238
241
|
getRecords(): ExperimentRecord[];
|
|
239
242
|
}
|
|
240
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
|
+
|
|
241
281
|
declare const RoleIds: {
|
|
242
282
|
readonly PAYMASTER_SUPER: `0x${string}`;
|
|
243
283
|
readonly DVT: `0x${string}`;
|
|
@@ -609,4 +649,4 @@ declare const CustomErrors: {
|
|
|
609
649
|
};
|
|
610
650
|
declare function decodeContractError(error: any): string | null;
|
|
611
651
|
|
|
612
|
-
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-
|
|
2
|
-
export { CommunityClient, UserLifecycle } from './chunk-
|
|
3
|
-
export { UserClient } from './chunk-
|
|
4
|
-
export { OperatorLifecycle, PaymasterOperatorClient, ProposalState, ProtocolClient } from './chunk-
|
|
5
|
-
export { ProtocolGovernance } from './chunk-
|
|
6
|
-
export {
|
|
7
|
-
export { UserOpClient, createEOAWalletClient, getUserOpHash, packUserOpLimits, toSimpleSmartAccount } from './chunk-
|
|
8
|
-
export { ReputationClient, checkMySBT, getMySBTId } from './chunk-
|
|
9
|
-
export { FinanceClient } from './chunk-
|
|
10
|
-
export { PaymasterClient, PaymasterManager, PaymasterOperator, SuperPaymasterAdminClient, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, checkEligibility, formatUserOpV07, getPaymasterV4Middleware, getSuperPaymasterMiddleware, getUserOpHashV07, tuneGasLimit } from './chunk-
|
|
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-
|
|
12
|
-
import { paymasterActions, superPaymasterActions, sbtActions, registryActions, RegistryABI, stakingActions, aggregatorActions, xPNTsFactoryActions, dvtActions, SuperPaymasterABI, xPNTsTokenABI, PaymasterFactoryABI } from './chunk-
|
|
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-
|
|
14
|
-
import { getCanonicalAddresses, describeSupportedChains, TEST_ACCOUNT_ADDRESSES, TOKEN_ADDRESSES, CORE_ADDRESSES, TEST_TOKEN_ADDRESSES } from './chunk-
|
|
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-
|
|
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';
|
|
@@ -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('./
|
|
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('./
|
|
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('./
|
|
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";
|