@virtuals-protocol/acp-node 0.2.0-beta.9 → 0.3.0-beta-subscription.2

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/index.d.mts CHANGED
@@ -1,14 +1,17 @@
1
1
  import * as viem from 'viem';
2
- import { Address } from 'viem';
2
+ import { Address, Chain, createPublicClient, SignTypedDataParameters, Hex, TransactionRequest } from 'viem';
3
+ import * as _aa_sdk_core from '@aa-sdk/core';
4
+ import { Address as Address$1, SmartAccountSigner } from '@aa-sdk/core';
5
+ import { baseSepolia, base, mainnet, sepolia, polygon, polygonAmoy, bsc, bscTestnet, arbitrum, arbitrumSepolia } from '@account-kit/infra';
6
+ import * as util from 'util';
7
+ import util__default from 'util';
3
8
  import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
4
9
  import * as _aa_sdk_core_dist_types_actions_smartAccount_signTypedData from '@aa-sdk/core/dist/types/actions/smartAccount/signTypedData';
5
10
  import * as _aa_sdk_core_dist_types_actions_smartAccount_signMessage from '@aa-sdk/core/dist/types/actions/smartAccount/signMessage';
6
11
  import * as _aa_sdk_core_dist_types_actions_smartAccount_checkGasSponsorshipEligibility from '@aa-sdk/core/dist/types/actions/smartAccount/checkGasSponsorshipEligibility';
7
- import * as _aa_sdk_core from '@aa-sdk/core';
8
- import { Address as Address$1, SmartAccountSigner } from '@aa-sdk/core';
9
12
  import * as viem__types_utils_ccip from 'viem/_types/utils/ccip';
10
13
  import * as _account_kit_smart_contracts from '@account-kit/smart-contracts';
11
- import { baseSepolia, base } from '@account-kit/infra';
14
+ import { ModularAccountV2Client } from '@account-kit/smart-contracts';
12
15
 
