@aastar/sdk 0.20.6 → 0.20.8
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/airaccount.d.ts +3 -3
- package/dist/airaccount.js +4 -2
- package/dist/{chunk-KISL64KW.js → chunk-IC3G6YM2.js} +989 -641
- package/dist/chunk-IC3G6YM2.js.map +1 -0
- package/dist/{chunk-FUU7RIIA.js → chunk-X3AMH53O.js} +146 -104
- package/dist/chunk-X3AMH53O.js.map +1 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -1
- package/dist/kms.d.ts +186 -118
- package/dist/kms.js +4 -2
- package/dist/{tier-router-DLiMxs0h.d.ts → tier-router-DeeVg69O.d.ts} +60 -11
- package/package.json +1 -2
- package/dist/chunk-FUU7RIIA.js.map +0 -1
- package/dist/chunk-KISL64KW.js.map +0 -1
package/dist/kms.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ALG_BLS, a as ALG_CUMULATIVE_T2, b as ALG_CUMULATIVE_T3, c as ALG_ECDSA, d as ALG_P256, e as AlgId, B as BLSConfig,
|
|
3
|
-
import { ethers } from 'ethers';
|
|
1
|
+
import { y as UserOperation, P as PackedUserOperation, j as BLSSignatureData, w as TierLevel$1, T as TierConfig, p as GuardStatus, v as PreCheckResult } from './tier-router-DeeVg69O.js';
|
|
2
|
+
export { A as ALG_BLS, a as ALG_CUMULATIVE_T2, b as ALG_CUMULATIVE_T3, c as ALG_ECDSA, d as ALG_P256, e as AirAccountClient, f as AirAccountConfig, g as AlgId, B as BLSConfig, h as BLSManager, i as BLSNode, k as BeginAuthenticationResponse, l as BeginRegistrationResponse, m as BeginTransactionVerificationResponse, C as CryptoUtil, n as CumulativeT2SignatureData, o as CumulativeT3SignatureData, D as DEFAULT_PASSKEY_ROUTES, E as ERC4337Utils, G as GasEstimate, q as PasskeyAuthenticationParams, r as PasskeyInfo, s as PasskeyManager, t as PasskeyRegistrationParams, u as PasskeyRoutes, x as TransactionVerificationParams, U as UserOpBuilder, Y as YAAAClient, z as YAAAConfig, F as algIdForTier, H as resolveTier } from './tier-router-DeeVg69O.js';
|
|
4
3
|
import { AxiosRequestConfig } from 'axios';
|
|
4
|
+
import { PublicClient, Address, Abi, WalletClient, Hex } from 'viem';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Account record stored by the SDK.
|
|
@@ -735,26 +735,28 @@ declare class KmsManager {
|
|
|
735
735
|
* challenge from {@link beginGrantSessionAuth} instead.)
|
|
736
736
|
*/
|
|
737
737
|
beginWebAuthnAuth(keyId: string): Promise<KmsBeginAuthenticationResponse>;
|
|
738
|
-
createKmsSigner(keyId: string, address: string, assertionProvider: () => Promise<LegacyPasskeyAssertion
|
|
738
|
+
createKmsSigner(keyId: string, address: string, assertionProvider: () => Promise<LegacyPasskeyAssertion>): KmsSigner;
|
|
739
739
|
}
|
|
740
740
|
/**
|
|
741
|
-
*
|
|
741
|
+
* KMS-backed signer with Passkey assertion.
|
|
742
742
|
*
|
|
743
743
|
* Each signing operation calls the `assertionProvider` to obtain a Legacy
|
|
744
744
|
* Passkey assertion, which is then passed to KMS SignHash. The Legacy format
|
|
745
745
|
* is reusable (no challenge consumption), enabling BLS dual-signing.
|
|
746
|
+
*
|
|
747
|
+
* Narrowed during the ethers -> viem migration: only the EIP-191 personal-sign
|
|
748
|
+
* and address-read behaviour is actually consumed by the SDK, so the former
|
|
749
|
+
* ethers.AbstractSigner surface (signTransaction / signTypedData / connect /
|
|
750
|
+
* provider) has been dropped.
|
|
746
751
|
*/
|
|
747
|
-
declare class KmsSigner
|
|
752
|
+
declare class KmsSigner {
|
|
748
753
|
private readonly keyId;
|
|
749
754
|
private readonly _address;
|
|
750
755
|
private readonly kmsManager;
|
|
751
756
|
private readonly assertionProvider;
|
|
752
|
-
constructor(keyId: string, _address: string, kmsManager: KmsManager, assertionProvider: () => Promise<LegacyPasskeyAssertion
|
|
757
|
+
constructor(keyId: string, _address: string, kmsManager: KmsManager, assertionProvider: () => Promise<LegacyPasskeyAssertion>);
|
|
753
758
|
getAddress(): Promise<string>;
|
|
754
759
|
signMessage(message: string | Uint8Array): Promise<string>;
|
|
755
|
-
signTransaction(tx: ethers.TransactionRequest): Promise<string>;
|
|
756
|
-
signTypedData(domain: ethers.TypedDataDomain, types: Record<string, ethers.TypedDataField[]>, value: Record<string, unknown>): Promise<string>;
|
|
757
|
-
connect(provider: ethers.Provider): KmsSigner;
|
|
758
760
|
}
|
|
759
761
|
|
|
760
762
|
/**
|
|
@@ -767,19 +769,29 @@ interface PasskeyAssertionContext {
|
|
|
767
769
|
/**
|
|
768
770
|
* Pluggable signer adapter — replaces NestJS AuthService wallet management.
|
|
769
771
|
* Implement this to provide signing capabilities from your key management system.
|
|
772
|
+
*
|
|
773
|
+
* Narrow by design: the only operations the SDK performs are EOA address
|
|
774
|
+
* lookup and EIP-191 personal-sign over a digest. There is no transaction
|
|
775
|
+
* signing / provider connection — that lives in the bundler/UserOp path.
|
|
770
776
|
*/
|
|
771
777
|
interface ISignerAdapter {
|
|
772
778
|
/** Get the EOA address for a given user. */
|
|
773
|
-
getAddress(userId: string): Promise
|
|
774
|
-
/**
|
|
775
|
-
|
|
779
|
+
getAddress(userId: string): Promise<`0x${string}`>;
|
|
780
|
+
/**
|
|
781
|
+
* Sign a message for a given user, applying EIP-191 personal-sign semantics
|
|
782
|
+
* (equivalent to ethers `signer.signMessage(bytes)` / viem
|
|
783
|
+
* `account.signMessage({ raw: bytes })`). A `Uint8Array` (or raw `0x` hex) is
|
|
784
|
+
* signed as raw bytes — callers pass a 32-byte digest, NOT UTF-8 text.
|
|
785
|
+
*
|
|
786
|
+
* @param ctx optional Passkey assertion context for KMS-backed signers.
|
|
787
|
+
*/
|
|
788
|
+
signMessage(userId: string, message: `0x${string}` | Uint8Array, ctx?: PasskeyAssertionContext): Promise<`0x${string}`>;
|
|
776
789
|
/**
|
|
777
790
|
* Ensure a signer exists for the user (create on demand if needed).
|
|
778
|
-
* Returns the signer
|
|
791
|
+
* Returns the signer's address.
|
|
779
792
|
*/
|
|
780
793
|
ensureSigner(userId: string): Promise<{
|
|
781
|
-
|
|
782
|
-
address: string;
|
|
794
|
+
address: `0x${string}`;
|
|
783
795
|
}>;
|
|
784
796
|
}
|
|
785
797
|
|
|
@@ -915,19 +927,19 @@ declare const AIRACCOUNT_ADDRESSES: {
|
|
|
915
927
|
tierGuardHookM7r4: string;
|
|
916
928
|
/** @deprecated */
|
|
917
929
|
agentSessionKeyValidatorM7r4: string;
|
|
918
|
-
factory:
|
|
919
|
-
factoryM7:
|
|
920
|
-
accountImpl:
|
|
921
|
-
validatorRouter:
|
|
922
|
-
blsAlgorithm:
|
|
923
|
-
blsAggregator:
|
|
924
|
-
superPaymaster:
|
|
925
|
-
sessionKeyValidator:
|
|
926
|
-
forceExitModule:
|
|
927
|
-
airAccountDelegate:
|
|
928
|
-
airAccountExtension:
|
|
929
|
-
agentRegistry:
|
|
930
|
-
calldataParserRegistry:
|
|
930
|
+
factory: "0x52c5190E7308Ea9B149157FF016cC99B6C6bf984";
|
|
931
|
+
factoryM7: "0x52c5190E7308Ea9B149157FF016cC99B6C6bf984";
|
|
932
|
+
accountImpl: "0x7fe62d512f0b8238DE6Ff17175DcE40eA312bBF2";
|
|
933
|
+
validatorRouter: "0xC20A986Bcd5bF5Cc2fE5fFde6b155B8419E0389e";
|
|
934
|
+
blsAlgorithm: "0x68c381Ad3A2e3380F22840008027E9Ec2783F43A";
|
|
935
|
+
blsAggregator: "0x77f7bf95B8602b7851f392F412257539242947e0";
|
|
936
|
+
superPaymaster: "0x030025f40d509b1a99547bAEb3795bD27F7182b7";
|
|
937
|
+
sessionKeyValidator: "0x70de2e36004d6Ddc24DEB80e1Ef76c03EdC0c2AE";
|
|
938
|
+
forceExitModule: "0xd882a16Ea37Be463D1885EF4a397Dbbf157dC211";
|
|
939
|
+
airAccountDelegate: "0xA8D7f70c9D36bC4a4eb14F0dCEE19053FCB3309f";
|
|
940
|
+
airAccountExtension: "0xD61C0F3DE6D98070E9986743d35A56d56855A249";
|
|
941
|
+
agentRegistry: "0x3895b3E6fEf4e121E6289dC7881A0eEd5283C652";
|
|
942
|
+
calldataParserRegistry: "0xb8Af1C039dF88F6bD9fE36Ca683492a3c09e7D17";
|
|
931
943
|
uniswapV3Parser: string;
|
|
932
944
|
};
|
|
933
945
|
};
|
|
@@ -960,31 +972,64 @@ declare const SESSION_KEY_VALIDATOR_ABI: string[];
|
|
|
960
972
|
declare const CALLDATA_PARSER_REGISTRY_ABI: string[];
|
|
961
973
|
declare const AIR_ACCOUNT_DELEGATE_ABI: string[];
|
|
962
974
|
|
|
975
|
+
/**
|
|
976
|
+
* A viem contract instance bound to a read-only PublicClient.
|
|
977
|
+
*
|
|
978
|
+
* The EntryPoint/AirAccount ABIs are loaded from human-readable signatures via
|
|
979
|
+
* `parseAbi`, which yields the loosely-typed `Abi` shape. As a result `read`/`write`
|
|
980
|
+
* method access is not statically typed per-function; callers index by name and the
|
|
981
|
+
* returned value is `unknown` (cast at the call site). This mirrors the dynamic
|
|
982
|
+
* surface that `ethers.Contract` previously exposed.
|
|
983
|
+
*/
|
|
984
|
+
type ViemContractMethods = Record<string, (...args: unknown[]) => Promise<unknown>>;
|
|
985
|
+
interface ViemContract {
|
|
986
|
+
address: Address;
|
|
987
|
+
abi: Abi;
|
|
988
|
+
/** Read (view/pure) calls: `contract.read.fnName([...args])`. */
|
|
989
|
+
read: ViemContractMethods;
|
|
990
|
+
/** State-changing calls (requires a wallet client — not provided by this read-only hub). */
|
|
991
|
+
write: ViemContractMethods;
|
|
992
|
+
estimateGas: ViemContractMethods;
|
|
993
|
+
simulate: ViemContractMethods;
|
|
994
|
+
getEvents: ViemContractMethods;
|
|
995
|
+
}
|
|
963
996
|
/**
|
|
964
997
|
* Unified Ethereum provider — replaces NestJS EthereumService.
|
|
965
|
-
* Manages RPC + Bundler
|
|
998
|
+
* Manages RPC + Bundler clients (viem) and contract interactions.
|
|
966
999
|
*/
|
|
967
1000
|
declare class EthereumProvider {
|
|
1001
|
+
/** Main-network read client. Pass to viem getContract / readContract calls. */
|
|
968
1002
|
private readonly provider;
|
|
1003
|
+
/** Bundler client — used only for raw eth_ / pimlico_ userOp JSON-RPC. */
|
|
969
1004
|
private readonly bundlerProvider;
|
|
970
1005
|
private readonly config;
|
|
971
1006
|
private readonly logger;
|
|
972
1007
|
constructor(config: ServerConfig);
|
|
973
|
-
|
|
974
|
-
|
|
1008
|
+
/** Returns the viem PublicClient for the main network RPC. */
|
|
1009
|
+
getProvider(): PublicClient;
|
|
1010
|
+
/** Returns the viem PublicClient bound to the bundler RPC (raw .request only). */
|
|
1011
|
+
getBundlerProvider(): PublicClient;
|
|
1012
|
+
/**
|
|
1013
|
+
* Raw bundler JSON-RPC call. The bundler exposes non-standard methods
|
|
1014
|
+
* (eth_sendUserOperation, pimlico_getUserOperationGasPrice, ...) that are not in
|
|
1015
|
+
* viem's typed RPC schema, so we go through the transport's request fn untyped.
|
|
1016
|
+
*/
|
|
1017
|
+
private bundlerRequest;
|
|
975
1018
|
private getVersionConfig;
|
|
976
1019
|
getEntryPointAddress(version: EntryPointVersion): string;
|
|
977
1020
|
getFactoryAddress(version: EntryPointVersion): string;
|
|
978
1021
|
getValidatorAddress(version: EntryPointVersion): string;
|
|
979
1022
|
getDefaultVersion(): EntryPointVersion;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1023
|
+
/** Build a read-only viem contract bound to the main-network PublicClient. */
|
|
1024
|
+
private contractAt;
|
|
1025
|
+
getFactoryContract(version?: EntryPointVersion): ViemContract;
|
|
1026
|
+
getEntryPointContract(version?: EntryPointVersion): ViemContract;
|
|
1027
|
+
getValidatorContract(version?: EntryPointVersion): ViemContract;
|
|
1028
|
+
getAccountContract(address: string): ViemContract;
|
|
1029
|
+
getAgentSessionKeyValidatorContract(address?: string): ViemContract;
|
|
1030
|
+
getTierGuardHookContract(address?: string): ViemContract;
|
|
1031
|
+
getCompositeValidatorContract(address?: string): ViemContract;
|
|
1032
|
+
getForceExitModuleContract(address: string): ViemContract;
|
|
988
1033
|
getBalance(address: string): Promise<string>;
|
|
989
1034
|
getNonce(accountAddress: string, key?: number, version?: EntryPointVersion): Promise<bigint>;
|
|
990
1035
|
getUserOpHash(userOp: UserOperation | PackedUserOperation, version?: EntryPointVersion): Promise<string>;
|
|
@@ -1085,6 +1130,15 @@ declare class AccountManager {
|
|
|
1085
1130
|
}): Promise<AccountRecord>;
|
|
1086
1131
|
}
|
|
1087
1132
|
|
|
1133
|
+
/**
|
|
1134
|
+
* Minimal guardian signer surface (was `ethers.Signer`): an external signer that
|
|
1135
|
+
* performs an EIP-191 personal-sign over raw bytes and returns a 0x-prefixed
|
|
1136
|
+
* 65-byte hex signature. Structural — any ethers/viem signer with this method fits.
|
|
1137
|
+
*/
|
|
1138
|
+
interface GuardianSigner {
|
|
1139
|
+
signMessage(message: Uint8Array): Promise<string>;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1088
1142
|
/**
|
|
1089
1143
|
* Raised when a DVT node (aNode YetAnotherAA-Validator ≥ v1.3.0, running with
|
|
1090
1144
|
* `CONFIRM_ENABLED=true`) withholds its co-signature on a high-value op pending
|
|
@@ -1139,7 +1193,7 @@ declare class BLSSignatureService {
|
|
|
1139
1193
|
* @param userId - User ID for account lookup
|
|
1140
1194
|
* @param userOpHash - The UserOp hash to sign
|
|
1141
1195
|
* @param p256Signature - P256 passkey signature (64 bytes, required for tier 2/3)
|
|
1142
|
-
* @param guardianSigner - Guardian
|
|
1196
|
+
* @param guardianSigner - Guardian signer (required for tier 3)
|
|
1143
1197
|
* @param ctx - Optional passkey assertion context for KMS signing
|
|
1144
1198
|
*/
|
|
1145
1199
|
generateTieredSignature(params: {
|
|
@@ -1147,7 +1201,7 @@ declare class BLSSignatureService {
|
|
|
1147
1201
|
userId: string;
|
|
1148
1202
|
userOpHash: string;
|
|
1149
1203
|
p256Signature?: string;
|
|
1150
|
-
guardianSigner?:
|
|
1204
|
+
guardianSigner?: GuardianSigner;
|
|
1151
1205
|
ctx?: PasskeyAssertionContext;
|
|
1152
1206
|
}): Promise<string>;
|
|
1153
1207
|
}
|
|
@@ -1215,9 +1269,10 @@ declare class PaymasterManager {
|
|
|
1215
1269
|
* Call `updatePrice()` on a paymaster contract (permissionless).
|
|
1216
1270
|
* Useful when `checkPriceFreshness()` reports stale price.
|
|
1217
1271
|
*
|
|
1218
|
-
* @param
|
|
1272
|
+
* @param walletClient - A viem WalletClient (with an account) that will send
|
|
1273
|
+
* the transaction (must have gas). Replaces the former ethers Signer param.
|
|
1219
1274
|
*/
|
|
1220
|
-
updatePrice(paymasterAddress: string,
|
|
1275
|
+
updatePrice(paymasterAddress: string, walletClient: WalletClient): Promise<string>;
|
|
1221
1276
|
getPaymasterData(userId: string, paymasterName: string, userOp: unknown, entryPoint: string, customAddress?: string, options?: {
|
|
1222
1277
|
tokenAddress?: string;
|
|
1223
1278
|
}): Promise<string>;
|
|
@@ -1270,8 +1325,8 @@ interface ExecuteTransferParams {
|
|
|
1270
1325
|
passkeyAssertion?: LegacyPasskeyAssertion;
|
|
1271
1326
|
/** P256 passkey signature (64 bytes hex). Required for AirAccount Tier 2/3. */
|
|
1272
1327
|
p256Signature?: string;
|
|
1273
|
-
/** Guardian
|
|
1274
|
-
guardianSigner?:
|
|
1328
|
+
/** Guardian signer instance. Required for AirAccount Tier 3. */
|
|
1329
|
+
guardianSigner?: GuardianSigner;
|
|
1275
1330
|
/** Enable AirAccount tiered signature routing. Default: false (legacy BLS-only). */
|
|
1276
1331
|
useAirAccountTiering?: boolean;
|
|
1277
1332
|
/**
|
|
@@ -1321,7 +1376,7 @@ declare class TransferManager {
|
|
|
1321
1376
|
callGasLimit: string;
|
|
1322
1377
|
verificationGasLimit: string;
|
|
1323
1378
|
preVerificationGas: string;
|
|
1324
|
-
validatorGasEstimate:
|
|
1379
|
+
validatorGasEstimate: string;
|
|
1325
1380
|
totalGasEstimate: string;
|
|
1326
1381
|
maxFeePerGas: string;
|
|
1327
1382
|
maxPriorityFeePerGas: string;
|
|
@@ -1344,11 +1399,10 @@ declare class TransferManager {
|
|
|
1344
1399
|
declare class WalletManager {
|
|
1345
1400
|
private readonly signer;
|
|
1346
1401
|
constructor(signer: ISignerAdapter);
|
|
1347
|
-
getAddress(userId: string): Promise
|
|
1348
|
-
|
|
1402
|
+
getAddress(userId: string): Promise<`0x${string}`>;
|
|
1403
|
+
signMessage(userId: string, message: `0x${string}` | Uint8Array, ctx?: PasskeyAssertionContext): Promise<`0x${string}`>;
|
|
1349
1404
|
ensureSigner(userId: string): Promise<{
|
|
1350
|
-
|
|
1351
|
-
address: string;
|
|
1405
|
+
address: `0x${string}`;
|
|
1352
1406
|
}>;
|
|
1353
1407
|
}
|
|
1354
1408
|
|
|
@@ -1358,9 +1412,9 @@ declare class WalletManager {
|
|
|
1358
1412
|
*
|
|
1359
1413
|
* @example
|
|
1360
1414
|
* ```ts
|
|
1361
|
-
* import {
|
|
1415
|
+
* import { AirAccountServerClient, MemoryStorage, LocalWalletSigner } from '@aastar/airaccount/server';
|
|
1362
1416
|
*
|
|
1363
|
-
* const client = new
|
|
1417
|
+
* const client = new AirAccountServerClient({
|
|
1364
1418
|
* rpcUrl: 'https://sepolia.infura.io/v3/...',
|
|
1365
1419
|
* bundlerRpcUrl: 'https://api.pimlico.io/v2/11155111/rpc?apikey=...',
|
|
1366
1420
|
* chainId: 11155111,
|
|
@@ -1378,7 +1432,7 @@ declare class WalletManager {
|
|
|
1378
1432
|
* const account = await client.accounts.createAccount('user-123');
|
|
1379
1433
|
* ```
|
|
1380
1434
|
*/
|
|
1381
|
-
declare class
|
|
1435
|
+
declare class AirAccountServerClient {
|
|
1382
1436
|
readonly ethereum: EthereumProvider;
|
|
1383
1437
|
readonly accounts: AccountManager;
|
|
1384
1438
|
readonly transfers: TransferManager;
|
|
@@ -1388,6 +1442,11 @@ declare class YAAAServerClient {
|
|
|
1388
1442
|
readonly wallets: WalletManager;
|
|
1389
1443
|
constructor(config: ServerConfig);
|
|
1390
1444
|
}
|
|
1445
|
+
/**
|
|
1446
|
+
* @deprecated Renamed to {@link AirAccountServerClient}. This alias is kept for
|
|
1447
|
+
* backward compatibility and will be removed in a future major version.
|
|
1448
|
+
*/
|
|
1449
|
+
declare const YAAAServerClient: typeof AirAccountServerClient;
|
|
1391
1450
|
|
|
1392
1451
|
type ModuleTypeId = 1 | 2 | 3 | 4;
|
|
1393
1452
|
interface InstallModuleParams {
|
|
@@ -1428,7 +1487,7 @@ interface UninstallModuleParams {
|
|
|
1428
1487
|
*
|
|
1429
1488
|
* @example
|
|
1430
1489
|
* const hash = buildInstallModuleHash(chainId, account, 1, moduleAddress, moduleInitData);
|
|
1431
|
-
* const sig = await guardian.signMessage(
|
|
1490
|
+
* const sig = await guardian.signMessage(hexToBytes(hash));
|
|
1432
1491
|
*/
|
|
1433
1492
|
declare function buildInstallModuleHash(chainId: number, account: string, moduleTypeId: ModuleTypeId, module: string, moduleInitData?: string): string;
|
|
1434
1493
|
/**
|
|
@@ -1445,7 +1504,7 @@ declare function buildUninstallModuleHash(chainId: number, account: string, modu
|
|
|
1445
1504
|
declare class ModuleManager {
|
|
1446
1505
|
private readonly provider;
|
|
1447
1506
|
private readonly chainId;
|
|
1448
|
-
constructor(provider:
|
|
1507
|
+
constructor(provider: PublicClient, chainId: number);
|
|
1449
1508
|
/**
|
|
1450
1509
|
* Encode calldata for installModule().
|
|
1451
1510
|
* Caller is responsible for submitting via UserOp (EntryPoint) or direct tx.
|
|
@@ -1557,10 +1616,9 @@ interface AgentSessionInfo extends AgentSessionConfig {
|
|
|
1557
1616
|
* hierarchical delegation (parent → sub-agent with scope narrowing).
|
|
1558
1617
|
*/
|
|
1559
1618
|
declare class SessionKeyService {
|
|
1560
|
-
private readonly provider;
|
|
1561
1619
|
private readonly skValidator;
|
|
1562
1620
|
private readonly askValidator;
|
|
1563
|
-
constructor(provider:
|
|
1621
|
+
constructor(provider: PublicClient, sessionKeyValidatorAddress: string, agentSessionKeyValidatorAddress: string);
|
|
1564
1622
|
/**
|
|
1565
1623
|
* Build the hash that the account owner must sign to grant a session key.
|
|
1566
1624
|
* Use grantSession() with this sig, or grantSessionDirect() from the account itself.
|
|
@@ -1701,7 +1759,9 @@ interface TokenGuardState {
|
|
|
1701
1759
|
*/
|
|
1702
1760
|
declare class GuardStateReader {
|
|
1703
1761
|
private readonly provider;
|
|
1704
|
-
constructor(provider:
|
|
1762
|
+
constructor(provider: PublicClient);
|
|
1763
|
+
private accountContract;
|
|
1764
|
+
private guardContract;
|
|
1705
1765
|
/**
|
|
1706
1766
|
* Read the full ETH guard state for an account.
|
|
1707
1767
|
* Returns null if the account has no guard (dailyLimit=0).
|
|
@@ -1723,18 +1783,6 @@ declare class GuardStateReader {
|
|
|
1723
1783
|
isAlgorithmApproved(accountAddress: string, algId: number): Promise<boolean>;
|
|
1724
1784
|
}
|
|
1725
1785
|
|
|
1726
|
-
/**
|
|
1727
|
-
* OAPD — One Account Per DApp address derivation (F7).
|
|
1728
|
-
*
|
|
1729
|
-
* Each DApp gets a unique counterfactual AirAccount address derived from:
|
|
1730
|
-
* salt = keccak256(owner ‖ dappId)
|
|
1731
|
-
*
|
|
1732
|
-
* This prevents DApps from correlating user activity across sites while
|
|
1733
|
-
* sharing the same underlying owner key and guardians.
|
|
1734
|
-
*
|
|
1735
|
-
* The OAPD address is a standard AirAccount clone — it has its own guard,
|
|
1736
|
-
* its own daily limits, and can be funded independently.
|
|
1737
|
-
*/
|
|
1738
1786
|
interface OapdConfig {
|
|
1739
1787
|
/** Account owner address */
|
|
1740
1788
|
owner: string;
|
|
@@ -1768,25 +1816,25 @@ declare function computeOapdSalt(owner: string, dappId: string): bigint;
|
|
|
1768
1816
|
* Predict the counterfactual OAPD address without deploying.
|
|
1769
1817
|
* Uses the factory's getAddress() view function.
|
|
1770
1818
|
*/
|
|
1771
|
-
declare function getOapdAddress(provider:
|
|
1819
|
+
declare function getOapdAddress(provider: PublicClient, config: OapdConfig): Promise<string>;
|
|
1772
1820
|
/**
|
|
1773
1821
|
* Get the OAPD address and its ERC-7828 chain-qualified identifier.
|
|
1774
1822
|
*/
|
|
1775
|
-
declare function getOapdAddressWithChainId(provider:
|
|
1823
|
+
declare function getOapdAddressWithChainId(provider: PublicClient, config: OapdConfig): Promise<{
|
|
1776
1824
|
address: string;
|
|
1777
1825
|
chainQualified: string;
|
|
1778
1826
|
}>;
|
|
1779
1827
|
/**
|
|
1780
1828
|
* Check if an OAPD account has been deployed yet.
|
|
1781
1829
|
*/
|
|
1782
|
-
declare function isOapdDeployed(provider:
|
|
1830
|
+
declare function isOapdDeployed(provider: PublicClient, config: OapdConfig): Promise<boolean>;
|
|
1783
1831
|
|
|
1784
1832
|
/** 4-byte selector of `executeUserOp((PackedUserOperation),bytes32)`. */
|
|
1785
|
-
declare const EXECUTE_USER_OP_SELECTOR: string
|
|
1833
|
+
declare const EXECUTE_USER_OP_SELECTOR: `0x${string}`;
|
|
1786
1834
|
/** 4-byte selector of `execute(address,uint256,bytes)`. */
|
|
1787
|
-
declare const EXECUTE_SELECTOR: string
|
|
1835
|
+
declare const EXECUTE_SELECTOR: `0x${string}`;
|
|
1788
1836
|
/** 4-byte selector of `executeBatch(address[],uint256[],bytes[])`. */
|
|
1789
|
-
declare const EXECUTE_BATCH_SELECTOR: string
|
|
1837
|
+
declare const EXECUTE_BATCH_SELECTOR: `0x${string}`;
|
|
1790
1838
|
/**
|
|
1791
1839
|
* Wrap inner `execute()` / `executeBatch()` callData with the `executeUserOp` selector so a
|
|
1792
1840
|
* guard-enabled (v0.17.2-beta.4) account routes the bundler UserOp through `executeUserOp`.
|
|
@@ -1818,6 +1866,17 @@ interface PendingExit {
|
|
|
1818
1866
|
approvalBitmap: bigint;
|
|
1819
1867
|
guardians: [string, string, string];
|
|
1820
1868
|
}
|
|
1869
|
+
/**
|
|
1870
|
+
* A viem client capable of backing the ForceExit contract. A `PublicClient`
|
|
1871
|
+
* alone enables the on-chain reads; a `WalletClient` (or the `{ public, wallet }`
|
|
1872
|
+
* pair) is required for the state-changing `proposeForceExit`/`approveForceExit`/
|
|
1873
|
+
* etc. transactions. This replaces the old `ethers.Provider | ethers.Signer`
|
|
1874
|
+
* argument (provider = reads, signer = reads + writes).
|
|
1875
|
+
*/
|
|
1876
|
+
type ForceExitClient = PublicClient | WalletClient | {
|
|
1877
|
+
public: PublicClient;
|
|
1878
|
+
wallet: WalletClient;
|
|
1879
|
+
};
|
|
1821
1880
|
/**
|
|
1822
1881
|
* ForceExitService — typed wrappers for ForceExitModule ERC-7579 emergency L2→L1 exit.
|
|
1823
1882
|
*
|
|
@@ -1832,8 +1891,7 @@ interface PendingExit {
|
|
|
1832
1891
|
declare class ForceExitService {
|
|
1833
1892
|
private readonly moduleAddress;
|
|
1834
1893
|
private readonly contract;
|
|
1835
|
-
|
|
1836
|
-
constructor(moduleAddress: string, providerOrSigner: ethers.Provider | ethers.Signer);
|
|
1894
|
+
constructor(moduleAddress: string, client: ForceExitClient);
|
|
1837
1895
|
isInitialized(smartAccount: string): Promise<boolean>;
|
|
1838
1896
|
getPendingExit(account: string): Promise<PendingExit>;
|
|
1839
1897
|
getAccountL2Type(account: string): Promise<number>;
|
|
@@ -1862,10 +1920,10 @@ declare class ForceExitService {
|
|
|
1862
1920
|
encodeApproveForceExit(account: string, guardianSig: string): string;
|
|
1863
1921
|
encodeExecuteForceExit(account: string): string;
|
|
1864
1922
|
encodeCancelForceExit(account: string): string;
|
|
1865
|
-
proposeForceExit(target: string, value: bigint, data: string): Promise<
|
|
1866
|
-
approveForceExit(account: string, guardianSig: string): Promise<
|
|
1867
|
-
executeForceExit(account: string): Promise<
|
|
1868
|
-
cancelForceExit(account: string): Promise<
|
|
1923
|
+
proposeForceExit(target: string, value: bigint, data: string): Promise<Hex>;
|
|
1924
|
+
approveForceExit(account: string, guardianSig: string): Promise<Hex>;
|
|
1925
|
+
executeForceExit(account: string): Promise<Hex>;
|
|
1926
|
+
cancelForceExit(account: string): Promise<Hex>;
|
|
1869
1927
|
}
|
|
1870
1928
|
|
|
1871
1929
|
/**
|
|
@@ -1957,9 +2015,13 @@ interface ActiveRecovery {
|
|
|
1957
2015
|
* cleared via guardian `cancelRecovery()` votes before re-proposing.
|
|
1958
2016
|
*/
|
|
1959
2017
|
declare class RecoveryService {
|
|
1960
|
-
private readonly
|
|
1961
|
-
|
|
1962
|
-
|
|
2018
|
+
private readonly client;
|
|
2019
|
+
/**
|
|
2020
|
+
* @param client viem read client (was `ethers.Provider | ethers.Signer`). Only
|
|
2021
|
+
* on-chain reads are performed here; calldata encoders are pure and never
|
|
2022
|
+
* touch the client.
|
|
2023
|
+
*/
|
|
2024
|
+
constructor(client: PublicClient);
|
|
1963
2025
|
/**
|
|
1964
2026
|
* Encode `addGuardian(guardian)` calldata. **Owner only.**
|
|
1965
2027
|
* Registers a recovery guardian; reverts once 3 guardians are set, or if the
|
|
@@ -2061,15 +2123,17 @@ interface EIP7702Authorization {
|
|
|
2061
2123
|
* The user's EOA address does NOT change — only its bytecode pointer changes to 0xef0100||addr.
|
|
2062
2124
|
*
|
|
2063
2125
|
* Usage:
|
|
2064
|
-
* 1. Build SET_CODE authorization payload (call signer.signAuthorization externally — viem
|
|
2126
|
+
* 1. Build SET_CODE authorization payload (call signer.signAuthorization externally — viem)
|
|
2065
2127
|
* 2. Build initialize() calldata for the first UserOp / direct tx
|
|
2066
2128
|
* 3. Submit both via integrator's relay
|
|
2067
2129
|
*/
|
|
2068
2130
|
declare class EIP7702DelegateService {
|
|
2069
2131
|
private readonly delegateAddress;
|
|
2070
|
-
|
|
2071
|
-
private readonly
|
|
2072
|
-
|
|
2132
|
+
/** Parsed ABI (loose viem `Abi` shape) used for encoding calldata and on-chain reads. */
|
|
2133
|
+
private readonly abi;
|
|
2134
|
+
/** Optional viem read client (was `ethers.Provider | ethers.Signer`). Required only for on-chain reads. */
|
|
2135
|
+
private readonly client?;
|
|
2136
|
+
constructor(delegateAddress?: string, client?: PublicClient);
|
|
2073
2137
|
/**
|
|
2074
2138
|
* Encode initialize() calldata for the first post-delegation UserOp.
|
|
2075
2139
|
* Must be the callData of a UserOp sent immediately after the SET_CODE delegation activates.
|
|
@@ -2085,7 +2149,7 @@ declare class EIP7702DelegateService {
|
|
|
2085
2149
|
*
|
|
2086
2150
|
* This is the hash the private key signs to delegate code execution to
|
|
2087
2151
|
* AirAccountDelegate. Use this hash with your KMS sign-hash endpoint or
|
|
2088
|
-
* local
|
|
2152
|
+
* local viem account.
|
|
2089
2153
|
*
|
|
2090
2154
|
* @param chainId - Target chain ID (11155111 for Sepolia)
|
|
2091
2155
|
* @param nonce - EOA's current transaction nonce
|
|
@@ -2104,8 +2168,10 @@ declare class EIP7702DelegateService {
|
|
|
2104
2168
|
/**
|
|
2105
2169
|
* Verify that a signature is a valid EIP-7702 authorization for the given EOA address.
|
|
2106
2170
|
* Recovers the signer from the authorization hash and checks it matches `eoa`.
|
|
2171
|
+
*
|
|
2172
|
+
* NOTE: now async — viem's `recoverAddress` is asynchronous (ethers' was sync).
|
|
2107
2173
|
*/
|
|
2108
|
-
verifyAuthorization(eoa: string, chainId: number, nonce: bigint, signature: string): boolean
|
|
2174
|
+
verifyAuthorization(eoa: string, chainId: number, nonce: bigint, signature: string): Promise<boolean>;
|
|
2109
2175
|
isInitialized(eoa: string): Promise<boolean>;
|
|
2110
2176
|
getOwner(eoa: string): Promise<string>;
|
|
2111
2177
|
getGuardians(eoa: string): Promise<[string, string, string]>;
|
|
@@ -2186,9 +2252,9 @@ interface PendingWeightChange {
|
|
|
2186
2252
|
*/
|
|
2187
2253
|
declare class WeightedSignatureService {
|
|
2188
2254
|
private readonly accountAddress;
|
|
2189
|
-
private readonly
|
|
2190
|
-
private readonly
|
|
2191
|
-
constructor(accountAddress: string,
|
|
2255
|
+
private readonly client;
|
|
2256
|
+
private readonly address;
|
|
2257
|
+
constructor(accountAddress: string, client: PublicClient);
|
|
2192
2258
|
/** Read the account's current active WeightConfig. */
|
|
2193
2259
|
getWeightConfig(): Promise<WeightConfig>;
|
|
2194
2260
|
/**
|
|
@@ -2200,21 +2266,21 @@ declare class WeightedSignatureService {
|
|
|
2200
2266
|
* Encode setWeightConfig calldata. OWNER only; for first-time setup or strengthening.
|
|
2201
2267
|
* Weakening an existing config must go through encodeProposeWeightChange instead.
|
|
2202
2268
|
*/
|
|
2203
|
-
encodeSetWeightConfig(config: WeightConfig):
|
|
2269
|
+
encodeSetWeightConfig(config: WeightConfig): Hex;
|
|
2204
2270
|
/**
|
|
2205
2271
|
* Encode proposeWeightChange calldata. OWNER only; opens a guardian-governed proposal
|
|
2206
2272
|
* (required for any weakening). Subject to 2-of-3 approval + 2-day timelock before execute.
|
|
2207
2273
|
*/
|
|
2208
|
-
encodeProposeWeightChange(config: WeightConfig):
|
|
2274
|
+
encodeProposeWeightChange(config: WeightConfig): Hex;
|
|
2209
2275
|
/** Encode approveWeightChange calldata. GUARDIAN only; each guardian may approve once. */
|
|
2210
|
-
encodeApproveWeightChange():
|
|
2276
|
+
encodeApproveWeightChange(): Hex;
|
|
2211
2277
|
/** Encode cancelWeightChange calldata. OWNER or any GUARDIAN may cancel a pending proposal. */
|
|
2212
|
-
encodeCancelWeightChange():
|
|
2278
|
+
encodeCancelWeightChange(): Hex;
|
|
2213
2279
|
/**
|
|
2214
2280
|
* Encode executeWeightChange calldata. Callable by anyone, but only succeeds once the
|
|
2215
2281
|
* threshold (2-of-3) and timelock (2 days) are both satisfied and the proposal has not expired.
|
|
2216
2282
|
*/
|
|
2217
|
-
encodeExecuteWeightChange():
|
|
2283
|
+
encodeExecuteWeightChange(): Hex;
|
|
2218
2284
|
}
|
|
2219
2285
|
|
|
2220
2286
|
interface CreateAgentAccountParams {
|
|
@@ -2249,20 +2315,16 @@ interface CreateAgentAccountParams {
|
|
|
2249
2315
|
* address before deployment.
|
|
2250
2316
|
*
|
|
2251
2317
|
* All `encode*` methods return ABI-encoded calldata ready for a UserOp (gasless) or a direct
|
|
2252
|
-
* owner transaction. Read methods require a
|
|
2318
|
+
* owner transaction. Read methods require a viem `PublicClient`.
|
|
2253
2319
|
*/
|
|
2254
2320
|
declare class AgentRegistryService {
|
|
2255
2321
|
private readonly registryAddress;
|
|
2256
|
-
private readonly
|
|
2257
|
-
private readonly iface;
|
|
2258
|
-
private readonly factoryIface;
|
|
2259
|
-
private readonly accountIface;
|
|
2260
|
-
private readonly providerOrSigner;
|
|
2322
|
+
private readonly client;
|
|
2261
2323
|
/**
|
|
2262
|
-
* @param
|
|
2263
|
-
* @param registryAddress
|
|
2324
|
+
* @param client viem PublicClient for on-chain reads (e.g. `ethereum.getProvider()`).
|
|
2325
|
+
* @param registryAddress deployed AgentRegistry contract address.
|
|
2264
2326
|
*/
|
|
2265
|
-
constructor(
|
|
2327
|
+
constructor(client: PublicClient, registryAddress: string);
|
|
2266
2328
|
/** Encode `account.execute(registry, 0, registerAgent(agentWallet, agentWalletSig))`. */
|
|
2267
2329
|
encodeRegisterAgentViaAccount(agentWallet: string, agentWalletSig: string): string;
|
|
2268
2330
|
/** Encode `account.execute(registry, 0, revokeAgent(agentWallet))`. */
|
|
@@ -2418,9 +2480,16 @@ interface AgentReputationSummary {
|
|
|
2418
2480
|
* fallback delegates to AirAccountExtension for these selectors.
|
|
2419
2481
|
*/
|
|
2420
2482
|
declare class ERC8004Service {
|
|
2421
|
-
private readonly
|
|
2483
|
+
private readonly abi;
|
|
2422
2484
|
private readonly provider?;
|
|
2423
|
-
constructor(provider?:
|
|
2485
|
+
constructor(provider?: PublicClient);
|
|
2486
|
+
/**
|
|
2487
|
+
* Build a read-only viem contract bound to the account address. The ABI is loaded from
|
|
2488
|
+
* human-readable signatures via `parseAbi` (loose `Abi`), so `read` methods are indexed by
|
|
2489
|
+
* name and return `unknown` — cast at the call site. Mirrors the dynamic surface that
|
|
2490
|
+
* `ethers.Contract` previously exposed. Caller must ensure `this.provider` is set.
|
|
2491
|
+
*/
|
|
2492
|
+
private contractAt;
|
|
2424
2493
|
/**
|
|
2425
2494
|
* Encode calldata for `setAgentWallet`.
|
|
2426
2495
|
*
|
|
@@ -2973,14 +3042,13 @@ declare class MemoryStorage implements IStorageAdapter {
|
|
|
2973
3042
|
* per-user key management (e.g., KMS, HSM, or encrypted database).
|
|
2974
3043
|
*/
|
|
2975
3044
|
declare class LocalWalletSigner implements ISignerAdapter {
|
|
2976
|
-
private readonly
|
|
2977
|
-
constructor(privateKey: string
|
|
2978
|
-
getAddress(_userId: string): Promise
|
|
2979
|
-
|
|
3045
|
+
private readonly account;
|
|
3046
|
+
constructor(privateKey: string);
|
|
3047
|
+
getAddress(_userId: string): Promise<`0x${string}`>;
|
|
3048
|
+
signMessage(_userId: string, message: `0x${string}` | Uint8Array, _ctx?: PasskeyAssertionContext): Promise<`0x${string}`>;
|
|
2980
3049
|
ensureSigner(_userId: string): Promise<{
|
|
2981
|
-
|
|
2982
|
-
address: string;
|
|
3050
|
+
address: `0x${string}`;
|
|
2983
3051
|
}>;
|
|
2984
3052
|
}
|
|
2985
3053
|
|
|
2986
|
-
export { ACCOUNT_ABI, AGENT_SESSION_KEY_VALIDATOR_ABI, AIRACCOUNT_ABI, AIRACCOUNT_ADDRESSES, AIRACCOUNT_FACTORY_ABI, AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI, AIR_ACCOUNT_DELEGATE_ABI, AIR_ACCOUNT_DELEGATE_ADDRESS, ALG_ID, AccountManager, type AccountRecord, type ActiveRecovery, AgentRegistryService, type AgentReputationSummary, type AgentSessionConfig, type AgentSessionInfo, type AirAccountVersion, BLSSignatureData, BLSSignatureService, type BeginCeremonyResponse, type BindERC8004AgentWalletParams, type BlsConfigRecord, type BuildCredentialOptions, CALLDATA_PARSER_REGISTRY_ABI, ConsoleLogger, type CreateAgentAccountParams, type CreateP256SessionKeyRequest, type CreateP256SessionKeyResponse, DEFAULT_CREDENTIAL_ID, DEFAULT_KMS_ENDPOINT, DEFAULT_ORIGIN, DEFAULT_RP_ID, type DelegateInitParams, DvtPendingConfirmationError, type EIP7702Authorization, EIP7702DelegateService, ENTRYPOINT_ABI_V6, ENTRYPOINT_ABI_V7_V8, ENTRYPOINT_ADDRESSES, ERC20_ABI, ERC8004Service, ERC8004_ADDRESSES, EXECUTE_BATCH_SELECTOR, EXECUTE_SELECTOR, EXECUTE_USER_OP_SELECTOR, type EntryPointConfig, EntryPointVersion, type EntryPointVersionConfig, type EstimateGasParams, EthereumProvider, type ExecuteTransferParams, FACTORY_ABI_V6, FACTORY_ABI_V7_V8, FORCE_EXIT_MODULE_ABI, ForceExitService, GLOBAL_GUARD_ABI, type GrantP256SessionParams, type GrantSessionParams, GuardChecker, type GuardState, GuardStateReader, GuardStatus, type ILogger, type ISignerAdapter, type IStorageAdapter, type InstallModuleParams, KmsAgentService, type KmsAttestationManifestResponse, type KmsAttestationProofResponse, type KmsAttestationResponse, type KmsBeginAuthenticationRequest, type KmsBeginAuthenticationResponse, type KmsBeginGrantSessionAuthRequest, type KmsBeginGrantSessionAuthResponse, type KmsBeginRegistrationRequest, type KmsBeginRegistrationResponse, type KmsChangePasskeyResponse, type KmsCompleteRegistrationRequest, type KmsCompleteRegistrationResponse, type KmsCreateAgentKeyRequest, type KmsCreateAgentKeyResponse, type KmsCreateKeyRequest, type KmsCreateKeyResponse, type KmsDeleteKeyResponse, type KmsDeriveAddressResponse, type KmsDescribeKeyResponse, type KmsEip712Domain, type KmsEip712FieldValue, type KmsEip712TypeDef, type KmsEthereumTransaction, type KmsGetPublicKeyResponse, type KmsHealthResponse, KmsHttpClient, type KmsHttpClientOptions, type KmsKeyStatusResponse, type KmsListKeysResponse, KmsManager, KmsMonitorService, type KmsPaymentAuth, type KmsPaymentSignatureResponse, KmsPaymentSigner, type KmsPurgeKeyResponse, type KmsQueueStatusResponse, type KmsRefreshAgentCredentialRequest, type KmsRefreshAgentCredentialResponse, type KmsRevokeAgentCredentialRequest, type KmsRevokeAgentCredentialResponse, type KmsRollbackCounterResponse, KmsSessionService, type KmsSignAgentRequest, type KmsSignAgentResponse, type KmsSignGTokenAuthorizationRequest, type KmsSignGrantSessionRequest, type KmsSignGrantSessionResponse, type KmsSignHashResponse, type KmsSignMicropaymentVoucherRequest, type KmsSignP256GrantSessionRequest, type KmsSignRequest, type KmsSignResponse, type KmsSignTypedDataRequest, type KmsSignTypedDataResponse, type KmsSignX402PaymentRequest, KmsSigner, type KmsStatsResponse, type KmsVersionResponse, type L2Type, L2_TYPE, type LegacyPasskeyAssertion, LocalWalletSigner, MAX_GUARDIANS, MODULE_TYPE, MemoryStorage, type MintAgentIdentityParams, ModuleManager, type ModuleTypeId, type OapdConfig, P256PasskeySigner, PackedUserOperation, type PasskeyAssertionContext, type PasskeyCeremonySigner, PaymasterManager, PaymasterPriceStalenessError, type PaymasterRecord, type PendingExit, type PendingWeightChange, PreCheckResult, type QueryAgentReputationParams, RECOVERY_THRESHOLD, RECOVERY_TIMELOCK_SECONDS, RecoveryService, type RevokeP256SessionKeyRequest, type RevokeP256SessionKeyResponse, type RunCeremonyOptions, SESSION_KEY_VALIDATOR_ABI, type ServerConfig, type SessionInfo, SessionKeyService, type SetAgentWalletParams, type SignP256UserOpRequest, type SignP256UserOpResponse, SilentLogger, type SubmitAgentReputationParams, TIER_GUARD_HOOK_ABI, TierConfig, TierLevel$1 as TierLevel, type TokenBalance, type TokenGuardState, type TokenInfo, TokenService, TransferManager, type TransferRecord, type TransferResult, type UninstallModuleParams, UserOperation, VALIDATOR_ABI, WEIGHT_CHANGE_EXPIRY_SECONDS, WEIGHT_CHANGE_THRESHOLD, WEIGHT_CHANGE_TIMELOCK_SECONDS, WalletManager, type WebAuthnAssertion, type WebAuthnAuthenticationCredential, type WeightConfig, WeightedSignatureService, YAAAServerClient, base64UrlDecode, base64UrlEncode, beginAuthenticationChallenge, beginGrantSessionChallenge, buildAuthenticationCredential, buildAuthenticatorData, buildClientDataJSON, buildInstallModuleHash, buildUninstallModuleHash, computeOapdSalt, erc8004AddressesForChain, getOapdAddress, getOapdAddressWithChainId, isExecuteUserOpWrapped, isOapdDeployed, isPendingConfirmation, packP256SessionSignature, packSecp256k1SessionSignature, runAuthenticationCeremony, runGrantSessionCeremony, runWebAuthnCeremony, sepoliaV07Config, validateConfig, wrapExecuteUserOp };
|
|
3054
|
+
export { ACCOUNT_ABI, AGENT_SESSION_KEY_VALIDATOR_ABI, AIRACCOUNT_ABI, AIRACCOUNT_ADDRESSES, AIRACCOUNT_FACTORY_ABI, AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI, AIR_ACCOUNT_DELEGATE_ABI, AIR_ACCOUNT_DELEGATE_ADDRESS, ALG_ID, AccountManager, type AccountRecord, type ActiveRecovery, AgentRegistryService, type AgentReputationSummary, type AgentSessionConfig, type AgentSessionInfo, AirAccountServerClient, type AirAccountVersion, BLSSignatureData, BLSSignatureService, type BeginCeremonyResponse, type BindERC8004AgentWalletParams, type BlsConfigRecord, type BuildCredentialOptions, CALLDATA_PARSER_REGISTRY_ABI, ConsoleLogger, type CreateAgentAccountParams, type CreateP256SessionKeyRequest, type CreateP256SessionKeyResponse, DEFAULT_CREDENTIAL_ID, DEFAULT_KMS_ENDPOINT, DEFAULT_ORIGIN, DEFAULT_RP_ID, type DelegateInitParams, DvtPendingConfirmationError, type EIP7702Authorization, EIP7702DelegateService, ENTRYPOINT_ABI_V6, ENTRYPOINT_ABI_V7_V8, ENTRYPOINT_ADDRESSES, ERC20_ABI, ERC8004Service, ERC8004_ADDRESSES, EXECUTE_BATCH_SELECTOR, EXECUTE_SELECTOR, EXECUTE_USER_OP_SELECTOR, type EntryPointConfig, EntryPointVersion, type EntryPointVersionConfig, type EstimateGasParams, EthereumProvider, type ExecuteTransferParams, FACTORY_ABI_V6, FACTORY_ABI_V7_V8, FORCE_EXIT_MODULE_ABI, ForceExitService, GLOBAL_GUARD_ABI, type GrantP256SessionParams, type GrantSessionParams, GuardChecker, type GuardState, GuardStateReader, GuardStatus, type ILogger, type ISignerAdapter, type IStorageAdapter, type InstallModuleParams, KmsAgentService, type KmsAttestationManifestResponse, type KmsAttestationProofResponse, type KmsAttestationResponse, type KmsBeginAuthenticationRequest, type KmsBeginAuthenticationResponse, type KmsBeginGrantSessionAuthRequest, type KmsBeginGrantSessionAuthResponse, type KmsBeginRegistrationRequest, type KmsBeginRegistrationResponse, type KmsChangePasskeyResponse, type KmsCompleteRegistrationRequest, type KmsCompleteRegistrationResponse, type KmsCreateAgentKeyRequest, type KmsCreateAgentKeyResponse, type KmsCreateKeyRequest, type KmsCreateKeyResponse, type KmsDeleteKeyResponse, type KmsDeriveAddressResponse, type KmsDescribeKeyResponse, type KmsEip712Domain, type KmsEip712FieldValue, type KmsEip712TypeDef, type KmsEthereumTransaction, type KmsGetPublicKeyResponse, type KmsHealthResponse, KmsHttpClient, type KmsHttpClientOptions, type KmsKeyStatusResponse, type KmsListKeysResponse, KmsManager, KmsMonitorService, type KmsPaymentAuth, type KmsPaymentSignatureResponse, KmsPaymentSigner, type KmsPurgeKeyResponse, type KmsQueueStatusResponse, type KmsRefreshAgentCredentialRequest, type KmsRefreshAgentCredentialResponse, type KmsRevokeAgentCredentialRequest, type KmsRevokeAgentCredentialResponse, type KmsRollbackCounterResponse, KmsSessionService, type KmsSignAgentRequest, type KmsSignAgentResponse, type KmsSignGTokenAuthorizationRequest, type KmsSignGrantSessionRequest, type KmsSignGrantSessionResponse, type KmsSignHashResponse, type KmsSignMicropaymentVoucherRequest, type KmsSignP256GrantSessionRequest, type KmsSignRequest, type KmsSignResponse, type KmsSignTypedDataRequest, type KmsSignTypedDataResponse, type KmsSignX402PaymentRequest, KmsSigner, type KmsStatsResponse, type KmsVersionResponse, type L2Type, L2_TYPE, type LegacyPasskeyAssertion, LocalWalletSigner, MAX_GUARDIANS, MODULE_TYPE, MemoryStorage, type MintAgentIdentityParams, ModuleManager, type ModuleTypeId, type OapdConfig, P256PasskeySigner, PackedUserOperation, type PasskeyAssertionContext, type PasskeyCeremonySigner, PaymasterManager, PaymasterPriceStalenessError, type PaymasterRecord, type PendingExit, type PendingWeightChange, PreCheckResult, type QueryAgentReputationParams, RECOVERY_THRESHOLD, RECOVERY_TIMELOCK_SECONDS, RecoveryService, type RevokeP256SessionKeyRequest, type RevokeP256SessionKeyResponse, type RunCeremonyOptions, SESSION_KEY_VALIDATOR_ABI, type ServerConfig, type SessionInfo, SessionKeyService, type SetAgentWalletParams, type SignP256UserOpRequest, type SignP256UserOpResponse, SilentLogger, type SubmitAgentReputationParams, TIER_GUARD_HOOK_ABI, TierConfig, TierLevel$1 as TierLevel, type TokenBalance, type TokenGuardState, type TokenInfo, TokenService, TransferManager, type TransferRecord, type TransferResult, type UninstallModuleParams, UserOperation, VALIDATOR_ABI, WEIGHT_CHANGE_EXPIRY_SECONDS, WEIGHT_CHANGE_THRESHOLD, WEIGHT_CHANGE_TIMELOCK_SECONDS, WalletManager, type WebAuthnAssertion, type WebAuthnAuthenticationCredential, type WeightConfig, WeightedSignatureService, YAAAServerClient, base64UrlDecode, base64UrlEncode, beginAuthenticationChallenge, beginGrantSessionChallenge, buildAuthenticationCredential, buildAuthenticatorData, buildClientDataJSON, buildInstallModuleHash, buildUninstallModuleHash, computeOapdSalt, erc8004AddressesForChain, getOapdAddress, getOapdAddressWithChainId, isExecuteUserOpWrapped, isOapdDeployed, isPendingConfirmation, packP256SessionSignature, packSecp256k1SessionSignature, runAuthenticationCeremony, runGrantSessionCeremony, runWebAuthnCeremony, sepoliaV07Config, validateConfig, wrapExecuteUserOp };
|
package/dist/kms.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { ACCOUNT_ABI, AGENT_SESSION_KEY_VALIDATOR_ABI, AIRACCOUNT_ABI, AIRACCOUNT_ADDRESSES, AIRACCOUNT_FACTORY_ABI, AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI, AIR_ACCOUNT_DELEGATE_ABI, AIR_ACCOUNT_DELEGATE_ADDRESS, ALG_ID, AccountManager, AgentRegistryService, BLSSignatureService, CALLDATA_PARSER_REGISTRY_ABI, ConsoleLogger, DEFAULT_CREDENTIAL_ID, DEFAULT_KMS_ENDPOINT, DEFAULT_ORIGIN, DEFAULT_RP_ID, DvtPendingConfirmationError, EIP7702DelegateService, ENTRYPOINT_ABI_V6, ENTRYPOINT_ABI_V7_V8, ENTRYPOINT_ADDRESSES, ERC20_ABI, ERC8004Service, ERC8004_ADDRESSES, EXECUTE_BATCH_SELECTOR, EXECUTE_SELECTOR, EXECUTE_USER_OP_SELECTOR, EntryPointVersion, EthereumProvider, FACTORY_ABI_V6, FACTORY_ABI_V7_V8, FORCE_EXIT_MODULE_ABI, ForceExitService, GLOBAL_GUARD_ABI, GuardChecker, GuardStateReader, KmsAgentService, KmsHttpClient, KmsManager, KmsMonitorService, KmsPaymentSigner, KmsSessionService, KmsSigner, L2_TYPE, LocalWalletSigner, MAX_GUARDIANS, MODULE_TYPE, MemoryStorage, ModuleManager, P256PasskeySigner, PaymasterManager, PaymasterPriceStalenessError, RECOVERY_THRESHOLD, RECOVERY_TIMELOCK_SECONDS, RecoveryService, SESSION_KEY_VALIDATOR_ABI, SessionKeyService, SilentLogger, TIER_GUARD_HOOK_ABI, TokenService, TransferManager, VALIDATOR_ABI, WEIGHT_CHANGE_EXPIRY_SECONDS, WEIGHT_CHANGE_THRESHOLD, WEIGHT_CHANGE_TIMELOCK_SECONDS, WalletManager, WeightedSignatureService, YAAAServerClient, base64UrlDecode, base64UrlEncode, beginAuthenticationChallenge, beginGrantSessionChallenge, buildAuthenticationCredential, buildAuthenticatorData, buildClientDataJSON, buildInstallModuleHash, buildUninstallModuleHash, computeOapdSalt, erc8004AddressesForChain, getOapdAddress, getOapdAddressWithChainId, isExecuteUserOpWrapped, isOapdDeployed, isPendingConfirmation, packP256SessionSignature, packSecp256k1SessionSignature, runAuthenticationCeremony, runGrantSessionCeremony, runWebAuthnCeremony, sepoliaV07Config, validateConfig, wrapExecuteUserOp } from './chunk-
|
|
2
|
-
export { ALG_BLS, ALG_CUMULATIVE_T2, ALG_CUMULATIVE_T3, ALG_ECDSA, ALG_P256, BLSManager, CryptoUtil, ERC4337Utils, PasskeyManager, UserOpBuilder, YAAAClient, algIdForTier, resolveTier } from './chunk-
|
|
1
|
+
export { ACCOUNT_ABI, AGENT_SESSION_KEY_VALIDATOR_ABI, AIRACCOUNT_ABI, AIRACCOUNT_ADDRESSES, AIRACCOUNT_FACTORY_ABI, AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI, AIR_ACCOUNT_DELEGATE_ABI, AIR_ACCOUNT_DELEGATE_ADDRESS, ALG_ID, AccountManager, AgentRegistryService, AirAccountServerClient, BLSSignatureService, CALLDATA_PARSER_REGISTRY_ABI, ConsoleLogger, DEFAULT_CREDENTIAL_ID, DEFAULT_KMS_ENDPOINT, DEFAULT_ORIGIN, DEFAULT_RP_ID, DvtPendingConfirmationError, EIP7702DelegateService, ENTRYPOINT_ABI_V6, ENTRYPOINT_ABI_V7_V8, ENTRYPOINT_ADDRESSES, ERC20_ABI, ERC8004Service, ERC8004_ADDRESSES, EXECUTE_BATCH_SELECTOR, EXECUTE_SELECTOR, EXECUTE_USER_OP_SELECTOR, EntryPointVersion, EthereumProvider, FACTORY_ABI_V6, FACTORY_ABI_V7_V8, FORCE_EXIT_MODULE_ABI, ForceExitService, GLOBAL_GUARD_ABI, GuardChecker, GuardStateReader, KmsAgentService, KmsHttpClient, KmsManager, KmsMonitorService, KmsPaymentSigner, KmsSessionService, KmsSigner, L2_TYPE, LocalWalletSigner, MAX_GUARDIANS, MODULE_TYPE, MemoryStorage, ModuleManager, P256PasskeySigner, PaymasterManager, PaymasterPriceStalenessError, RECOVERY_THRESHOLD, RECOVERY_TIMELOCK_SECONDS, RecoveryService, SESSION_KEY_VALIDATOR_ABI, SessionKeyService, SilentLogger, TIER_GUARD_HOOK_ABI, TokenService, TransferManager, VALIDATOR_ABI, WEIGHT_CHANGE_EXPIRY_SECONDS, WEIGHT_CHANGE_THRESHOLD, WEIGHT_CHANGE_TIMELOCK_SECONDS, WalletManager, WeightedSignatureService, YAAAServerClient, base64UrlDecode, base64UrlEncode, beginAuthenticationChallenge, beginGrantSessionChallenge, buildAuthenticationCredential, buildAuthenticatorData, buildClientDataJSON, buildInstallModuleHash, buildUninstallModuleHash, computeOapdSalt, erc8004AddressesForChain, getOapdAddress, getOapdAddressWithChainId, isExecuteUserOpWrapped, isOapdDeployed, isPendingConfirmation, packP256SessionSignature, packSecp256k1SessionSignature, runAuthenticationCeremony, runGrantSessionCeremony, runWebAuthnCeremony, sepoliaV07Config, validateConfig, wrapExecuteUserOp } from './chunk-IC3G6YM2.js';
|
|
2
|
+
export { ALG_BLS, ALG_CUMULATIVE_T2, ALG_CUMULATIVE_T3, ALG_ECDSA, ALG_P256, AirAccountClient, BLSManager, CryptoUtil, DEFAULT_PASSKEY_ROUTES, ERC4337Utils, PasskeyManager, UserOpBuilder, YAAAClient, algIdForTier, resolveTier } from './chunk-X3AMH53O.js';
|
|
3
|
+
import './chunk-6QYXGMCR.js';
|
|
4
|
+
import './chunk-G3UJC4EL.js';
|
|
3
5
|
import './chunk-PZ5AY32C.js';
|
|
4
6
|
//# sourceMappingURL=kms.js.map
|
|
5
7
|
//# sourceMappingURL=kms.js.map
|