@aastar/sdk 0.24.2 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UserClient-5PQP6APK.js +6 -0
- package/dist/{UserClient-DPJ6E2XL.js.map → UserClient-5PQP6APK.js.map} +1 -1
- package/dist/UserClient-CD7R3335.cjs +15 -0
- package/dist/{UserClient-4MRK2D7W.cjs.map → UserClient-CD7R3335.cjs.map} +1 -1
- package/dist/account.cjs +8 -8
- package/dist/account.js +3 -3
- package/dist/addresses-D12T3kLs.d.cts +210 -0
- package/dist/addresses-D12T3kLs.d.ts +210 -0
- package/dist/admin.cjs +4 -4
- package/dist/admin.js +3 -3
- package/dist/airaccount.cjs +111 -103
- package/dist/airaccount.d.cts +1 -1
- package/dist/airaccount.d.ts +1 -1
- package/dist/airaccount.js +3 -3
- package/dist/channel.cjs +7 -7
- package/dist/channel.js +3 -3
- package/dist/{chunk-S7IUUQ5E.cjs → chunk-2RHBOBL7.cjs} +6 -6
- package/dist/{chunk-S7IUUQ5E.cjs.map → chunk-2RHBOBL7.cjs.map} +1 -1
- package/dist/{chunk-EEWLL7GE.js → chunk-6DZCDV4Q.js} +2137 -13
- package/dist/chunk-6DZCDV4Q.js.map +1 -0
- package/dist/{chunk-4Q6FADF6.cjs → chunk-6IZASQSB.cjs} +236 -109
- package/dist/chunk-6IZASQSB.cjs.map +1 -0
- package/dist/{chunk-MCDFQ5JH.cjs → chunk-7HTUDNH3.cjs} +11 -11
- package/dist/{chunk-MCDFQ5JH.cjs.map → chunk-7HTUDNH3.cjs.map} +1 -1
- package/dist/{chunk-UJPW54CK.js → chunk-7JVL5CU3.js} +3 -3
- package/dist/{chunk-UJPW54CK.js.map → chunk-7JVL5CU3.js.map} +1 -1
- package/dist/{chunk-7FLPD3V4.js → chunk-A4FO6FKN.js} +3 -3
- package/dist/{chunk-7FLPD3V4.js.map → chunk-A4FO6FKN.js.map} +1 -1
- package/dist/{chunk-MANVOQY7.cjs → chunk-CI4UJW5Y.cjs} +5 -5
- package/dist/{chunk-MANVOQY7.cjs.map → chunk-CI4UJW5Y.cjs.map} +1 -1
- package/dist/{chunk-PUE5GEKK.js → chunk-COTHBCR2.js} +3 -3
- package/dist/{chunk-PUE5GEKK.js.map → chunk-COTHBCR2.js.map} +1 -1
- package/dist/{chunk-BPAAWQQA.js → chunk-D2RDBN46.js} +227 -102
- package/dist/chunk-D2RDBN46.js.map +1 -0
- package/dist/{chunk-TQIRRSGL.cjs → chunk-FIMXPANS.cjs} +4 -4
- package/dist/{chunk-TQIRRSGL.cjs.map → chunk-FIMXPANS.cjs.map} +1 -1
- package/dist/{chunk-MXJEULSE.cjs → chunk-G33MXEHU.cjs} +29 -2
- package/dist/chunk-G33MXEHU.cjs.map +1 -0
- package/dist/{chunk-FUY4MHPM.cjs → chunk-GASCTLKR.cjs} +9 -9
- package/dist/{chunk-FUY4MHPM.cjs.map → chunk-GASCTLKR.cjs.map} +1 -1
- package/dist/{chunk-W73Y6JWZ.js → chunk-IG4BG25C.js} +6 -6
- package/dist/{chunk-W73Y6JWZ.js.map → chunk-IG4BG25C.js.map} +1 -1
- package/dist/{chunk-TGEVD7OR.cjs → chunk-J3UAXGNP.cjs} +16 -16
- package/dist/{chunk-TGEVD7OR.cjs.map → chunk-J3UAXGNP.cjs.map} +1 -1
- package/dist/{chunk-Y5QM4LI4.js → chunk-JCEUTCFZ.js} +4 -4
- package/dist/{chunk-Y5QM4LI4.js.map → chunk-JCEUTCFZ.js.map} +1 -1
- package/dist/{chunk-IB3KOSHW.cjs → chunk-KOWTQJIX.cjs} +2177 -49
- package/dist/chunk-KOWTQJIX.cjs.map +1 -0
- package/dist/chunk-L6D2AGTF.js +500 -0
- package/dist/chunk-L6D2AGTF.js.map +1 -0
- package/dist/{chunk-KYXXIKEI.cjs → chunk-LRPAX5AG.cjs} +32 -32
- package/dist/{chunk-KYXXIKEI.cjs.map → chunk-LRPAX5AG.cjs.map} +1 -1
- package/dist/{chunk-UCLK6LTB.js → chunk-MBWBHKUE.js} +28 -3
- package/dist/chunk-MBWBHKUE.js.map +1 -0
- package/dist/{chunk-3FRNYRWI.cjs → chunk-NHDZQPDE.cjs} +26 -26
- package/dist/{chunk-3FRNYRWI.cjs.map → chunk-NHDZQPDE.cjs.map} +1 -1
- package/dist/{chunk-HP44S5U5.cjs → chunk-OBPTMV5W.cjs} +5 -5
- package/dist/{chunk-HP44S5U5.cjs.map → chunk-OBPTMV5W.cjs.map} +1 -1
- package/dist/{chunk-SX5GUCTF.js → chunk-QTXPAGNX.js} +9 -9
- package/dist/{chunk-SX5GUCTF.js.map → chunk-QTXPAGNX.js.map} +1 -1
- package/dist/{chunk-PTVXBXZX.js → chunk-UANSP3OK.js} +3 -3
- package/dist/{chunk-PTVXBXZX.js.map → chunk-UANSP3OK.js.map} +1 -1
- package/dist/{chunk-P3B6UTED.js → chunk-UTSFTWFC.js} +3 -3
- package/dist/{chunk-P3B6UTED.js.map → chunk-UTSFTWFC.js.map} +1 -1
- package/dist/chunk-WTURYJEA.cjs +504 -0
- package/dist/chunk-WTURYJEA.cjs.map +1 -0
- package/dist/{chunk-XBZGVJ5K.js → chunk-YR7CTWY6.js} +3 -3
- package/dist/{chunk-XBZGVJ5K.js.map → chunk-YR7CTWY6.js.map} +1 -1
- package/dist/{contract-addresses-RABD77VP.cjs → contract-addresses-6K6IB5OB.cjs} +13 -13
- package/dist/{contract-addresses-RABD77VP.cjs.map → contract-addresses-6K6IB5OB.cjs.map} +1 -1
- package/dist/{contract-addresses-TVXSRQ7I.js → contract-addresses-CHZ7PK5H.js} +3 -3
- package/dist/{contract-addresses-TVXSRQ7I.js.map → contract-addresses-CHZ7PK5H.js.map} +1 -1
- package/dist/core.cjs +285 -261
- package/dist/core.d.cts +6 -175
- package/dist/core.d.ts +6 -175
- package/dist/core.js +2 -2
- package/dist/dapp.cjs +6 -6
- package/dist/dapp.js +3 -3
- package/dist/enduser.cjs +7 -7
- package/dist/enduser.js +4 -4
- package/dist/identity.cjs +6 -6
- package/dist/identity.js +3 -3
- package/dist/index.cjs +406 -374
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +17 -17
- package/dist/kms.cjs +111 -103
- package/dist/kms.d.cts +199 -19
- package/dist/kms.d.ts +199 -19
- package/dist/kms.js +3 -3
- package/dist/operator.cjs +7 -7
- package/dist/operator.js +3 -3
- package/dist/paymaster.cjs +16 -16
- package/dist/paymaster.js +3 -3
- package/dist/{src-VO7TXJPG.cjs → src-DNURNUIA.cjs} +287 -263
- package/dist/src-DNURNUIA.cjs.map +1 -0
- package/dist/{src-RM6DDR7K.cjs → src-DZDH3BSU.cjs} +18 -18
- package/dist/src-DZDH3BSU.cjs.map +1 -0
- package/dist/{src-HKOFZ4V3.js → src-EVM7OESP.js} +5 -5
- package/dist/src-EVM7OESP.js.map +1 -0
- package/dist/src-FY3KAPPC.js +5 -0
- package/dist/src-FY3KAPPC.js.map +1 -0
- package/dist/tokens.cjs +12 -4
- package/dist/tokens.d.cts +133 -1
- package/dist/tokens.d.ts +133 -1
- package/dist/tokens.js +3 -3
- package/dist/x402.cjs +26 -26
- package/dist/x402.js +3 -3
- package/package.json +1 -1
- package/dist/UserClient-4MRK2D7W.cjs +0 -15
- package/dist/UserClient-DPJ6E2XL.js +0 -6
- package/dist/chunk-4Q6FADF6.cjs.map +0 -1
- package/dist/chunk-BPAAWQQA.js.map +0 -1
- package/dist/chunk-EEWLL7GE.js.map +0 -1
- package/dist/chunk-IB3KOSHW.cjs.map +0 -1
- package/dist/chunk-MXJEULSE.cjs.map +0 -1
- package/dist/chunk-O2CN77MV.js +0 -226
- package/dist/chunk-O2CN77MV.js.map +0 -1
- package/dist/chunk-UCLK6LTB.js.map +0 -1
- package/dist/chunk-V23XPVHO.cjs +0 -228
- package/dist/chunk-V23XPVHO.cjs.map +0 -1
- package/dist/src-HKOFZ4V3.js.map +0 -1
- package/dist/src-L2BLX34S.js +0 -5
- package/dist/src-L2BLX34S.js.map +0 -1
- package/dist/src-RM6DDR7K.cjs.map +0 -1
- package/dist/src-VO7TXJPG.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"src-DNURNUIA.cjs"}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunk7HTUDNH3_cjs = require('./chunk-7HTUDNH3.cjs');
|
|
4
|
+
require('./chunk-KOWTQJIX.cjs');
|
|
5
|
+
require('./chunk-G33MXEHU.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "PaymasterClient", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk7HTUDNH3_cjs.PaymasterClient; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "PaymasterManager", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk7HTUDNH3_cjs.PaymasterManager; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "PaymasterOperator", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk7HTUDNH3_cjs.PaymasterOperator; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "SuperPaymasterAdminClient", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk7HTUDNH3_cjs.SuperPaymasterAdminClient; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "SuperPaymasterClient", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk7HTUDNH3_cjs.SuperPaymasterClient; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "buildPaymasterData", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk7HTUDNH3_cjs.buildPaymasterData; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "buildSuperPaymasterData", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk7HTUDNH3_cjs.buildSuperPaymasterData; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "checkEligibility", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk7HTUDNH3_cjs.checkEligibility; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "formatUserOpV07", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk7HTUDNH3_cjs.formatUserOpV07; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "getPaymasterV4Middleware", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk7HTUDNH3_cjs.getPaymasterV4Middleware; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "getSuperPaymasterMiddleware", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk7HTUDNH3_cjs.getSuperPaymasterMiddleware; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "getUserOpHashV07", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk7HTUDNH3_cjs.getUserOpHashV07; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "tuneGasLimit", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk7HTUDNH3_cjs.tuneGasLimit; }
|
|
61
61
|
});
|
|
62
|
-
//# sourceMappingURL=src-
|
|
63
|
-
//# sourceMappingURL=src-
|
|
62
|
+
//# sourceMappingURL=src-DZDH3BSU.cjs.map
|
|
63
|
+
//# sourceMappingURL=src-DZDH3BSU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"src-DZDH3BSU.cjs"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PaymasterClient, PaymasterManager, PaymasterOperator, SuperPaymasterAdminClient, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, checkEligibility, formatUserOpV07, getPaymasterV4Middleware, getSuperPaymasterMiddleware, getUserOpHashV07, tuneGasLimit } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { PaymasterClient, PaymasterManager, PaymasterOperator, SuperPaymasterAdminClient, SuperPaymasterClient, buildPaymasterData, buildSuperPaymasterData, checkEligibility, formatUserOpV07, getPaymasterV4Middleware, getSuperPaymasterMiddleware, getUserOpHashV07, tuneGasLimit } from './chunk-YR7CTWY6.js';
|
|
2
|
+
import './chunk-6DZCDV4Q.js';
|
|
3
|
+
import './chunk-MBWBHKUE.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
|
-
//# sourceMappingURL=src-
|
|
6
|
-
//# sourceMappingURL=src-
|
|
5
|
+
//# sourceMappingURL=src-EVM7OESP.js.map
|
|
6
|
+
//# sourceMappingURL=src-EVM7OESP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"src-EVM7OESP.js"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALG_BLS, ALL_ROLES, APNTsSaleContractABI, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, BuyHelperABI, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DEFAULT_DVT_NODES, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, ERC20ABI, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, LINKS, MAX_GUARDIAN_SLOT, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, RECOVERY_NONCE_SLOT, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, RegistryArtifact, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, RolePermissionLevel, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SaleContractV2ABI, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, TIER_LIMIT_NONCE_SLOT, V2_SUMMARY, WEBAUTHN_GET_CHALLENGE_PREFIX, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, channelActions, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './chunk-6DZCDV4Q.js';
|
|
2
|
+
export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, LAUNCH_SALE_ADDRESSES, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, getLaunchSaleAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-MBWBHKUE.js';
|
|
3
|
+
import './chunk-PZ5AY32C.js';
|
|
4
|
+
//# sourceMappingURL=src-FY3KAPPC.js.map
|
|
5
|
+
//# sourceMappingURL=src-FY3KAPPC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"src-FY3KAPPC.js"}
|
package/dist/tokens.cjs
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkWTURYJEA_cjs = require('./chunk-WTURYJEA.cjs');
|
|
4
|
+
require('./chunk-KOWTQJIX.cjs');
|
|
5
|
+
require('./chunk-G33MXEHU.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "FinanceClient", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkWTURYJEA_cjs.FinanceClient; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "TokenSaleClient", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkWTURYJEA_cjs.TokenSaleClient; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "usd", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkWTURYJEA_cjs.usd; }
|
|
13
21
|
});
|
|
14
22
|
//# sourceMappingURL=tokens.cjs.map
|
|
15
23
|
//# sourceMappingURL=tokens.cjs.map
|
package/dist/tokens.d.cts
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
2
|
import { P as PublicClient, W as WalletClient } from './doc-types-471vSmPO.cjs';
|
|
3
|
+
import { L as LaunchSaleAddresses } from './addresses-D12T3kLs.cjs';
|
|
4
|
+
|
|
5
|
+
/** Which token to buy from the launch sale stack. */
|
|
6
|
+
type SaleTokenKind = 'GTOKEN' | 'APNTS';
|
|
7
|
+
/** Stablecoin used to pay (both 6-decimal). Gasless supports USDC only. */
|
|
8
|
+
type PayToken = 'USDC' | 'USDT';
|
|
9
|
+
/** Live USD prices (6-decimal) for one unit of each sale token. */
|
|
10
|
+
interface SalePrices {
|
|
11
|
+
/** USD price per GToken, 6-decimal (e.g. 150000n = $0.15). */
|
|
12
|
+
gToken: bigint;
|
|
13
|
+
/** USD price per aPNTs, 6-decimal. */
|
|
14
|
+
aPNTs: bigint;
|
|
15
|
+
}
|
|
16
|
+
/** Wallet balances relevant to the sale (raw base units). */
|
|
17
|
+
interface SaleBalances {
|
|
18
|
+
/** Native ETH (wei). */
|
|
19
|
+
eth: bigint;
|
|
20
|
+
/** USDC (6-decimal). */
|
|
21
|
+
usdc: bigint;
|
|
22
|
+
/** USDT (6-decimal). */
|
|
23
|
+
usdt: bigint;
|
|
24
|
+
/** GToken (18-decimal). */
|
|
25
|
+
gToken: bigint;
|
|
26
|
+
/** aPNTs (18-decimal). */
|
|
27
|
+
aPNTs: bigint;
|
|
28
|
+
}
|
|
29
|
+
/** Result of a completed buy (self-pay or gasless). */
|
|
30
|
+
interface BuyResult {
|
|
31
|
+
/** Transaction hash (gasless: the relayer-submitted tx). */
|
|
32
|
+
txHash: Hash;
|
|
33
|
+
/** Relayer rule that matched (gasless only). */
|
|
34
|
+
matchedRule?: string;
|
|
35
|
+
}
|
|
36
|
+
interface TokenSaleClientOptions {
|
|
37
|
+
/**
|
|
38
|
+
* Chain id. Defaults to `publicClient.chain?.id` / `walletClient.chain?.id`.
|
|
39
|
+
* Used to look up {@link getLaunchSaleAddresses}.
|
|
40
|
+
*/
|
|
41
|
+
chainId?: number;
|
|
42
|
+
/** Explicit address group override (skips the per-chain lookup). */
|
|
43
|
+
addresses?: LaunchSaleAddresses;
|
|
44
|
+
}
|
|
45
|
+
interface SelfPayParams {
|
|
46
|
+
token: SaleTokenKind;
|
|
47
|
+
/** USD to spend, in 6-decimal base units (use {@link usd}). */
|
|
48
|
+
usdAmount: bigint;
|
|
49
|
+
/** Payment stablecoin. Default `'USDC'`. */
|
|
50
|
+
payToken?: PayToken;
|
|
51
|
+
/** Minimum tokens out (slippage guard, 18-decimal). Default `0n`. */
|
|
52
|
+
minOut?: bigint;
|
|
53
|
+
}
|
|
54
|
+
interface GaslessParams {
|
|
55
|
+
token: SaleTokenKind;
|
|
56
|
+
/** USD to spend, in 6-decimal base units (use {@link usd}). Paid in USDC. */
|
|
57
|
+
usdAmount: bigint;
|
|
58
|
+
/** Recipient of the purchased tokens. Default: the buyer. */
|
|
59
|
+
recipient?: Address;
|
|
60
|
+
/** Minimum tokens out (18-decimal). Default `0n`. */
|
|
61
|
+
minOut?: bigint;
|
|
62
|
+
/** Authorization validity window in seconds. Default `1800` (30 min). */
|
|
63
|
+
deadlineSeconds?: number;
|
|
64
|
+
/** Override the relayer base URL (default: the address group's `relayerUrl`). */
|
|
65
|
+
relayerUrl?: string;
|
|
66
|
+
}
|
|
67
|
+
/** Convert a human USD amount to 6-decimal base units. `usd(1.5)` → `1500000n`. */
|
|
68
|
+
declare function usd(amount: number): bigint;
|
|
69
|
+
/**
|
|
70
|
+
* TokenSaleClient — buy aPoints (aPNTs) and the governance token (GToken) from the
|
|
71
|
+
* MushroomDAO launch sale stack. Abstraction of the `launch.mushroom.cv/join` page.
|
|
72
|
+
*
|
|
73
|
+
* Two flows:
|
|
74
|
+
* - {@link buySelfPay}: user pays gas; `approve` (if needed) then `buyTokens` / `buyAPNTs`.
|
|
75
|
+
* - {@link buyGasless}: zero-gas; signs EIP-3009 (USDC) + an EIP-712 `BuyIntent` and posts
|
|
76
|
+
* them to the relayer, which executes the buy via BuyHelper.
|
|
77
|
+
*
|
|
78
|
+
* The token actually paid out is read ON-CHAIN from the sale contract (`gToken()` / `aPNTs()`),
|
|
79
|
+
* never from a stored address — so it stays correct across sale redeploys.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const sale = new TokenSaleClient(publicClient, walletClient);
|
|
84
|
+
* await sale.buyGasless({ token: 'GTOKEN', usdAmount: usd(5) }); // $5, zero gas
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
declare class TokenSaleClient {
|
|
88
|
+
private readonly publicClient;
|
|
89
|
+
private readonly walletClient?;
|
|
90
|
+
private readonly addrs;
|
|
91
|
+
private readonly chainId;
|
|
92
|
+
/** Cache of on-chain-resolved payout token addresses. */
|
|
93
|
+
private payoutToken;
|
|
94
|
+
constructor(publicClient: PublicClient, walletClient?: WalletClient | undefined, options?: TokenSaleClientOptions);
|
|
95
|
+
/** The resolved address group in use. */
|
|
96
|
+
get addresses(): LaunchSaleAddresses;
|
|
97
|
+
/** Sale contract address for a token kind. */
|
|
98
|
+
private saleFor;
|
|
99
|
+
/**
|
|
100
|
+
* Resolve (and cache) the ERC-20 the sale actually pays out, by reading the sale
|
|
101
|
+
* contract's `gToken()` / `aPNTs()` immutable getter. This is the single source of
|
|
102
|
+
* truth for the payout token — no address is duplicated in the config.
|
|
103
|
+
*/
|
|
104
|
+
getPayoutToken(token: SaleTokenKind): Promise<Address>;
|
|
105
|
+
/** Read live USD prices (6-decimal) for both sale tokens. */
|
|
106
|
+
getPrices(): Promise<SalePrices>;
|
|
107
|
+
/**
|
|
108
|
+
* Quote how many tokens (18-decimal) a USD amount buys, via the sale's on-chain
|
|
109
|
+
* pricing (`getTokensForUSD` / `getAPNTsForUSD`).
|
|
110
|
+
*/
|
|
111
|
+
quote(token: SaleTokenKind, usdAmount: bigint): Promise<bigint>;
|
|
112
|
+
/** Read ETH / USDC / USDT / GToken / aPNTs balances for an account. */
|
|
113
|
+
getBalances(account: Address): Promise<SaleBalances>;
|
|
114
|
+
/**
|
|
115
|
+
* Buy with the user paying gas: ensures allowance (approves if short) then calls
|
|
116
|
+
* `buyTokens` / `buyAPNTs`. Tokens are sent to the buyer. Waits for both receipts.
|
|
117
|
+
*/
|
|
118
|
+
buySelfPay(params: SelfPayParams): Promise<BuyResult>;
|
|
119
|
+
/**
|
|
120
|
+
* Buy with zero gas: signs an EIP-3009 USDC `TransferWithAuthorization` (to BuyHelper)
|
|
121
|
+
* and an EIP-712 `BuyIntent`, then posts both to the relayer's `/v3/relay`. Returns the
|
|
122
|
+
* relayer-submitted tx hash after on-chain confirmation. Payment is always USDC.
|
|
123
|
+
*/
|
|
124
|
+
buyGasless(params: GaslessParams): Promise<BuyResult>;
|
|
125
|
+
private requireWallet;
|
|
126
|
+
/**
|
|
127
|
+
* Resolve the signing account. Returns the viem account OBJECT (a LocalAccount, or a
|
|
128
|
+
* JsonRpcAccount for injected wallets) for the `account` field of write/sign calls, plus
|
|
129
|
+
* its address for message fields. Passing the object — not a bare address string — is what
|
|
130
|
+
* lets a local private-key account sign locally instead of routing to `eth_signTypedData_v4`
|
|
131
|
+
* on the (key-less) RPC transport.
|
|
132
|
+
*/
|
|
133
|
+
private signer;
|
|
134
|
+
}
|
|
3
135
|
|
|
4
136
|
declare class FinanceClient {
|
|
5
137
|
private publicClient;
|
|
@@ -61,4 +193,4 @@ declare class FinanceClient {
|
|
|
61
193
|
}>;
|
|
62
194
|
}
|
|
63
195
|
|
|
64
|
-
export { FinanceClient };
|
|
196
|
+
export { type BuyResult, FinanceClient, type PayToken, type SaleBalances, type SalePrices, type SaleTokenKind, TokenSaleClient, type TokenSaleClientOptions, usd };
|
package/dist/tokens.d.ts
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
2
|
import { P as PublicClient, W as WalletClient } from './doc-types-471vSmPO.js';
|
|
3
|
+
import { L as LaunchSaleAddresses } from './addresses-D12T3kLs.js';
|
|
4
|
+
|
|
5
|
+
/** Which token to buy from the launch sale stack. */
|
|
6
|
+
type SaleTokenKind = 'GTOKEN' | 'APNTS';
|
|
7
|
+
/** Stablecoin used to pay (both 6-decimal). Gasless supports USDC only. */
|
|
8
|
+
type PayToken = 'USDC' | 'USDT';
|
|
9
|
+
/** Live USD prices (6-decimal) for one unit of each sale token. */
|
|
10
|
+
interface SalePrices {
|
|
11
|
+
/** USD price per GToken, 6-decimal (e.g. 150000n = $0.15). */
|
|
12
|
+
gToken: bigint;
|
|
13
|
+
/** USD price per aPNTs, 6-decimal. */
|
|
14
|
+
aPNTs: bigint;
|
|
15
|
+
}
|
|
16
|
+
/** Wallet balances relevant to the sale (raw base units). */
|
|
17
|
+
interface SaleBalances {
|
|
18
|
+
/** Native ETH (wei). */
|
|
19
|
+
eth: bigint;
|
|
20
|
+
/** USDC (6-decimal). */
|
|
21
|
+
usdc: bigint;
|
|
22
|
+
/** USDT (6-decimal). */
|
|
23
|
+
usdt: bigint;
|
|
24
|
+
/** GToken (18-decimal). */
|
|
25
|
+
gToken: bigint;
|
|
26
|
+
/** aPNTs (18-decimal). */
|
|
27
|
+
aPNTs: bigint;
|
|
28
|
+
}
|
|
29
|
+
/** Result of a completed buy (self-pay or gasless). */
|
|
30
|
+
interface BuyResult {
|
|
31
|
+
/** Transaction hash (gasless: the relayer-submitted tx). */
|
|
32
|
+
txHash: Hash;
|
|
33
|
+
/** Relayer rule that matched (gasless only). */
|
|
34
|
+
matchedRule?: string;
|
|
35
|
+
}
|
|
36
|
+
interface TokenSaleClientOptions {
|
|
37
|
+
/**
|
|
38
|
+
* Chain id. Defaults to `publicClient.chain?.id` / `walletClient.chain?.id`.
|
|
39
|
+
* Used to look up {@link getLaunchSaleAddresses}.
|
|
40
|
+
*/
|
|
41
|
+
chainId?: number;
|
|
42
|
+
/** Explicit address group override (skips the per-chain lookup). */
|
|
43
|
+
addresses?: LaunchSaleAddresses;
|
|
44
|
+
}
|
|
45
|
+
interface SelfPayParams {
|
|
46
|
+
token: SaleTokenKind;
|
|
47
|
+
/** USD to spend, in 6-decimal base units (use {@link usd}). */
|
|
48
|
+
usdAmount: bigint;
|
|
49
|
+
/** Payment stablecoin. Default `'USDC'`. */
|
|
50
|
+
payToken?: PayToken;
|
|
51
|
+
/** Minimum tokens out (slippage guard, 18-decimal). Default `0n`. */
|
|
52
|
+
minOut?: bigint;
|
|
53
|
+
}
|
|
54
|
+
interface GaslessParams {
|
|
55
|
+
token: SaleTokenKind;
|
|
56
|
+
/** USD to spend, in 6-decimal base units (use {@link usd}). Paid in USDC. */
|
|
57
|
+
usdAmount: bigint;
|
|
58
|
+
/** Recipient of the purchased tokens. Default: the buyer. */
|
|
59
|
+
recipient?: Address;
|
|
60
|
+
/** Minimum tokens out (18-decimal). Default `0n`. */
|
|
61
|
+
minOut?: bigint;
|
|
62
|
+
/** Authorization validity window in seconds. Default `1800` (30 min). */
|
|
63
|
+
deadlineSeconds?: number;
|
|
64
|
+
/** Override the relayer base URL (default: the address group's `relayerUrl`). */
|
|
65
|
+
relayerUrl?: string;
|
|
66
|
+
}
|
|
67
|
+
/** Convert a human USD amount to 6-decimal base units. `usd(1.5)` → `1500000n`. */
|
|
68
|
+
declare function usd(amount: number): bigint;
|
|
69
|
+
/**
|
|
70
|
+
* TokenSaleClient — buy aPoints (aPNTs) and the governance token (GToken) from the
|
|
71
|
+
* MushroomDAO launch sale stack. Abstraction of the `launch.mushroom.cv/join` page.
|
|
72
|
+
*
|
|
73
|
+
* Two flows:
|
|
74
|
+
* - {@link buySelfPay}: user pays gas; `approve` (if needed) then `buyTokens` / `buyAPNTs`.
|
|
75
|
+
* - {@link buyGasless}: zero-gas; signs EIP-3009 (USDC) + an EIP-712 `BuyIntent` and posts
|
|
76
|
+
* them to the relayer, which executes the buy via BuyHelper.
|
|
77
|
+
*
|
|
78
|
+
* The token actually paid out is read ON-CHAIN from the sale contract (`gToken()` / `aPNTs()`),
|
|
79
|
+
* never from a stored address — so it stays correct across sale redeploys.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const sale = new TokenSaleClient(publicClient, walletClient);
|
|
84
|
+
* await sale.buyGasless({ token: 'GTOKEN', usdAmount: usd(5) }); // $5, zero gas
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
declare class TokenSaleClient {
|
|
88
|
+
private readonly publicClient;
|
|
89
|
+
private readonly walletClient?;
|
|
90
|
+
private readonly addrs;
|
|
91
|
+
private readonly chainId;
|
|
92
|
+
/** Cache of on-chain-resolved payout token addresses. */
|
|
93
|
+
private payoutToken;
|
|
94
|
+
constructor(publicClient: PublicClient, walletClient?: WalletClient | undefined, options?: TokenSaleClientOptions);
|
|
95
|
+
/** The resolved address group in use. */
|
|
96
|
+
get addresses(): LaunchSaleAddresses;
|
|
97
|
+
/** Sale contract address for a token kind. */
|
|
98
|
+
private saleFor;
|
|
99
|
+
/**
|
|
100
|
+
* Resolve (and cache) the ERC-20 the sale actually pays out, by reading the sale
|
|
101
|
+
* contract's `gToken()` / `aPNTs()` immutable getter. This is the single source of
|
|
102
|
+
* truth for the payout token — no address is duplicated in the config.
|
|
103
|
+
*/
|
|
104
|
+
getPayoutToken(token: SaleTokenKind): Promise<Address>;
|
|
105
|
+
/** Read live USD prices (6-decimal) for both sale tokens. */
|
|
106
|
+
getPrices(): Promise<SalePrices>;
|
|
107
|
+
/**
|
|
108
|
+
* Quote how many tokens (18-decimal) a USD amount buys, via the sale's on-chain
|
|
109
|
+
* pricing (`getTokensForUSD` / `getAPNTsForUSD`).
|
|
110
|
+
*/
|
|
111
|
+
quote(token: SaleTokenKind, usdAmount: bigint): Promise<bigint>;
|
|
112
|
+
/** Read ETH / USDC / USDT / GToken / aPNTs balances for an account. */
|
|
113
|
+
getBalances(account: Address): Promise<SaleBalances>;
|
|
114
|
+
/**
|
|
115
|
+
* Buy with the user paying gas: ensures allowance (approves if short) then calls
|
|
116
|
+
* `buyTokens` / `buyAPNTs`. Tokens are sent to the buyer. Waits for both receipts.
|
|
117
|
+
*/
|
|
118
|
+
buySelfPay(params: SelfPayParams): Promise<BuyResult>;
|
|
119
|
+
/**
|
|
120
|
+
* Buy with zero gas: signs an EIP-3009 USDC `TransferWithAuthorization` (to BuyHelper)
|
|
121
|
+
* and an EIP-712 `BuyIntent`, then posts both to the relayer's `/v3/relay`. Returns the
|
|
122
|
+
* relayer-submitted tx hash after on-chain confirmation. Payment is always USDC.
|
|
123
|
+
*/
|
|
124
|
+
buyGasless(params: GaslessParams): Promise<BuyResult>;
|
|
125
|
+
private requireWallet;
|
|
126
|
+
/**
|
|
127
|
+
* Resolve the signing account. Returns the viem account OBJECT (a LocalAccount, or a
|
|
128
|
+
* JsonRpcAccount for injected wallets) for the `account` field of write/sign calls, plus
|
|
129
|
+
* its address for message fields. Passing the object — not a bare address string — is what
|
|
130
|
+
* lets a local private-key account sign locally instead of routing to `eth_signTypedData_v4`
|
|
131
|
+
* on the (key-less) RPC transport.
|
|
132
|
+
*/
|
|
133
|
+
private signer;
|
|
134
|
+
}
|
|
3
135
|
|
|
4
136
|
declare class FinanceClient {
|
|
5
137
|
private publicClient;
|
|
@@ -61,4 +193,4 @@ declare class FinanceClient {
|
|
|
61
193
|
}>;
|
|
62
194
|
}
|
|
63
195
|
|
|
64
|
-
export { FinanceClient };
|
|
196
|
+
export { type BuyResult, FinanceClient, type PayToken, type SaleBalances, type SalePrices, type SaleTokenKind, TokenSaleClient, type TokenSaleClientOptions, usd };
|
package/dist/tokens.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { FinanceClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { FinanceClient, TokenSaleClient, usd } from './chunk-L6D2AGTF.js';
|
|
2
|
+
import './chunk-6DZCDV4Q.js';
|
|
3
|
+
import './chunk-MBWBHKUE.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
5
|
//# sourceMappingURL=tokens.js.map
|
|
6
6
|
//# sourceMappingURL=tokens.js.map
|
package/dist/x402.cjs
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkFIMXPANS_cjs = require('./chunk-FIMXPANS.cjs');
|
|
4
|
+
require('./chunk-KOWTQJIX.cjs');
|
|
5
|
+
require('./chunk-G33MXEHU.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "EIP3009_TYPES", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkFIMXPANS_cjs.EIP3009_TYPES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "FacilitatorClient", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkFIMXPANS_cjs.FacilitatorClient; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "GTOKEN_EIP712_DOMAIN", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkFIMXPANS_cjs.GTOKEN_EIP712_DOMAIN; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "HEADER_PAYMENT_REQUIRED", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkFIMXPANS_cjs.HEADER_PAYMENT_REQUIRED; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "HEADER_PAYMENT_RESPONSE", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkFIMXPANS_cjs.HEADER_PAYMENT_RESPONSE; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "HEADER_PAYMENT_SIGNATURE", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkFIMXPANS_cjs.HEADER_PAYMENT_SIGNATURE; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "HEADER_V1_PAYMENT", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkFIMXPANS_cjs.HEADER_V1_PAYMENT; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "HEADER_V1_PAYMENT_RESPONSE", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkFIMXPANS_cjs.HEADER_V1_PAYMENT_RESPONSE; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "X402Client", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkFIMXPANS_cjs.X402Client; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "decodePaymentPayload", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkFIMXPANS_cjs.decodePaymentPayload; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "decodePaymentRequired", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkFIMXPANS_cjs.decodePaymentRequired; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "decodeSettleResponse", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkFIMXPANS_cjs.decodeSettleResponse; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "encodePaymentPayload", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkFIMXPANS_cjs.encodePaymentPayload; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "encodePaymentRequired", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkFIMXPANS_cjs.encodePaymentRequired; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "encodeSettleResponse", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkFIMXPANS_cjs.encodeSettleResponse; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "extractPaymentRequired", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkFIMXPANS_cjs.extractPaymentRequired; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "extractSettleResponse", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkFIMXPANS_cjs.extractSettleResponse; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "generateNonce", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkFIMXPANS_cjs.generateNonce; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "getEIP3009Domain", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkFIMXPANS_cjs.getEIP3009Domain; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "signCancelAuthorization", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkFIMXPANS_cjs.signCancelAuthorization; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "signGTokenTransferWithAuthorization", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkFIMXPANS_cjs.signGTokenTransferWithAuthorization; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "signReceiveWithAuthorization", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkFIMXPANS_cjs.signReceiveWithAuthorization; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "signTransferWithAuthorization", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkFIMXPANS_cjs.signTransferWithAuthorization; }
|
|
101
101
|
});
|
|
102
102
|
//# sourceMappingURL=x402.cjs.map
|
|
103
103
|
//# sourceMappingURL=x402.cjs.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-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
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-UANSP3OK.js';
|
|
2
|
+
import './chunk-6DZCDV4Q.js';
|
|
3
|
+
import './chunk-MBWBHKUE.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.
|
|
3
|
+
"version": "0.25.0",
|
|
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",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkTGEVD7OR_cjs = require('./chunk-TGEVD7OR.cjs');
|
|
4
|
-
require('./chunk-IB3KOSHW.cjs');
|
|
5
|
-
require('./chunk-MXJEULSE.cjs');
|
|
6
|
-
require('./chunk-Q7SFCCGT.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports, "UserClient", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return chunkTGEVD7OR_cjs.UserClient; }
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=UserClient-4MRK2D7W.cjs.map
|
|
15
|
-
//# sourceMappingURL=UserClient-4MRK2D7W.cjs.map
|