13
16
  declare const ACP_ABI: ({
14
17
  inputs: never[];
@@ -95,52 +98,503 @@ declare const ACP_ABI: ({
95
98
  declare class Fare {
96
99
  contractAddress: Address;
97
100
  decimals: number;
98
- constructor(contractAddress: Address, decimals: number);
101
+ chainId?: number | undefined;
102
+ constructor(contractAddress: Address, decimals: number, chainId?: number | undefined);
99
103
  formatAmount(amount: number): bigint;
104
+ static fromContractAddress(contractAddress: Address, config?: AcpContractConfig, chainId?: number): Promise<Fare>;
100
105
  }
101
- interface IFareAmount {
106
+ declare abstract class FareAmountBase {
102
107
  amount: bigint;
103
108
  fare: Fare;
104
- add(other: IFareAmount): IFareAmount;
109
+ constructor(amount: bigint, fare: Fare);
110
+ abstract add(other: FareAmountBase): FareAmountBase;
111
+ static fromContractAddress(amount: number | bigint, contractAddress: Address, config?: AcpContractConfig): Promise<FareAmountBase>;
105
112
  }
106
- declare class FareAmount implements IFareAmount {
107
- amount: bigint;
108
- fare: Fare;
113
+ declare class FareAmount extends FareAmountBase {
109
114
  constructor(fareAmount: number, fare: Fare);
110
- truncateTo6Decimals(input: string): number;
111
- add(other: IFareAmount): FareAmount;
115
+ add(other: FareAmountBase): FareBigInt;
112
116
  }
113
- declare class FareBigInt implements IFareAmount {
117
+ declare class FareBigInt implements FareAmountBase {
114
118
  amount: bigint;
115
119
  fare: Fare;
116
120
  constructor(amount: bigint, fare: Fare);
117
- add(other: IFareAmount): IFareAmount;
121
+ add(other: FareAmountBase): FareAmountBase;
118
122
  }
119
123
  declare const wethFare: Fare;
120
124
  declare const ethFare: Fare;
121
125
 
126
+ declare const ACP_V2_ABI: ({
127
+ inputs: never[];
128
+ stateMutability: string;
129
+ type: string;
130
+ name?: undefined;
131
+ anonymous?: undefined;
132
+ outputs?: undefined;
133
+ } | {
134
+ inputs: {
135
+ internalType: string;
136
+ name: string;
137
+ type: string;
138
+ }[];
139
+ name: string;
140
+ type: string;
141
+ stateMutability?: undefined;
142
+ anonymous?: undefined;
143
+ outputs?: undefined;
144
+ } | {
145
+ anonymous: boolean;
146
+ inputs: {
147
+ indexed: boolean;
148
+ internalType: string;
149
+ name: string;
150
+ type: string;
151
+ }[];
152
+ name: string;
153
+ type: string;
154
+ stateMutability?: undefined;
155
+ outputs?: undefined;
156
+ } | {
157
+ inputs: {
158
+ internalType: string;
159
+ name: string;
160
+ type: string;
161
+ }[];
162
+ name: string;
163
+ outputs: ({
164
+ components: {
165
+ internalType: string;
166
+ name: string;
167
+ type: string;
168
+ }[];
169
+ internalType: string;
170
+ name: string;
171
+ type: string;
172
+ } | {
173
+ internalType: string;
174
+ name: string;
175
+ type: string;
176
+ components?: undefined;
177
+ })[];
178
+ stateMutability: string;
179
+ type: string;
180
+ anonymous?: undefined;
181
+ })[];
182
+
183
+ declare class AcpAccount {
184
+ contractClient: BaseAcpContractClient;
185
+ id: number;
186
+ clientAddress: Address;
187
+ providerAddress: Address;
188
+ metadata: Record<string, any>;
189
+ expiryAt?: number | undefined;
190
+ constructor(contractClient: BaseAcpContractClient, id: number, clientAddress: Address, providerAddress: Address, metadata: Record<string, any>, expiryAt?: number | undefined);
191
+ updateMetadata(metadata: Record<string, any>): Promise<OperationPayload>;
192
+ }
193
+
194
+ declare enum PriceType {
195
+ FIXED = "fixed",
196
+ PERCENTAGE = "percentage",
197
+ SUBSCRIPTION = "subscription"
198
+ }
199
+ declare class AcpJobOffering {
200
+ private readonly acpClient;
201
+ private readonly acpContractClient;
202
+ providerAddress: Address;
203
+ name: string;
204
+ price: number;
205
+ priceType: PriceType;
206
+ requiredFunds: boolean;
207
+ slaMinutes: number;
208
+ requirement?: (Object | string) | undefined;
209
+ deliverable?: (Object | string) | undefined;
210
+ subscriptionTiers: string[];
211
+ private ajv;
212
+ constructor(acpClient: AcpClient, acpContractClient: BaseAcpContractClient, providerAddress: Address, name: string, price: number, priceType: PriceType | undefined, requiredFunds: boolean, slaMinutes: number, requirement?: (Object | string) | undefined, deliverable?: (Object | string) | undefined, subscriptionTiers?: string[]);
213
+ initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address, expiredAt?: Date, preferredSubscriptionTier?: string): Promise<number>;
214
+ private validateRequest;
215
+ private isSubscriptionRequired;
216
+ private validateSubscriptionTier;
217
+ /**
218
+ * Resolve the account to use for the job.
219
+ *
220
+ * For non-subscription jobs: returns the existing account if found.
221
+ * For subscription jobs, priority:
222
+ * 1. Valid account matching preferred tier
223
+ * 2. Any valid (non-expired) account
224
+ * 3. Expired/unactivated account (expiryAt = 0) to reuse
225
+ * 4. null — createJob will create a new one
226
+ */
227
+ private resolveAccount;
228
+ private findPreferredAccount;
229
+ private createJob;
230
+ private sendInitialMemo;
231
+ }
232
+
233
+ type AcpAgentArgs = {
234
+ id: string | number;
235
+ name: string;
236
+ contractAddress: Address;
237
+ walletAddress: Address;
238
+ jobOfferings: AcpJobOffering[];
239
+ description?: string;
240
+ twitterHandle?: string;
241
+ metrics?: unknown;
242
+ resources?: unknown;
243
+ subscriptions?: ISubscriptionTier[];
244
+ };
245
+ declare class AcpAgent {
246
+ readonly id: string;
247
+ readonly name: string;
248
+ readonly contractAddress: Address;
249
+ readonly walletAddress: Address;
250
+ readonly jobOfferings: readonly AcpJobOffering[];
251
+ readonly description?: string;
252
+ readonly twitterHandle?: string;
253
+ readonly metrics?: unknown;
254
+ readonly resources?: unknown;
255
+ readonly subscriptions: readonly ISubscriptionTier[];
256
+ constructor(args: AcpAgentArgs);
257
+ }
258
+
259
+ declare class AcpMemo {
260
+ private contractClient;
261
+ id: number;
262
+ type: MemoType;
263
+ content: string;
264
+ nextPhase: AcpJobPhases;
265
+ status: AcpMemoStatus;
266
+ senderAddress: Address;
267
+ signedReason?: string | undefined;
268
+ expiry?: Date | undefined;
269
+ payableDetails?: PayableDetails | undefined;
270
+ txHash?: `0x${string}` | undefined;
271
+ signedTxHash?: `0x${string}` | undefined;
272
+ state?: AcpMemoState | undefined;
273
+ constructor(contractClient: BaseAcpContractClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, senderAddress: Address, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined, txHash?: `0x${string}` | undefined, signedTxHash?: `0x${string}` | undefined, state?: AcpMemoState | undefined);
274
+ create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
275
+ sign(approved: boolean, reason?: string): Promise<{
276
+ userOpHash: Address;
277
+ txnHash: Address;
278
+ }>;
279
+ [util__default.inspect.custom](): {
280
+ id: number;
281
+ senderAddress: `0x${string}`;
282
+ type: string;
283
+ status: AcpMemoStatus;
284
+ content: string;
285
+ signedReason: string | undefined;
286
+ txHash: `0x${string}` | undefined;
287
+ signedTxHash: `0x${string}` | undefined;
288
+ nextPhase: string;
289
+ expiry: Date | undefined;
290
+ payableDetails: PayableDetails | undefined;
291
+ };
292
+ }
293
+
294
+ declare class AcpJob {
295
+ private acpClient;
296
+ id: number;
297
+ clientAddress: Address;
298
+ providerAddress: Address;
299
+ evaluatorAddress: Address;
300
+ price: number;
301
+ priceTokenAddress: Address;
302
+ memos: AcpMemo[];
303
+ phase: AcpJobPhases;
304
+ context: Record<string, any>;
305
+ contractAddress: Address;
306
+ private _deliverable;
307
+ netPayableAmount?: number | undefined;
308
+ name: string | undefined;
309
+ requirement: Record<string, any> | string | undefined;
310
+ priceType: PriceType;
311
+ priceValue: number;
312
+ constructor(acpClient: AcpClient, id: number, clientAddress: Address, providerAddress: Address, evaluatorAddress: Address, price: number, priceTokenAddress: Address, memos: AcpMemo[], phase: AcpJobPhases, context: Record<string, any>, contractAddress: Address, _deliverable: DeliverablePayload | null, netPayableAmount?: number | undefined);
313
+ get acpContractClient(): BaseAcpContractClient;
314
+ get config(): AcpContractConfig;
315
+ get baseFare(): Fare;
316
+ get rejectionReason(): string | undefined;
317
+ get providerAgent(): Promise<AcpAgent | null>;
318
+ get clientAgent(): Promise<AcpAgent | null>;
319
+ get evaluatorAgent(): Promise<AcpAgent | null>;
320
+ get account(): Promise<AcpAccount | null>;
321
+ get latestMemo(): AcpMemo | undefined;
322
+ getDeliverable(): Promise<DeliverablePayload | null>;
323
+ createRequirement(content: string): Promise<{
324
+ userOpHash: Address;
325
+ txnHash: Address;
326
+ }>;
327
+ acceptRequirement(memo: AcpMemo, reason?: string): Promise<{
328
+ userOpHash: Address;
329
+ txnHash: Address;
330
+ }>;
331
+ createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW | MemoType.PAYABLE_TRANSFER | MemoType.PAYABLE_REQUEST_SUBSCRIPTION, amount: FareAmountBase, recipient: Address, expiredAt?: Date, // 5 minutes
332
+ duration?: number): Promise<{
333
+ userOpHash: Address;
334
+ txnHash: Address;
335
+ }>;
336
+ payAndAcceptRequirement(reason?: string): Promise<{
337
+ userOpHash: Address;
338
+ txnHash: Address;
339
+ } | undefined>;
340
+ respond(accept: boolean, reason?: string): Promise<{
341
+ userOpHash: Address;
342
+ txnHash: Address;
343
+ }>;
344
+ accept(reason?: string): Promise<{
345
+ userOpHash: Address;
346
+ txnHash: Address;
347
+ }>;
348
+ reject(reason?: string): Promise<{
349
+ userOpHash: Address;
350
+ txnHash: Address;
351
+ }>;
352
+ rejectPayable(reason: string | undefined, amount: FareAmountBase, expiredAt?: Date): Promise<{
353
+ userOpHash: Address;
354
+ txnHash: Address;
355
+ }>;
356
+ deliver(deliverable: DeliverablePayload): Promise<{
357
+ userOpHash: Address;
358
+ txnHash: Address;
359
+ }>;
360
+ deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<void | {
361
+ userOpHash: Address;
362
+ txnHash: Address;
363
+ }>;
364
+ paySubscription(reason?: string): Promise<{
365
+ userOpHash: Address;
366
+ txnHash: Address;
367
+ }>;
368
+ evaluate(accept: boolean, reason?: string): Promise<{
369
+ userOpHash: Address;
370
+ txnHash: Address;
371
+ }>;
372
+ createNotification(content: string): Promise<{
373
+ userOpHash: Address;
374
+ txnHash: Address;
375
+ }>;
376
+ createPayableNotification(content: string, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
377
+ userOpHash: Address;
378
+ txnHash: Address;
379
+ }>;
380
+ private performX402Payment;
381
+ deliverCrossChainPayable(recipient: Address, content: string, amount: FareAmountBase, skipFee?: boolean): Promise<void>;
382
+ [util.inspect.custom](): {
383
+ id: number;
384
+ clientAddress: `0x${string}`;
385
+ providerAddress: `0x${string}`;
386
+ name: string | undefined;
387
+ requirement: string | Record<string, any> | undefined;
388
+ priceType: PriceType;
389
+ priceValue: number;
390
+ priceTokenAddress: `0x${string}`;
391
+ memos: AcpMemo[];
392
+ phase: AcpJobPhases;
393
+ context: Record<string, any>;
394
+ contractAddress: `0x${string}`;
395
+ netPayableAmount: number | undefined;
396
+ };
397
+ }
398
+
399
+ type DeliverablePayload = string | Record<string, unknown>;
400
+ declare enum AcpMemoStatus {
401
+ PENDING = "PENDING",
402
+ APPROVED = "APPROVED",
403
+ REJECTED = "REJECTED"
404
+ }
405
+ declare enum AcpMemoState {
406
+ NONE = 0,
407
+ PENDING = 1,
408
+ IN_PROGRESS = 2,
409
+ FAILED = 3,
410
+ COMPLETED = 4
411
+ }
412
+ interface PayableDetails {
413
+ amount: bigint;
414
+ token: Address;
415
+ recipient: Address;
416
+ feeAmount: bigint;
417
+ lzSrcEid?: number;
418
+ lzDstEid?: number;
419
+ }
420
+ declare enum AcpAgentSort {
421
+ SUCCESSFUL_JOB_COUNT = "successfulJobCount",
422
+ SUCCESS_RATE = "successRate",
423
+ UNIQUE_BUYER_COUNT = "uniqueBuyerCount",
424
+ MINS_FROM_LAST_ONLINE = "minsFromLastOnlineTime"
425
+ }
426
+ declare enum AcpGraduationStatus {
427
+ ALL = "all",
428
+ GRADUATED = "graduated",
429
+ NOT_GRADUATED = "not_graduated"
430
+ }
431
+ declare enum AcpOnlineStatus {
432
+ ALL = "all",
433
+ ONLINE = "online",
434
+ OFFLINE = "offline"
435
+ }
436
+ interface IAcpJobX402PaymentDetails {
437
+ isX402: boolean;
438
+ isBudgetReceived: boolean;
439
+ }
440
+ interface IAcpClientOptions {
441
+ acpContractClient: BaseAcpContractClient | BaseAcpContractClient[];
442
+ onNewTask?: (job: AcpJob, memoToSign?: AcpMemo) => void;
443
+ onEvaluate?: (job: AcpJob) => void;
444
+ customRpcUrl?: string;
445
+ skipSocketConnection?: boolean;
446
+ }
447
+ type IAcpAccount = {
448
+ id: number;
449
+ clientAddress: Address;
450
+ providerAddress: Address;
451
+ metadata: Record<string, any>;
452
+ expiryAt?: number;
453
+ };
454
+ type ISubscriptionTier = {
455
+ name: string;
456
+ price: number;
457
+ duration: number;
458
+ };
459
+ type ISubscriptionCheckResponse = {
460
+ accounts: IAcpAccount[];
461
+ };
462
+ type SubscriptionPaymentRequirementResult = {
463
+ needsSubscriptionPayment: false;
464
+ action: "no_subscription_required" | "valid_subscription";
465
+ } | {
466
+ needsSubscriptionPayment: true;
467
+ tier: ISubscriptionTier;
468
+ };
469
+ type X402Config = {
470
+ url: string;
471
+ };
472
+ type X402PayableRequirements = {
473
+ x402Version: number;
474
+ error: string;
475
+ accepts: X402Requirement[];
476
+ };
477
+ type X402Requirement = {
478
+ scheme: string;
479
+ network: string;
480
+ maxAmountRequired: string;
481
+ resource: string;
482
+ description: string;
483
+ mimeType: string;
484
+ payTo: Address;
485
+ maxTimeoutSeconds: number;
486
+ asset: Address;
487
+ extra: {
488
+ name: string;
489
+ version: string;
490
+ };
491
+ outputSchema: any;
492
+ };
493
+ type X402PayableRequest = {
494
+ to: Address;
495
+ value: number;
496
+ maxTimeoutSeconds: number;
497
+ asset: Address;
498
+ };
499
+ type X402Payment = {
500
+ encodedPayment: string;
501
+ signature: string;
502
+ message: {
503
+ from: Address;
504
+ to: Address;
505
+ value: string;
506
+ validAfter: string;
507
+ validBefore: string;
508
+ nonce: string;
509
+ };
510
+ };
511
+ type OffChainJob = {
512
+ id: number;
513
+ documentId: string;
514
+ txHash: Address;
515
+ clientId: number;
516
+ providerId: number;
517
+ budget: number;
518
+ createdAt: string;
519
+ updatedAt: string;
520
+ publishedAt: string;
521
+ locale: string | null;
522
+ clientAddress: Address;
523
+ providerAddress: Address;
524
+ evaluators: Address[];
525
+ budgetTxHash: Address | null;
526
+ phase: AcpJobPhases;
527
+ agentIdPair: string;
528
+ onChainJobId: string;
529
+ summary: string;
530
+ userOpHash: Address | null;
531
+ amountClaimed: number;
532
+ context: Record<string, any> | null;
533
+ expiry: string;
534
+ refundRetryTimes: number;
535
+ additionalFees: number;
536
+ budgetTokenAddress: Address;
537
+ budgetUSD: number;
538
+ amountClaimedUSD: number | null;
539
+ additionalFeesUSD: number | null;
540
+ contractAddress: Address;
541
+ accountId: number | null;
542
+ x402Nonce: string;
543
+ };
544
+ type X402PaymentResponse = {
545
+ isPaymentRequired: boolean;
546
+ data: X402PayableRequirements;
547
+ };
548
+ type IAcpMemoContent = {
549
+ id: number;
550
+ content: string;
551
+ url: string;
552
+ };
553
+
554
+ type SupportedChain = typeof mainnet | typeof sepolia | typeof polygon | typeof polygonAmoy | typeof bsc | typeof bscTestnet | typeof arbitrum | typeof arbitrumSepolia;
122
555
  declare class AcpContractConfig {
123
556
  chain: typeof baseSepolia | typeof base;
124
557
  contractAddress: Address$1;
125
558
  baseFare: Fare;
126
559
  alchemyRpcUrl: string;
127
560
  acpUrl: string;
561
+ abi: typeof ACP_ABI | typeof ACP_V2_ABI;
562
+ maxRetries: number;
128
563
  rpcEndpoint?: string | undefined;
129
- constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, rpcEndpoint?: string | undefined);
564
+ x402Config?: X402Config | undefined;
565
+ retryConfig?: {
566
+ intervalMs: number;
567
+ multiplier: number;
568
+ maxRetries: number;
569
+ } | undefined;
570
+ chains: SupportedChain[];
571
+ constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, abi: typeof ACP_ABI | typeof ACP_V2_ABI, maxRetries: number, rpcEndpoint?: string | undefined, x402Config?: X402Config | undefined, retryConfig?: {
572
+ intervalMs: number;
573
+ multiplier: number;
574
+ maxRetries: number;
575
+ } | undefined, chains?: SupportedChain[]);
130
576
  }
131
577
  declare const baseSepoliaAcpConfig: AcpContractConfig;
578
+ declare const baseSepoliaAcpConfigV2: AcpContractConfig;
579
+ declare const baseSepoliaAcpX402ConfigV2: AcpContractConfig;
132
580
  declare const baseAcpConfig: AcpContractConfig;
581
+ declare const baseAcpX402Config: AcpContractConfig;
582
+ declare const baseAcpConfigV2: AcpContractConfig;
583
+ declare const baseAcpX402ConfigV2: AcpContractConfig;
133
584
 
134
585
  declare enum MemoType {
135
- MESSAGE = 0,
136
- CONTEXT_URL = 1,
137
- IMAGE_URL = 2,
138
- VOICE_URL = 3,
139
- OBJECT_URL = 4,
140
- TXHASH = 5,
141
- PAYABLE_REQUEST = 6,
142
- PAYABLE_TRANSFER = 7,
143
- PAYABLE_TRANSFER_ESCROW = 8
586
+ MESSAGE = 0,// 0 - Text message
587
+ CONTEXT_URL = 1,// 1 - URL for context
588
+ IMAGE_URL = 2,// 2 - Image URL
589
+ VOICE_URL = 3,// 3 - Voice/audio URL
590
+ OBJECT_URL = 4,// 4 - Object/file URL
591
+ TXHASH = 5,// 5 - Transaction hash reference
592
+ PAYABLE_REQUEST = 6,// 6 - Payment request
593
+ PAYABLE_TRANSFER = 7,// 7 - Direct payment transfer
594
+ PAYABLE_TRANSFER_ESCROW = 8,// 8 - Escrowed payment transfer
595
+ NOTIFICATION = 9,// 9 - Notification
596
+ PAYABLE_NOTIFICATION = 10,// 10 - Payable notification
597
+ PAYABLE_REQUEST_SUBSCRIPTION = 11
144
598
  }
145
599
  declare enum AcpJobPhases {
146
600
  REQUEST = 0,
@@ -154,23 +608,179 @@ declare enum AcpJobPhases {
154
608
  declare enum FeeType {
155
609
  NO_FEE = 0,
156
610
  IMMEDIATE_FEE = 1,
157
- DEFERRED_FEE = 2
611
+ DEFERRED_FEE = 2,
612
+ PERCENTAGE_FEE = 3
158
613
  }
159
- declare class AcpContractClient {
160
- private walletPrivateKey;
161
- private sessionEntityKeyId;
162
- private agentWalletAddress;
614
+ interface OperationPayload {
615
+ data: `0x${string}`;
616
+ contractAddress: Address;
617
+ value?: bigint;
618
+ }
619
+ declare abstract class BaseAcpContractClient {
620
+ agentWalletAddress: Address;
163
621
  config: AcpContractConfig;
164
- private MAX_RETRIES;
165
- private PRIORITY_FEE_MULTIPLIER;
166
- private MAX_FEE_PER_GAS;
167
- private MAX_PRIORITY_FEE_PER_GAS;
622
+ contractAddress: Address;
623
+ chain: Chain;
624
+ abi: typeof ACP_ABI | typeof ACP_V2_ABI;
625
+ jobCreatedSignature: string;
626
+ publicClient: ReturnType<typeof createPublicClient>;
627
+ publicClients: Record<number, ReturnType<typeof createPublicClient>>;
628
+ constructor(agentWalletAddress: Address, config?: AcpContractConfig);
629
+ protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
630
+ abstract handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
631
+ userOpHash: Address;
632
+ txnHash: Address;
633
+ }>;
634
+ abstract getJobId(createJobUserOpHash: Address, clientAddress: Address, providerAddress: Address): Promise<number>;
635
+ /**
636
+ * Returns a createAccount operation payload if the contract supports it (V2).
637
+ * Returns null for V1 or when the ABI does not include createAccount.
638
+ */
639
+ createAccount(providerAddress: Address, metadata: string): OperationPayload | null;
640
+ /**
641
+ * Returns the new account id from a createAccount user op receipt, or null if not supported.
642
+ */
643
+ getAccountIdFromUserOpHash(_userOpHash: Address): Promise<number | null>;
644
+ get walletAddress(): `0x${string}`;
645
+ createJobWithAccount(accountId: number, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date, isX402Job?: boolean): OperationPayload;
646
+ createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
647
+ approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address, targetAddress?: Address): OperationPayload;
648
+ createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW | MemoType.PAYABLE_TRANSFER | MemoType.PAYABLE_NOTIFICATION | MemoType.PAYABLE_REQUEST_SUBSCRIPTION, expiredAt: Date, token?: Address, secured?: boolean): OperationPayload;
649
+ createSubscriptionMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address, feeAmountBaseUnit: bigint, feeType: FeeType, duration: number, nextPhase: AcpJobPhases, expiredAt: Date, token?: Address): OperationPayload;
650
+ createCrossChainPayableMemo(jobId: number, content: string, token: Address, amountBaseUnit: bigint, recipient: Address, feeAmountBaseUnit: bigint, feeType: FeeType, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER | MemoType.PAYABLE_NOTIFICATION, expiredAt: Date, nextPhase: AcpJobPhases, destinationEid: number, secured?: boolean): OperationPayload;
651
+ createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): OperationPayload;
652
+ createMemoWithMetadata(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases, metadata: string): OperationPayload;
653
+ signMemo(memoId: number, isApproved: boolean, reason?: string): OperationPayload;
654
+ setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload | undefined;
655
+ updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
656
+ wrapEth(amountBaseUnit: bigint): OperationPayload;
657
+ getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
658
+ abstract updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
659
+ abstract generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
660
+ abstract performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
661
+ submitTransferWithAuthorization(from: Address, to: Address, value: bigint, validAfter: bigint, validBefore: bigint, nonce: string, signature: string): Promise<OperationPayload[]>;
662
+ getERC20Balance(chainId: number, tokenAddress: Address, walletAddress: Address): Promise<bigint>;
663
+ getERC20Allowance(chainId: number, tokenAddress: Address, walletAddress: Address, spenderAddress: Address): Promise<bigint>;
664
+ getERC20Symbol(chainId: number, tokenAddress: Address): Promise<string>;
665
+ getERC20Decimals(chainId: number, tokenAddress: Address): Promise<number>;
666
+ abstract getAssetManager(): Promise<Address>;
667
+ abstract getAcpVersion(): string;
668
+ abstract signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
669
+ abstract signMessage(message: string): Promise<Hex>;
670
+ abstract sendTransaction(request: TransactionRequest): Promise<Hex>;
671
+ }
672
+
673
+ interface IAcpGetAgentOptions {
674
+ showHiddenOfferings?: boolean;
675
+ }
676
+ interface IAcpBrowseAgentsOptions {
677
+ cluster?: string;
678
+ sortBy?: AcpAgentSort[];
679
+ topK?: number;
680
+ sort_by?: AcpAgentSort[];
681
+ top_k?: number;
682
+ graduationStatus?: AcpGraduationStatus;
683
+ onlineStatus?: AcpOnlineStatus;
684
+ showHiddenOfferings?: boolean;
685
+ }
686
+ declare class AcpClient {
687
+ private contractClients;
688
+ private onNewTask?;
689
+ private onEvaluate?;
690
+ private acpClient;
691
+ private noAuthAcpClient;
692
+ private accessToken;
693
+ private accessTokenInflight;
694
+ constructor(options: IAcpClientOptions);
695
+ private getAccessToken;
696
+ private refreshToken;
697
+ private getAuthChallenge;
698
+ private verifyAuthChallenge;
699
+ contractClientByAddress(address: Address | undefined): BaseAcpContractClient;
700
+ get acpContractClient(): BaseAcpContractClient;
701
+ get acpUrl(): string;
702
+ private defaultOnEvaluate;
703
+ get walletAddress(): `0x${string}`;
704
+ init(skipSocketConnection?: boolean): Promise<void>;
705
+ private _fetch;
706
+ private _hydrateMemo;
707
+ private _hydrateJob;
708
+ private _hydrateJobs;
709
+ private _hydrateAgent;
710
+ browseAgents(keyword: string, options?: IAcpBrowseAgentsOptions): Promise<AcpAgent[]>;
711
+ initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: FareAmountBase, evaluatorAddress?: Address, expiredAt?: Date, offeringName?: string, preferredSubscriptionTier?: string): Promise<number>;
712
+ getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
713
+ getPendingMemoJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
714
+ getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
715
+ getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
716
+ getJobById(jobId: number): Promise<AcpJob | null>;
717
+ getMemoById(jobId: number, memoId: number): Promise<AcpMemo | null>;
718
+ getAgent(walletAddress: Address, options?: IAcpGetAgentOptions): Promise<AcpAgent | null>;
719
+ getAccountByJobId(jobId: number, acpContractClient?: BaseAcpContractClient): Promise<AcpAccount | null>;
720
+ /**
721
+ * Gets account or subscription data for a client–provider pair.
722
+ * When offeringName is provided, the backend may return subscription tiers and accounts
723
+ * (ISubscriptionCheckResponse). When not provided, returns a single AcpAccount or null.
724
+ */
725
+ getByClientAndProvider(clientAddress: Address, providerAddress: Address, acpContractClient?: BaseAcpContractClient, offeringName?: string): Promise<AcpAccount | ISubscriptionCheckResponse | null>;
726
+ /**
727
+ * Narrows a backend response to ISubscriptionCheckResponse if it has an accounts array.
728
+ */
729
+ private _asSubscriptionCheck;
730
+ /**
731
+ * Resolve the account to use for the job.
732
+ *
733
+ * For subscription jobs, priority:
734
+ * 1. Valid account matching preferred tier
735
+ * 2. Any valid (non-expired) account
736
+ * 3. Unactivated account (expiryAt = 0) to reuse
737
+ * 4. null — createJob will create a new one
738
+ */
739
+ private _resolveSubscriptionAccount;
740
+ private _findPreferredAccount;
741
+ /**
742
+ * Returns the first subscription account with expiryAt > now, or null.
743
+ */
744
+ private _getValidSubscriptionAccountFromResponse;
745
+ /**
746
+ * Seller-facing: determines whether to create a subscription payment request memo.
747
+ * Call this when handling a new job (e.g. in REQUEST phase); then branch on
748
+ * needsSubscriptionPayment and use tier when true.
749
+ */
750
+ getSubscriptionPaymentRequirement(clientAddress: Address, providerAddress: Address, offeringName: string): Promise<SubscriptionPaymentRequirementResult>;
751
+ getValidSubscriptionAccount(providerAddress: Address, offeringName: string, clientAddress: Address, acpContractClient?: BaseAcpContractClient): Promise<AcpAccount | null>;
752
+ createMemoContent(jobId: number, content: string): Promise<IAcpMemoContent>;
753
+ getMemoContent(url: string): Promise<string>;
754
+ getTokenBalances(): Promise<{
755
+ tokens: Record<string, any>;
756
+ } | undefined>;
757
+ }
758
+
759
+ declare class AcpX402 {
760
+ private config;
761
+ private sessionKeyClient;
762
+ private publicClient;
763
+ constructor(config: AcpContractConfig, sessionKeyClient: ModularAccountV2Client, publicClient: ReturnType<typeof createPublicClient>);
764
+ signUpdateJobNonceMessage(jobId: number, nonce: string): Promise<`0x${string}`>;
765
+ updateJobNonce(jobId: number, nonce: string): Promise<OffChainJob>;
766
+ generatePayment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
767
+ performRequest(url: string, version: string, budget?: string, signature?: string): Promise<{
768
+ isPaymentRequired: boolean;
769
+ data: any;
770
+ }>;
771
+ }
772
+
773
+ declare class AcpContractClient extends BaseAcpContractClient {
774
+ protected PRIORITY_FEE_MULTIPLIER: number;
775
+ protected MAX_FEE_PER_GAS: number;
776
+ protected MAX_PRIORITY_FEE_PER_GAS: number;
777
+ private RETRY_CONFIG;
168
778
  private _sessionKeyClient;
169
- private chain;
170
- private contractAddress;
171
- constructor(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig);
779
+ private _acpX402;
780
+ constructor(agentWalletAddress: Address$1, config?: AcpContractConfig);
172
781
  static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClient>;
173
- init(): Promise<void>;
782
+ init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
783
+ getRandomNonce(bits?: number): bigint;
174
784
  get sessionKeyClient(): {
175
785
  [x: string]: unknown;
176
786
  account: _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>;
@@ -182,6 +792,7 @@ declare class AcpContractClient {
182
792
  request?: (parameters: viem.CcipRequestParameters) => Promise<viem__types_utils_ccip.CcipRequestReturnType>;
183
793
  } | undefined;
184
794
  chain: viem.Chain;
795
+ experimental_blockTag?: viem.BlockTag | undefined;
185
796
  key: string;
186
797
  name: string;
187
798
  pollingInterval: number;
@@ -195,7 +806,7 @@ declare class AcpContractClient {
195
806
  ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
196
807
  }, {
197
808
  Method: "eth_getUserOperationReceipt";
198
- Parameters: [viem.Hash];
809
+ Parameters: [viem.Hash, ("pending" | "latest")?];
199
810
  ReturnType: _aa_sdk_core.UserOperationReceipt | null;
200
811
  }, {
201
812
  Method: "eth_getUserOperationByHash";
@@ -235,8 +846,8 @@ declare class AcpContractClient {
235
846
  ReturnType: viem.Quantity;
236
847
  }, {
237
848
  Method: "eth_call";
238
- Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
239
- ReturnType: viem.Hex;
849
+ Parameters: readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride, blockOverrides: viem.RpcBlockOverrides];
850
+ ReturnType: Hex;
240
851
  }, {
241
852
  Method: "eth_createAccessList";
242
853
  Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -287,11 +898,11 @@ declare class AcpContractClient {
287
898
  }, {
288
899
  Method: "eth_getCode";
289
900
  Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
290
- ReturnType: viem.Hex;
901
+ ReturnType: Hex;
291
902
  }, {
292
903
  Method: "eth_getFilterChanges";
293
904
  Parameters: [filterId: viem.Quantity];
294
- ReturnType: viem.RpcLog[] | viem.Hex[];
905
+ ReturnType: viem.RpcLog[] | Hex[];
295
906
  }, {
296
907
  Method: "eth_getFilterLogs";
297
908
  Parameters: [filterId: viem.Quantity];
@@ -318,7 +929,7 @@ declare class AcpContractClient {
318
929
  }, {
319
930
  Method: "eth_getStorageAt";
320
931
  Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
321
- ReturnType: viem.Hex;
932
+ ReturnType: Hex;
322
933
  }, {
323
934
  Method: "eth_getTransactionByBlockHashAndIndex";
324
935
  Parameters: [hash: viem.Hash, index: viem.Quantity];
@@ -382,8 +993,12 @@ declare class AcpContractClient {
382
993
  ReturnType: string;
383
994
  }, {
384
995
  Method: "eth_sendRawTransaction";
385
- Parameters: [signedTransaction: viem.Hex];
996
+ Parameters: [signedTransaction: Hex];
386
997
  ReturnType: viem.Hash;
998
+ }, {
999
+ Method: "eth_sendRawTransactionSync";
1000
+ Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
1001
+ ReturnType: viem.RpcTransactionReceipt;
387
1002
  }, {
388
1003
  Method: "eth_simulateV1";
389
1004
  Parameters: [{
@@ -399,14 +1014,14 @@ declare class AcpContractClient {
399
1014
  ReturnType: readonly (viem.RpcBlock & {
400
1015
  calls: readonly {
401
1016
  error?: {
402
- data?: viem.Hex | undefined;
1017
+ data?: Hex | undefined;
403
1018
  code: number;
404
1019
  message: string;
405
1020
  } | undefined;
406
1021
  logs?: readonly viem.RpcLog[] | undefined;
407
- gasUsed: viem.Hex;
408
- returnData: viem.Hex;
409
- status: viem.Hex;
1022
+ gasUsed: Hex;
1023
+ returnData: Hex;
1024
+ status: Hex;
410
1025
  }[];
411
1026
  })[];
412
1027
  }, {
@@ -423,12 +1038,12 @@ declare class AcpContractClient {
423
1038
  checkGasSponsorshipEligibility: <TContext extends _aa_sdk_core.UserOperationContext | undefined = _aa_sdk_core.UserOperationContext | undefined, TEntryPointVersion extends keyof _aa_sdk_core.EntryPointRegistryBase<unknown> = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(args: _aa_sdk_core.SendUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TContext>) => Promise<_aa_sdk_core_dist_types_actions_smartAccount_checkGasSponsorshipEligibility.CheckGasSponsorshipEligibilityResult<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TEntryPointVersion>>;
424
1039
  signUserOperation: (args: _aa_sdk_core.SignUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, keyof _aa_sdk_core.EntryPointRegistryBase<unknown>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<_aa_sdk_core.UserOperationRequest<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
425
1040
  dropAndReplaceUserOperation: (args: _aa_sdk_core.DropAndReplaceUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<_aa_sdk_core.SendUserOperationResult<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
426
- sendTransaction: <TChainOverride extends viem.Chain | undefined = undefined>(args: viem.SendTransactionParameters<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TChainOverride>, overrides?: _aa_sdk_core.UserOperationOverrides<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>> | undefined, context?: _aa_sdk_core.UserOperationContext | undefined) => Promise<viem.Hex>;
427
- sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<viem.Hex>;
1041
+ sendTransaction: <TChainOverride extends viem.Chain | undefined = undefined>(args: viem.SendTransactionParameters<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TChainOverride>, overrides?: _aa_sdk_core.UserOperationOverrides<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>> | undefined, context?: _aa_sdk_core.UserOperationContext | undefined) => Promise<Hex>;
1042
+ sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
428
1043
  sendUserOperation: (args: _aa_sdk_core.SendUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined, keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>) => Promise<_aa_sdk_core.SendUserOperationResult<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
429
- waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<viem.Hex>;
430
- upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<viem.Hex>;
431
- signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
1044
+ waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
1045
+ upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
1046
+ signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
432
1047
  signTypedData: <const TTypedData extends {
433
1048
  [x: string]: readonly viem.TypedDataParameter[];
434
1049
  [x: `string[${string}]`]: undefined;
@@ -440,17 +1055,17 @@ declare class AcpContractClient {
440
1055
  [x: `uint8[${string}]`]: undefined;
441
1056
  [x: `bool[${string}]`]: undefined;
442
1057
  [x: `bytes4[${string}]`]: undefined;
1058
+ [x: `uint32[${string}]`]: undefined;
443
1059
  [x: `bytes[${string}]`]: undefined;
444
- [x: `bytes1[${string}]`]: undefined;
445
1060
  [x: `bytes6[${string}]`]: undefined;
446
- [x: `bytes18[${string}]`]: undefined;
1061
+ [x: `bytes10[${string}]`]: undefined;
1062
+ [x: `bytes1[${string}]`]: undefined;
447
1063
  [x: `bytes2[${string}]`]: undefined;
448
1064
  [x: `bytes3[${string}]`]: undefined;
449
1065
  [x: `bytes5[${string}]`]: undefined;
450
1066
  [x: `bytes7[${string}]`]: undefined;
451
1067
  [x: `bytes8[${string}]`]: undefined;
452
1068
  [x: `bytes9[${string}]`]: undefined;
453
- [x: `bytes10[${string}]`]: undefined;
454
1069
  [x: `bytes11[${string}]`]: undefined;
455
1070
  [x: `bytes12[${string}]`]: undefined;
456
1071
  [x: `bytes13[${string}]`]: undefined;
@@ -458,6 +1073,7 @@ declare class AcpContractClient {
458
1073
  [x: `bytes15[${string}]`]: undefined;
459
1074
  [x: `bytes16[${string}]`]: undefined;
460
1075
  [x: `bytes17[${string}]`]: undefined;
1076
+ [x: `bytes18[${string}]`]: undefined;
461
1077
  [x: `bytes19[${string}]`]: undefined;
462
1078
  [x: `bytes20[${string}]`]: undefined;
463
1079
  [x: `bytes21[${string}]`]: undefined;
@@ -472,6 +1088,7 @@ declare class AcpContractClient {
472
1088
  [x: `bytes30[${string}]`]: undefined;
473
1089
  [x: `bytes31[${string}]`]: undefined;
474
1090
  [x: `int[${string}]`]: undefined;
1091
+ [x: `int200[${string}]`]: undefined;
475
1092
  [x: `int8[${string}]`]: undefined;
476
1093
  [x: `int16[${string}]`]: undefined;
477
1094
  [x: `int24[${string}]`]: undefined;
@@ -496,7 +1113,6 @@ declare class AcpContractClient {
496
1113
  [x: `int176[${string}]`]: undefined;
497
1114
  [x: `int184[${string}]`]: undefined;
498
1115
  [x: `int192[${string}]`]: undefined;
499
- [x: `int200[${string}]`]: undefined;
500
1116
  [x: `int208[${string}]`]: undefined;
501
1117
  [x: `int216[${string}]`]: undefined;
502
1118
  [x: `int224[${string}]`]: undefined;
@@ -505,9 +1121,9 @@ declare class AcpContractClient {
505
1121
  [x: `int248[${string}]`]: undefined;
506
1122
  [x: `int256[${string}]`]: undefined;
507
1123
  [x: `uint[${string}]`]: undefined;
1124
+ [x: `uint200[${string}]`]: undefined;
508
1125
  [x: `uint16[${string}]`]: undefined;
509
1126
  [x: `uint24[${string}]`]: undefined;
510
- [x: `uint32[${string}]`]: undefined;
511
1127
  [x: `uint40[${string}]`]: undefined;
512
1128
  [x: `uint48[${string}]`]: undefined;
513
1129
  [x: `uint56[${string}]`]: undefined;
@@ -527,7 +1143,6 @@ declare class AcpContractClient {
527
1143
  [x: `uint176[${string}]`]: undefined;
528
1144
  [x: `uint184[${string}]`]: undefined;
529
1145
  [x: `uint192[${string}]`]: undefined;
530
- [x: `uint200[${string}]`]: undefined;
531
1146
  [x: `uint208[${string}]`]: undefined;
532
1147
  [x: `uint216[${string}]`]: undefined;
533
1148
  [x: `uint224[${string}]`]: undefined;
@@ -542,17 +1157,17 @@ declare class AcpContractClient {
542
1157
  uint8?: undefined;
543
1158
  bool?: undefined;
544
1159
  bytes4?: undefined;
1160
+ uint32?: undefined;
545
1161
  bytes?: undefined;
546
- bytes1?: undefined;
547
1162
  bytes6?: undefined;
548
- bytes18?: undefined;
1163
+ bytes10?: undefined;
1164
+ bytes1?: undefined;
549
1165
  bytes2?: undefined;
550
1166
  bytes3?: undefined;
551
1167
  bytes5?: undefined;
552
1168
  bytes7?: undefined;
553
1169
  bytes8?: undefined;
554
1170
  bytes9?: undefined;
555
- bytes10?: undefined;
556
1171
  bytes11?: undefined;
557
1172
  bytes12?: undefined;
558
1173
  bytes13?: undefined;
@@ -560,6 +1175,7 @@ declare class AcpContractClient {
560
1175
  bytes15?: undefined;
561
1176
  bytes16?: undefined;
562
1177
  bytes17?: undefined;
1178
+ bytes18?: undefined;
563
1179
  bytes19?: undefined;
564
1180
  bytes20?: undefined;
565
1181
  bytes21?: undefined;
@@ -573,6 +1189,7 @@ declare class AcpContractClient {
573
1189
  bytes29?: undefined;
574
1190
  bytes30?: undefined;
575
1191
  bytes31?: undefined;
1192
+ int200?: undefined;
576
1193
  int8?: undefined;
577
1194
  int16?: undefined;
578
1195
  int24?: undefined;
@@ -597,7 +1214,6 @@ declare class AcpContractClient {
597
1214
  int176?: undefined;
598
1215
  int184?: undefined;
599
1216
  int192?: undefined;
600
- int200?: undefined;
601
1217
  int208?: undefined;
602
1218
  int216?: undefined;
603
1219
  int224?: undefined;
@@ -605,9 +1221,9 @@ declare class AcpContractClient {
605
1221
  int240?: undefined;
606
1222
  int248?: undefined;
607
1223
  int256?: undefined;
1224
+ uint200?: undefined;
608
1225
  uint16?: undefined;
609
1226
  uint24?: undefined;
610
- uint32?: undefined;
611
1227
  uint40?: undefined;
612
1228
  uint48?: undefined;
613
1229
  uint56?: undefined;
@@ -627,7 +1243,6 @@ declare class AcpContractClient {
627
1243
  uint176?: undefined;
628
1244
  uint184?: undefined;
629
1245
  uint192?: undefined;
630
- uint200?: undefined;
631
1246
  uint208?: undefined;
632
1247
  uint216?: undefined;
633
1248
  uint224?: undefined;
@@ -636,12 +1251,12 @@ declare class AcpContractClient {
636
1251
  uint248?: undefined;
637
1252
  } | {
638
1253
  [key: string]: unknown;
639
- }, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
1254
+ }, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
640
1255
  getAddress: () => Address$1;
641
1256
  estimateUserOperationGas: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address$1, stateOverride?: viem.StateOverride) => Promise<_aa_sdk_core.UserOperationEstimateGasResponse<TEntryPointVersion>>;
642
1257
  sendRawUserOperation: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address$1) => Promise<viem.Hash>;
643
1258
  getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
644
- getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
1259
+ getUserOperationReceipt: (hash: viem.Hash, tag?: "pending" | "latest") => Promise<_aa_sdk_core.UserOperationReceipt | null>;
645
1260
  getSupportedEntryPoints: () => Promise<Address$1[]>;
646
1261
  call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
647
1262
  createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
@@ -658,22 +1273,22 @@ declare class AcpContractClient {
658
1273
  getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
659
1274
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
660
1275
  number: blockTag extends "pending" ? null : bigint;
661
- nonce: blockTag extends "pending" ? null : `0x${string}`;
662
1276
  hash: blockTag extends "pending" ? null : `0x${string}`;
1277
+ nonce: blockTag extends "pending" ? null : `0x${string}`;
663
1278
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
664
1279
  baseFeePerGas: bigint | null;
665
1280
  blobGasUsed: bigint;
666
1281
  difficulty: bigint;
667
1282
  excessBlobGas: bigint;
668
- extraData: viem.Hex;
1283
+ extraData: Hex;
669
1284
  gasLimit: bigint;
670
1285
  gasUsed: bigint;
671
1286
  miner: Address$1;
672
1287
  mixHash: viem.Hash;
673
1288
  parentBeaconBlockRoot?: `0x${string}` | undefined;
674
1289
  parentHash: viem.Hash;
675
- receiptsRoot: viem.Hex;
676
- sealFields: viem.Hex[];
1290
+ receiptsRoot: Hex;
1291
+ sealFields: Hex[];
677
1292
  sha3Uncles: viem.Hash;
678
1293
  size: bigint;
679
1294
  stateRoot: viem.Hash;
@@ -686,125 +1301,125 @@ declare class AcpContractClient {
686
1301
  transactions: includeTransactions extends true ? ({
687
1302
  from: Address$1;
688
1303
  to: Address$1 | null;
689
- type: "legacy";
690
- r: viem.Hex;
691
- s: viem.Hex;
692
- v: bigint;
693
1304
  yParity?: undefined | undefined;
694
- value: bigint;
695
1305
  gas: bigint;
1306
+ hash: viem.Hash;
1307
+ input: Hex;
696
1308
  nonce: number;
697
- maxFeePerBlobGas?: undefined | undefined;
698
- gasPrice: bigint;
699
- maxFeePerGas?: undefined | undefined;
700
- maxPriorityFeePerGas?: undefined | undefined;
701
- authorizationList?: undefined | undefined;
1309
+ r: Hex;
1310
+ s: Hex;
1311
+ typeHex: Hex | null;
1312
+ v: bigint;
1313
+ value: bigint;
702
1314
  accessList?: undefined | undefined;
1315
+ authorizationList?: undefined | undefined;
703
1316
  blobVersionedHashes?: undefined | undefined;
704
- hash: viem.Hash;
705
- input: viem.Hex;
706
- typeHex: viem.Hex | null;
707
1317
  chainId?: number | undefined;
1318
+ type: "legacy";
1319
+ gasPrice: bigint;
1320
+ maxFeePerBlobGas?: undefined | undefined;
1321
+ maxFeePerGas?: undefined | undefined;
1322
+ maxPriorityFeePerGas?: undefined | undefined;
708
1323
  blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
709
1324
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
710
1325
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
711
1326
  } | {
712
1327
  from: Address$1;
713
1328
  to: Address$1 | null;
714
- type: "eip2930";
715
- r: viem.Hex;
716
- s: viem.Hex;
717
- v: bigint;
718
1329
  yParity: number;
719
- value: bigint;
720
1330
  gas: bigint;
1331
+ hash: viem.Hash;
1332
+ input: Hex;
721
1333
  nonce: number;
722
- maxFeePerBlobGas?: undefined | undefined;
723
- gasPrice: bigint;
724
- maxFeePerGas?: undefined | undefined;
725
- maxPriorityFeePerGas?: undefined | undefined;
726
- authorizationList?: undefined | undefined;
1334
+ r: Hex;
1335
+ s: Hex;
1336
+ typeHex: Hex | null;
1337
+ v: bigint;
1338
+ value: bigint;
727
1339
  accessList: viem.AccessList;
1340
+ authorizationList?: undefined | undefined;
728
1341
  blobVersionedHashes?: undefined | undefined;
729
- hash: viem.Hash;
730
- input: viem.Hex;
731
- typeHex: viem.Hex | null;
732
1342
  chainId: number;
1343
+ type: "eip2930";
1344
+ gasPrice: bigint;
1345
+ maxFeePerBlobGas?: undefined | undefined;
1346
+ maxFeePerGas?: undefined | undefined;
1347
+ maxPriorityFeePerGas?: undefined | undefined;
733
1348
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
734
1349
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
735
1350
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
736
1351
  } | {
737
1352
  from: Address$1;
738
1353
  to: Address$1 | null;
739
- type: "eip1559";
740
- r: viem.Hex;
741
- s: viem.Hex;
742
- v: bigint;
743
1354
  yParity: number;
744
- value: bigint;
745
1355
  gas: bigint;
1356
+ hash: viem.Hash;
1357
+ input: Hex;
746
1358
  nonce: number;
747
- maxFeePerBlobGas?: undefined | undefined;
748
- gasPrice?: undefined | undefined;
749
- maxFeePerGas: bigint;
750
- maxPriorityFeePerGas: bigint;
751
- authorizationList?: undefined | undefined;
1359
+ r: Hex;
1360
+ s: Hex;
1361
+ typeHex: Hex | null;
1362
+ v: bigint;
1363
+ value: bigint;
752
1364
  accessList: viem.AccessList;
1365
+ authorizationList?: undefined | undefined;
753
1366
  blobVersionedHashes?: undefined | undefined;
754
- hash: viem.Hash;
755
- input: viem.Hex;
756
- typeHex: viem.Hex | null;
757
1367
  chainId: number;
1368
+ type: "eip1559";
1369
+ gasPrice?: undefined | undefined;
1370
+ maxFeePerBlobGas?: undefined | undefined;
1371
+ maxFeePerGas: bigint;
1372
+ maxPriorityFeePerGas: bigint;
758
1373
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
759
1374
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
760
1375
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
761
1376
  } | {
762
1377
  from: Address$1;
763
1378
  to: Address$1 | null;
764
- type: "eip4844";
765
- r: viem.Hex;
766
- s: viem.Hex;
767
- v: bigint;
768
1379
  yParity: number;
769
- value: bigint;
770
1380
  gas: bigint;
1381
+ hash: viem.Hash;
1382
+ input: Hex;
771
1383
  nonce: number;
772
- maxFeePerBlobGas: bigint;
1384
+ r: Hex;
1385
+ s: Hex;
1386
+ typeHex: Hex | null;
1387
+ v: bigint;
1388
+ value: bigint;
1389
+ accessList: viem.AccessList;
1390
+ authorizationList?: undefined | undefined;
1391
+ blobVersionedHashes: readonly Hex[];
1392
+ chainId: number;
1393
+ type: "eip4844";
773
1394
  gasPrice?: undefined | undefined;
1395
+ maxFeePerBlobGas: bigint;
774
1396
  maxFeePerGas: bigint;
775
1397
  maxPriorityFeePerGas: bigint;
776
- authorizationList?: undefined | undefined;
777
- accessList: viem.AccessList;
778
- blobVersionedHashes: readonly viem.Hex[];
779
- hash: viem.Hash;
780
- input: viem.Hex;
781
- typeHex: viem.Hex | null;
782
- chainId: number;
783
1398
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
784
1399
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
785
1400
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
786
1401
  } | {
787
1402
  from: Address$1;
788
1403
  to: Address$1 | null;
789
- type: "eip7702";
790
- r: viem.Hex;
791
- s: viem.Hex;
792
- v: bigint;
793
1404
  yParity: number;
794
- value: bigint;
795
1405
  gas: bigint;
1406
+ hash: viem.Hash;
1407
+ input: Hex;
796
1408
  nonce: number;
797
- maxFeePerBlobGas?: undefined | undefined;
798
- gasPrice?: undefined | undefined;
799
- maxFeePerGas: bigint;
800
- maxPriorityFeePerGas: bigint;
801
- authorizationList: viem.SignedAuthorizationList;
1409
+ r: Hex;
1410
+ s: Hex;
1411
+ typeHex: Hex | null;
1412
+ v: bigint;
1413
+ value: bigint;
802
1414
  accessList: viem.AccessList;
1415
+ authorizationList: viem.SignedAuthorizationList;
803
1416
  blobVersionedHashes?: undefined | undefined;
804
- hash: viem.Hash;
805
- input: viem.Hex;
806
- typeHex: viem.Hex | null;
807
1417
  chainId: number;
1418
+ type: "eip7702";
1419
+ gasPrice?: undefined | undefined;
1420
+ maxFeePerBlobGas?: undefined | undefined;
1421
+ maxFeePerGas: bigint;
1422
+ maxPriorityFeePerGas: bigint;
808
1423
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
809
1424
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
810
1425
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
@@ -836,125 +1451,125 @@ declare class AcpContractClient {
836
1451
  getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
837
1452
  from: Address$1;
838
1453
  to: Address$1 | null;
839
- type: "legacy";
840
- r: viem.Hex;
841
- s: viem.Hex;
842
- v: bigint;
843
1454
  yParity?: undefined | undefined;
844
- value: bigint;
845
1455
  gas: bigint;
1456
+ hash: viem.Hash;
1457
+ input: Hex;
846
1458
  nonce: number;
847
- maxFeePerBlobGas?: undefined | undefined;
848
- gasPrice: bigint;
849
- maxFeePerGas?: undefined | undefined;
850
- maxPriorityFeePerGas?: undefined | undefined;
851
- authorizationList?: undefined | undefined;
1459
+ r: Hex;
1460
+ s: Hex;
1461
+ typeHex: Hex | null;
1462
+ v: bigint;
1463
+ value: bigint;
852
1464
  accessList?: undefined | undefined;
1465
+ authorizationList?: undefined | undefined;
853
1466
  blobVersionedHashes?: undefined | undefined;
854
- hash: viem.Hash;
855
- input: viem.Hex;
856
- typeHex: viem.Hex | null;
857
1467
  chainId?: number | undefined;
1468
+ type: "legacy";
1469
+ gasPrice: bigint;
1470
+ maxFeePerBlobGas?: undefined | undefined;
1471
+ maxFeePerGas?: undefined | undefined;
1472
+ maxPriorityFeePerGas?: undefined | undefined;
858
1473
  blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
859
1474
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
860
1475
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
861
1476
  } | {
862
1477
  from: Address$1;
863
1478
  to: Address$1 | null;
864
- type: "eip2930";
865
- r: viem.Hex;
866
- s: viem.Hex;
867
- v: bigint;
868
1479
  yParity: number;
869
- value: bigint;
870
1480
  gas: bigint;
1481
+ hash: viem.Hash;
1482
+ input: Hex;
871
1483
  nonce: number;
872
- maxFeePerBlobGas?: undefined | undefined;
873
- gasPrice: bigint;
874
- maxFeePerGas?: undefined | undefined;
875
- maxPriorityFeePerGas?: undefined | undefined;
876
- authorizationList?: undefined | undefined;
1484
+ r: Hex;
1485
+ s: Hex;
1486
+ typeHex: Hex | null;
1487
+ v: bigint;
1488
+ value: bigint;
877
1489
  accessList: viem.AccessList;
1490
+ authorizationList?: undefined | undefined;
878
1491
  blobVersionedHashes?: undefined | undefined;
879
- hash: viem.Hash;
880
- input: viem.Hex;
881
- typeHex: viem.Hex | null;
882
1492
  chainId: number;
1493
+ type: "eip2930";
1494
+ gasPrice: bigint;
1495
+ maxFeePerBlobGas?: undefined | undefined;
1496
+ maxFeePerGas?: undefined | undefined;
1497
+ maxPriorityFeePerGas?: undefined | undefined;
883
1498
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
884
1499
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
885
1500
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
886
1501
  } | {
887
1502
  from: Address$1;
888
1503
  to: Address$1 | null;
889
- type: "eip1559";
890
- r: viem.Hex;
891
- s: viem.Hex;
892
- v: bigint;
893
1504
  yParity: number;
894
- value: bigint;
895
1505
  gas: bigint;
1506
+ hash: viem.Hash;
1507
+ input: Hex;
896
1508
  nonce: number;
897
- maxFeePerBlobGas?: undefined | undefined;
898
- gasPrice?: undefined | undefined;
899
- maxFeePerGas: bigint;
900
- maxPriorityFeePerGas: bigint;
901
- authorizationList?: undefined | undefined;
1509
+ r: Hex;
1510
+ s: Hex;
1511
+ typeHex: Hex | null;
1512
+ v: bigint;
1513
+ value: bigint;
902
1514
  accessList: viem.AccessList;
1515
+ authorizationList?: undefined | undefined;
903
1516
  blobVersionedHashes?: undefined | undefined;
904
- hash: viem.Hash;
905
- input: viem.Hex;
906
- typeHex: viem.Hex | null;
907
1517
  chainId: number;
1518
+ type: "eip1559";
1519
+ gasPrice?: undefined | undefined;
1520
+ maxFeePerBlobGas?: undefined | undefined;
1521
+ maxFeePerGas: bigint;
1522
+ maxPriorityFeePerGas: bigint;
908
1523
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
909
1524
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
910
1525
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
911
1526
  } | {
912
1527
  from: Address$1;
913
1528
  to: Address$1 | null;
914
- type: "eip4844";
915
- r: viem.Hex;
916
- s: viem.Hex;
917
- v: bigint;
918
1529
  yParity: number;
919
- value: bigint;
920
1530
  gas: bigint;
1531
+ hash: viem.Hash;
1532
+ input: Hex;
921
1533
  nonce: number;
922
- maxFeePerBlobGas: bigint;
1534
+ r: Hex;
1535
+ s: Hex;
1536
+ typeHex: Hex | null;
1537
+ v: bigint;
1538
+ value: bigint;
1539
+ accessList: viem.AccessList;
1540
+ authorizationList?: undefined | undefined;
1541
+ blobVersionedHashes: readonly Hex[];
1542
+ chainId: number;
1543
+ type: "eip4844";
923
1544
  gasPrice?: undefined | undefined;
1545
+ maxFeePerBlobGas: bigint;
924
1546
  maxFeePerGas: bigint;
925
1547
  maxPriorityFeePerGas: bigint;
926
- authorizationList?: undefined | undefined;
927
- accessList: viem.AccessList;
928
- blobVersionedHashes: readonly viem.Hex[];
929
- hash: viem.Hash;
930
- input: viem.Hex;
931
- typeHex: viem.Hex | null;
932
- chainId: number;
933
1548
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
934
1549
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
935
1550
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
936
1551
  } | {
937
1552
  from: Address$1;
938
1553
  to: Address$1 | null;
939
- type: "eip7702";
940
- r: viem.Hex;
941
- s: viem.Hex;
942
- v: bigint;
943
1554
  yParity: number;
944
- value: bigint;
945
1555
  gas: bigint;
1556
+ hash: viem.Hash;
1557
+ input: Hex;
946
1558
  nonce: number;
947
- maxFeePerBlobGas?: undefined | undefined;
948
- gasPrice?: undefined | undefined;
949
- maxFeePerGas: bigint;
950
- maxPriorityFeePerGas: bigint;
951
- authorizationList: viem.SignedAuthorizationList;
1559
+ r: Hex;
1560
+ s: Hex;
1561
+ typeHex: Hex | null;
1562
+ v: bigint;
1563
+ value: bigint;
952
1564
  accessList: viem.AccessList;
1565
+ authorizationList: viem.SignedAuthorizationList;
953
1566
  blobVersionedHashes?: undefined | undefined;
954
- hash: viem.Hash;
955
- input: viem.Hex;
956
- typeHex: viem.Hex | null;
957
1567
  chainId: number;
1568
+ type: "eip7702";
1569
+ gasPrice?: undefined | undefined;
1570
+ maxFeePerBlobGas?: undefined | undefined;
1571
+ maxFeePerGas: bigint;
1572
+ maxPriorityFeePerGas: bigint;
958
1573
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
959
1574
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
960
1575
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
@@ -963,7 +1578,7 @@ declare class AcpContractClient {
963
1578
  getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
964
1579
  getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.TransactionReceipt>;
965
1580
  multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
966
- prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain | undefined, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_14 ? T_14 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_14 extends viem.Chain ? {
1581
+ prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain | undefined, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_14 ? T_14 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_14 extends viem.Chain ? {
967
1582
  chain: T_14;
968
1583
  } : {
969
1584
  chain?: undefined;
@@ -4215,7 +4830,7 @@ declare class AcpContractClient {
4215
4830
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
4216
4831
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
4217
4832
  chainId?: number | undefined;
4218
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_1 ? T_1 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_1 extends viem.Chain ? {
4833
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_1 ? T_1 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_1 extends viem.Chain ? {
4219
4834
  chain: T_1;
4220
4835
  } : {
4221
4836
  chain?: undefined;
@@ -7467,13 +8082,15 @@ declare class AcpContractClient {
7467
8082
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
7468
8083
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
7469
8084
  chainId?: number | undefined;
7470
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
8085
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
7471
8086
  readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
7472
8087
  sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
8088
+ sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
7473
8089
  simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
7474
8090
  simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
7475
8091
  simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
7476
8092
  simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain | undefined, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride>>;
8093
+ verifyHash: (args: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>;
7477
8094
  verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
7478
8095
  verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
7479
8096
  verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
@@ -7491,6 +8108,7 @@ declare class AcpContractClient {
7491
8108
  cacheTime?: undefined;
7492
8109
  ccipRead?: undefined;
7493
8110
  chain?: undefined;
8111
+ experimental_blockTag?: undefined;
7494
8112
  key?: undefined;
7495
8113
  name?: undefined;
7496
8114
  pollingInterval?: undefined;
@@ -7508,7 +8126,7 @@ declare class AcpContractClient {
7508
8126
  ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
7509
8127
  }, {
7510
8128
  Method: "eth_getUserOperationReceipt";
7511
- Parameters: [viem.Hash];
8129
+ Parameters: [viem.Hash, ("pending" | "latest")?];
7512
8130
  ReturnType: _aa_sdk_core.UserOperationReceipt | null;
7513
8131
  }, {
7514
8132
  Method: "eth_getUserOperationByHash";
@@ -7548,8 +8166,8 @@ declare class AcpContractClient {
7548
8166
  ReturnType: viem.Quantity;
7549
8167
  }, {
7550
8168
  Method: "eth_call";
7551
- Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
7552
- ReturnType: viem.Hex;
8169
+ Parameters: readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride, blockOverrides: viem.RpcBlockOverrides];
8170
+ ReturnType: Hex;
7553
8171
  }, {
7554
8172
  Method: "eth_createAccessList";
7555
8173
  Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -7600,11 +8218,11 @@ declare class AcpContractClient {
7600
8218
  }, {
7601
8219
  Method: "eth_getCode";
7602
8220
  Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
7603
- ReturnType: viem.Hex;
8221
+ ReturnType: Hex;
7604
8222
  }, {
7605
8223
  Method: "eth_getFilterChanges";
7606
8224
  Parameters: [filterId: viem.Quantity];
7607
- ReturnType: viem.RpcLog[] | viem.Hex[];
8225
+ ReturnType: viem.RpcLog[] | Hex[];
7608
8226
  }, {
7609
8227
  Method: "eth_getFilterLogs";
7610
8228
  Parameters: [filterId: viem.Quantity];
@@ -7631,7 +8249,7 @@ declare class AcpContractClient {
7631
8249
  }, {
7632
8250
  Method: "eth_getStorageAt";
7633
8251
  Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
7634
- ReturnType: viem.Hex;
8252
+ ReturnType: Hex;
7635
8253
  }, {
7636
8254
  Method: "eth_getTransactionByBlockHashAndIndex";
7637
8255
  Parameters: [hash: viem.Hash, index: viem.Quantity];
@@ -7695,8 +8313,12 @@ declare class AcpContractClient {
7695
8313
  ReturnType: string;
7696
8314
  }, {
7697
8315
  Method: "eth_sendRawTransaction";
7698
- Parameters: [signedTransaction: viem.Hex];
8316
+ Parameters: [signedTransaction: Hex];
7699
8317
  ReturnType: viem.Hash;
8318
+ }, {
8319
+ Method: "eth_sendRawTransactionSync";
8320
+ Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
8321
+ ReturnType: viem.RpcTransactionReceipt;
7700
8322
  }, {
7701
8323
  Method: "eth_simulateV1";
7702
8324
  Parameters: [{
@@ -7712,14 +8334,14 @@ declare class AcpContractClient {
7712
8334
  ReturnType: readonly (viem.RpcBlock & {
7713
8335
  calls: readonly {
7714
8336
  error?: {
7715
- data?: viem.Hex | undefined;
8337
+ data?: Hex | undefined;
7716
8338
  code: number;
7717
8339
  message: string;
7718
8340
  } | undefined;
7719
8341
  logs?: readonly viem.RpcLog[] | undefined;
7720
- gasUsed: viem.Hex;
7721
- returnData: viem.Hex;
7722
- status: viem.Hex;
8342
+ gasUsed: Hex;
8343
+ returnData: Hex;
8344
+ status: Hex;
7723
8345
  }[];
7724
8346
  })[];
7725
8347
  }, {
@@ -7733,12 +8355,12 @@ declare class AcpContractClient {
7733
8355
  checkGasSponsorshipEligibility: <TContext extends _aa_sdk_core.UserOperationContext | undefined = _aa_sdk_core.UserOperationContext | undefined, TEntryPointVersion extends keyof _aa_sdk_core.EntryPointRegistryBase<unknown> = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(args: _aa_sdk_core.SendUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TContext>) => Promise<_aa_sdk_core_dist_types_actions_smartAccount_checkGasSponsorshipEligibility.CheckGasSponsorshipEligibilityResult<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TEntryPointVersion>>;
7734
8356
  signUserOperation: (args: _aa_sdk_core.SignUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, keyof _aa_sdk_core.EntryPointRegistryBase<unknown>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<_aa_sdk_core.UserOperationRequest<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
7735
8357
  dropAndReplaceUserOperation: (args: _aa_sdk_core.DropAndReplaceUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<_aa_sdk_core.SendUserOperationResult<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
7736
- sendTransaction: <TChainOverride extends viem.Chain | undefined = undefined>(args: viem.SendTransactionParameters<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TChainOverride>, overrides?: _aa_sdk_core.UserOperationOverrides<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>> | undefined, context?: _aa_sdk_core.UserOperationContext | undefined) => Promise<viem.Hex>;
7737
- sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<viem.Hex>;
8358
+ sendTransaction: <TChainOverride extends viem.Chain | undefined = undefined>(args: viem.SendTransactionParameters<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TChainOverride>, overrides?: _aa_sdk_core.UserOperationOverrides<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>> | undefined, context?: _aa_sdk_core.UserOperationContext | undefined) => Promise<Hex>;
8359
+ sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
7738
8360
  sendUserOperation: (args: _aa_sdk_core.SendUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined, keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>) => Promise<_aa_sdk_core.SendUserOperationResult<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
7739
- waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<viem.Hex>;
7740
- upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<viem.Hex>;
7741
- signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
8361
+ waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
8362
+ upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
8363
+ signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
7742
8364
  signTypedData: <const TTypedData extends {
7743
8365
  [x: string]: readonly viem.TypedDataParameter[];
7744
8366
  [x: `string[${string}]`]: undefined;
@@ -7750,17 +8372,17 @@ declare class AcpContractClient {
7750
8372
  [x: `uint8[${string}]`]: undefined;
7751
8373
  [x: `bool[${string}]`]: undefined;
7752
8374
  [x: `bytes4[${string}]`]: undefined;
8375
+ [x: `uint32[${string}]`]: undefined;
7753
8376
  [x: `bytes[${string}]`]: undefined;
7754
- [x: `bytes1[${string}]`]: undefined;
7755
8377
  [x: `bytes6[${string}]`]: undefined;
7756
- [x: `bytes18[${string}]`]: undefined;
8378
+ [x: `bytes10[${string}]`]: undefined;
8379
+ [x: `bytes1[${string}]`]: undefined;
7757
8380
  [x: `bytes2[${string}]`]: undefined;
7758
8381
  [x: `bytes3[${string}]`]: undefined;
7759
8382
  [x: `bytes5[${string}]`]: undefined;
7760
8383
  [x: `bytes7[${string}]`]: undefined;
7761
8384
  [x: `bytes8[${string}]`]: undefined;
7762
8385
  [x: `bytes9[${string}]`]: undefined;
7763
- [x: `bytes10[${string}]`]: undefined;
7764
8386
  [x: `bytes11[${string}]`]: undefined;
7765
8387
  [x: `bytes12[${string}]`]: undefined;
7766
8388
  [x: `bytes13[${string}]`]: undefined;
@@ -7768,6 +8390,7 @@ declare class AcpContractClient {
7768
8390
  [x: `bytes15[${string}]`]: undefined;
7769
8391
  [x: `bytes16[${string}]`]: undefined;
7770
8392
  [x: `bytes17[${string}]`]: undefined;
8393
+ [x: `bytes18[${string}]`]: undefined;
7771
8394
  [x: `bytes19[${string}]`]: undefined;
7772
8395
  [x: `bytes20[${string}]`]: undefined;
7773
8396
  [x: `bytes21[${string}]`]: undefined;
@@ -7782,6 +8405,7 @@ declare class AcpContractClient {
7782
8405
  [x: `bytes30[${string}]`]: undefined;
7783
8406
  [x: `bytes31[${string}]`]: undefined;
7784
8407
  [x: `int[${string}]`]: undefined;
8408
+ [x: `int200[${string}]`]: undefined;
7785
8409
  [x: `int8[${string}]`]: undefined;
7786
8410
  [x: `int16[${string}]`]: undefined;
7787
8411
  [x: `int24[${string}]`]: undefined;
@@ -7806,7 +8430,6 @@ declare class AcpContractClient {
7806
8430
  [x: `int176[${string}]`]: undefined;
7807
8431
  [x: `int184[${string}]`]: undefined;
7808
8432
  [x: `int192[${string}]`]: undefined;
7809
- [x: `int200[${string}]`]: undefined;
7810
8433
  [x: `int208[${string}]`]: undefined;
7811
8434
  [x: `int216[${string}]`]: undefined;
7812
8435
  [x: `int224[${string}]`]: undefined;
@@ -7815,9 +8438,9 @@ declare class AcpContractClient {
7815
8438
  [x: `int248[${string}]`]: undefined;
7816
8439
  [x: `int256[${string}]`]: undefined;
7817
8440
  [x: `uint[${string}]`]: undefined;
8441
+ [x: `uint200[${string}]`]: undefined;
7818
8442
  [x: `uint16[${string}]`]: undefined;
7819
8443
  [x: `uint24[${string}]`]: undefined;
7820
- [x: `uint32[${string}]`]: undefined;
7821
8444
  [x: `uint40[${string}]`]: undefined;
7822
8445
  [x: `uint48[${string}]`]: undefined;
7823
8446
  [x: `uint56[${string}]`]: undefined;
@@ -7837,7 +8460,6 @@ declare class AcpContractClient {
7837
8460
  [x: `uint176[${string}]`]: undefined;
7838
8461
  [x: `uint184[${string}]`]: undefined;
7839
8462
  [x: `uint192[${string}]`]: undefined;
7840
- [x: `uint200[${string}]`]: undefined;
7841
8463
  [x: `uint208[${string}]`]: undefined;
7842
8464
  [x: `uint216[${string}]`]: undefined;
7843
8465
  [x: `uint224[${string}]`]: undefined;
@@ -7852,17 +8474,17 @@ declare class AcpContractClient {
7852
8474
  uint8?: undefined;
7853
8475
  bool?: undefined;
7854
8476
  bytes4?: undefined;
8477
+ uint32?: undefined;
7855
8478
  bytes?: undefined;
7856
- bytes1?: undefined;
7857
8479
  bytes6?: undefined;
7858
- bytes18?: undefined;
8480
+ bytes10?: undefined;
8481
+ bytes1?: undefined;
7859
8482
  bytes2?: undefined;
7860
8483
  bytes3?: undefined;
7861
8484
  bytes5?: undefined;
7862
8485
  bytes7?: undefined;
7863
8486
  bytes8?: undefined;
7864
8487
  bytes9?: undefined;
7865
- bytes10?: undefined;
7866
8488
  bytes11?: undefined;
7867
8489
  bytes12?: undefined;
7868
8490
  bytes13?: undefined;
@@ -7870,6 +8492,7 @@ declare class AcpContractClient {
7870
8492
  bytes15?: undefined;
7871
8493
  bytes16?: undefined;
7872
8494
  bytes17?: undefined;
8495
+ bytes18?: undefined;
7873
8496
  bytes19?: undefined;
7874
8497
  bytes20?: undefined;
7875
8498
  bytes21?: undefined;
@@ -7883,6 +8506,7 @@ declare class AcpContractClient {
7883
8506
  bytes29?: undefined;
7884
8507
  bytes30?: undefined;
7885
8508
  bytes31?: undefined;
8509
+ int200?: undefined;
7886
8510
  int8?: undefined;
7887
8511
  int16?: undefined;
7888
8512
  int24?: undefined;
@@ -7907,7 +8531,6 @@ declare class AcpContractClient {
7907
8531
  int176?: undefined;
7908
8532
  int184?: undefined;
7909
8533
  int192?: undefined;
7910
- int200?: undefined;
7911
8534
  int208?: undefined;
7912
8535
  int216?: undefined;
7913
8536
  int224?: undefined;
@@ -7915,9 +8538,9 @@ declare class AcpContractClient {
7915
8538
  int240?: undefined;
7916
8539
  int248?: undefined;
7917
8540
  int256?: undefined;
8541
+ uint200?: undefined;
7918
8542
  uint16?: undefined;
7919
8543
  uint24?: undefined;
7920
- uint32?: undefined;
7921
8544
  uint40?: undefined;
7922
8545
  uint48?: undefined;
7923
8546
  uint56?: undefined;
@@ -7937,7 +8560,6 @@ declare class AcpContractClient {
7937
8560
  uint176?: undefined;
7938
8561
  uint184?: undefined;
7939
8562
  uint192?: undefined;
7940
- uint200?: undefined;
7941
8563
  uint208?: undefined;
7942
8564
  uint216?: undefined;
7943
8565
  uint224?: undefined;
@@ -7946,7 +8568,7 @@ declare class AcpContractClient {
7946
8568
  uint248?: undefined;
7947
8569
  } | {
7948
8570
  [key: string]: unknown;
7949
- }, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
8571
+ }, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
7950
8572
  } & {
7951
8573
  getAddress: () => Address$1;
7952
8574
  } & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
@@ -7959,7 +8581,7 @@ declare class AcpContractClient {
7959
8581
  ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
7960
8582
  }, {
7961
8583
  Method: "eth_getUserOperationReceipt";
7962
- Parameters: [viem.Hash];
8584
+ Parameters: [viem.Hash, ("pending" | "latest")?];
7963
8585
  ReturnType: _aa_sdk_core.UserOperationReceipt | null;
7964
8586
  }, {
7965
8587
  Method: "eth_getUserOperationByHash";
@@ -7999,8 +8621,8 @@ declare class AcpContractClient {
7999
8621
  ReturnType: viem.Quantity;
8000
8622
  }, {
8001
8623
  Method: "eth_call";
8002
- Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
8003
- ReturnType: viem.Hex;
8624
+ Parameters: readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride] | readonly [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride, blockOverrides: viem.RpcBlockOverrides];
8625
+ ReturnType: Hex;
8004
8626
  }, {
8005
8627
  Method: "eth_createAccessList";
8006
8628
  Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -8051,11 +8673,11 @@ declare class AcpContractClient {
8051
8673
  }, {
8052
8674
  Method: "eth_getCode";
8053
8675
  Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
8054
- ReturnType: viem.Hex;
8676
+ ReturnType: Hex;
8055
8677
  }, {
8056
8678
  Method: "eth_getFilterChanges";
8057
8679
  Parameters: [filterId: viem.Quantity];
8058
- ReturnType: viem.RpcLog[] | viem.Hex[];
8680
+ ReturnType: viem.RpcLog[] | Hex[];
8059
8681
  }, {
8060
8682
  Method: "eth_getFilterLogs";
8061
8683
  Parameters: [filterId: viem.Quantity];
@@ -8082,7 +8704,7 @@ declare class AcpContractClient {
8082
8704
  }, {
8083
8705
  Method: "eth_getStorageAt";
8084
8706
  Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
8085
- ReturnType: viem.Hex;
8707
+ ReturnType: Hex;
8086
8708
  }, {
8087
8709
  Method: "eth_getTransactionByBlockHashAndIndex";
8088
8710
  Parameters: [hash: viem.Hash, index: viem.Quantity];
@@ -8146,8 +8768,12 @@ declare class AcpContractClient {
8146
8768
  ReturnType: string;
8147
8769
  }, {
8148
8770
  Method: "eth_sendRawTransaction";
8149
- Parameters: [signedTransaction: viem.Hex];
8771
+ Parameters: [signedTransaction: Hex];
8150
8772
  ReturnType: viem.Hash;
8773
+ }, {
8774
+ Method: "eth_sendRawTransactionSync";
8775
+ Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
8776
+ ReturnType: viem.RpcTransactionReceipt;
8151
8777
  }, {
8152
8778
  Method: "eth_simulateV1";
8153
8779
  Parameters: [{
@@ -8163,14 +8789,14 @@ declare class AcpContractClient {
8163
8789
  ReturnType: readonly (viem.RpcBlock & {
8164
8790
  calls: readonly {
8165
8791
  error?: {
8166
- data?: viem.Hex | undefined;
8792
+ data?: Hex | undefined;
8167
8793
  code: number;
8168
8794
  message: string;
8169
8795
  } | undefined;
8170
8796
  logs?: readonly viem.RpcLog[] | undefined;
8171
- gasUsed: viem.Hex;
8172
- returnData: viem.Hex;
8173
- status: viem.Hex;
8797
+ gasUsed: Hex;
8798
+ returnData: Hex;
8799
+ status: Hex;
8174
8800
  }[];
8175
8801
  })[];
8176
8802
  }, {
@@ -8184,12 +8810,12 @@ declare class AcpContractClient {
8184
8810
  checkGasSponsorshipEligibility: <TContext extends _aa_sdk_core.UserOperationContext | undefined = _aa_sdk_core.UserOperationContext | undefined, TEntryPointVersion extends keyof _aa_sdk_core.EntryPointRegistryBase<unknown> = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(args: _aa_sdk_core.SendUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TContext>) => Promise<_aa_sdk_core_dist_types_actions_smartAccount_checkGasSponsorshipEligibility.CheckGasSponsorshipEligibilityResult<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TEntryPointVersion>>;
8185
8811
  signUserOperation: (args: _aa_sdk_core.SignUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, keyof _aa_sdk_core.EntryPointRegistryBase<unknown>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<_aa_sdk_core.UserOperationRequest<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
8186
8812
  dropAndReplaceUserOperation: (args: _aa_sdk_core.DropAndReplaceUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<_aa_sdk_core.SendUserOperationResult<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
8187
- sendTransaction: <TChainOverride extends viem.Chain | undefined = undefined>(args: viem.SendTransactionParameters<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TChainOverride>, overrides?: _aa_sdk_core.UserOperationOverrides<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>> | undefined, context?: _aa_sdk_core.UserOperationContext | undefined) => Promise<viem.Hex>;
8188
- sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<viem.Hex>;
8813
+ sendTransaction: <TChainOverride extends viem.Chain | undefined = undefined>(args: viem.SendTransactionParameters<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, TChainOverride>, overrides?: _aa_sdk_core.UserOperationOverrides<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>> | undefined, context?: _aa_sdk_core.UserOperationContext | undefined) => Promise<Hex>;
8814
+ sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
8189
8815
  sendUserOperation: (args: _aa_sdk_core.SendUserOperationParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined, keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>) => Promise<_aa_sdk_core.SendUserOperationResult<keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>>;
8190
- waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<viem.Hex>;
8191
- upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<viem.Hex>;
8192
- signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
8816
+ waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
8817
+ upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
8818
+ signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
8193
8819
  signTypedData: <const TTypedData extends {
8194
8820
  [x: string]: readonly viem.TypedDataParameter[];
8195
8821
  [x: `string[${string}]`]: undefined;
@@ -8201,17 +8827,17 @@ declare class AcpContractClient {
8201
8827
  [x: `uint8[${string}]`]: undefined;
8202
8828
  [x: `bool[${string}]`]: undefined;
8203
8829
  [x: `bytes4[${string}]`]: undefined;
8830
+ [x: `uint32[${string}]`]: undefined;
8204
8831
  [x: `bytes[${string}]`]: undefined;
8205
- [x: `bytes1[${string}]`]: undefined;
8206
8832
  [x: `bytes6[${string}]`]: undefined;
8207
- [x: `bytes18[${string}]`]: undefined;
8833
+ [x: `bytes10[${string}]`]: undefined;
8834
+ [x: `bytes1[${string}]`]: undefined;
8208
8835
  [x: `bytes2[${string}]`]: undefined;
8209
8836
  [x: `bytes3[${string}]`]: undefined;
8210
8837
  [x: `bytes5[${string}]`]: undefined;
8211
8838
  [x: `bytes7[${string}]`]: undefined;
8212
8839
  [x: `bytes8[${string}]`]: undefined;
8213
8840
  [x: `bytes9[${string}]`]: undefined;
8214
- [x: `bytes10[${string}]`]: undefined;
8215
8841
  [x: `bytes11[${string}]`]: undefined;
8216
8842
  [x: `bytes12[${string}]`]: undefined;
8217
8843
  [x: `bytes13[${string}]`]: undefined;
@@ -8219,6 +8845,7 @@ declare class AcpContractClient {
8219
8845
  [x: `bytes15[${string}]`]: undefined;
8220
8846
  [x: `bytes16[${string}]`]: undefined;
8221
8847
  [x: `bytes17[${string}]`]: undefined;
8848
+ [x: `bytes18[${string}]`]: undefined;
8222
8849
  [x: `bytes19[${string}]`]: undefined;
8223
8850
  [x: `bytes20[${string}]`]: undefined;
8224
8851
  [x: `bytes21[${string}]`]: undefined;
@@ -8233,6 +8860,7 @@ declare class AcpContractClient {
8233
8860
  [x: `bytes30[${string}]`]: undefined;
8234
8861
  [x: `bytes31[${string}]`]: undefined;
8235
8862
  [x: `int[${string}]`]: undefined;
8863
+ [x: `int200[${string}]`]: undefined;
8236
8864
  [x: `int8[${string}]`]: undefined;
8237
8865
  [x: `int16[${string}]`]: undefined;
8238
8866
  [x: `int24[${string}]`]: undefined;
@@ -8257,7 +8885,6 @@ declare class AcpContractClient {
8257
8885
  [x: `int176[${string}]`]: undefined;
8258
8886
  [x: `int184[${string}]`]: undefined;
8259
8887
  [x: `int192[${string}]`]: undefined;
8260
- [x: `int200[${string}]`]: undefined;
8261
8888
  [x: `int208[${string}]`]: undefined;
8262
8889
  [x: `int216[${string}]`]: undefined;
8263
8890
  [x: `int224[${string}]`]: undefined;
@@ -8266,9 +8893,9 @@ declare class AcpContractClient {
8266
8893
  [x: `int248[${string}]`]: undefined;
8267
8894
  [x: `int256[${string}]`]: undefined;
8268
8895
  [x: `uint[${string}]`]: undefined;
8896
+ [x: `uint200[${string}]`]: undefined;
8269
8897
  [x: `uint16[${string}]`]: undefined;
8270
8898
  [x: `uint24[${string}]`]: undefined;
8271
- [x: `uint32[${string}]`]: undefined;
8272
8899
  [x: `uint40[${string}]`]: undefined;
8273
8900
  [x: `uint48[${string}]`]: undefined;
8274
8901
  [x: `uint56[${string}]`]: undefined;
@@ -8288,7 +8915,6 @@ declare class AcpContractClient {
8288
8915
  [x: `uint176[${string}]`]: undefined;
8289
8916
  [x: `uint184[${string}]`]: undefined;
8290
8917
  [x: `uint192[${string}]`]: undefined;
8291
- [x: `uint200[${string}]`]: undefined;
8292
8918
  [x: `uint208[${string}]`]: undefined;
8293
8919
  [x: `uint216[${string}]`]: undefined;
8294
8920
  [x: `uint224[${string}]`]: undefined;
@@ -8303,17 +8929,17 @@ declare class AcpContractClient {
8303
8929
  uint8?: undefined;
8304
8930
  bool?: undefined;
8305
8931
  bytes4?: undefined;
8932
+ uint32?: undefined;
8306
8933
  bytes?: undefined;
8307
- bytes1?: undefined;
8308
8934
  bytes6?: undefined;
8309
- bytes18?: undefined;
8935
+ bytes10?: undefined;
8936
+ bytes1?: undefined;
8310
8937
  bytes2?: undefined;
8311
8938
  bytes3?: undefined;
8312
8939
  bytes5?: undefined;
8313
8940
  bytes7?: undefined;
8314
8941
  bytes8?: undefined;
8315
8942
  bytes9?: undefined;
8316
- bytes10?: undefined;
8317
8943
  bytes11?: undefined;
8318
8944
  bytes12?: undefined;
8319
8945
  bytes13?: undefined;
@@ -8321,6 +8947,7 @@ declare class AcpContractClient {
8321
8947
  bytes15?: undefined;
8322
8948
  bytes16?: undefined;
8323
8949
  bytes17?: undefined;
8950
+ bytes18?: undefined;
8324
8951
  bytes19?: undefined;
8325
8952
  bytes20?: undefined;
8326
8953
  bytes21?: undefined;
@@ -8334,6 +8961,7 @@ declare class AcpContractClient {
8334
8961
  bytes29?: undefined;
8335
8962
  bytes30?: undefined;
8336
8963
  bytes31?: undefined;
8964
+ int200?: undefined;
8337
8965
  int8?: undefined;
8338
8966
  int16?: undefined;
8339
8967
  int24?: undefined;
@@ -8358,7 +8986,6 @@ declare class AcpContractClient {
8358
8986
  int176?: undefined;
8359
8987
  int184?: undefined;
8360
8988
  int192?: undefined;
8361
- int200?: undefined;
8362
8989
  int208?: undefined;
8363
8990
  int216?: undefined;
8364
8991
  int224?: undefined;
@@ -8366,9 +8993,9 @@ declare class AcpContractClient {
8366
8993
  int240?: undefined;
8367
8994
  int248?: undefined;
8368
8995
  int256?: undefined;
8996
+ uint200?: undefined;
8369
8997
  uint16?: undefined;
8370
8998
  uint24?: undefined;
8371
- uint32?: undefined;
8372
8999
  uint40?: undefined;
8373
9000
  uint48?: undefined;
8374
9001
  uint56?: undefined;
@@ -8388,7 +9015,6 @@ declare class AcpContractClient {
8388
9015
  uint176?: undefined;
8389
9016
  uint184?: undefined;
8390
9017
  uint192?: undefined;
8391
- uint200?: undefined;
8392
9018
  uint208?: undefined;
8393
9019
  uint216?: undefined;
8394
9020
  uint224?: undefined;
@@ -8397,287 +9023,69 @@ declare class AcpContractClient {
8397
9023
  uint248?: undefined;
8398
9024
  } | {
8399
9025
  [key: string]: unknown;
8400
- }, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
9026
+ }, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
8401
9027
  } & {
8402
9028
  getAddress: () => Address$1;
8403
9029
  } & _aa_sdk_core.BundlerActions & viem.PublicActions>;
8404
9030
  };
8405
- get walletAddress(): Address$1;
9031
+ get acpX402(): AcpX402;
8406
9032
  private calculateGasFees;
8407
- private handleSendUserOperation;
8408
- private getJobId;
8409
- createJob(providerAddress: string, evaluatorAddress: string, expireAt: Date): Promise<{
8410
- txHash: string;
8411
- jobId: number;
9033
+ handleOperation(operations: OperationPayload[]): Promise<{
9034
+ userOpHash: Address$1;
9035
+ txnHash: Address$1;
8412
9036
  }>;
8413
- approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
8414
- createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address$1, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, expiredAt: Date, token?: Address$1): Promise<`0x${string}`>;
8415
- createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): Promise<Address$1>;
8416
- getMemoId(hash: Address$1): Promise<number>;
8417
- signMemo(memoId: number, isApproved: boolean, reason?: string): Promise<`0x${string}`>;
8418
- setBudget(jobId: number, budgetBaseUnit: bigint): Promise<`0x${string}`>;
8419
- setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
8420
- wrapEth(amountBaseUnit: bigint): Promise<`0x${string}`>;
8421
- }
8422
-
8423
- declare class AcpMemo {
8424
- private acpClient;
8425
- id: number;
8426
- type: MemoType;
8427
- content: string;
8428
- nextPhase: AcpJobPhases;
8429
- status: AcpMemoStatus;
8430
- signedReason?: string | undefined;
8431
- expiry?: Date | undefined;
8432
- payableDetails?: PayableDetails | undefined;
8433
- structuredContent: GenericPayload | undefined;
8434
- constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined);
8435
- get payloadType(): PayloadType | undefined;
8436
- getStructuredContent<T>(): GenericPayload<T> | undefined;
8437
- create(jobId: number, isSecured?: boolean): Promise<`0x${string}`>;
8438
- sign(approved: boolean, reason?: string): Promise<`0x${string}`>;
8439
- }
8440
-
8441
- interface IDeliverable {
8442
- type: string;
8443
- value: string | object;
8444
- }
8445
- declare enum AcpMemoStatus {
8446
- PENDING = "PENDING",
8447
- APPROVED = "APPROVED",
8448
- REJECTED = "REJECTED"
8449
- }
8450
- interface PayableDetails {
8451
- amount: bigint;
8452
- token: Address;
8453
- recipient: Address;
8454
- feeAmount: bigint;
8455
- }
8456
- declare enum AcpAgentSort {
8457
- SUCCESSFUL_JOB_COUNT = "successfulJobCount",
8458
- SUCCESS_RATE = "successRate",
8459
- UNIQUE_BUYER_COUNT = "uniqueBuyerCount",
8460
- MINS_FROM_LAST_ONLINE = "minsFromLastOnlineTime"
8461
- }
8462
- declare enum AcpGraduationStatus {
8463
- ALL = "all",
8464
- GRADUATED = "graduated",
8465
- NOT_GRADUATED = "not_graduated"
8466
- }
8467
- declare enum AcpOnlineStatus {
8468
- ALL = "all",
8469
- ONLINE = "online",
8470
- OFFLINE = "offline"
8471
- }
8472
- interface IAcpClientOptions {
8473
- acpContractClient: AcpContractClient;
8474
- onNewTask?: (job: AcpJob, memoToSign?: AcpMemo) => void;
8475
- onEvaluate?: (job: AcpJob) => void;
8476
- customRpcUrl?: string;
8477
- }
8478
- type AcpAgent = {
8479
- id: number;
8480
- documentId: string;
8481
- name: string;
8482
- description: string;
8483
- walletAddress: Address;
8484
- isVirtualAgent: boolean;
8485
- profilePic: string;
8486
- category: string;
8487
- tokenAddress: string | null;
8488
- ownerAddress: string;
8489
- cluster: string | null;
8490
- twitterHandle: string;
8491
- offerings: {
8492
- name: string;
8493
- price: number;
8494
- priceUsd: number;
8495
- requirementSchema?: Object;
8496
- deliverableSchema?: Object;
8497
- }[];
8498
- symbol: string | null;
8499
- virtualAgentId: string | null;
8500
- metrics?: {
8501
- successfulJobCount: number;
8502
- successRate: number;
8503
- uniqueBuyerCount: number;
8504
- minsFromLastOnline: number;
8505
- isOnline: boolean;
8506
- };
8507
- };
8508
- declare enum PayloadType {
8509
- FUND_RESPONSE = "fund_response",
8510
- OPEN_POSITION = "open_position",
8511
- SWAP_TOKEN = "swap_token",
8512
- RESPONSE_SWAP_TOKEN = "response_swap_token",
8513
- CLOSE_PARTIAL_POSITION = "close_partial_position",
8514
- CLOSE_POSITION = "close_position",
8515
- POSITION_FULFILLED = "position_fulfilled",
8516
- CLOSE_JOB_AND_WITHDRAW = "close_job_and_withdraw",
8517
- UNFULFILLED_POSITION = "unfulfilled_position"
8518
- }
8519
- type GenericPayload<T = any> = {
8520
- type: PayloadType;
8521
- data: T;
8522
- };
8523
- type FundResponsePayload = {
8524
- reportingApiEndpoint: string;
8525
- walletAddress?: Address;
8526
- };
8527
- declare enum PositionDirection {
8528
- LONG = "long",
8529
- SHORT = "short"
9037
+ getJobId(createJobUserOpHash: Address$1, clientAddress: Address$1, providerAddress: Address$1): Promise<number>;
9038
+ createJob(providerAddress: Address$1, evaluatorAddress: Address$1, expireAt: Date, paymentTokenAddress: Address$1, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
9039
+ setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address$1): OperationPayload;
9040
+ createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address$1, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW | MemoType.PAYABLE_REQUEST_SUBSCRIPTION, expiredAt: Date, token?: Address$1, secured?: boolean): OperationPayload;
9041
+ createJobWithAccount(accountId: number, evaluatorAddress: Address$1, budgetBaseUnit: bigint, paymentTokenAddress: Address$1, expiredAt: Date, isX402Job?: boolean): OperationPayload;
9042
+ updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
9043
+ updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
9044
+ generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
9045
+ performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
9046
+ getAssetManager(): Promise<Address$1>;
9047
+ getAcpVersion(): string;
9048
+ signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
9049
+ signMessage(message: string): Promise<Hex>;
9050
+ sendTransaction(request: TransactionRequest): Promise<Hex>;
8530
9051
  }
8531
- type OpenPositionPayload = {
8532
- symbol: string;
8533
- amount: number;
8534
- chain?: string;
8535
- contractAddress?: string;
8536
- direction?: PositionDirection;
8537
- tp: {
8538
- price?: number;
8539
- percentage?: number;
8540
- };
8541
- sl: {
8542
- price?: number;
8543
- percentage?: number;
8544
- };
8545
- };
8546
- type SwapTokenPayload = {
8547
- fromSymbol: string;
8548
- fromContractAddress: Address;
8549
- amount: number;
8550
- toSymbol: string;
8551
- toContractAddress?: Address;
8552
- };
8553
- type ResponseSwapTokenPayload = {
8554
- txnHash?: Address;
8555
- error?: string;
8556
- };
8557
- type ClosePositionPayload = {
8558
- positionId: number;
8559
- amount: number;
8560
- };
8561
- type PositionFulfilledPayload = {
8562
- symbol: string;
8563
- amount: number;
8564
- contractAddress: string;
8565
- type: "TP" | "SL" | "CLOSE";
8566
- pnl: number;
8567
- entryPrice: number;
8568
- exitPrice: number;
8569
- };
8570
- type UnfulfilledPositionPayload = {
8571
- symbol: string;
8572
- amount: number;
8573
- contractAddress: string;
8574
- type: "ERROR" | "PARTIAL";
8575
- reason?: string;
8576
- };
8577
- type RequestClosePositionPayload = {
8578
- positionId: number;
8579
- };
8580
9052
 
8581
- declare class AcpJob {
8582
- private acpClient;
8583
- id: number;
8584
- clientAddress: Address;
8585
- providerAddress: Address;
8586
- evaluatorAddress: Address;
8587
- price: number;
8588
- priceTokenAddress: Address;
8589
- memos: AcpMemo[];
8590
- phase: AcpJobPhases;
8591
- context: Record<string, any>;
8592
- private baseFare;
8593
- constructor(acpClient: AcpClient, id: number, clientAddress: Address, providerAddress: Address, evaluatorAddress: Address, price: number, priceTokenAddress: Address, memos: AcpMemo[], phase: AcpJobPhases, context: Record<string, any>);
8594
- get serviceRequirement(): Record<string, any> | string | undefined;
8595
- get serviceName(): string | undefined;
8596
- get deliverable(): string | undefined;
8597
- get providerAgent(): Promise<AcpAgent | undefined>;
8598
- get clientAgent(): Promise<AcpAgent | undefined>;
8599
- get evaluatorAgent(): Promise<AcpAgent | undefined>;
8600
- get latestMemo(): AcpMemo | undefined;
8601
- pay(amount: number, reason?: string): Promise<`0x${string}`>;
8602
- respond<T>(accept: boolean, payload?: GenericPayload<T>, reason?: string): Promise<`0x${string}` | undefined>;
8603
- deliver(deliverable: IDeliverable): Promise<`0x${string}`>;
8604
- evaluate(accept: boolean, reason?: string): Promise<`0x${string}`>;
8605
- openPosition(payload: OpenPositionPayload[], feeAmount: number, expiredAt?: Date, // 3 minutes
8606
- walletAddress?: Address): Promise<`0x${string}`>;
8607
- swapToken(payload: SwapTokenPayload, decimals: number, feeAmount: number, walletAddress?: Address): Promise<`0x${string}`>;
8608
- responseSwapToken(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
8609
- transferFunds<T>(payload: GenericPayload<T>, fareAmount: IFareAmount, walletAddress?: Address, expiredAt?: Date): Promise<`0x${string}`>;
8610
- responseOpenPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
8611
- closePartialPosition(payload: ClosePositionPayload, expireAt?: Date): Promise<`0x${string}`>;
8612
- responseClosePartialPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
8613
- requestClosePosition(payload: RequestClosePositionPayload): Promise<`0x${string}`>;
8614
- responseRequestClosePosition(memoId: number, accept: boolean, payload: ClosePositionPayload, reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
8615
- confirmClosePosition(memoId: number, accept: boolean, reason?: string): Promise<void>;
8616
- positionFulfilled(payload: PositionFulfilledPayload, expiredAt?: Date): Promise<`0x${string}`>;
8617
- unfulfilledPosition(payload: UnfulfilledPositionPayload, expiredAt?: Date): Promise<`0x${string}`>;
8618
- responseUnfulfilledPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
8619
- responsePositionFulfilled(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
8620
- closeJob(message?: string): Promise<`0x${string}`>;
8621
- responseCloseJob(memoId: number, accept: boolean, fulfilledPositions: PositionFulfilledPayload[], reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
8622
- confirmJobClosure(memoId: number, accept: boolean, reason?: string): Promise<void>;
8623
- }
9053
+ declare function preparePayload(payload: string | object): string;
8624
9054
 
8625
- declare class AcpJobOffering {
8626
- private readonly acpClient;
8627
- providerAddress: Address;
8628
- name: string;
8629
- price: number;
8630
- requirementSchema?: Object | undefined;
8631
- private ajv;
8632
- constructor(acpClient: AcpClient, providerAddress: Address, name: string, price: number, requirementSchema?: Object | undefined);
8633
- initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
9055
+ declare class AcpError extends Error {
9056
+ constructor(message: string, originalError?: unknown);
8634
9057
  }
8635
9058
 
8636
- interface IAcpBrowseAgentsOptions {
8637
- cluster?: string;
8638
- sort_by?: AcpAgentSort[];
8639
- top_k?: number;
8640
- graduationStatus?: AcpGraduationStatus;
8641
- onlineStatus?: AcpOnlineStatus;
8642
- }
8643
- declare class AcpClient {
8644
- private acpUrl;
8645
- acpContractClient: AcpContractClient;
8646
- private onNewTask?;
8647
- private onEvaluate?;
8648
- constructor(options: IAcpClientOptions);
8649
- private defaultOnEvaluate;
8650
- init(): Promise<void>;
8651
- browseAgents(keyword: string, options: IAcpBrowseAgentsOptions): Promise<{
8652
- id: number;
8653
- name: string;
8654
- description: string;
8655
- offerings: AcpJobOffering[];
8656
- twitterHandle: string;
8657
- walletAddress: `0x${string}`;
8658
- metrics: {
8659
- successfulJobCount: number;
8660
- successRate: number;
8661
- uniqueBuyerCount: number;
8662
- minsFromLastOnline: number;
8663
- isOnline: boolean;
8664
- } | undefined;
8665
- }[]>;
8666
- initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: IFareAmount, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
8667
- respondJob(jobId: number, memoId: number, accept: boolean, content?: string, reason?: string): Promise<`0x${string}` | undefined>;
8668
- payJob(jobId: number, amountBaseUnit: bigint, memoId: number, reason?: string): Promise<`0x${string}`>;
8669
- requestFunds<T>(jobId: number, transferFareAmount: IFareAmount, recipient: Address, feeFareAmount: IFareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
8670
- responseFundsRequest(memoId: number, accept: boolean, amountBaseUnit: bigint, reason?: string): Promise<`0x${string}`>;
8671
- transferFunds<T>(jobId: number, transferFareAmount: IFareAmount, recipient: Address, feeFareAmount: IFareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
8672
- sendMessage<T>(jobId: number, message: GenericPayload<T>, nextPhase: AcpJobPhases): Promise<`0x${string}`>;
8673
- responseFundsTransfer(memoId: number, accept: boolean, reason?: string): Promise<`0x${string}`>;
8674
- deliverJob(jobId: number, deliverable: IDeliverable): Promise<`0x${string}`>;
8675
- getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
8676
- getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
8677
- getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
8678
- getJobById(jobId: number): Promise<AcpJob | undefined>;
8679
- getMemoById(jobId: number, memoId: number): Promise<AcpMemo | undefined>;
8680
- getAgent(walletAddress: Address): Promise<AcpAgent | undefined>;
9059
+ declare class AcpContractClientV2 extends BaseAcpContractClient {
9060
+ private jobManagerAddress;
9061
+ private memoManagerAddress;
9062
+ private accountManagerAddress;
9063
+ private builderCode?;
9064
+ private RETRY_CONFIG;
9065
+ private _sessionKeyClient;
9066
+ private _sessionKeyClients;
9067
+ private _acpX402;
9068
+ constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig, builderCode?: string | undefined);
9069
+ static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig, builderCode?: string): Promise<AcpContractClientV2>;
9070
+ init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
9071
+ getRandomNonce(bits?: number): bigint;
9072
+ private get sessionKeyClient();
9073
+ get acpX402(): AcpX402;
9074
+ handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
9075
+ userOpHash: Address$1;
9076
+ txnHash: Address$1;
9077
+ }>;
9078
+ getJobId(createJobUserOpHash: Address$1, clientAddress: Address$1, providerAddress: Address$1): Promise<number>;
9079
+ getAccountIdFromUserOpHash(userOpHash: Address$1): Promise<number | null>;
9080
+ updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
9081
+ generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
9082
+ performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
9083
+ getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
9084
+ getAssetManager(): Promise<Address$1>;
9085
+ getAcpVersion(): string;
9086
+ signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
9087
+ signMessage(message: string): Promise<Hex>;
9088
+ sendTransaction(request: TransactionRequest): Promise<Hex>;
8681
9089
  }
8682
9090
 
8683
- export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractConfig, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, type ClosePositionPayload, Fare, FareAmount, FareBigInt, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, PositionDirection, type RequestClosePositionPayload, type ResponseSwapTokenPayload, type SwapTokenPayload, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default, ethFare, wethFare };
9091
+ export { ACP_ABI, AcpAccount, AcpAgent, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoState, AcpMemoStatus, AcpOnlineStatus, BaseAcpContractClient, type DeliverablePayload, Fare, FareAmount, FareBigInt, type IAcpAccount, type ISubscriptionCheckResponse, type ISubscriptionTier, MemoType, PriceType, type SubscriptionPaymentRequirementResult, baseAcpConfig, baseAcpConfigV2, baseAcpX402Config, baseAcpX402ConfigV2, baseSepoliaAcpConfig, baseSepoliaAcpConfigV2, baseSepoliaAcpX402ConfigV2, AcpClient as default, ethFare, preparePayload, wethFare };