@aastar/sdk 0.21.0 → 0.22.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-AJOGJXOC.cjs +15 -0
- package/dist/{UserClient-FOAOBLGK.cjs.map → UserClient-AJOGJXOC.cjs.map} +1 -1
- package/dist/UserClient-Y65JLJ23.js +6 -0
- package/dist/{UserClient-BDGP37PK.js.map → UserClient-Y65JLJ23.js.map} +1 -1
- package/dist/account.cjs +7 -7
- package/dist/account.js +2 -2
- package/dist/admin.cjs +3 -3
- package/dist/admin.js +2 -2
- package/dist/airaccount.cjs +1 -1
- package/dist/airaccount.js +1 -1
- package/dist/channel.cjs +6 -6
- package/dist/channel.js +2 -2
- package/dist/{chunk-M5WFKETT.js → chunk-2TS6T2WY.js} +1512 -66
- package/dist/chunk-2TS6T2WY.js.map +1 -0
- package/dist/{chunk-WR4OZUXR.cjs → chunk-3OIVYXUG.cjs} +6 -6
- package/dist/{chunk-WR4OZUXR.cjs.map → chunk-3OIVYXUG.cjs.map} +1 -1
- package/dist/{chunk-63JM67L7.cjs → chunk-6ISQM3SF.cjs} +26 -26
- package/dist/{chunk-63JM67L7.cjs.map → chunk-6ISQM3SF.cjs.map} +1 -1
- package/dist/{chunk-IJN776TA.cjs → chunk-7HO4IUHZ.cjs} +32 -32
- package/dist/{chunk-IJN776TA.cjs.map → chunk-7HO4IUHZ.cjs.map} +1 -1
- package/dist/{chunk-Z4GZ6DQA.cjs → chunk-7RNOKMAJ.cjs} +9 -9
- package/dist/{chunk-Z4GZ6DQA.cjs.map → chunk-7RNOKMAJ.cjs.map} +1 -1
- package/dist/{chunk-GAMSWXWI.cjs → chunk-BBZAD5G2.cjs} +33 -17
- package/dist/chunk-BBZAD5G2.cjs.map +1 -0
- package/dist/{chunk-Y4EJX7UA.cjs → chunk-BLA57KBS.cjs} +12 -12
- package/dist/{chunk-Y4EJX7UA.cjs.map → chunk-BLA57KBS.cjs.map} +1 -1
- package/dist/{chunk-5JFYTJOE.cjs → chunk-DOVGH7HB.cjs} +4 -4
- package/dist/{chunk-5JFYTJOE.cjs.map → chunk-DOVGH7HB.cjs.map} +1 -1
- package/dist/{chunk-M7HXR7G5.cjs → chunk-FZLBMUPN.cjs} +5 -5
- package/dist/{chunk-M7HXR7G5.cjs.map → chunk-FZLBMUPN.cjs.map} +1 -1
- package/dist/{chunk-5NKU5NT5.js → chunk-JCK7VAZF.js} +8 -8
- package/dist/{chunk-5NKU5NT5.js.map → chunk-JCK7VAZF.js.map} +1 -1
- package/dist/{chunk-EY2AJTGV.js → chunk-LKSQASFZ.js} +3 -3
- package/dist/{chunk-EY2AJTGV.js.map → chunk-LKSQASFZ.js.map} +1 -1
- package/dist/{chunk-3HZEIFBW.cjs → chunk-MG72SGVS.cjs} +5 -5
- package/dist/{chunk-3HZEIFBW.cjs.map → chunk-MG72SGVS.cjs.map} +1 -1
- package/dist/{chunk-ENSMYCU6.js → chunk-MQMTICTP.js} +3 -3
- package/dist/{chunk-ENSMYCU6.js.map → chunk-MQMTICTP.js.map} +1 -1
- package/dist/{chunk-DQBKE4ND.js → chunk-R3N7L7RE.js} +4 -4
- package/dist/{chunk-DQBKE4ND.js.map → chunk-R3N7L7RE.js.map} +1 -1
- package/dist/{chunk-DEUBKZH5.cjs → chunk-RF3MSLRW.cjs} +16 -16
- package/dist/{chunk-DEUBKZH5.cjs.map → chunk-RF3MSLRW.cjs.map} +1 -1
- package/dist/{chunk-RXPSL33E.js → chunk-SNVHOCU6.js} +25 -9
- package/dist/chunk-SNVHOCU6.js.map +1 -0
- package/dist/{chunk-MCALA6WM.js → chunk-T2GF4S3E.js} +6 -6
- package/dist/{chunk-MCALA6WM.js.map → chunk-T2GF4S3E.js.map} +1 -1
- package/dist/{chunk-CIEYY3A6.cjs → chunk-TS5CXRNI.cjs} +1541 -64
- package/dist/chunk-TS5CXRNI.cjs.map +1 -0
- package/dist/{chunk-57XLR2NT.js → chunk-UUT246S2.js} +3 -3
- package/dist/{chunk-57XLR2NT.js.map → chunk-UUT246S2.js.map} +1 -1
- package/dist/{chunk-DF4WVR2H.js → chunk-VUNNHEND.js} +9 -9
- package/dist/{chunk-DF4WVR2H.js.map → chunk-VUNNHEND.js.map} +1 -1
- package/dist/{chunk-KZERVPUR.js → chunk-XTF6MNIK.js} +3 -3
- package/dist/{chunk-KZERVPUR.js.map → chunk-XTF6MNIK.js.map} +1 -1
- package/dist/{chunk-E4CQFW75.js → chunk-XZDMKHKG.js} +3 -3
- package/dist/{chunk-E4CQFW75.js.map → chunk-XZDMKHKG.js.map} +1 -1
- package/dist/core.cjs +295 -171
- package/dist/core.d.cts +362 -27
- package/dist/core.d.ts +362 -27
- package/dist/core.js +1 -1
- package/dist/dapp.cjs +5 -5
- package/dist/dapp.js +2 -2
- package/dist/enduser.cjs +6 -6
- package/dist/enduser.js +3 -3
- package/dist/identity.cjs +5 -5
- package/dist/identity.js +2 -2
- package/dist/index.cjs +396 -272
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/kms.cjs +1 -1
- package/dist/kms.js +1 -1
- package/dist/operator.cjs +6 -6
- package/dist/operator.js +2 -2
- package/dist/paymaster.cjs +15 -15
- package/dist/paymaster.d.cts +13 -0
- package/dist/paymaster.d.ts +13 -0
- package/dist/paymaster.js +2 -2
- package/dist/{src-RSN4U2T2.js → src-MDGW57S5.js} +4 -4
- package/dist/src-MDGW57S5.js.map +1 -0
- package/dist/src-SCR3OCME.js +5 -0
- package/dist/src-SCR3OCME.js.map +1 -0
- package/dist/{src-CUHI6G6W.cjs → src-UQ4RDCJG.cjs} +297 -173
- package/dist/src-UQ4RDCJG.cjs.map +1 -0
- package/dist/{src-KHCWIS4Q.cjs → src-WGYHZSLY.cjs} +17 -17
- package/dist/src-WGYHZSLY.cjs.map +1 -0
- package/dist/tokens.cjs +3 -3
- package/dist/tokens.js +2 -2
- package/dist/x402.cjs +25 -25
- package/dist/x402.js +2 -2
- package/package.json +1 -1
- package/dist/UserClient-BDGP37PK.js +0 -6
- package/dist/UserClient-FOAOBLGK.cjs +0 -15
- package/dist/chunk-CIEYY3A6.cjs.map +0 -1
- package/dist/chunk-GAMSWXWI.cjs.map +0 -1
- package/dist/chunk-M5WFKETT.js.map +0 -1
- package/dist/chunk-RXPSL33E.js.map +0 -1
- package/dist/src-CUHI6G6W.cjs.map +0 -1
- package/dist/src-KHCWIS4Q.cjs.map +0 -1
- package/dist/src-RSN4U2T2.js.map +0 -1
- package/dist/src-XCV6BTSV.js +0 -5
- package/dist/src-XCV6BTSV.js.map +0 -1
package/dist/core.d.ts
CHANGED
|
@@ -6131,20 +6131,45 @@ declare const airAccountFactoryActions: (address: Address) => (client: PublicCli
|
|
|
6131
6131
|
* internally, so the on-chain `address` here is the smart-account address, never
|
|
6132
6132
|
* the extension's own address.
|
|
6133
6133
|
*
|
|
6134
|
-
* ## Batch
|
|
6134
|
+
* ## P-256 (passkey) guardian feature — fully wired (Batch 2)
|
|
6135
6135
|
* The full P-256 / WebAuthn guardian feature (passkey-signed recovery, mixed
|
|
6136
|
-
* ECDSA+P-256 guardian consensus) landed in the contracts at v0.20.0
|
|
6137
|
-
*
|
|
6138
|
-
*
|
|
6139
|
-
*
|
|
6140
|
-
*
|
|
6141
|
-
*
|
|
6136
|
+
* ECDSA+P-256 guardian consensus) landed in the contracts at v0.20.0 and is wired
|
|
6137
|
+
* end-to-end here: the two VIEW reads plus the eight state-changing writes.
|
|
6138
|
+
*
|
|
6139
|
+
* The `sig` blobs these writes consume are built by the core crypto module
|
|
6140
|
+
* (`@aastar/core` → `buildP256GuardianChallenge` / `encodeWebAuthnAssertion` /
|
|
6141
|
+
* `signP256GuardianAssertion` in `crypto/p256Guardian.ts`). This action layer is the
|
|
6142
|
+
* thin calldata wrapper; the security-critical encoding lives in that module and is
|
|
6143
|
+
* decode-verified against a live Sepolia tx (see `tests/regression/onchain-evidence/`).
|
|
6144
|
+
*
|
|
6145
|
+
* ## Guardian bootstrap is guardianSig-free (spec §5.1 / §9)
|
|
6146
|
+
* `addP256Guardian(x, y)` is **owner-only** and requires `_guardianCount < RECOVERY_THRESHOLD`
|
|
6147
|
+
* (a single guardian can't form a quorum), so the FIRST P-256 guardian(s) need NO guardian
|
|
6148
|
+
* signature — only the owner. The same holds for init-time setup via `InitConfig.guardianP256X/Y`
|
|
6149
|
+
* (one factory tx, no window). Once `RECOVERY_THRESHOLD` guardians exist, expansion requires
|
|
6150
|
+
* consensus via `addP256GuardianWithMixedSigs` / `addGuardianWithMixedSigs`.
|
|
6142
6151
|
*
|
|
6143
6152
|
* The plain ECDSA recovery lifecycle (`proposeRecovery` / `approveRecovery` /
|
|
6144
|
-
* `executeRecovery` / `cancelRecovery`) is unchanged at the byte level
|
|
6145
|
-
*
|
|
6146
|
-
* `RecoveryService` against the account address — it is NOT re-declared here.
|
|
6153
|
+
* `executeRecovery` / `cancelRecovery`) is unchanged at the byte level and is encoded by
|
|
6154
|
+
* the AirAccount server's `RecoveryService` against the account address — NOT re-declared here.
|
|
6147
6155
|
*/
|
|
6156
|
+
/**
|
|
6157
|
+
* Storage slots of the mixed-sig operation nonces, taken VERBATIM from the contract's shared layout
|
|
6158
|
+
* `AAStarAgentStorageLayout.sol` (forge-inspect-verified, identical for AAStarAirAccountV7 and
|
|
6159
|
+
* AirAccountExtension — the parity that makes the fallback→delegatecall sharing safe). These nonces
|
|
6160
|
+
* are `internal` (no public getter), so the SDK reads them via `eth_getStorageAt`.
|
|
6161
|
+
*
|
|
6162
|
+
* slot 15 — `_guardianRemovalNonce` (AAStarAgentStorageLayout.sol:118)
|
|
6163
|
+
* slot 16 — `_tierLimitNonce` (AAStarAgentStorageLayout.sol:119)
|
|
6164
|
+
* slot 38 — `_recoveryNonce` (AAStarAgentStorageLayout.sol:182; also the public `getRecoveryNonce()`)
|
|
6165
|
+
* slot 39 — `_guardianAdditionNonce` (AAStarAgentStorageLayout.sol:186)
|
|
6166
|
+
*/
|
|
6167
|
+
declare const GUARDIAN_REMOVAL_NONCE_SLOT = 15n;
|
|
6168
|
+
declare const TIER_LIMIT_NONCE_SLOT = 16n;
|
|
6169
|
+
declare const RECOVERY_NONCE_SLOT = 38n;
|
|
6170
|
+
declare const GUARDIAN_ADDITION_NONCE_SLOT = 39n;
|
|
6171
|
+
/** Highest valid guardian slot index (the contract hard-caps the guardian set at 3: slots 0..2). */
|
|
6172
|
+
declare const MAX_GUARDIAN_SLOT = 2;
|
|
6148
6173
|
type AirAccountExtensionActions = {
|
|
6149
6174
|
/** `getRecoveryNonce()` — monotonic nonce that domain-separates P-256 / mixed-sig recovery payloads. */
|
|
6150
6175
|
getRecoveryNonce: () => Promise<bigint>;
|
|
@@ -6155,57 +6180,132 @@ type AirAccountExtensionActions = {
|
|
|
6155
6180
|
x: Hex;
|
|
6156
6181
|
y: Hex;
|
|
6157
6182
|
}>;
|
|
6158
|
-
/**
|
|
6183
|
+
/**
|
|
6184
|
+
* `_guardianAdditionNonce` — the nonce bound into ADD_GUARDIAN / ADD_P256_GUARDIAN challenges.
|
|
6185
|
+
* Read from internal storage slot 39 (no public getter). MUST be re-fetched immediately before
|
|
6186
|
+
* collecting guardian signatures for `add*WithMixedSigs` (any successful add increments it).
|
|
6187
|
+
*/
|
|
6188
|
+
getGuardianAdditionNonce: () => Promise<bigint>;
|
|
6189
|
+
/**
|
|
6190
|
+
* `_guardianRemovalNonce` — the nonce bound into REMOVE_GUARDIAN challenges. Read from internal
|
|
6191
|
+
* storage slot 15 (no public getter). Re-fetch immediately before signing `removeGuardianWithMixedSigs`.
|
|
6192
|
+
*/
|
|
6193
|
+
getGuardianRemovalNonce: () => Promise<bigint>;
|
|
6194
|
+
/**
|
|
6195
|
+
* `_tierLimitNonce` — the nonce bound into MODIFY_TIER_LIMITS challenges. Read from internal
|
|
6196
|
+
* storage slot 16 (no public getter). Re-fetch immediately before signing `modifyTierLimitsWithMixedGuardians`.
|
|
6197
|
+
*/
|
|
6198
|
+
getTierLimitNonce: () => Promise<bigint>;
|
|
6199
|
+
/** `addP256Guardian(x, y)` — owner-only bootstrap of a passkey guardian (no guardianSig while `count < threshold`). */
|
|
6159
6200
|
addP256Guardian: (args: {
|
|
6160
6201
|
x: Hex;
|
|
6161
6202
|
y: Hex;
|
|
6162
|
-
|
|
6163
|
-
|
|
6203
|
+
account?: Account | Address;
|
|
6204
|
+
maxFeePerGas?: bigint;
|
|
6205
|
+
maxPriorityFeePerGas?: bigint;
|
|
6206
|
+
}) => Promise<Hash>;
|
|
6207
|
+
/** `addP256GuardianWithMixedSigs(x, y, signerIdxs, sigs)` — add a passkey guardian once `count >= threshold` (consensus required). */
|
|
6164
6208
|
addP256GuardianWithMixedSigs: (args: {
|
|
6165
6209
|
x: Hex;
|
|
6166
6210
|
y: Hex;
|
|
6167
6211
|
signerIdxs: readonly number[];
|
|
6168
6212
|
sigs: readonly Hex[];
|
|
6169
|
-
|
|
6170
|
-
|
|
6213
|
+
account?: Account | Address;
|
|
6214
|
+
maxFeePerGas?: bigint;
|
|
6215
|
+
maxPriorityFeePerGas?: bigint;
|
|
6216
|
+
}) => Promise<Hash>;
|
|
6217
|
+
/** `addGuardianWithMixedSigs(guardian, signerIdxs, sigs)` — add an ECDSA guardian with mixed-type guardian consensus. */
|
|
6171
6218
|
addGuardianWithMixedSigs: (args: {
|
|
6172
6219
|
guardian: Address;
|
|
6173
6220
|
signerIdxs: readonly number[];
|
|
6174
6221
|
sigs: readonly Hex[];
|
|
6175
|
-
|
|
6176
|
-
|
|
6222
|
+
account?: Account | Address;
|
|
6223
|
+
maxFeePerGas?: bigint;
|
|
6224
|
+
maxPriorityFeePerGas?: bigint;
|
|
6225
|
+
}) => Promise<Hash>;
|
|
6226
|
+
/** `proposeRecoveryWithSig(newOwner, gIdx, sig)` — passkey guardian proposes recovery (any relayer submits). */
|
|
6177
6227
|
proposeRecoveryWithSig: (args: {
|
|
6178
6228
|
newOwner: Address;
|
|
6179
6229
|
gIdx: number;
|
|
6180
6230
|
sig: Hex;
|
|
6181
|
-
|
|
6182
|
-
|
|
6231
|
+
account?: Account | Address;
|
|
6232
|
+
maxFeePerGas?: bigint;
|
|
6233
|
+
maxPriorityFeePerGas?: bigint;
|
|
6234
|
+
}) => Promise<Hash>;
|
|
6235
|
+
/** `approveRecoveryWithSig(gIdx, sig)` — passkey guardian approves the active recovery proposal. */
|
|
6183
6236
|
approveRecoveryWithSig: (args: {
|
|
6184
6237
|
gIdx: number;
|
|
6185
6238
|
sig: Hex;
|
|
6186
|
-
|
|
6187
|
-
|
|
6239
|
+
account?: Account | Address;
|
|
6240
|
+
maxFeePerGas?: bigint;
|
|
6241
|
+
maxPriorityFeePerGas?: bigint;
|
|
6242
|
+
}) => Promise<Hash>;
|
|
6243
|
+
/** `cancelRecoveryWithSig(gIdx, sig)` — passkey guardian votes to cancel the active recovery proposal. */
|
|
6188
6244
|
cancelRecoveryWithSig: (args: {
|
|
6189
6245
|
gIdx: number;
|
|
6190
6246
|
sig: Hex;
|
|
6191
|
-
|
|
6192
|
-
|
|
6247
|
+
account?: Account | Address;
|
|
6248
|
+
maxFeePerGas?: bigint;
|
|
6249
|
+
maxPriorityFeePerGas?: bigint;
|
|
6250
|
+
}) => Promise<Hash>;
|
|
6251
|
+
/** `removeGuardianWithMixedSigs(index, signerIdxs, sigs)` — owner-only removal with mixed-type guardian consensus. */
|
|
6193
6252
|
removeGuardianWithMixedSigs: (args: {
|
|
6194
6253
|
index: number;
|
|
6195
6254
|
signerIdxs: readonly number[];
|
|
6196
6255
|
sigs: readonly Hex[];
|
|
6197
|
-
|
|
6198
|
-
|
|
6256
|
+
account?: Account | Address;
|
|
6257
|
+
maxFeePerGas?: bigint;
|
|
6258
|
+
maxPriorityFeePerGas?: bigint;
|
|
6259
|
+
}) => Promise<Hash>;
|
|
6260
|
+
/** `modifyTierLimitsWithMixedGuardians(tier1, tier2, deadline, signerIdxs, sigs)` — owner-only tier change with mixed consensus. */
|
|
6199
6261
|
modifyTierLimitsWithMixedGuardians: (args: {
|
|
6200
6262
|
tier1: bigint;
|
|
6201
6263
|
tier2: bigint;
|
|
6202
6264
|
deadline: bigint;
|
|
6203
6265
|
signerIdxs: readonly number[];
|
|
6204
6266
|
sigs: readonly Hex[];
|
|
6205
|
-
|
|
6267
|
+
account?: Account | Address;
|
|
6268
|
+
maxFeePerGas?: bigint;
|
|
6269
|
+
maxPriorityFeePerGas?: bigint;
|
|
6270
|
+
}) => Promise<Hash>;
|
|
6206
6271
|
};
|
|
6207
6272
|
declare const airAccountExtensionActions: (address: Address) => (client: PublicClient$1 | WalletClient) => AirAccountExtensionActions;
|
|
6208
6273
|
|
|
6274
|
+
/** One guardian slot for {@link buildInitConfig}: supply EXACTLY one of `ecdsa` or `p256`. */
|
|
6275
|
+
interface GuardianSpec {
|
|
6276
|
+
/** An ECDSA (EOA / Safe) guardian address. Mutually exclusive with `p256`. */
|
|
6277
|
+
ecdsa?: Address;
|
|
6278
|
+
/** A P-256 (WebAuthn passkey) guardian public key (x, y, each bytes32). Mutually exclusive with `ecdsa`. */
|
|
6279
|
+
p256?: {
|
|
6280
|
+
x: Hex;
|
|
6281
|
+
y: Hex;
|
|
6282
|
+
};
|
|
6283
|
+
}
|
|
6284
|
+
/** Parameters for {@link buildInitConfig}. */
|
|
6285
|
+
interface BuildInitConfigParams {
|
|
6286
|
+
/** Up to 3 guardian slots (ECDSA and/or P-256, freely mixed). Empty/omitted ⇒ no guardians. */
|
|
6287
|
+
guardians?: readonly GuardianSpec[];
|
|
6288
|
+
/** Per-account daily spend limit (wei). Must be > 0 to enable the on-chain GUARD. */
|
|
6289
|
+
dailyLimit: bigint;
|
|
6290
|
+
/**
|
|
6291
|
+
* Validator algorithm ids approved at init (e.g. 2 = ECDSA, 1 = P-256/passkey). If omitted,
|
|
6292
|
+
* derived from the owner/guardian mix is NOT possible (owner alg is separate), so it defaults
|
|
6293
|
+
* to `[2]` (ECDSA) plus `1` (P-256) when any P-256 guardian is present.
|
|
6294
|
+
*/
|
|
6295
|
+
approvedAlgIds?: readonly number[];
|
|
6296
|
+
/** Floor the daily limit can be decreased to via the guard. Defaults to 0. */
|
|
6297
|
+
minDailyLimit?: bigint;
|
|
6298
|
+
/** ERC-20 tokens to pre-register with the guard. Defaults to none. */
|
|
6299
|
+
initialTokens?: readonly Address[];
|
|
6300
|
+
/** Per-token tier configs, index-aligned with `initialTokens`. Defaults to none. */
|
|
6301
|
+
initialTokenConfigs?: readonly TokenConfig[];
|
|
6302
|
+
}
|
|
6303
|
+
/**
|
|
6304
|
+
* Build a v0.20.0 `InitConfig` with mixed ECDSA + P-256 guardians.
|
|
6305
|
+
* @throws {AAStarError} if any slot is ambiguous, the sentinel is misused, or > 3 guardians are given.
|
|
6306
|
+
*/
|
|
6307
|
+
declare function buildInitConfig(params: BuildInitConfigParams): InitConfig;
|
|
6308
|
+
|
|
6209
6309
|
type AgentRegistryActions = {
|
|
6210
6310
|
deployer: () => Promise<Address>;
|
|
6211
6311
|
factory: () => Promise<Address>;
|
|
@@ -6589,6 +6689,241 @@ interface HashToFieldU0U1 {
|
|
|
6589
6689
|
*/
|
|
6590
6690
|
declare function hashToFieldU0U1(message: Hex): HashToFieldU0U1;
|
|
6591
6691
|
|
|
6692
|
+
/**
|
|
6693
|
+
* P-256 (WebAuthn passkey) guardian wire encoders — airaccount-contract v0.20.0
|
|
6694
|
+
* authoritative, byte-for-byte against the published
|
|
6695
|
+
* `AirAccountExtension._verifyWebAuthnP256Sig` + `_p256GuardianChallenge`
|
|
6696
|
+
* (src/core/AirAccountExtension.sol). See `docs/p256-guardian-spec.md` §2, §6.
|
|
6697
|
+
*
|
|
6698
|
+
* ## What the contract actually verifies (NOT the early "simplified" draft)
|
|
6699
|
+
*
|
|
6700
|
+
* A P-256 guardian signs a FULL WebAuthn assertion — exactly what
|
|
6701
|
+
* `navigator.credentials.get()` returns — over the operation challenge:
|
|
6702
|
+
*
|
|
6703
|
+
* ```
|
|
6704
|
+
* challenge = keccak256(abi.encode(
|
|
6705
|
+
* uint8 GUARDIAN_SIG_VERSION (=4),
|
|
6706
|
+
* uint256 chainId,
|
|
6707
|
+
* address account,
|
|
6708
|
+
* string "P256_GUARDIAN", // domain tag
|
|
6709
|
+
* string opLabel, // "PROPOSE_RECOVERY" / …
|
|
6710
|
+
* bytes opData)) // per-op, see §6
|
|
6711
|
+
* clientDataJSON = '{"type":"webauthn.get","challenge":"' || base64url(challenge) || suffix
|
|
6712
|
+
* payloadHash = sha256(authenticatorData || sha256(clientDataJSON)) // ES256 signs this
|
|
6713
|
+
* sig (on-chain) = abi.encode(bytes authenticatorData, bytes clientDataJSONPrefix,
|
|
6714
|
+
* bytes clientDataJSONSuffix, bytes32 r, bytes32 s)
|
|
6715
|
+
* ```
|
|
6716
|
+
*
|
|
6717
|
+
* The contract rebuilds `base64url(challenge)` on-chain (`_base64UrlEncode32`) and
|
|
6718
|
+
* splices it between the SDK-supplied prefix/suffix, then runs the EIP-7212
|
|
6719
|
+
* precompile against the guardian's stored `(x, y)`. It enforces:
|
|
6720
|
+
* - `clientDataJSONPrefix == '{"type":"webauthn.get","challenge":"'` (operation-type binding),
|
|
6721
|
+
* - `authenticatorData.length >= 37` and the UP flag (`authenticatorData[32] & 0x01`),
|
|
6722
|
+
* - low-S: `uint256(s) <= n/2`.
|
|
6723
|
+
*
|
|
6724
|
+
* It deliberately does NOT bind `origin` / `rpIdHash` / UV (platform-layer RP binding
|
|
6725
|
+
* + challenge domain-separation cover replay). See spec §9.5.
|
|
6726
|
+
*
|
|
6727
|
+
* @module
|
|
6728
|
+
*/
|
|
6729
|
+
/** Guardian signature scheme version embedded in every challenge (contract: `GUARDIAN_SIG_VERSION`). */
|
|
6730
|
+
declare const GUARDIAN_SIG_VERSION: 4;
|
|
6731
|
+
/** Domain tag mixed into every P-256 guardian challenge (separates from the ECDSA-guardian hash). */
|
|
6732
|
+
declare const P256_GUARDIAN_DOMAIN: "P256_GUARDIAN";
|
|
6733
|
+
/**
|
|
6734
|
+
* The EXACT `clientDataJSON` prefix the contract requires (operation-type binding). Any other
|
|
6735
|
+
* prefix is rejected on-chain, so a `webauthn.create` (registration) assertion cannot be replayed
|
|
6736
|
+
* through the `webauthn.get` (recovery) path. The base64url(challenge) MUST immediately follow this.
|
|
6737
|
+
*/
|
|
6738
|
+
declare const WEBAUTHN_GET_CHALLENGE_PREFIX: "{\"type\":\"webauthn.get\",\"challenge\":\"";
|
|
6739
|
+
/** Sentinel address stored in a guardian slot to mark it P-256 (contract: `P256_GUARDIAN_SENTINEL`). */
|
|
6740
|
+
declare const P256_GUARDIAN_SENTINEL: Address;
|
|
6741
|
+
/** secp256r1 (P-256) curve order `n` (fixed curve parameter). */
|
|
6742
|
+
declare const SECP256R1_N = 115792089210356248762697446949407573529996955224135760342422259061068512044369n;
|
|
6743
|
+
/**
|
|
6744
|
+
* secp256r1 curve order / 2 — the low-S ceiling the contract enforces
|
|
6745
|
+
* (`AirAccountExtension.SECP256R1_N_OVER_2`).
|
|
6746
|
+
*/
|
|
6747
|
+
declare const SECP256R1_N_OVER_2: bigint;
|
|
6748
|
+
/**
|
|
6749
|
+
* base64url-encode bytes with no padding — byte-identical to the contract's `_base64UrlEncode32`
|
|
6750
|
+
* for 32-byte input (43 chars) and to `Buffer.from(x).toString('base64url')`. Pure JS so `@aastar/core`
|
|
6751
|
+
* stays isomorphic (no node `Buffer`).
|
|
6752
|
+
*/
|
|
6753
|
+
declare function base64UrlEncode(bytes: Uint8Array): string;
|
|
6754
|
+
/** The set of operation labels the contract recognises (string-matched in the challenge). */
|
|
6755
|
+
type GuardianOpLabel = 'PROPOSE_RECOVERY' | 'APPROVE_RECOVERY' | 'CANCEL_RECOVERY' | 'REMOVE_GUARDIAN' | 'MODIFY_TIER_LIMITS' | 'ADD_P256_GUARDIAN' | 'ADD_GUARDIAN';
|
|
6756
|
+
/** Parameters for {@link buildP256GuardianChallenge}. */
|
|
6757
|
+
interface BuildP256GuardianChallengeParams {
|
|
6758
|
+
/** Signature scheme version. Defaults to {@link GUARDIAN_SIG_VERSION} (4). */
|
|
6759
|
+
version?: number;
|
|
6760
|
+
/** EVM chain id the account lives on (`block.chainid`). */
|
|
6761
|
+
chainId: number | bigint;
|
|
6762
|
+
/** The smart-account address (`address(this)` in the extension). */
|
|
6763
|
+
account: Address;
|
|
6764
|
+
/** Operation label, e.g. `"PROPOSE_RECOVERY"`. */
|
|
6765
|
+
opLabel: GuardianOpLabel | string;
|
|
6766
|
+
/** Operation payload (`abi.encode(...)` per op — use the `opData*` builders below). */
|
|
6767
|
+
opData: Hex;
|
|
6768
|
+
}
|
|
6769
|
+
/**
|
|
6770
|
+
* Build the 32-byte operation challenge the contract derives in `_p256GuardianChallenge`:
|
|
6771
|
+
* `keccak256(abi.encode(uint8 version, uint256 chainId, address account, string "P256_GUARDIAN",
|
|
6772
|
+
* string opLabel, bytes opData))`. This is the value passed to `navigator.credentials.get()`.
|
|
6773
|
+
*/
|
|
6774
|
+
declare function buildP256GuardianChallenge(params: BuildP256GuardianChallengeParams): Hex;
|
|
6775
|
+
/** `opData` for PROPOSE_RECOVERY / APPROVE_RECOVERY / CANCEL_RECOVERY: `abi.encode(uint256 nonce, address newOwner)`. */
|
|
6776
|
+
declare function opDataRecovery(nonce: bigint, newOwner: Address): Hex;
|
|
6777
|
+
/** `opData` for ADD_P256_GUARDIAN: `abi.encode(uint256 nonce, bytes32 x, bytes32 y)`. */
|
|
6778
|
+
declare function opDataAddP256Guardian(nonce: bigint, x: Hex, y: Hex): Hex;
|
|
6779
|
+
/** `opData` for ADD_GUARDIAN (ECDSA): `abi.encode(uint256 nonce, address guardian)`. */
|
|
6780
|
+
declare function opDataAddGuardian(nonce: bigint, guardian: Address): Hex;
|
|
6781
|
+
/**
|
|
6782
|
+
* `opData` for REMOVE_GUARDIAN (spec §6.4):
|
|
6783
|
+
* `abi.encode(uint256 nonce, uint8 index, address guardianToRemove, bytes32 p256X, bytes32 p256Y)`.
|
|
6784
|
+
* For an ECDSA slot pass the guardian address with `p256X=p256Y=0x0…0`; for a P-256 slot pass
|
|
6785
|
+
* {@link P256_GUARDIAN_SENTINEL} with the slot's stored `(x, y)`.
|
|
6786
|
+
*/
|
|
6787
|
+
declare function opDataRemoveGuardian(nonce: bigint, index: number, guardianToRemove: Address, p256X: Hex, p256Y: Hex): Hex;
|
|
6788
|
+
/** `opData` for MODIFY_TIER_LIMITS: `abi.encode(uint256 nonce, uint256 tier1, uint256 tier2, uint256 deadline)`. */
|
|
6789
|
+
declare function opDataModifyTierLimits(nonce: bigint, tier1: bigint, tier2: bigint, deadline: bigint): Hex;
|
|
6790
|
+
interface OpChainCtx {
|
|
6791
|
+
chainId: number | bigint;
|
|
6792
|
+
account: Address;
|
|
6793
|
+
version?: number;
|
|
6794
|
+
}
|
|
6795
|
+
/** Challenge for `proposeRecoveryWithSig(newOwner, gIdx, sig)`. `nonce` = `getRecoveryNonce()`. */
|
|
6796
|
+
declare function buildProposeRecoveryChallenge(p: OpChainCtx & {
|
|
6797
|
+
nonce: bigint;
|
|
6798
|
+
newOwner: Address;
|
|
6799
|
+
}): Hex;
|
|
6800
|
+
/** Challenge for `approveRecoveryWithSig(gIdx, sig)`. `newOwner` = `activeRecovery().newOwner`. */
|
|
6801
|
+
declare function buildApproveRecoveryChallenge(p: OpChainCtx & {
|
|
6802
|
+
nonce: bigint;
|
|
6803
|
+
newOwner: Address;
|
|
6804
|
+
}): Hex;
|
|
6805
|
+
/** Challenge for `cancelRecoveryWithSig(gIdx, sig)`. `newOwner` = `activeRecovery().newOwner`. */
|
|
6806
|
+
declare function buildCancelRecoveryChallenge(p: OpChainCtx & {
|
|
6807
|
+
nonce: bigint;
|
|
6808
|
+
newOwner: Address;
|
|
6809
|
+
}): Hex;
|
|
6810
|
+
/** Challenge for `addP256GuardianWithMixedSigs(x, y, …)`. `nonce` = `_guardianAdditionNonce`. */
|
|
6811
|
+
declare function buildAddP256GuardianChallenge(p: OpChainCtx & {
|
|
6812
|
+
nonce: bigint;
|
|
6813
|
+
x: Hex;
|
|
6814
|
+
y: Hex;
|
|
6815
|
+
}): Hex;
|
|
6816
|
+
/** Challenge for `addGuardianWithMixedSigs(guardian, …)`. `nonce` = `_guardianAdditionNonce`. */
|
|
6817
|
+
declare function buildAddGuardianChallenge(p: OpChainCtx & {
|
|
6818
|
+
nonce: bigint;
|
|
6819
|
+
guardian: Address;
|
|
6820
|
+
}): Hex;
|
|
6821
|
+
/** Challenge for `removeGuardianWithMixedSigs(index, …)`. `nonce` = `_guardianRemovalNonce`. */
|
|
6822
|
+
declare function buildRemoveGuardianChallenge(p: OpChainCtx & {
|
|
6823
|
+
nonce: bigint;
|
|
6824
|
+
index: number;
|
|
6825
|
+
guardianToRemove: Address;
|
|
6826
|
+
p256X: Hex;
|
|
6827
|
+
p256Y: Hex;
|
|
6828
|
+
}): Hex;
|
|
6829
|
+
/** Challenge for `modifyTierLimitsWithMixedGuardians(tier1, tier2, deadline, …)`. `nonce` = `_tierLimitNonce`. */
|
|
6830
|
+
declare function buildModifyTierLimitsChallenge(p: OpChainCtx & {
|
|
6831
|
+
nonce: bigint;
|
|
6832
|
+
tier1: bigint;
|
|
6833
|
+
tier2: bigint;
|
|
6834
|
+
deadline: bigint;
|
|
6835
|
+
}): Hex;
|
|
6836
|
+
/** A signature scalar accepted as a 0x-hex (≤32 bytes), raw bytes, or bigint. */
|
|
6837
|
+
type ScalarLike = Hex | Uint8Array | bigint;
|
|
6838
|
+
/** Parameters for {@link encodeWebAuthnAssertion}. */
|
|
6839
|
+
interface EncodeWebAuthnAssertionParams {
|
|
6840
|
+
/** `authenticatorData` from the assertion: `rpIdHash(32) || flags(1) || signCount(4)` (≥37 bytes, UP set). */
|
|
6841
|
+
authenticatorData: Hex | Uint8Array;
|
|
6842
|
+
/**
|
|
6843
|
+
* The FULL `clientDataJSON` the authenticator signed. MUST start with
|
|
6844
|
+
* {@link WEBAUTHN_GET_CHALLENGE_PREFIX}, immediately followed by the 43-char base64url(challenge).
|
|
6845
|
+
* Split into prefix/suffix here; the contract rebuilds the challenge on-chain.
|
|
6846
|
+
*/
|
|
6847
|
+
clientDataJSON: Hex | Uint8Array | string;
|
|
6848
|
+
/** ES256 signature `r` (32-byte scalar). */
|
|
6849
|
+
r: ScalarLike;
|
|
6850
|
+
/** ES256 signature `s` (32-byte scalar). Auto low-S normalised to satisfy the contract. */
|
|
6851
|
+
s: ScalarLike;
|
|
6852
|
+
}
|
|
6853
|
+
/**
|
|
6854
|
+
* ABI-encode a WebAuthn assertion into the on-chain `sig` the contract consumes:
|
|
6855
|
+
* `abi.encode(bytes authenticatorData, bytes clientDataJSONPrefix, bytes clientDataJSONSuffix,
|
|
6856
|
+
* bytes32 r, bytes32 s)`.
|
|
6857
|
+
*
|
|
6858
|
+
* Validates the assertion against every constraint the contract enforces so a bad blob fails here
|
|
6859
|
+
* (with a clear message) rather than as a generic on-chain revert:
|
|
6860
|
+
* - `authenticatorData.length >= 37` and the UP flag (`byte[32] & 0x01`) is set,
|
|
6861
|
+
* - `clientDataJSON` starts with the exact `webauthn.get` prefix and the 43-char challenge slot
|
|
6862
|
+
* is immediately followed by the closing `"` (so the contract's reconstruction lines up),
|
|
6863
|
+
* - `s` is low-S (`<= n/2`) — auto-normalised to `n - s` if the input was high-S (ECDSA-valid).
|
|
6864
|
+
*/
|
|
6865
|
+
declare function encodeWebAuthnAssertion(params: EncodeWebAuthnAssertionParams): Hex;
|
|
6866
|
+
/** Decoded view of an on-chain P-256 guardian `sig` blob. */
|
|
6867
|
+
interface DecodedWebAuthnAssertion {
|
|
6868
|
+
authenticatorData: Hex;
|
|
6869
|
+
clientDataJSONPrefix: Hex;
|
|
6870
|
+
clientDataJSONSuffix: Hex;
|
|
6871
|
+
r: Hex;
|
|
6872
|
+
s: Hex;
|
|
6873
|
+
}
|
|
6874
|
+
/**
|
|
6875
|
+
* Inverse of {@link encodeWebAuthnAssertion} — decode an on-chain `sig` blob back into its parts.
|
|
6876
|
+
* Useful for evidence/decode-verification and debugging a rejected signature.
|
|
6877
|
+
*/
|
|
6878
|
+
declare function decodeWebAuthnAssertion(sig: Hex): DecodedWebAuthnAssertion;
|
|
6879
|
+
declare function coseToP256XY(cosePublicKey: Hex | Uint8Array): {
|
|
6880
|
+
x: Hex;
|
|
6881
|
+
y: Hex;
|
|
6882
|
+
};
|
|
6883
|
+
/** Parameters for {@link signP256GuardianAssertion}. */
|
|
6884
|
+
interface SignP256GuardianAssertionParams {
|
|
6885
|
+
/** Raw 32-byte P-256 private scalar (hex or bytes). */
|
|
6886
|
+
privateKey: Hex | Uint8Array;
|
|
6887
|
+
/** The 32-byte operation challenge (from a `build*Challenge` helper). */
|
|
6888
|
+
challenge: Hex;
|
|
6889
|
+
/**
|
|
6890
|
+
* RP id whose SHA-256 becomes `rpIdHash`. The contract does NOT verify this (§9.5), so any value
|
|
6891
|
+
* works on-chain; defaults to a stable test RP. Set it to your real rpId for fidelity.
|
|
6892
|
+
*/
|
|
6893
|
+
rpId?: string;
|
|
6894
|
+
/** `origin` embedded in `clientDataJSON` suffix (also not verified on-chain). */
|
|
6895
|
+
origin?: string;
|
|
6896
|
+
/** authenticatorData flags byte. Defaults to `0x05` (UP | UV); the contract only requires UP (bit 0). */
|
|
6897
|
+
flags?: number;
|
|
6898
|
+
/** authenticatorData signCount (4-byte big-endian). */
|
|
6899
|
+
signCount?: number;
|
|
6900
|
+
}
|
|
6901
|
+
/** Result of {@link signP256GuardianAssertion}. */
|
|
6902
|
+
interface SignedP256GuardianAssertion {
|
|
6903
|
+
/** The on-chain `sig` blob, ready for `proposeRecoveryWithSig` / mixed-sig calls. */
|
|
6904
|
+
sig: Hex;
|
|
6905
|
+
/** authenticatorData used (hex). */
|
|
6906
|
+
authenticatorData: Hex;
|
|
6907
|
+
/** Full clientDataJSON signed (hex). */
|
|
6908
|
+
clientDataJSON: Hex;
|
|
6909
|
+
/** Low-S–normalised signature `r` (bytes32 hex). */
|
|
6910
|
+
r: Hex;
|
|
6911
|
+
/** Low-S–normalised signature `s` (bytes32 hex). */
|
|
6912
|
+
s: Hex;
|
|
6913
|
+
}
|
|
6914
|
+
/**
|
|
6915
|
+
* Software P-256 authenticator — produces a FULL WebAuthn assertion over `challenge`, byte-for-byte
|
|
6916
|
+
* in the format `navigator.credentials.get()` returns (mirrors the contract's
|
|
6917
|
+
* `test/webauthn/gen_p256_assertion.mjs`). The only difference vs a hardware passkey is WHERE the
|
|
6918
|
+
* key lives. Use for the on-chain evidence E2E and for relaying software-held guardian keys.
|
|
6919
|
+
*/
|
|
6920
|
+
declare function signP256GuardianAssertion(params: SignP256GuardianAssertionParams): SignedP256GuardianAssertion;
|
|
6921
|
+
/** Derive the uncompressed-SEC1 `(x, y)` of a P-256 private key (for `addP256Guardian`). */
|
|
6922
|
+
declare function p256GuardianPublicKey(privateKey: Hex | Uint8Array): {
|
|
6923
|
+
x: Hex;
|
|
6924
|
+
y: Hex;
|
|
6925
|
+
};
|
|
6926
|
+
|
|
6592
6927
|
/**
|
|
6593
6928
|
* Role constants and utilities for AAstar SDK
|
|
6594
6929
|
* @dev All role hashes and configurations match exactly with Registry.sol v3.0.0
|
|
@@ -7045,4 +7380,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
|
|
|
7045
7380
|
verified: boolean;
|
|
7046
7381
|
}>;
|
|
7047
7382
|
|
|
7048
|
-
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, type AirAccountActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, BundlerClient, type BundlerResponse, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CanonicalAddresses, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DeploymentValidationParams, type DryRunValidationResult, ENTRY_POINT_ADDRESS, type ERC20Actions, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, type InitConfig, LINKS, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorConfig, type OperatorMode, type P256SessionState, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, type PackedUserOperation, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, type PendingModuleInstall, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResolvedAPNTsToken, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SlashRecord, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, type SuperPaymasterActions, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedChainId, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type TokenConfig, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, 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 };
|
|
7383
|
+
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, type AirAccountActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildInitConfigParams, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CanonicalAddresses, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, type DryRunValidationResult, ENTRY_POINT_ADDRESS, type ERC20Actions, type EncodeWebAuthnAssertionParams, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, type GuardianOpLabel, type GuardianSpec, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, type InitConfig, LINKS, MAX_GUARDIAN_SLOT, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorConfig, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, type PackedUserOperation, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, type PendingModuleInstall, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, RECOVERY_NONCE_SLOT, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResolvedAPNTsToken, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, type ScalarLike, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, type SignP256GuardianAssertionParams, type SignedP256GuardianAssertion, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SlashRecord, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, type SuperPaymasterActions, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedChainId, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TIER_LIMIT_NONCE_SLOT, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type TokenConfig, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, WEBAUTHN_GET_CHALLENGE_PREFIX, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, describeSupportedChains, dvtActions, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getCanonicalAddresses, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isSupportedChainId, isV2Contract, listSupportedChainIds, lookupAddress, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALL_ROLES, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, 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, airAccountExtensionActions, 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-
|
|
1
|
+
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALL_ROLES, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, INITIAL_ROLE_STAKES, LINKS, MAX_GUARDIAN_SLOT, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, RECOVERY_NONCE_SLOT, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, RegistryArtifact, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, RolePermissionLevel, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, TIER_LIMIT_NONCE_SLOT, V2_SUMMARY, WEBAUTHN_GET_CHALLENGE_PREFIX, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, channelActions, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './chunk-2TS6T2WY.js';
|
|
2
2
|
export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-UCLK6LTB.js';
|
|
3
3
|
import './chunk-PZ5AY32C.js';
|
|
4
4
|
//# sourceMappingURL=core.js.map
|
package/dist/dapp.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkBBZAD5G2_cjs = require('./chunk-BBZAD5G2.cjs');
|
|
4
|
+
var chunkTS5CXRNI_cjs = require('./chunk-TS5CXRNI.cjs');
|
|
5
5
|
require('./chunk-MXJEULSE.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
var viem = require('viem');
|
|
@@ -32,10 +32,10 @@ function useCreditScore({ chain, rpcUrl, registryAddress, userAddress }) {
|
|
|
32
32
|
const fetchCredit = async () => {
|
|
33
33
|
setLoading(true);
|
|
34
34
|
try {
|
|
35
|
-
const client =
|
|
35
|
+
const client = chunkTS5CXRNI_cjs.createAAStarPublicClient(rpcUrl, chain);
|
|
36
36
|
const limit = await client.readContract({
|
|
37
37
|
address: registryAddress,
|
|
38
|
-
abi:
|
|
38
|
+
abi: chunkTS5CXRNI_cjs.RegistryABI,
|
|
39
39
|
functionName: "getCreditLimit",
|
|
40
40
|
args: [userAddress]
|
|
41
41
|
});
|
|
@@ -58,7 +58,7 @@ function useSuperPaymaster(config) {
|
|
|
58
58
|
setIsLoading(true);
|
|
59
59
|
setError(null);
|
|
60
60
|
try {
|
|
61
|
-
const middleware =
|
|
61
|
+
const middleware = chunkBBZAD5G2_cjs.getSuperPaymasterMiddleware(config);
|
|
62
62
|
const result = await middleware.sponsorUserOperation({ userOperation: userOp });
|
|
63
63
|
return result.paymasterAndData;
|
|
64
64
|
} catch (err) {
|
package/dist/dapp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getSuperPaymasterMiddleware } from './chunk-
|
|
2
|
-
import { createAAStarPublicClient, RegistryABI } from './chunk-
|
|
1
|
+
import { getSuperPaymasterMiddleware } from './chunk-SNVHOCU6.js';
|
|
2
|
+
import { createAAStarPublicClient, RegistryABI } from './chunk-2TS6T2WY.js';
|
|
3
3
|
import './chunk-UCLK6LTB.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
5
|
import { parseAbi, createPublicClient, http, hashTypedData, hashMessage, hexToBytes, encodeFunctionData } from 'viem';
|
package/dist/enduser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunk6ISQM3SF_cjs = require('./chunk-6ISQM3SF.cjs');
|
|
4
|
+
var chunkRF3MSLRW_cjs = require('./chunk-RF3MSLRW.cjs');
|
|
5
|
+
require('./chunk-TS5CXRNI.cjs');
|
|
6
6
|
require('./chunk-MXJEULSE.cjs');
|
|
7
7
|
require('./chunk-Q7SFCCGT.cjs');
|
|
8
8
|
|
|
@@ -10,15 +10,15 @@ require('./chunk-Q7SFCCGT.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "CommunityClient", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6ISQM3SF_cjs.CommunityClient; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "UserLifecycle", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6ISQM3SF_cjs.UserLifecycle; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "UserClient", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkRF3MSLRW_cjs.UserClient; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=enduser.cjs.map
|
|
24
24
|
//# sourceMappingURL=enduser.cjs.map
|
package/dist/enduser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CommunityClient, UserLifecycle } from './chunk-
|
|
2
|
-
export { UserClient } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { CommunityClient, UserLifecycle } from './chunk-VUNNHEND.js';
|
|
2
|
+
export { UserClient } from './chunk-T2GF4S3E.js';
|
|
3
|
+
import './chunk-2TS6T2WY.js';
|
|
4
4
|
import './chunk-UCLK6LTB.js';
|
|
5
5
|
import './chunk-PZ5AY32C.js';
|
|
6
6
|
//# sourceMappingURL=enduser.js.map
|
package/dist/identity.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk3OIVYXUG_cjs = require('./chunk-3OIVYXUG.cjs');
|
|
4
|
+
require('./chunk-TS5CXRNI.cjs');
|
|
5
5
|
require('./chunk-MXJEULSE.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
|
|
@@ -9,15 +9,15 @@ require('./chunk-Q7SFCCGT.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ReputationClient", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk3OIVYXUG_cjs.ReputationClient; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "checkMySBT", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk3OIVYXUG_cjs.checkMySBT; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMySBTId", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk3OIVYXUG_cjs.getMySBTId; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=identity.cjs.map
|
|
23
23
|
//# sourceMappingURL=identity.cjs.map
|
package/dist/identity.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ReputationClient, checkMySBT, getMySBTId } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { ReputationClient, checkMySBT, getMySBTId } from './chunk-XTF6MNIK.js';
|
|
2
|
+
import './chunk-2TS6T2WY.js';
|
|
3
3
|
import './chunk-UCLK6LTB.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
5
|
//# sourceMappingURL=identity.js.map
|