@aastar/sdk 0.20.9 → 0.21.1
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-2JL52CNK.js +6 -0
- package/dist/{UserClient-AIIHB54I.js.map → UserClient-2JL52CNK.js.map} +1 -1
- package/dist/UserClient-QM2CQVRM.cjs +15 -0
- package/dist/{UserClient-2J6XMTNV.cjs.map → UserClient-QM2CQVRM.cjs.map} +1 -1
- package/dist/account.cjs +8 -8
- package/dist/account.js +3 -3
- package/dist/admin.cjs +4 -4
- package/dist/admin.js +3 -3
- package/dist/airaccount.cjs +98 -98
- package/dist/airaccount.js +3 -3
- package/dist/channel.cjs +7 -7
- package/dist/channel.js +3 -3
- package/dist/{chunk-GRDC6ZRA.cjs → chunk-3HZEIFBW.cjs} +5 -5
- package/dist/{chunk-GRDC6ZRA.cjs.map → chunk-3HZEIFBW.cjs.map} +1 -1
- package/dist/{chunk-7ARJ3OSU.js → chunk-57XLR2NT.js} +3 -3
- package/dist/{chunk-7ARJ3OSU.js.map → chunk-57XLR2NT.js.map} +1 -1
- package/dist/{chunk-QLF7N6H7.cjs → chunk-5JFYTJOE.cjs} +4 -4
- package/dist/{chunk-QLF7N6H7.cjs.map → chunk-5JFYTJOE.cjs.map} +1 -1
- package/dist/{chunk-KDH3UPKD.js → chunk-5NKU5NT5.js} +8 -8
- package/dist/{chunk-KDH3UPKD.js.map → chunk-5NKU5NT5.js.map} +1 -1
- package/dist/{chunk-IC3G6YM2.js → chunk-6OWZOTE7.js} +113 -9
- package/dist/chunk-6OWZOTE7.js.map +1 -0
- package/dist/{chunk-FTJD2DWE.cjs → chunk-CIEYY3A6.cjs} +870 -83
- package/dist/chunk-CIEYY3A6.cjs.map +1 -0
- package/dist/{chunk-BN5WY5GM.js → chunk-DQBKE4ND.js} +4 -4
- package/dist/{chunk-BN5WY5GM.js.map → chunk-DQBKE4ND.js.map} +1 -1
- package/dist/{chunk-4EZD7LPE.js → chunk-E4CQFW75.js} +3 -3
- package/dist/{chunk-4EZD7LPE.js.map → chunk-E4CQFW75.js.map} +1 -1
- package/dist/{chunk-LXWIPTPX.js → chunk-ENSMYCU6.js} +3 -3
- package/dist/{chunk-LXWIPTPX.js.map → chunk-ENSMYCU6.js.map} +1 -1
- package/dist/{chunk-FJ7XECC5.js → chunk-EY2AJTGV.js} +3 -3
- package/dist/{chunk-FJ7XECC5.js.map → chunk-EY2AJTGV.js.map} +1 -1
- package/dist/{chunk-WQREDGUF.cjs → chunk-HT6LGLDM.cjs} +26 -26
- package/dist/{chunk-WQREDGUF.cjs.map → chunk-HT6LGLDM.cjs.map} +1 -1
- package/dist/{chunk-MRREGCWN.cjs → chunk-IJN776TA.cjs} +32 -32
- package/dist/{chunk-MRREGCWN.cjs.map → chunk-IJN776TA.cjs.map} +1 -1
- package/dist/{chunk-2RCJBWPO.cjs → chunk-IZN2COBP.cjs} +33 -17
- package/dist/chunk-IZN2COBP.cjs.map +1 -0
- package/dist/{chunk-TENYCMJ3.js → chunk-JYHDAOUT.js} +9 -9
- package/dist/{chunk-TENYCMJ3.js.map → chunk-JYHDAOUT.js.map} +1 -1
- package/dist/{chunk-PKCHRXFR.js → chunk-KZERVPUR.js} +3 -3
- package/dist/{chunk-PKCHRXFR.js.map → chunk-KZERVPUR.js.map} +1 -1
- package/dist/{chunk-6QYXGMCR.js → chunk-M5WFKETT.js} +833 -47
- package/dist/{chunk-FTJD2DWE.cjs.map → chunk-M5WFKETT.js.map} +1 -1
- package/dist/{chunk-HSVQIFIK.cjs → chunk-M7HXR7G5.cjs} +5 -5
- package/dist/{chunk-HSVQIFIK.cjs.map → chunk-M7HXR7G5.cjs.map} +1 -1
- package/dist/{chunk-MVEWJIPY.js → chunk-MKUILC7J.js} +25 -9
- package/dist/chunk-MKUILC7J.js.map +1 -0
- package/dist/{chunk-S5IKOOUR.cjs → chunk-MXJEULSE.cjs} +39 -36
- package/dist/chunk-MXJEULSE.cjs.map +1 -0
- package/dist/{chunk-TFLZETWB.cjs → chunk-OVNOSAL3.cjs} +113 -9
- package/dist/chunk-OVNOSAL3.cjs.map +1 -0
- package/dist/{chunk-GX7NROST.cjs → chunk-PED7PJQZ.cjs} +16 -16
- package/dist/{chunk-GX7NROST.cjs.map → chunk-PED7PJQZ.cjs.map} +1 -1
- package/dist/{chunk-G3UJC4EL.js → chunk-UCLK6LTB.js} +39 -36
- package/dist/chunk-UCLK6LTB.js.map +1 -0
- package/dist/{chunk-PAABYXS6.js → chunk-UP2S7C7R.js} +6 -6
- package/dist/{chunk-PAABYXS6.js.map → chunk-UP2S7C7R.js.map} +1 -1
- package/dist/{chunk-JTWY2XEG.cjs → chunk-WR4OZUXR.cjs} +6 -6
- package/dist/{chunk-JTWY2XEG.cjs.map → chunk-WR4OZUXR.cjs.map} +1 -1
- package/dist/{chunk-NT26BDGN.cjs → chunk-Y4EJX7UA.cjs} +12 -12
- package/dist/{chunk-NT26BDGN.cjs.map → chunk-Y4EJX7UA.cjs.map} +1 -1
- package/dist/{chunk-RNHSA3LO.cjs → chunk-Z4GZ6DQA.cjs} +9 -9
- package/dist/{chunk-RNHSA3LO.cjs.map → chunk-Z4GZ6DQA.cjs.map} +1 -1
- package/dist/{contract-addresses-TANQ5DLX.cjs → contract-addresses-RABD77VP.cjs} +13 -13
- package/dist/{contract-addresses-TANQ5DLX.cjs.map → contract-addresses-RABD77VP.cjs.map} +1 -1
- package/dist/{contract-addresses-N3TOL2WL.js → contract-addresses-TVXSRQ7I.js} +3 -3
- package/dist/{contract-addresses-N3TOL2WL.js.map → contract-addresses-TVXSRQ7I.js.map} +1 -1
- package/dist/core.cjs +227 -223
- package/dist/core.d.cts +130 -12
- package/dist/core.d.ts +130 -12
- package/dist/core.js +2 -2
- package/dist/dapp.cjs +6 -6
- package/dist/dapp.js +3 -3
- package/dist/enduser.cjs +7 -7
- package/dist/enduser.js +4 -4
- package/dist/identity.cjs +6 -6
- package/dist/identity.js +3 -3
- package/dist/index.cjs +340 -336
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/kms.cjs +98 -98
- package/dist/kms.d.cts +62 -12
- package/dist/kms.d.ts +62 -12
- package/dist/kms.js +3 -3
- package/dist/operator.cjs +7 -7
- package/dist/operator.js +3 -3
- package/dist/paymaster.cjs +16 -16
- package/dist/paymaster.d.cts +13 -0
- package/dist/paymaster.d.ts +13 -0
- package/dist/paymaster.js +3 -3
- package/dist/{src-X5MIV3EB.js → src-CTYY6FNI.js} +5 -5
- package/dist/src-CTYY6FNI.js.map +1 -0
- package/dist/{src-TQKEO2I4.cjs → src-CUHI6G6W.cjs} +229 -225
- package/dist/src-CUHI6G6W.cjs.map +1 -0
- package/dist/{src-ENPA7D2S.cjs → src-X5IECEPM.cjs} +18 -18
- package/dist/src-X5IECEPM.cjs.map +1 -0
- package/dist/{src-L5SI5WNB.js → src-XCV6BTSV.js} +4 -4
- package/dist/{src-X5MIV3EB.js.map → src-XCV6BTSV.js.map} +1 -1
- package/dist/tokens.cjs +4 -4
- package/dist/tokens.js +3 -3
- package/dist/x402.cjs +26 -26
- package/dist/x402.js +3 -3
- package/package.json +113 -29
- package/dist/UserClient-2J6XMTNV.cjs +0 -15
- package/dist/UserClient-AIIHB54I.js +0 -6
- package/dist/chunk-2RCJBWPO.cjs.map +0 -1
- package/dist/chunk-6QYXGMCR.js.map +0 -1
- package/dist/chunk-G3UJC4EL.js.map +0 -1
- package/dist/chunk-IC3G6YM2.js.map +0 -1
- package/dist/chunk-MVEWJIPY.js.map +0 -1
- package/dist/chunk-S5IKOOUR.cjs.map +0 -1
- package/dist/chunk-TFLZETWB.cjs.map +0 -1
- package/dist/src-ENPA7D2S.cjs.map +0 -1
- package/dist/src-L5SI5WNB.js.map +0 -1
- package/dist/src-TQKEO2I4.cjs.map +0 -1
package/dist/core.d.cts
CHANGED
|
@@ -218,17 +218,17 @@ declare const CANONICAL_ADDRESSES: {
|
|
|
218
218
|
readonly agentIdentityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
219
219
|
readonly agentReputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
220
220
|
readonly agentValidationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
|
|
221
|
-
readonly aaStarBLSAlgorithm: "
|
|
222
|
-
readonly aaStarValidator: "
|
|
223
|
-
readonly aaStarBLSAggregator: "
|
|
224
|
-
readonly sessionKeyValidator: "
|
|
225
|
-
readonly forceExitModule: "
|
|
226
|
-
readonly airAccountDelegate: "
|
|
227
|
-
readonly calldataParserRegistry: "
|
|
228
|
-
readonly airAccountFactoryV7: "
|
|
229
|
-
readonly airAccountV7Impl: "
|
|
230
|
-
readonly airAccountExtension: "
|
|
231
|
-
readonly agentRegistry: "
|
|
221
|
+
readonly aaStarBLSAlgorithm: "0xAF525A161CB17e0A1b6254ef0B8d8473bdA05174";
|
|
222
|
+
readonly aaStarValidator: "0xfcDfd17a373E037c3F9C8ffE2c781915E7Ae6e11";
|
|
223
|
+
readonly aaStarBLSAggregator: "0x35775df9a4f4dB42Ea0C46118a12dDd0cEc70609";
|
|
224
|
+
readonly sessionKeyValidator: "0x6810CfB7c72D16e044a17694fAa8076e517264D0";
|
|
225
|
+
readonly forceExitModule: "0x3fDe77868b74a7979A40a2293a1CD265fbe66EEc";
|
|
226
|
+
readonly airAccountDelegate: "0xd2735E54C5f5f2BF523b8a9ddd0E183624c3f2c0";
|
|
227
|
+
readonly calldataParserRegistry: "0x7dEea4544446826601014bD94d0F6432A67496F5";
|
|
228
|
+
readonly airAccountFactoryV7: "0x99C9300d52EDD9f4B7135DEd1811fBa6FFa1DDC6";
|
|
229
|
+
readonly airAccountV7Impl: "0xd51db7eB20FF99c8588281CBe1785681Bb17D473";
|
|
230
|
+
readonly airAccountExtension: "0x5529f50811814E0a4966cFC21200DCeF9C3FCb5B";
|
|
231
|
+
readonly agentRegistry: "0xbcE1163817EEBA2E07d39424427B10937bF1D121";
|
|
232
232
|
readonly policyRegistry: "0x8c2488d46d5447418558c38AA6441720df656094";
|
|
233
233
|
readonly x402Facilitator: "0x326Fc3413c8A0185b0179B971C69813B6dFD971B";
|
|
234
234
|
readonly timelockController: "0xB734df3c0A1809bc06708512363D368Ac51dF1A2";
|
|
@@ -5928,6 +5928,8 @@ type TokenConfig = {
|
|
|
5928
5928
|
};
|
|
5929
5929
|
type InitConfig = {
|
|
5930
5930
|
guardians: readonly [Address, Address, Address];
|
|
5931
|
+
guardianP256X: readonly [Hex, Hex, Hex];
|
|
5932
|
+
guardianP256Y: readonly [Hex, Hex, Hex];
|
|
5931
5933
|
dailyLimit: bigint;
|
|
5932
5934
|
approvedAlgIds: readonly number[];
|
|
5933
5935
|
minDailyLimit: bigint;
|
|
@@ -6078,6 +6080,18 @@ type AirAccountFactoryActions = {
|
|
|
6078
6080
|
maxFeePerGas?: bigint;
|
|
6079
6081
|
maxPriorityFeePerGas?: bigint;
|
|
6080
6082
|
}) => Promise<Hash>;
|
|
6083
|
+
createAccountWithDefaults: (args: {
|
|
6084
|
+
owner: Address;
|
|
6085
|
+
salt: bigint;
|
|
6086
|
+
guardian1: Address;
|
|
6087
|
+
guardian1Sig: Hex;
|
|
6088
|
+
guardian2: Address;
|
|
6089
|
+
guardian2Sig: Hex;
|
|
6090
|
+
dailyLimit: bigint;
|
|
6091
|
+
account?: Account | Address;
|
|
6092
|
+
maxFeePerGas?: bigint;
|
|
6093
|
+
maxPriorityFeePerGas?: bigint;
|
|
6094
|
+
}) => Promise<Hash>;
|
|
6081
6095
|
getChainQualifiedAddress: (args: {
|
|
6082
6096
|
account: Address;
|
|
6083
6097
|
}) => Promise<Hex>;
|
|
@@ -6109,6 +6123,89 @@ type AirAccountFactoryActions = {
|
|
|
6109
6123
|
};
|
|
6110
6124
|
declare const airAccountFactoryActions: (address: Address) => (client: PublicClient$1 | WalletClient) => AirAccountFactoryActions;
|
|
6111
6125
|
|
|
6126
|
+
/**
|
|
6127
|
+
* AirAccount v0.20.0 extension surface — the P-256 / WebAuthn guardian functions
|
|
6128
|
+
* relocated into `AirAccountExtension` and reached through the V7 account's
|
|
6129
|
+
* `fallback`→`delegatecall` boundary. These actions are bound to (and called
|
|
6130
|
+
* against) the ACCOUNT address; the account routes them to the extension
|
|
6131
|
+
* internally, so the on-chain `address` here is the smart-account address, never
|
|
6132
|
+
* the extension's own address.
|
|
6133
|
+
*
|
|
6134
|
+
* ## Batch split
|
|
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 but is wired
|
|
6137
|
+
* into the SDK in **Batch 2**. This Batch-1 module ships:
|
|
6138
|
+
* - the two trivial VIEW reads (`getRecoveryNonce`, `getGuardianP256Key`) as
|
|
6139
|
+
* real on-chain calls, and
|
|
6140
|
+
* - `NOT_IMPLEMENTED`-throwing stubs for the eight state-changing P-256 writes,
|
|
6141
|
+
* so the doc-coverage gate stays green while the feature is finished.
|
|
6142
|
+
*
|
|
6143
|
+
* The plain ECDSA recovery lifecycle (`proposeRecovery` / `approveRecovery` /
|
|
6144
|
+
* `executeRecovery` / `cancelRecovery`) is unchanged at the byte level (same
|
|
6145
|
+
* 4-byte selectors, same semantics) and is encoded by the AirAccount server's
|
|
6146
|
+
* `RecoveryService` against the account address — it is NOT re-declared here.
|
|
6147
|
+
*/
|
|
6148
|
+
type AirAccountExtensionActions = {
|
|
6149
|
+
/** `getRecoveryNonce()` — monotonic nonce that domain-separates P-256 / mixed-sig recovery payloads. */
|
|
6150
|
+
getRecoveryNonce: () => Promise<bigint>;
|
|
6151
|
+
/** `getGuardianP256Key(index)` — the (x, y) secp256r1 pubkey of guardian slot `index` (zero pair ⇒ not a P-256 guardian). */
|
|
6152
|
+
getGuardianP256Key: (args: {
|
|
6153
|
+
index: number;
|
|
6154
|
+
}) => Promise<{
|
|
6155
|
+
x: Hex;
|
|
6156
|
+
y: Hex;
|
|
6157
|
+
}>;
|
|
6158
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6159
|
+
addP256Guardian: (args: {
|
|
6160
|
+
x: Hex;
|
|
6161
|
+
y: Hex;
|
|
6162
|
+
}) => Promise<never>;
|
|
6163
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6164
|
+
addP256GuardianWithMixedSigs: (args: {
|
|
6165
|
+
x: Hex;
|
|
6166
|
+
y: Hex;
|
|
6167
|
+
signerIdxs: readonly number[];
|
|
6168
|
+
sigs: readonly Hex[];
|
|
6169
|
+
}) => Promise<never>;
|
|
6170
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6171
|
+
addGuardianWithMixedSigs: (args: {
|
|
6172
|
+
guardian: Address;
|
|
6173
|
+
signerIdxs: readonly number[];
|
|
6174
|
+
sigs: readonly Hex[];
|
|
6175
|
+
}) => Promise<never>;
|
|
6176
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6177
|
+
proposeRecoveryWithSig: (args: {
|
|
6178
|
+
newOwner: Address;
|
|
6179
|
+
gIdx: number;
|
|
6180
|
+
sig: Hex;
|
|
6181
|
+
}) => Promise<never>;
|
|
6182
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6183
|
+
approveRecoveryWithSig: (args: {
|
|
6184
|
+
gIdx: number;
|
|
6185
|
+
sig: Hex;
|
|
6186
|
+
}) => Promise<never>;
|
|
6187
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6188
|
+
cancelRecoveryWithSig: (args: {
|
|
6189
|
+
gIdx: number;
|
|
6190
|
+
sig: Hex;
|
|
6191
|
+
}) => Promise<never>;
|
|
6192
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6193
|
+
removeGuardianWithMixedSigs: (args: {
|
|
6194
|
+
index: number;
|
|
6195
|
+
signerIdxs: readonly number[];
|
|
6196
|
+
sigs: readonly Hex[];
|
|
6197
|
+
}) => Promise<never>;
|
|
6198
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6199
|
+
modifyTierLimitsWithMixedGuardians: (args: {
|
|
6200
|
+
tier1: bigint;
|
|
6201
|
+
tier2: bigint;
|
|
6202
|
+
deadline: bigint;
|
|
6203
|
+
signerIdxs: readonly number[];
|
|
6204
|
+
sigs: readonly Hex[];
|
|
6205
|
+
}) => Promise<never>;
|
|
6206
|
+
};
|
|
6207
|
+
declare const airAccountExtensionActions: (address: Address) => (client: PublicClient$1 | WalletClient) => AirAccountExtensionActions;
|
|
6208
|
+
|
|
6112
6209
|
type AgentRegistryActions = {
|
|
6113
6210
|
deployer: () => Promise<Address>;
|
|
6114
6211
|
factory: () => Promise<Address>;
|
|
@@ -6172,6 +6269,16 @@ type P256SessionState = {
|
|
|
6172
6269
|
callCount: number;
|
|
6173
6270
|
prevCount: number;
|
|
6174
6271
|
};
|
|
6272
|
+
type SessionConfig = {
|
|
6273
|
+
expiry: number;
|
|
6274
|
+
contractScope: Address;
|
|
6275
|
+
selectorScope: Hex;
|
|
6276
|
+
revoked: boolean;
|
|
6277
|
+
velocityLimit: number;
|
|
6278
|
+
velocityWindow: number;
|
|
6279
|
+
callTargets: readonly Address[];
|
|
6280
|
+
selectorAllowlist: readonly Hex[];
|
|
6281
|
+
};
|
|
6175
6282
|
type SessionKeyValidatorActions = {
|
|
6176
6283
|
checkSessionScope: (args: {
|
|
6177
6284
|
account: Address;
|
|
@@ -6201,6 +6308,17 @@ type SessionKeyValidatorActions = {
|
|
|
6201
6308
|
sessionType: number;
|
|
6202
6309
|
signer?: Account | Address;
|
|
6203
6310
|
}) => Promise<Hash>;
|
|
6311
|
+
buildGrantHash: (args: {
|
|
6312
|
+
account: Address;
|
|
6313
|
+
sessionKey: Address;
|
|
6314
|
+
cfg: SessionConfig;
|
|
6315
|
+
}) => Promise<Hex>;
|
|
6316
|
+
buildP256GrantHash: (args: {
|
|
6317
|
+
account: Address;
|
|
6318
|
+
p256KeyX: Hex;
|
|
6319
|
+
p256KeyY: Hex;
|
|
6320
|
+
cfg: SessionConfig;
|
|
6321
|
+
}) => Promise<Hex>;
|
|
6204
6322
|
};
|
|
6205
6323
|
declare const sessionKeyValidatorActions: (address: Address) => (client: PublicClient$1 | WalletClient) => SessionKeyValidatorActions;
|
|
6206
6324
|
|
|
@@ -6927,4 +7045,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
|
|
|
6927
7045
|
verified: boolean;
|
|
6928
7046
|
}>;
|
|
6929
7047
|
|
|
6930
|
-
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, 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, 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, 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 };
|
|
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 };
|
package/dist/core.d.ts
CHANGED
|
@@ -218,17 +218,17 @@ declare const CANONICAL_ADDRESSES: {
|
|
|
218
218
|
readonly agentIdentityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
219
219
|
readonly agentReputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
220
220
|
readonly agentValidationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
|
|
221
|
-
readonly aaStarBLSAlgorithm: "
|
|
222
|
-
readonly aaStarValidator: "
|
|
223
|
-
readonly aaStarBLSAggregator: "
|
|
224
|
-
readonly sessionKeyValidator: "
|
|
225
|
-
readonly forceExitModule: "
|
|
226
|
-
readonly airAccountDelegate: "
|
|
227
|
-
readonly calldataParserRegistry: "
|
|
228
|
-
readonly airAccountFactoryV7: "
|
|
229
|
-
readonly airAccountV7Impl: "
|
|
230
|
-
readonly airAccountExtension: "
|
|
231
|
-
readonly agentRegistry: "
|
|
221
|
+
readonly aaStarBLSAlgorithm: "0xAF525A161CB17e0A1b6254ef0B8d8473bdA05174";
|
|
222
|
+
readonly aaStarValidator: "0xfcDfd17a373E037c3F9C8ffE2c781915E7Ae6e11";
|
|
223
|
+
readonly aaStarBLSAggregator: "0x35775df9a4f4dB42Ea0C46118a12dDd0cEc70609";
|
|
224
|
+
readonly sessionKeyValidator: "0x6810CfB7c72D16e044a17694fAa8076e517264D0";
|
|
225
|
+
readonly forceExitModule: "0x3fDe77868b74a7979A40a2293a1CD265fbe66EEc";
|
|
226
|
+
readonly airAccountDelegate: "0xd2735E54C5f5f2BF523b8a9ddd0E183624c3f2c0";
|
|
227
|
+
readonly calldataParserRegistry: "0x7dEea4544446826601014bD94d0F6432A67496F5";
|
|
228
|
+
readonly airAccountFactoryV7: "0x99C9300d52EDD9f4B7135DEd1811fBa6FFa1DDC6";
|
|
229
|
+
readonly airAccountV7Impl: "0xd51db7eB20FF99c8588281CBe1785681Bb17D473";
|
|
230
|
+
readonly airAccountExtension: "0x5529f50811814E0a4966cFC21200DCeF9C3FCb5B";
|
|
231
|
+
readonly agentRegistry: "0xbcE1163817EEBA2E07d39424427B10937bF1D121";
|
|
232
232
|
readonly policyRegistry: "0x8c2488d46d5447418558c38AA6441720df656094";
|
|
233
233
|
readonly x402Facilitator: "0x326Fc3413c8A0185b0179B971C69813B6dFD971B";
|
|
234
234
|
readonly timelockController: "0xB734df3c0A1809bc06708512363D368Ac51dF1A2";
|
|
@@ -5928,6 +5928,8 @@ type TokenConfig = {
|
|
|
5928
5928
|
};
|
|
5929
5929
|
type InitConfig = {
|
|
5930
5930
|
guardians: readonly [Address, Address, Address];
|
|
5931
|
+
guardianP256X: readonly [Hex, Hex, Hex];
|
|
5932
|
+
guardianP256Y: readonly [Hex, Hex, Hex];
|
|
5931
5933
|
dailyLimit: bigint;
|
|
5932
5934
|
approvedAlgIds: readonly number[];
|
|
5933
5935
|
minDailyLimit: bigint;
|
|
@@ -6078,6 +6080,18 @@ type AirAccountFactoryActions = {
|
|
|
6078
6080
|
maxFeePerGas?: bigint;
|
|
6079
6081
|
maxPriorityFeePerGas?: bigint;
|
|
6080
6082
|
}) => Promise<Hash>;
|
|
6083
|
+
createAccountWithDefaults: (args: {
|
|
6084
|
+
owner: Address;
|
|
6085
|
+
salt: bigint;
|
|
6086
|
+
guardian1: Address;
|
|
6087
|
+
guardian1Sig: Hex;
|
|
6088
|
+
guardian2: Address;
|
|
6089
|
+
guardian2Sig: Hex;
|
|
6090
|
+
dailyLimit: bigint;
|
|
6091
|
+
account?: Account | Address;
|
|
6092
|
+
maxFeePerGas?: bigint;
|
|
6093
|
+
maxPriorityFeePerGas?: bigint;
|
|
6094
|
+
}) => Promise<Hash>;
|
|
6081
6095
|
getChainQualifiedAddress: (args: {
|
|
6082
6096
|
account: Address;
|
|
6083
6097
|
}) => Promise<Hex>;
|
|
@@ -6109,6 +6123,89 @@ type AirAccountFactoryActions = {
|
|
|
6109
6123
|
};
|
|
6110
6124
|
declare const airAccountFactoryActions: (address: Address) => (client: PublicClient$1 | WalletClient) => AirAccountFactoryActions;
|
|
6111
6125
|
|
|
6126
|
+
/**
|
|
6127
|
+
* AirAccount v0.20.0 extension surface — the P-256 / WebAuthn guardian functions
|
|
6128
|
+
* relocated into `AirAccountExtension` and reached through the V7 account's
|
|
6129
|
+
* `fallback`→`delegatecall` boundary. These actions are bound to (and called
|
|
6130
|
+
* against) the ACCOUNT address; the account routes them to the extension
|
|
6131
|
+
* internally, so the on-chain `address` here is the smart-account address, never
|
|
6132
|
+
* the extension's own address.
|
|
6133
|
+
*
|
|
6134
|
+
* ## Batch split
|
|
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 but is wired
|
|
6137
|
+
* into the SDK in **Batch 2**. This Batch-1 module ships:
|
|
6138
|
+
* - the two trivial VIEW reads (`getRecoveryNonce`, `getGuardianP256Key`) as
|
|
6139
|
+
* real on-chain calls, and
|
|
6140
|
+
* - `NOT_IMPLEMENTED`-throwing stubs for the eight state-changing P-256 writes,
|
|
6141
|
+
* so the doc-coverage gate stays green while the feature is finished.
|
|
6142
|
+
*
|
|
6143
|
+
* The plain ECDSA recovery lifecycle (`proposeRecovery` / `approveRecovery` /
|
|
6144
|
+
* `executeRecovery` / `cancelRecovery`) is unchanged at the byte level (same
|
|
6145
|
+
* 4-byte selectors, same semantics) and is encoded by the AirAccount server's
|
|
6146
|
+
* `RecoveryService` against the account address — it is NOT re-declared here.
|
|
6147
|
+
*/
|
|
6148
|
+
type AirAccountExtensionActions = {
|
|
6149
|
+
/** `getRecoveryNonce()` — monotonic nonce that domain-separates P-256 / mixed-sig recovery payloads. */
|
|
6150
|
+
getRecoveryNonce: () => Promise<bigint>;
|
|
6151
|
+
/** `getGuardianP256Key(index)` — the (x, y) secp256r1 pubkey of guardian slot `index` (zero pair ⇒ not a P-256 guardian). */
|
|
6152
|
+
getGuardianP256Key: (args: {
|
|
6153
|
+
index: number;
|
|
6154
|
+
}) => Promise<{
|
|
6155
|
+
x: Hex;
|
|
6156
|
+
y: Hex;
|
|
6157
|
+
}>;
|
|
6158
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6159
|
+
addP256Guardian: (args: {
|
|
6160
|
+
x: Hex;
|
|
6161
|
+
y: Hex;
|
|
6162
|
+
}) => Promise<never>;
|
|
6163
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6164
|
+
addP256GuardianWithMixedSigs: (args: {
|
|
6165
|
+
x: Hex;
|
|
6166
|
+
y: Hex;
|
|
6167
|
+
signerIdxs: readonly number[];
|
|
6168
|
+
sigs: readonly Hex[];
|
|
6169
|
+
}) => Promise<never>;
|
|
6170
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6171
|
+
addGuardianWithMixedSigs: (args: {
|
|
6172
|
+
guardian: Address;
|
|
6173
|
+
signerIdxs: readonly number[];
|
|
6174
|
+
sigs: readonly Hex[];
|
|
6175
|
+
}) => Promise<never>;
|
|
6176
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6177
|
+
proposeRecoveryWithSig: (args: {
|
|
6178
|
+
newOwner: Address;
|
|
6179
|
+
gIdx: number;
|
|
6180
|
+
sig: Hex;
|
|
6181
|
+
}) => Promise<never>;
|
|
6182
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6183
|
+
approveRecoveryWithSig: (args: {
|
|
6184
|
+
gIdx: number;
|
|
6185
|
+
sig: Hex;
|
|
6186
|
+
}) => Promise<never>;
|
|
6187
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6188
|
+
cancelRecoveryWithSig: (args: {
|
|
6189
|
+
gIdx: number;
|
|
6190
|
+
sig: Hex;
|
|
6191
|
+
}) => Promise<never>;
|
|
6192
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6193
|
+
removeGuardianWithMixedSigs: (args: {
|
|
6194
|
+
index: number;
|
|
6195
|
+
signerIdxs: readonly number[];
|
|
6196
|
+
sigs: readonly Hex[];
|
|
6197
|
+
}) => Promise<never>;
|
|
6198
|
+
/** Batch 2 (P-256 guardian feature). Throws {@link ErrorCode.NOT_IMPLEMENTED}. */
|
|
6199
|
+
modifyTierLimitsWithMixedGuardians: (args: {
|
|
6200
|
+
tier1: bigint;
|
|
6201
|
+
tier2: bigint;
|
|
6202
|
+
deadline: bigint;
|
|
6203
|
+
signerIdxs: readonly number[];
|
|
6204
|
+
sigs: readonly Hex[];
|
|
6205
|
+
}) => Promise<never>;
|
|
6206
|
+
};
|
|
6207
|
+
declare const airAccountExtensionActions: (address: Address) => (client: PublicClient$1 | WalletClient) => AirAccountExtensionActions;
|
|
6208
|
+
|
|
6112
6209
|
type AgentRegistryActions = {
|
|
6113
6210
|
deployer: () => Promise<Address>;
|
|
6114
6211
|
factory: () => Promise<Address>;
|
|
@@ -6172,6 +6269,16 @@ type P256SessionState = {
|
|
|
6172
6269
|
callCount: number;
|
|
6173
6270
|
prevCount: number;
|
|
6174
6271
|
};
|
|
6272
|
+
type SessionConfig = {
|
|
6273
|
+
expiry: number;
|
|
6274
|
+
contractScope: Address;
|
|
6275
|
+
selectorScope: Hex;
|
|
6276
|
+
revoked: boolean;
|
|
6277
|
+
velocityLimit: number;
|
|
6278
|
+
velocityWindow: number;
|
|
6279
|
+
callTargets: readonly Address[];
|
|
6280
|
+
selectorAllowlist: readonly Hex[];
|
|
6281
|
+
};
|
|
6175
6282
|
type SessionKeyValidatorActions = {
|
|
6176
6283
|
checkSessionScope: (args: {
|
|
6177
6284
|
account: Address;
|
|
@@ -6201,6 +6308,17 @@ type SessionKeyValidatorActions = {
|
|
|
6201
6308
|
sessionType: number;
|
|
6202
6309
|
signer?: Account | Address;
|
|
6203
6310
|
}) => Promise<Hash>;
|
|
6311
|
+
buildGrantHash: (args: {
|
|
6312
|
+
account: Address;
|
|
6313
|
+
sessionKey: Address;
|
|
6314
|
+
cfg: SessionConfig;
|
|
6315
|
+
}) => Promise<Hex>;
|
|
6316
|
+
buildP256GrantHash: (args: {
|
|
6317
|
+
account: Address;
|
|
6318
|
+
p256KeyX: Hex;
|
|
6319
|
+
p256KeyY: Hex;
|
|
6320
|
+
cfg: SessionConfig;
|
|
6321
|
+
}) => Promise<Hex>;
|
|
6204
6322
|
};
|
|
6205
6323
|
declare const sessionKeyValidatorActions: (address: Address) => (client: PublicClient$1 | WalletClient) => SessionKeyValidatorActions;
|
|
6206
6324
|
|
|
@@ -6927,4 +7045,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
|
|
|
6927
7045
|
verified: boolean;
|
|
6928
7046
|
}>;
|
|
6929
7047
|
|
|
6930
|
-
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, 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, 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, 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 };
|
|
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 };
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALL_ROLES, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, INITIAL_ROLE_STAKES, LINKS, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, RegistryArtifact, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, RolePermissionLevel, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, V2_SUMMARY, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountFactoryActions, blsAlgorithmActions, channelActions, createAAStarPublicClient, createHeliosTransport, dvtActions, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact } from './chunk-
|
|
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-
|
|
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-M5WFKETT.js';
|
|
2
|
+
export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-UCLK6LTB.js';
|
|
3
3
|
import './chunk-PZ5AY32C.js';
|
|
4
4
|
//# sourceMappingURL=core.js.map
|
|
5
5
|
//# sourceMappingURL=core.js.map
|
package/dist/dapp.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkIZN2COBP_cjs = require('./chunk-IZN2COBP.cjs');
|
|
4
|
+
var chunkCIEYY3A6_cjs = require('./chunk-CIEYY3A6.cjs');
|
|
5
|
+
require('./chunk-MXJEULSE.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
var viem = require('viem');
|
|
8
8
|
var react = require('react');
|
|
@@ -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 = chunkCIEYY3A6_cjs.createAAStarPublicClient(rpcUrl, chain);
|
|
36
36
|
const limit = await client.readContract({
|
|
37
37
|
address: registryAddress,
|
|
38
|
-
abi:
|
|
38
|
+
abi: chunkCIEYY3A6_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 = chunkIZN2COBP_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,6 +1,6 @@
|
|
|
1
|
-
import { getSuperPaymasterMiddleware } from './chunk-
|
|
2
|
-
import { createAAStarPublicClient, RegistryABI } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { getSuperPaymasterMiddleware } from './chunk-MKUILC7J.js';
|
|
2
|
+
import { createAAStarPublicClient, RegistryABI } from './chunk-M5WFKETT.js';
|
|
3
|
+
import './chunk-UCLK6LTB.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
5
|
import { parseAbi, createPublicClient, http, hashTypedData, hashMessage, hexToBytes, encodeFunctionData } from 'viem';
|
|
6
6
|
import { useState, useEffect, useCallback } from 'react';
|
package/dist/enduser.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkHT6LGLDM_cjs = require('./chunk-HT6LGLDM.cjs');
|
|
4
|
+
var chunkPED7PJQZ_cjs = require('./chunk-PED7PJQZ.cjs');
|
|
5
|
+
require('./chunk-CIEYY3A6.cjs');
|
|
6
|
+
require('./chunk-MXJEULSE.cjs');
|
|
7
7
|
require('./chunk-Q7SFCCGT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "CommunityClient", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkHT6LGLDM_cjs.CommunityClient; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "UserLifecycle", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHT6LGLDM_cjs.UserLifecycle; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "UserClient", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkPED7PJQZ_cjs.UserClient; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=enduser.cjs.map
|
|
24
24
|
//# sourceMappingURL=enduser.cjs.map
|
package/dist/enduser.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CommunityClient, UserLifecycle } from './chunk-
|
|
2
|
-
export { UserClient } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { CommunityClient, UserLifecycle } from './chunk-JYHDAOUT.js';
|
|
2
|
+
export { UserClient } from './chunk-UP2S7C7R.js';
|
|
3
|
+
import './chunk-M5WFKETT.js';
|
|
4
|
+
import './chunk-UCLK6LTB.js';
|
|
5
5
|
import './chunk-PZ5AY32C.js';
|
|
6
6
|
//# sourceMappingURL=enduser.js.map
|
|
7
7
|
//# sourceMappingURL=enduser.js.map
|
package/dist/identity.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkWR4OZUXR_cjs = require('./chunk-WR4OZUXR.cjs');
|
|
4
|
+
require('./chunk-CIEYY3A6.cjs');
|
|
5
|
+
require('./chunk-MXJEULSE.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ReputationClient", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkWR4OZUXR_cjs.ReputationClient; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "checkMySBT", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkWR4OZUXR_cjs.checkMySBT; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMySBTId", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkWR4OZUXR_cjs.getMySBTId; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=identity.cjs.map
|
|
23
23
|
//# sourceMappingURL=identity.cjs.map
|
package/dist/identity.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ReputationClient, checkMySBT, getMySBTId } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { ReputationClient, checkMySBT, getMySBTId } from './chunk-KZERVPUR.js';
|
|
2
|
+
import './chunk-M5WFKETT.js';
|
|
3
|
+
import './chunk-UCLK6LTB.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
5
|
//# sourceMappingURL=identity.js.map
|
|
6
6
|
//# sourceMappingURL=identity.js.map
|