@virtuals-protocol/acp-node 0.3.0-beta.23 → 0.3.0-beta.25
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/README.md +2 -2
- package/dist/index.d.mts +288 -391
- package/dist/index.d.ts +288 -391
- package/dist/index.js +487 -1940
- package/dist/index.mjs +485 -1945
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
|
-
import { Address, Chain, createPublicClient } from 'viem';
|
|
2
|
+
import { Address, Chain, createPublicClient, SignTypedDataParameters, Hex } from 'viem';
|
|
3
3
|
import * as _aa_sdk_core from '@aa-sdk/core';
|
|
4
4
|
import { Address as Address$1, SmartAccountSigner } from '@aa-sdk/core';
|
|
5
|
-
import { baseSepolia, base
|
|
5
|
+
import { baseSepolia, base } from '@account-kit/infra';
|
|
6
6
|
import * as util from 'util';
|
|
7
7
|
import util__default from 'util';
|
|
8
8
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
@@ -98,10 +98,9 @@ declare const ACP_ABI: ({
|
|
|
98
98
|
declare class Fare {
|
|
99
99
|
contractAddress: Address;
|
|
100
100
|
decimals: number;
|
|
101
|
-
|
|
102
|
-
constructor(contractAddress: Address, decimals: number, chainId?: number | undefined);
|
|
101
|
+
constructor(contractAddress: Address, decimals: number);
|
|
103
102
|
formatAmount(amount: number): bigint;
|
|
104
|
-
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig
|
|
103
|
+
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig): Promise<Fare>;
|
|
105
104
|
}
|
|
106
105
|
declare abstract class FareAmountBase {
|
|
107
106
|
amount: bigint;
|
|
@@ -190,6 +189,47 @@ declare class AcpAccount {
|
|
|
190
189
|
updateMetadata(metadata: Record<string, any>): Promise<OperationPayload>;
|
|
191
190
|
}
|
|
192
191
|
|
|
192
|
+
declare enum PriceType {
|
|
193
|
+
FIXED = "fixed",
|
|
194
|
+
PERCENTAGE = "percentage"
|
|
195
|
+
}
|
|
196
|
+
declare class AcpJobOffering {
|
|
197
|
+
private readonly acpClient;
|
|
198
|
+
private readonly acpContractClient;
|
|
199
|
+
providerAddress: Address;
|
|
200
|
+
name: string;
|
|
201
|
+
price: number;
|
|
202
|
+
priceType: PriceType;
|
|
203
|
+
requirement?: (Object | string) | undefined;
|
|
204
|
+
private ajv;
|
|
205
|
+
constructor(acpClient: AcpClient, acpContractClient: BaseAcpContractClient, providerAddress: Address, name: string, price: number, priceType?: PriceType, requirement?: (Object | string) | undefined);
|
|
206
|
+
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
type AcpAgentArgs = {
|
|
210
|
+
id: string | number;
|
|
211
|
+
name: string;
|
|
212
|
+
contractAddress: Address;
|
|
213
|
+
walletAddress: Address;
|
|
214
|
+
jobOfferings: AcpJobOffering[];
|
|
215
|
+
description?: string;
|
|
216
|
+
twitterHandle?: string;
|
|
217
|
+
metrics?: unknown;
|
|
218
|
+
resources?: unknown;
|
|
219
|
+
};
|
|
220
|
+
declare class AcpAgent {
|
|
221
|
+
readonly id: string;
|
|
222
|
+
readonly name: string;
|
|
223
|
+
readonly contractAddress: Address;
|
|
224
|
+
readonly walletAddress: Address;
|
|
225
|
+
readonly jobOfferings: readonly AcpJobOffering[];
|
|
226
|
+
readonly description?: string;
|
|
227
|
+
readonly twitterHandle?: string;
|
|
228
|
+
readonly metrics?: unknown;
|
|
229
|
+
readonly resources?: unknown;
|
|
230
|
+
constructor(args: AcpAgentArgs);
|
|
231
|
+
}
|
|
232
|
+
|
|
193
233
|
declare class AcpMemo {
|
|
194
234
|
private contractClient;
|
|
195
235
|
id: number;
|
|
@@ -203,11 +243,7 @@ declare class AcpMemo {
|
|
|
203
243
|
payableDetails?: PayableDetails | undefined;
|
|
204
244
|
txHash?: `0x${string}` | undefined;
|
|
205
245
|
signedTxHash?: `0x${string}` | undefined;
|
|
206
|
-
|
|
207
|
-
structuredContent: GenericPayload | undefined;
|
|
208
|
-
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);
|
|
209
|
-
get payloadType(): PayloadType | undefined;
|
|
210
|
-
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
246
|
+
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);
|
|
211
247
|
create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
|
|
212
248
|
sign(approved: boolean, reason?: string): Promise<{
|
|
213
249
|
userOpHash: Address;
|
|
@@ -228,23 +264,6 @@ declare class AcpMemo {
|
|
|
228
264
|
};
|
|
229
265
|
}
|
|
230
266
|
|
|
231
|
-
declare enum PriceType {
|
|
232
|
-
FIXED = "fixed",
|
|
233
|
-
PERCENTAGE = "percentage"
|
|
234
|
-
}
|
|
235
|
-
declare class AcpJobOffering {
|
|
236
|
-
private readonly acpClient;
|
|
237
|
-
private readonly acpContractClient;
|
|
238
|
-
providerAddress: Address;
|
|
239
|
-
name: string;
|
|
240
|
-
price: number;
|
|
241
|
-
priceType: PriceType;
|
|
242
|
-
requirement?: (Object | string) | undefined;
|
|
243
|
-
private ajv;
|
|
244
|
-
constructor(acpClient: AcpClient, acpContractClient: BaseAcpContractClient, providerAddress: Address, name: string, price: number, priceType?: PriceType, requirement?: (Object | string) | undefined);
|
|
245
|
-
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
267
|
declare class AcpJob {
|
|
249
268
|
private acpClient;
|
|
250
269
|
id: number;
|
|
@@ -268,16 +287,16 @@ declare class AcpJob {
|
|
|
268
287
|
get baseFare(): Fare;
|
|
269
288
|
get deliverable(): string | undefined;
|
|
270
289
|
get rejectionReason(): string | undefined;
|
|
271
|
-
get providerAgent(): Promise<AcpAgent |
|
|
272
|
-
get clientAgent(): Promise<AcpAgent |
|
|
273
|
-
get evaluatorAgent(): Promise<AcpAgent |
|
|
290
|
+
get providerAgent(): Promise<AcpAgent | null>;
|
|
291
|
+
get clientAgent(): Promise<AcpAgent | null>;
|
|
292
|
+
get evaluatorAgent(): Promise<AcpAgent | null>;
|
|
274
293
|
get account(): Promise<AcpAccount | null>;
|
|
275
294
|
get latestMemo(): AcpMemo | undefined;
|
|
276
295
|
createRequirement(content: string): Promise<{
|
|
277
296
|
userOpHash: Address;
|
|
278
297
|
txnHash: Address;
|
|
279
298
|
}>;
|
|
280
|
-
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW
|
|
299
|
+
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, amount: FareAmountBase, recipient: Address, expiredAt?: Date): Promise<{
|
|
281
300
|
userOpHash: Address;
|
|
282
301
|
txnHash: Address;
|
|
283
302
|
}>;
|
|
@@ -305,7 +324,7 @@ declare class AcpJob {
|
|
|
305
324
|
userOpHash: Address;
|
|
306
325
|
txnHash: Address;
|
|
307
326
|
}>;
|
|
308
|
-
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<
|
|
327
|
+
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
|
|
309
328
|
userOpHash: Address;
|
|
310
329
|
txnHash: Address;
|
|
311
330
|
}>;
|
|
@@ -319,7 +338,6 @@ declare class AcpJob {
|
|
|
319
338
|
txnHash: Address;
|
|
320
339
|
}>;
|
|
321
340
|
private performX402Payment;
|
|
322
|
-
deliverCrossChainPayable(recipient: Address, amount: FareAmountBase, isRequest?: boolean): Promise<void>;
|
|
323
341
|
[util.inspect.custom](): {
|
|
324
342
|
id: number;
|
|
325
343
|
clientAddress: `0x${string}`;
|
|
@@ -338,28 +356,16 @@ declare class AcpJob {
|
|
|
338
356
|
}
|
|
339
357
|
|
|
340
358
|
type DeliverablePayload = string | Record<string, unknown>;
|
|
341
|
-
/** @deprecated Use DeliverablePayload instead */
|
|
342
|
-
type IDeliverable = DeliverablePayload;
|
|
343
359
|
declare enum AcpMemoStatus {
|
|
344
360
|
PENDING = "PENDING",
|
|
345
361
|
APPROVED = "APPROVED",
|
|
346
362
|
REJECTED = "REJECTED"
|
|
347
363
|
}
|
|
348
|
-
declare enum AcpMemoState {
|
|
349
|
-
NONE = 0,
|
|
350
|
-
PENDING = 1,
|
|
351
|
-
IN_PROGRESS = 2,
|
|
352
|
-
READY = 3,
|
|
353
|
-
COMPLETED = 4,
|
|
354
|
-
REJECTED = 5
|
|
355
|
-
}
|
|
356
364
|
interface PayableDetails {
|
|
357
365
|
amount: bigint;
|
|
358
366
|
token: Address;
|
|
359
367
|
recipient: Address;
|
|
360
368
|
feeAmount: bigint;
|
|
361
|
-
lzSrcEid?: number;
|
|
362
|
-
lzDstEid?: number;
|
|
363
369
|
}
|
|
364
370
|
declare enum AcpAgentSort {
|
|
365
371
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
@@ -388,102 +394,6 @@ interface IAcpClientOptions {
|
|
|
388
394
|
customRpcUrl?: string;
|
|
389
395
|
skipSocketConnection?: boolean;
|
|
390
396
|
}
|
|
391
|
-
type AcpAgent = {
|
|
392
|
-
id: number;
|
|
393
|
-
documentId: string;
|
|
394
|
-
name: string;
|
|
395
|
-
description: string;
|
|
396
|
-
walletAddress: Address;
|
|
397
|
-
isVirtualAgent: boolean;
|
|
398
|
-
profilePic: string;
|
|
399
|
-
category: string;
|
|
400
|
-
tokenAddress: string | null;
|
|
401
|
-
ownerAddress: string;
|
|
402
|
-
cluster: string | null;
|
|
403
|
-
twitterHandle: string;
|
|
404
|
-
jobs: {
|
|
405
|
-
name: string;
|
|
406
|
-
priceV2: {
|
|
407
|
-
type: PriceType;
|
|
408
|
-
value: number;
|
|
409
|
-
};
|
|
410
|
-
requirement?: Object | string;
|
|
411
|
-
deliverable?: Object | string;
|
|
412
|
-
}[];
|
|
413
|
-
resources: {
|
|
414
|
-
name: string;
|
|
415
|
-
description: string;
|
|
416
|
-
url: string;
|
|
417
|
-
parameters?: Object;
|
|
418
|
-
id: number;
|
|
419
|
-
}[];
|
|
420
|
-
symbol: string | null;
|
|
421
|
-
virtualAgentId: string | null;
|
|
422
|
-
metrics?: {
|
|
423
|
-
successfulJobCount: number;
|
|
424
|
-
successRate: number;
|
|
425
|
-
uniqueBuyerCount: number;
|
|
426
|
-
minsFromLastOnline: number;
|
|
427
|
-
isOnline: boolean;
|
|
428
|
-
};
|
|
429
|
-
contractAddress: Address;
|
|
430
|
-
};
|
|
431
|
-
declare enum PayloadType {
|
|
432
|
-
FUND_RESPONSE = "fund_response",
|
|
433
|
-
OPEN_POSITION = "open_position",
|
|
434
|
-
SWAP_TOKEN = "swap_token",
|
|
435
|
-
RESPONSE_SWAP_TOKEN = "response_swap_token",
|
|
436
|
-
CLOSE_PARTIAL_POSITION = "close_partial_position",
|
|
437
|
-
CLOSE_POSITION = "close_position",
|
|
438
|
-
POSITION_FULFILLED = "position_fulfilled",
|
|
439
|
-
CLOSE_JOB_AND_WITHDRAW = "close_job_and_withdraw",
|
|
440
|
-
UNFULFILLED_POSITION = "unfulfilled_position"
|
|
441
|
-
}
|
|
442
|
-
type GenericPayload<T = any> = {
|
|
443
|
-
type: PayloadType;
|
|
444
|
-
data: T;
|
|
445
|
-
};
|
|
446
|
-
type FundResponsePayload = {
|
|
447
|
-
reportingApiEndpoint: string;
|
|
448
|
-
walletAddress?: Address;
|
|
449
|
-
};
|
|
450
|
-
declare enum PositionDirection {
|
|
451
|
-
LONG = "long",
|
|
452
|
-
SHORT = "short"
|
|
453
|
-
}
|
|
454
|
-
type OpenPositionPayload = {
|
|
455
|
-
symbol: string;
|
|
456
|
-
amount: number;
|
|
457
|
-
chain?: string;
|
|
458
|
-
contractAddress?: string;
|
|
459
|
-
direction?: PositionDirection;
|
|
460
|
-
tp: {
|
|
461
|
-
price?: number;
|
|
462
|
-
percentage?: number;
|
|
463
|
-
};
|
|
464
|
-
sl: {
|
|
465
|
-
price?: number;
|
|
466
|
-
percentage?: number;
|
|
467
|
-
};
|
|
468
|
-
};
|
|
469
|
-
type SwapTokenPayload = {
|
|
470
|
-
fromSymbol: string;
|
|
471
|
-
fromContractAddress: Address;
|
|
472
|
-
amount: number;
|
|
473
|
-
toSymbol: string;
|
|
474
|
-
toContractAddress?: Address;
|
|
475
|
-
};
|
|
476
|
-
type ResponseSwapTokenPayload = {
|
|
477
|
-
txnHash?: Address;
|
|
478
|
-
error?: string;
|
|
479
|
-
};
|
|
480
|
-
type ClosePositionPayload = {
|
|
481
|
-
positionId: number;
|
|
482
|
-
amount: number;
|
|
483
|
-
};
|
|
484
|
-
type RequestClosePositionPayload = {
|
|
485
|
-
positionId: number;
|
|
486
|
-
};
|
|
487
397
|
type X402Config = {
|
|
488
398
|
url: string;
|
|
489
399
|
};
|
|
@@ -563,12 +473,12 @@ type X402PaymentResponse = {
|
|
|
563
473
|
isPaymentRequired: boolean;
|
|
564
474
|
data: X402PayableRequirements;
|
|
565
475
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
rpcUrl?: string;
|
|
476
|
+
type IAcpMemoContent = {
|
|
477
|
+
id: number;
|
|
478
|
+
content: string;
|
|
479
|
+
url: string;
|
|
571
480
|
};
|
|
481
|
+
|
|
572
482
|
declare class AcpContractConfig {
|
|
573
483
|
chain: typeof baseSepolia | typeof base;
|
|
574
484
|
contractAddress: Address$1;
|
|
@@ -584,16 +494,14 @@ declare class AcpContractConfig {
|
|
|
584
494
|
multiplier: number;
|
|
585
495
|
maxRetries: number;
|
|
586
496
|
} | undefined;
|
|
587
|
-
chains: ChainConfig[];
|
|
588
497
|
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?: {
|
|
589
498
|
intervalMs: number;
|
|
590
499
|
multiplier: number;
|
|
591
500
|
maxRetries: number;
|
|
592
|
-
} | undefined
|
|
501
|
+
} | undefined);
|
|
593
502
|
}
|
|
594
503
|
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
595
504
|
declare const baseSepoliaAcpConfigV2: AcpContractConfig;
|
|
596
|
-
declare const baseSepoliaAcpX402ConfigV2: AcpContractConfig;
|
|
597
505
|
declare const baseAcpConfig: AcpContractConfig;
|
|
598
506
|
declare const baseAcpX402Config: AcpContractConfig;
|
|
599
507
|
declare const baseAcpConfigV2: AcpContractConfig;
|
|
@@ -640,10 +548,9 @@ declare abstract class BaseAcpContractClient {
|
|
|
640
548
|
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
641
549
|
jobCreatedSignature: string;
|
|
642
550
|
publicClient: ReturnType<typeof createPublicClient>;
|
|
643
|
-
publicClients: Record<number, ReturnType<typeof createPublicClient>>;
|
|
644
551
|
constructor(agentWalletAddress: Address, config?: AcpContractConfig);
|
|
645
552
|
protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
|
|
646
|
-
abstract handleOperation(operations: OperationPayload[]
|
|
553
|
+
abstract handleOperation(operations: OperationPayload[]): Promise<{
|
|
647
554
|
userOpHash: Address;
|
|
648
555
|
txnHash: Address;
|
|
649
556
|
}>;
|
|
@@ -651,11 +558,9 @@ declare abstract class BaseAcpContractClient {
|
|
|
651
558
|
get walletAddress(): `0x${string}`;
|
|
652
559
|
createJobWithAccount(accountId: number, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date, isX402Job?: boolean): OperationPayload;
|
|
653
560
|
createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
|
|
654
|
-
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address
|
|
561
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload;
|
|
655
562
|
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, expiredAt: Date, token?: Address, secured?: boolean): OperationPayload;
|
|
656
|
-
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;
|
|
657
563
|
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): OperationPayload;
|
|
658
|
-
createMemoWithMetadata(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases, metadata: string): OperationPayload;
|
|
659
564
|
signMemo(memoId: number, isApproved: boolean, reason?: string): OperationPayload;
|
|
660
565
|
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload | undefined;
|
|
661
566
|
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
@@ -665,17 +570,17 @@ declare abstract class BaseAcpContractClient {
|
|
|
665
570
|
abstract generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
666
571
|
abstract performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
667
572
|
submitTransferWithAuthorization(from: Address, to: Address, value: bigint, validAfter: bigint, validBefore: bigint, nonce: string, signature: string): Promise<OperationPayload[]>;
|
|
668
|
-
getERC20Balance(chainId: number, tokenAddress: Address, walletAddress: Address): Promise<bigint>;
|
|
669
|
-
getERC20Allowance(chainId: number, tokenAddress: Address, walletAddress: Address, spenderAddress: Address): Promise<bigint>;
|
|
670
|
-
getERC20Symbol(chainId: number, tokenAddress: Address): Promise<string>;
|
|
671
|
-
abstract getAssetManager(): Promise<Address>;
|
|
672
573
|
abstract getAcpVersion(): string;
|
|
574
|
+
abstract signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
|
|
673
575
|
}
|
|
674
576
|
|
|
577
|
+
interface IAcpGetAgentOptions {
|
|
578
|
+
showHiddenOfferings?: boolean;
|
|
579
|
+
}
|
|
675
580
|
interface IAcpBrowseAgentsOptions {
|
|
676
581
|
cluster?: string;
|
|
677
|
-
|
|
678
|
-
|
|
582
|
+
sortBy?: AcpAgentSort[];
|
|
583
|
+
topK?: number;
|
|
679
584
|
graduationStatus?: AcpGraduationStatus;
|
|
680
585
|
onlineStatus?: AcpOnlineStatus;
|
|
681
586
|
showHiddenOfferings?: boolean;
|
|
@@ -684,48 +589,41 @@ declare class AcpClient {
|
|
|
684
589
|
private contractClients;
|
|
685
590
|
private onNewTask?;
|
|
686
591
|
private onEvaluate?;
|
|
592
|
+
private acpClient;
|
|
593
|
+
private noAuthAcpClient;
|
|
594
|
+
private accessToken;
|
|
595
|
+
private accessTokenInflight;
|
|
687
596
|
constructor(options: IAcpClientOptions);
|
|
597
|
+
private getAccessToken;
|
|
598
|
+
private refreshToken;
|
|
599
|
+
private getAuthChallenge;
|
|
600
|
+
private verifyAuthChallenge;
|
|
688
601
|
contractClientByAddress(address: Address | undefined): BaseAcpContractClient;
|
|
689
602
|
get acpContractClient(): BaseAcpContractClient;
|
|
690
603
|
get acpUrl(): string;
|
|
691
604
|
private defaultOnEvaluate;
|
|
692
605
|
get walletAddress(): `0x${string}`;
|
|
693
606
|
init(skipSocketConnection?: boolean): Promise<void>;
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
twitterHandle: string;
|
|
701
|
-
walletAddress: `0x${string}`;
|
|
702
|
-
metrics: {
|
|
703
|
-
successfulJobCount: number;
|
|
704
|
-
successRate: number;
|
|
705
|
-
uniqueBuyerCount: number;
|
|
706
|
-
minsFromLastOnline: number;
|
|
707
|
-
isOnline: boolean;
|
|
708
|
-
} | undefined;
|
|
709
|
-
resources: {
|
|
710
|
-
name: string;
|
|
711
|
-
description: string;
|
|
712
|
-
url: string;
|
|
713
|
-
parameters?: Object;
|
|
714
|
-
id: number;
|
|
715
|
-
}[];
|
|
716
|
-
}[]>;
|
|
607
|
+
private _fetch;
|
|
608
|
+
private _hydrateMemo;
|
|
609
|
+
private _hydrateJob;
|
|
610
|
+
private _hydrateJobs;
|
|
611
|
+
private _hydrateAgent;
|
|
612
|
+
browseAgents(keyword: string, options?: IAcpBrowseAgentsOptions): Promise<AcpAgent[] | undefined>;
|
|
717
613
|
initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: FareAmountBase, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
718
614
|
getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
719
615
|
getPendingMemoJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
720
616
|
getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
721
617
|
getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
getMemoById(jobId: number, memoId: number): Promise<AcpMemo | undefined>;
|
|
726
|
-
getAgent(walletAddress: Address): Promise<AcpAgent | undefined>;
|
|
618
|
+
getJobById(jobId: number): Promise<AcpJob | null>;
|
|
619
|
+
getMemoById(jobId: number, memoId: number): Promise<AcpMemo | null>;
|
|
620
|
+
getAgent(walletAddress: Address, options?: IAcpGetAgentOptions): Promise<AcpAgent | null>;
|
|
727
621
|
getAccountByJobId(jobId: number, acpContractClient?: BaseAcpContractClient): Promise<AcpAccount | null>;
|
|
728
622
|
getByClientAndProvider(clientAddress: Address, providerAddress: Address, acpContractClient?: BaseAcpContractClient): Promise<AcpAccount | null>;
|
|
623
|
+
createMemoContent(jobId: number, content: string): Promise<IAcpMemoContent>;
|
|
624
|
+
getTokenBalances(): Promise<{
|
|
625
|
+
tokens: Record<string, any>;
|
|
626
|
+
} | undefined>;
|
|
729
627
|
}
|
|
730
628
|
|
|
731
629
|
declare class AcpX402 {
|
|
@@ -819,7 +717,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
819
717
|
}, {
|
|
820
718
|
Method: "eth_call";
|
|
821
719
|
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];
|
|
822
|
-
ReturnType:
|
|
720
|
+
ReturnType: Hex;
|
|
823
721
|
}, {
|
|
824
722
|
Method: "eth_createAccessList";
|
|
825
723
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -870,11 +768,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
870
768
|
}, {
|
|
871
769
|
Method: "eth_getCode";
|
|
872
770
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
873
|
-
ReturnType:
|
|
771
|
+
ReturnType: Hex;
|
|
874
772
|
}, {
|
|
875
773
|
Method: "eth_getFilterChanges";
|
|
876
774
|
Parameters: [filterId: viem.Quantity];
|
|
877
|
-
ReturnType: viem.RpcLog[] |
|
|
775
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
878
776
|
}, {
|
|
879
777
|
Method: "eth_getFilterLogs";
|
|
880
778
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -901,7 +799,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
901
799
|
}, {
|
|
902
800
|
Method: "eth_getStorageAt";
|
|
903
801
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
904
|
-
ReturnType:
|
|
802
|
+
ReturnType: Hex;
|
|
905
803
|
}, {
|
|
906
804
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
907
805
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -965,11 +863,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
965
863
|
ReturnType: string;
|
|
966
864
|
}, {
|
|
967
865
|
Method: "eth_sendRawTransaction";
|
|
968
|
-
Parameters: [signedTransaction:
|
|
866
|
+
Parameters: [signedTransaction: Hex];
|
|
969
867
|
ReturnType: viem.Hash;
|
|
970
868
|
}, {
|
|
971
869
|
Method: "eth_sendRawTransactionSync";
|
|
972
|
-
Parameters: [signedTransaction:
|
|
870
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
973
871
|
ReturnType: viem.RpcTransactionReceipt;
|
|
974
872
|
}, {
|
|
975
873
|
Method: "eth_simulateV1";
|
|
@@ -986,14 +884,14 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
986
884
|
ReturnType: readonly (viem.RpcBlock & {
|
|
987
885
|
calls: readonly {
|
|
988
886
|
error?: {
|
|
989
|
-
data?:
|
|
887
|
+
data?: Hex | undefined;
|
|
990
888
|
code: number;
|
|
991
889
|
message: string;
|
|
992
890
|
} | undefined;
|
|
993
891
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
994
|
-
gasUsed:
|
|
995
|
-
returnData:
|
|
996
|
-
status:
|
|
892
|
+
gasUsed: Hex;
|
|
893
|
+
returnData: Hex;
|
|
894
|
+
status: Hex;
|
|
997
895
|
}[];
|
|
998
896
|
})[];
|
|
999
897
|
}, {
|
|
@@ -1010,12 +908,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1010
908
|
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>>;
|
|
1011
909
|
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>>>;
|
|
1012
910
|
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>>>;
|
|
1013
|
-
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<
|
|
1014
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
911
|
+
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>;
|
|
912
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
1015
913
|
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>>>;
|
|
1016
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
1017
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
1018
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
914
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
915
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
916
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
1019
917
|
signTypedData: <const TTypedData extends {
|
|
1020
918
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
1021
919
|
[x: `string[${string}]`]: undefined;
|
|
@@ -1027,7 +925,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1027
925
|
[x: `uint8[${string}]`]: undefined;
|
|
1028
926
|
[x: `bool[${string}]`]: undefined;
|
|
1029
927
|
[x: `bytes4[${string}]`]: undefined;
|
|
1030
|
-
[x: `uint32[${string}]`]: undefined;
|
|
1031
928
|
[x: `bytes[${string}]`]: undefined;
|
|
1032
929
|
[x: `bytes6[${string}]`]: undefined;
|
|
1033
930
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -1095,6 +992,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1095
992
|
[x: `uint[${string}]`]: undefined;
|
|
1096
993
|
[x: `uint16[${string}]`]: undefined;
|
|
1097
994
|
[x: `uint24[${string}]`]: undefined;
|
|
995
|
+
[x: `uint32[${string}]`]: undefined;
|
|
1098
996
|
[x: `uint40[${string}]`]: undefined;
|
|
1099
997
|
[x: `uint48[${string}]`]: undefined;
|
|
1100
998
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -1129,7 +1027,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1129
1027
|
uint8?: undefined;
|
|
1130
1028
|
bool?: undefined;
|
|
1131
1029
|
bytes4?: undefined;
|
|
1132
|
-
uint32?: undefined;
|
|
1133
1030
|
bytes?: undefined;
|
|
1134
1031
|
bytes6?: undefined;
|
|
1135
1032
|
bytes10?: undefined;
|
|
@@ -1195,6 +1092,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1195
1092
|
int256?: undefined;
|
|
1196
1093
|
uint16?: undefined;
|
|
1197
1094
|
uint24?: undefined;
|
|
1095
|
+
uint32?: undefined;
|
|
1198
1096
|
uint40?: undefined;
|
|
1199
1097
|
uint48?: undefined;
|
|
1200
1098
|
uint56?: undefined;
|
|
@@ -1223,7 +1121,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1223
1121
|
uint248?: undefined;
|
|
1224
1122
|
} | {
|
|
1225
1123
|
[key: string]: unknown;
|
|
1226
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
1124
|
+
}, 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>;
|
|
1227
1125
|
getAddress: () => Address$1;
|
|
1228
1126
|
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>>;
|
|
1229
1127
|
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>;
|
|
@@ -1252,15 +1150,15 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1252
1150
|
blobGasUsed: bigint;
|
|
1253
1151
|
difficulty: bigint;
|
|
1254
1152
|
excessBlobGas: bigint;
|
|
1255
|
-
extraData:
|
|
1153
|
+
extraData: Hex;
|
|
1256
1154
|
gasLimit: bigint;
|
|
1257
1155
|
gasUsed: bigint;
|
|
1258
1156
|
miner: Address$1;
|
|
1259
1157
|
mixHash: viem.Hash;
|
|
1260
1158
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
1261
1159
|
parentHash: viem.Hash;
|
|
1262
|
-
receiptsRoot:
|
|
1263
|
-
sealFields:
|
|
1160
|
+
receiptsRoot: Hex;
|
|
1161
|
+
sealFields: Hex[];
|
|
1264
1162
|
sha3Uncles: viem.Hash;
|
|
1265
1163
|
size: bigint;
|
|
1266
1164
|
stateRoot: viem.Hash;
|
|
@@ -1276,11 +1174,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1276
1174
|
yParity?: undefined | undefined;
|
|
1277
1175
|
gas: bigint;
|
|
1278
1176
|
hash: viem.Hash;
|
|
1279
|
-
input:
|
|
1177
|
+
input: Hex;
|
|
1280
1178
|
nonce: number;
|
|
1281
|
-
r:
|
|
1282
|
-
s:
|
|
1283
|
-
typeHex:
|
|
1179
|
+
r: Hex;
|
|
1180
|
+
s: Hex;
|
|
1181
|
+
typeHex: Hex | null;
|
|
1284
1182
|
v: bigint;
|
|
1285
1183
|
value: bigint;
|
|
1286
1184
|
accessList?: undefined | undefined;
|
|
@@ -1301,11 +1199,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1301
1199
|
yParity: number;
|
|
1302
1200
|
gas: bigint;
|
|
1303
1201
|
hash: viem.Hash;
|
|
1304
|
-
input:
|
|
1202
|
+
input: Hex;
|
|
1305
1203
|
nonce: number;
|
|
1306
|
-
r:
|
|
1307
|
-
s:
|
|
1308
|
-
typeHex:
|
|
1204
|
+
r: Hex;
|
|
1205
|
+
s: Hex;
|
|
1206
|
+
typeHex: Hex | null;
|
|
1309
1207
|
v: bigint;
|
|
1310
1208
|
value: bigint;
|
|
1311
1209
|
accessList: viem.AccessList;
|
|
@@ -1326,11 +1224,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1326
1224
|
yParity: number;
|
|
1327
1225
|
gas: bigint;
|
|
1328
1226
|
hash: viem.Hash;
|
|
1329
|
-
input:
|
|
1227
|
+
input: Hex;
|
|
1330
1228
|
nonce: number;
|
|
1331
|
-
r:
|
|
1332
|
-
s:
|
|
1333
|
-
typeHex:
|
|
1229
|
+
r: Hex;
|
|
1230
|
+
s: Hex;
|
|
1231
|
+
typeHex: Hex | null;
|
|
1334
1232
|
v: bigint;
|
|
1335
1233
|
value: bigint;
|
|
1336
1234
|
accessList: viem.AccessList;
|
|
@@ -1351,16 +1249,16 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1351
1249
|
yParity: number;
|
|
1352
1250
|
gas: bigint;
|
|
1353
1251
|
hash: viem.Hash;
|
|
1354
|
-
input:
|
|
1252
|
+
input: Hex;
|
|
1355
1253
|
nonce: number;
|
|
1356
|
-
r:
|
|
1357
|
-
s:
|
|
1358
|
-
typeHex:
|
|
1254
|
+
r: Hex;
|
|
1255
|
+
s: Hex;
|
|
1256
|
+
typeHex: Hex | null;
|
|
1359
1257
|
v: bigint;
|
|
1360
1258
|
value: bigint;
|
|
1361
1259
|
accessList: viem.AccessList;
|
|
1362
1260
|
authorizationList?: undefined | undefined;
|
|
1363
|
-
blobVersionedHashes: readonly
|
|
1261
|
+
blobVersionedHashes: readonly Hex[];
|
|
1364
1262
|
chainId: number;
|
|
1365
1263
|
type: "eip4844";
|
|
1366
1264
|
gasPrice?: undefined | undefined;
|
|
@@ -1376,11 +1274,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1376
1274
|
yParity: number;
|
|
1377
1275
|
gas: bigint;
|
|
1378
1276
|
hash: viem.Hash;
|
|
1379
|
-
input:
|
|
1277
|
+
input: Hex;
|
|
1380
1278
|
nonce: number;
|
|
1381
|
-
r:
|
|
1382
|
-
s:
|
|
1383
|
-
typeHex:
|
|
1279
|
+
r: Hex;
|
|
1280
|
+
s: Hex;
|
|
1281
|
+
typeHex: Hex | null;
|
|
1384
1282
|
v: bigint;
|
|
1385
1283
|
value: bigint;
|
|
1386
1284
|
accessList: viem.AccessList;
|
|
@@ -1426,11 +1324,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1426
1324
|
yParity?: undefined | undefined;
|
|
1427
1325
|
gas: bigint;
|
|
1428
1326
|
hash: viem.Hash;
|
|
1429
|
-
input:
|
|
1327
|
+
input: Hex;
|
|
1430
1328
|
nonce: number;
|
|
1431
|
-
r:
|
|
1432
|
-
s:
|
|
1433
|
-
typeHex:
|
|
1329
|
+
r: Hex;
|
|
1330
|
+
s: Hex;
|
|
1331
|
+
typeHex: Hex | null;
|
|
1434
1332
|
v: bigint;
|
|
1435
1333
|
value: bigint;
|
|
1436
1334
|
accessList?: undefined | undefined;
|
|
@@ -1451,11 +1349,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1451
1349
|
yParity: number;
|
|
1452
1350
|
gas: bigint;
|
|
1453
1351
|
hash: viem.Hash;
|
|
1454
|
-
input:
|
|
1352
|
+
input: Hex;
|
|
1455
1353
|
nonce: number;
|
|
1456
|
-
r:
|
|
1457
|
-
s:
|
|
1458
|
-
typeHex:
|
|
1354
|
+
r: Hex;
|
|
1355
|
+
s: Hex;
|
|
1356
|
+
typeHex: Hex | null;
|
|
1459
1357
|
v: bigint;
|
|
1460
1358
|
value: bigint;
|
|
1461
1359
|
accessList: viem.AccessList;
|
|
@@ -1476,11 +1374,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1476
1374
|
yParity: number;
|
|
1477
1375
|
gas: bigint;
|
|
1478
1376
|
hash: viem.Hash;
|
|
1479
|
-
input:
|
|
1377
|
+
input: Hex;
|
|
1480
1378
|
nonce: number;
|
|
1481
|
-
r:
|
|
1482
|
-
s:
|
|
1483
|
-
typeHex:
|
|
1379
|
+
r: Hex;
|
|
1380
|
+
s: Hex;
|
|
1381
|
+
typeHex: Hex | null;
|
|
1484
1382
|
v: bigint;
|
|
1485
1383
|
value: bigint;
|
|
1486
1384
|
accessList: viem.AccessList;
|
|
@@ -1501,16 +1399,16 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1501
1399
|
yParity: number;
|
|
1502
1400
|
gas: bigint;
|
|
1503
1401
|
hash: viem.Hash;
|
|
1504
|
-
input:
|
|
1402
|
+
input: Hex;
|
|
1505
1403
|
nonce: number;
|
|
1506
|
-
r:
|
|
1507
|
-
s:
|
|
1508
|
-
typeHex:
|
|
1404
|
+
r: Hex;
|
|
1405
|
+
s: Hex;
|
|
1406
|
+
typeHex: Hex | null;
|
|
1509
1407
|
v: bigint;
|
|
1510
1408
|
value: bigint;
|
|
1511
1409
|
accessList: viem.AccessList;
|
|
1512
1410
|
authorizationList?: undefined | undefined;
|
|
1513
|
-
blobVersionedHashes: readonly
|
|
1411
|
+
blobVersionedHashes: readonly Hex[];
|
|
1514
1412
|
chainId: number;
|
|
1515
1413
|
type: "eip4844";
|
|
1516
1414
|
gasPrice?: undefined | undefined;
|
|
@@ -1526,11 +1424,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1526
1424
|
yParity: number;
|
|
1527
1425
|
gas: bigint;
|
|
1528
1426
|
hash: viem.Hash;
|
|
1529
|
-
input:
|
|
1427
|
+
input: Hex;
|
|
1530
1428
|
nonce: number;
|
|
1531
|
-
r:
|
|
1532
|
-
s:
|
|
1533
|
-
typeHex:
|
|
1429
|
+
r: Hex;
|
|
1430
|
+
s: Hex;
|
|
1431
|
+
typeHex: Hex | null;
|
|
1534
1432
|
v: bigint;
|
|
1535
1433
|
value: bigint;
|
|
1536
1434
|
accessList: viem.AccessList;
|
|
@@ -8139,7 +8037,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8139
8037
|
}, {
|
|
8140
8038
|
Method: "eth_call";
|
|
8141
8039
|
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];
|
|
8142
|
-
ReturnType:
|
|
8040
|
+
ReturnType: Hex;
|
|
8143
8041
|
}, {
|
|
8144
8042
|
Method: "eth_createAccessList";
|
|
8145
8043
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -8190,11 +8088,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8190
8088
|
}, {
|
|
8191
8089
|
Method: "eth_getCode";
|
|
8192
8090
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8193
|
-
ReturnType:
|
|
8091
|
+
ReturnType: Hex;
|
|
8194
8092
|
}, {
|
|
8195
8093
|
Method: "eth_getFilterChanges";
|
|
8196
8094
|
Parameters: [filterId: viem.Quantity];
|
|
8197
|
-
ReturnType: viem.RpcLog[] |
|
|
8095
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
8198
8096
|
}, {
|
|
8199
8097
|
Method: "eth_getFilterLogs";
|
|
8200
8098
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -8221,7 +8119,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8221
8119
|
}, {
|
|
8222
8120
|
Method: "eth_getStorageAt";
|
|
8223
8121
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8224
|
-
ReturnType:
|
|
8122
|
+
ReturnType: Hex;
|
|
8225
8123
|
}, {
|
|
8226
8124
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
8227
8125
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -8285,11 +8183,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8285
8183
|
ReturnType: string;
|
|
8286
8184
|
}, {
|
|
8287
8185
|
Method: "eth_sendRawTransaction";
|
|
8288
|
-
Parameters: [signedTransaction:
|
|
8186
|
+
Parameters: [signedTransaction: Hex];
|
|
8289
8187
|
ReturnType: viem.Hash;
|
|
8290
8188
|
}, {
|
|
8291
8189
|
Method: "eth_sendRawTransactionSync";
|
|
8292
|
-
Parameters: [signedTransaction:
|
|
8190
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
8293
8191
|
ReturnType: viem.RpcTransactionReceipt;
|
|
8294
8192
|
}, {
|
|
8295
8193
|
Method: "eth_simulateV1";
|
|
@@ -8306,14 +8204,14 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8306
8204
|
ReturnType: readonly (viem.RpcBlock & {
|
|
8307
8205
|
calls: readonly {
|
|
8308
8206
|
error?: {
|
|
8309
|
-
data?:
|
|
8207
|
+
data?: Hex | undefined;
|
|
8310
8208
|
code: number;
|
|
8311
8209
|
message: string;
|
|
8312
8210
|
} | undefined;
|
|
8313
8211
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
8314
|
-
gasUsed:
|
|
8315
|
-
returnData:
|
|
8316
|
-
status:
|
|
8212
|
+
gasUsed: Hex;
|
|
8213
|
+
returnData: Hex;
|
|
8214
|
+
status: Hex;
|
|
8317
8215
|
}[];
|
|
8318
8216
|
})[];
|
|
8319
8217
|
}, {
|
|
@@ -8327,12 +8225,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8327
8225
|
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>>;
|
|
8328
8226
|
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>>>;
|
|
8329
8227
|
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>>>;
|
|
8330
|
-
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<
|
|
8331
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8228
|
+
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>;
|
|
8229
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8332
8230
|
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>>>;
|
|
8333
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
8334
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8335
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8231
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
8232
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8233
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
8336
8234
|
signTypedData: <const TTypedData extends {
|
|
8337
8235
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
8338
8236
|
[x: `string[${string}]`]: undefined;
|
|
@@ -8344,7 +8242,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8344
8242
|
[x: `uint8[${string}]`]: undefined;
|
|
8345
8243
|
[x: `bool[${string}]`]: undefined;
|
|
8346
8244
|
[x: `bytes4[${string}]`]: undefined;
|
|
8347
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8348
8245
|
[x: `bytes[${string}]`]: undefined;
|
|
8349
8246
|
[x: `bytes6[${string}]`]: undefined;
|
|
8350
8247
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8412,6 +8309,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8412
8309
|
[x: `uint[${string}]`]: undefined;
|
|
8413
8310
|
[x: `uint16[${string}]`]: undefined;
|
|
8414
8311
|
[x: `uint24[${string}]`]: undefined;
|
|
8312
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8415
8313
|
[x: `uint40[${string}]`]: undefined;
|
|
8416
8314
|
[x: `uint48[${string}]`]: undefined;
|
|
8417
8315
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8446,7 +8344,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8446
8344
|
uint8?: undefined;
|
|
8447
8345
|
bool?: undefined;
|
|
8448
8346
|
bytes4?: undefined;
|
|
8449
|
-
uint32?: undefined;
|
|
8450
8347
|
bytes?: undefined;
|
|
8451
8348
|
bytes6?: undefined;
|
|
8452
8349
|
bytes10?: undefined;
|
|
@@ -8512,6 +8409,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8512
8409
|
int256?: undefined;
|
|
8513
8410
|
uint16?: undefined;
|
|
8514
8411
|
uint24?: undefined;
|
|
8412
|
+
uint32?: undefined;
|
|
8515
8413
|
uint40?: undefined;
|
|
8516
8414
|
uint48?: undefined;
|
|
8517
8415
|
uint56?: undefined;
|
|
@@ -8540,7 +8438,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8540
8438
|
uint248?: undefined;
|
|
8541
8439
|
} | {
|
|
8542
8440
|
[key: string]: unknown;
|
|
8543
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8441
|
+
}, 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>;
|
|
8544
8442
|
} & {
|
|
8545
8443
|
getAddress: () => Address$1;
|
|
8546
8444
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
@@ -8594,7 +8492,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8594
8492
|
}, {
|
|
8595
8493
|
Method: "eth_call";
|
|
8596
8494
|
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];
|
|
8597
|
-
ReturnType:
|
|
8495
|
+
ReturnType: Hex;
|
|
8598
8496
|
}, {
|
|
8599
8497
|
Method: "eth_createAccessList";
|
|
8600
8498
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -8645,11 +8543,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8645
8543
|
}, {
|
|
8646
8544
|
Method: "eth_getCode";
|
|
8647
8545
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8648
|
-
ReturnType:
|
|
8546
|
+
ReturnType: Hex;
|
|
8649
8547
|
}, {
|
|
8650
8548
|
Method: "eth_getFilterChanges";
|
|
8651
8549
|
Parameters: [filterId: viem.Quantity];
|
|
8652
|
-
ReturnType: viem.RpcLog[] |
|
|
8550
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
8653
8551
|
}, {
|
|
8654
8552
|
Method: "eth_getFilterLogs";
|
|
8655
8553
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -8676,7 +8574,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8676
8574
|
}, {
|
|
8677
8575
|
Method: "eth_getStorageAt";
|
|
8678
8576
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8679
|
-
ReturnType:
|
|
8577
|
+
ReturnType: Hex;
|
|
8680
8578
|
}, {
|
|
8681
8579
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
8682
8580
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -8740,11 +8638,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8740
8638
|
ReturnType: string;
|
|
8741
8639
|
}, {
|
|
8742
8640
|
Method: "eth_sendRawTransaction";
|
|
8743
|
-
Parameters: [signedTransaction:
|
|
8641
|
+
Parameters: [signedTransaction: Hex];
|
|
8744
8642
|
ReturnType: viem.Hash;
|
|
8745
8643
|
}, {
|
|
8746
8644
|
Method: "eth_sendRawTransactionSync";
|
|
8747
|
-
Parameters: [signedTransaction:
|
|
8645
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
8748
8646
|
ReturnType: viem.RpcTransactionReceipt;
|
|
8749
8647
|
}, {
|
|
8750
8648
|
Method: "eth_simulateV1";
|
|
@@ -8761,14 +8659,14 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8761
8659
|
ReturnType: readonly (viem.RpcBlock & {
|
|
8762
8660
|
calls: readonly {
|
|
8763
8661
|
error?: {
|
|
8764
|
-
data?:
|
|
8662
|
+
data?: Hex | undefined;
|
|
8765
8663
|
code: number;
|
|
8766
8664
|
message: string;
|
|
8767
8665
|
} | undefined;
|
|
8768
8666
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
8769
|
-
gasUsed:
|
|
8770
|
-
returnData:
|
|
8771
|
-
status:
|
|
8667
|
+
gasUsed: Hex;
|
|
8668
|
+
returnData: Hex;
|
|
8669
|
+
status: Hex;
|
|
8772
8670
|
}[];
|
|
8773
8671
|
})[];
|
|
8774
8672
|
}, {
|
|
@@ -8782,12 +8680,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8782
8680
|
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>>;
|
|
8783
8681
|
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>>>;
|
|
8784
8682
|
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>>>;
|
|
8785
|
-
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<
|
|
8786
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8683
|
+
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>;
|
|
8684
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8787
8685
|
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>>>;
|
|
8788
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
8789
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8790
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8686
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
8687
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8688
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
8791
8689
|
signTypedData: <const TTypedData extends {
|
|
8792
8690
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
8793
8691
|
[x: `string[${string}]`]: undefined;
|
|
@@ -8799,7 +8697,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8799
8697
|
[x: `uint8[${string}]`]: undefined;
|
|
8800
8698
|
[x: `bool[${string}]`]: undefined;
|
|
8801
8699
|
[x: `bytes4[${string}]`]: undefined;
|
|
8802
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8803
8700
|
[x: `bytes[${string}]`]: undefined;
|
|
8804
8701
|
[x: `bytes6[${string}]`]: undefined;
|
|
8805
8702
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8867,6 +8764,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8867
8764
|
[x: `uint[${string}]`]: undefined;
|
|
8868
8765
|
[x: `uint16[${string}]`]: undefined;
|
|
8869
8766
|
[x: `uint24[${string}]`]: undefined;
|
|
8767
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8870
8768
|
[x: `uint40[${string}]`]: undefined;
|
|
8871
8769
|
[x: `uint48[${string}]`]: undefined;
|
|
8872
8770
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8901,7 +8799,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8901
8799
|
uint8?: undefined;
|
|
8902
8800
|
bool?: undefined;
|
|
8903
8801
|
bytes4?: undefined;
|
|
8904
|
-
uint32?: undefined;
|
|
8905
8802
|
bytes?: undefined;
|
|
8906
8803
|
bytes6?: undefined;
|
|
8907
8804
|
bytes10?: undefined;
|
|
@@ -8967,6 +8864,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8967
8864
|
int256?: undefined;
|
|
8968
8865
|
uint16?: undefined;
|
|
8969
8866
|
uint24?: undefined;
|
|
8867
|
+
uint32?: undefined;
|
|
8970
8868
|
uint40?: undefined;
|
|
8971
8869
|
uint48?: undefined;
|
|
8972
8870
|
uint56?: undefined;
|
|
@@ -8995,7 +8893,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8995
8893
|
uint248?: undefined;
|
|
8996
8894
|
} | {
|
|
8997
8895
|
[key: string]: unknown;
|
|
8998
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8896
|
+
}, 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>;
|
|
8999
8897
|
} & {
|
|
9000
8898
|
getAddress: () => Address$1;
|
|
9001
8899
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
@@ -9015,8 +8913,8 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
9015
8913
|
updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
9016
8914
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
9017
8915
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
9018
|
-
getAssetManager(): Promise<Address$1>;
|
|
9019
8916
|
getAcpVersion(): string;
|
|
8917
|
+
signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
|
|
9020
8918
|
}
|
|
9021
8919
|
|
|
9022
8920
|
declare function preparePayload(payload: string | object): string;
|
|
@@ -9035,7 +8933,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9035
8933
|
private GAS_FEE_MULTIPLIER;
|
|
9036
8934
|
private RETRY_CONFIG;
|
|
9037
8935
|
private _sessionKeyClient;
|
|
9038
|
-
private _sessionKeyClients;
|
|
9039
8936
|
private _acpX402;
|
|
9040
8937
|
constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
9041
8938
|
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
|
|
@@ -9107,7 +9004,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9107
9004
|
}, {
|
|
9108
9005
|
Method: "eth_call";
|
|
9109
9006
|
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];
|
|
9110
|
-
ReturnType:
|
|
9007
|
+
ReturnType: Hex;
|
|
9111
9008
|
}, {
|
|
9112
9009
|
Method: "eth_createAccessList";
|
|
9113
9010
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -9158,11 +9055,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9158
9055
|
}, {
|
|
9159
9056
|
Method: "eth_getCode";
|
|
9160
9057
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
9161
|
-
ReturnType:
|
|
9058
|
+
ReturnType: Hex;
|
|
9162
9059
|
}, {
|
|
9163
9060
|
Method: "eth_getFilterChanges";
|
|
9164
9061
|
Parameters: [filterId: viem.Quantity];
|
|
9165
|
-
ReturnType: viem.RpcLog[] |
|
|
9062
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
9166
9063
|
}, {
|
|
9167
9064
|
Method: "eth_getFilterLogs";
|
|
9168
9065
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -9189,7 +9086,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9189
9086
|
}, {
|
|
9190
9087
|
Method: "eth_getStorageAt";
|
|
9191
9088
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
9192
|
-
ReturnType:
|
|
9089
|
+
ReturnType: Hex;
|
|
9193
9090
|
}, {
|
|
9194
9091
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
9195
9092
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -9253,11 +9150,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9253
9150
|
ReturnType: string;
|
|
9254
9151
|
}, {
|
|
9255
9152
|
Method: "eth_sendRawTransaction";
|
|
9256
|
-
Parameters: [signedTransaction:
|
|
9153
|
+
Parameters: [signedTransaction: Hex];
|
|
9257
9154
|
ReturnType: viem.Hash;
|
|
9258
9155
|
}, {
|
|
9259
9156
|
Method: "eth_sendRawTransactionSync";
|
|
9260
|
-
Parameters: [signedTransaction:
|
|
9157
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
9261
9158
|
ReturnType: viem.RpcTransactionReceipt;
|
|
9262
9159
|
}, {
|
|
9263
9160
|
Method: "eth_simulateV1";
|
|
@@ -9274,14 +9171,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9274
9171
|
ReturnType: readonly (viem.RpcBlock & {
|
|
9275
9172
|
calls: readonly {
|
|
9276
9173
|
error?: {
|
|
9277
|
-
data?:
|
|
9174
|
+
data?: Hex | undefined;
|
|
9278
9175
|
code: number;
|
|
9279
9176
|
message: string;
|
|
9280
9177
|
} | undefined;
|
|
9281
9178
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
9282
|
-
gasUsed:
|
|
9283
|
-
returnData:
|
|
9284
|
-
status:
|
|
9179
|
+
gasUsed: Hex;
|
|
9180
|
+
returnData: Hex;
|
|
9181
|
+
status: Hex;
|
|
9285
9182
|
}[];
|
|
9286
9183
|
})[];
|
|
9287
9184
|
}, {
|
|
@@ -9298,12 +9195,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9298
9195
|
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>>;
|
|
9299
9196
|
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>>>;
|
|
9300
9197
|
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>>>;
|
|
9301
|
-
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<
|
|
9302
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
9198
|
+
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>;
|
|
9199
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
9303
9200
|
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>>>;
|
|
9304
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
9305
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
9306
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
9201
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
9202
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
9203
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
9307
9204
|
signTypedData: <const TTypedData extends {
|
|
9308
9205
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
9309
9206
|
[x: `string[${string}]`]: undefined;
|
|
@@ -9315,7 +9212,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9315
9212
|
[x: `uint8[${string}]`]: undefined;
|
|
9316
9213
|
[x: `bool[${string}]`]: undefined;
|
|
9317
9214
|
[x: `bytes4[${string}]`]: undefined;
|
|
9318
|
-
[x: `uint32[${string}]`]: undefined;
|
|
9319
9215
|
[x: `bytes[${string}]`]: undefined;
|
|
9320
9216
|
[x: `bytes6[${string}]`]: undefined;
|
|
9321
9217
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -9383,6 +9279,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9383
9279
|
[x: `uint[${string}]`]: undefined;
|
|
9384
9280
|
[x: `uint16[${string}]`]: undefined;
|
|
9385
9281
|
[x: `uint24[${string}]`]: undefined;
|
|
9282
|
+
[x: `uint32[${string}]`]: undefined;
|
|
9386
9283
|
[x: `uint40[${string}]`]: undefined;
|
|
9387
9284
|
[x: `uint48[${string}]`]: undefined;
|
|
9388
9285
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -9417,7 +9314,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9417
9314
|
uint8?: undefined;
|
|
9418
9315
|
bool?: undefined;
|
|
9419
9316
|
bytes4?: undefined;
|
|
9420
|
-
uint32?: undefined;
|
|
9421
9317
|
bytes?: undefined;
|
|
9422
9318
|
bytes6?: undefined;
|
|
9423
9319
|
bytes10?: undefined;
|
|
@@ -9483,6 +9379,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9483
9379
|
int256?: undefined;
|
|
9484
9380
|
uint16?: undefined;
|
|
9485
9381
|
uint24?: undefined;
|
|
9382
|
+
uint32?: undefined;
|
|
9486
9383
|
uint40?: undefined;
|
|
9487
9384
|
uint48?: undefined;
|
|
9488
9385
|
uint56?: undefined;
|
|
@@ -9511,7 +9408,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9511
9408
|
uint248?: undefined;
|
|
9512
9409
|
} | {
|
|
9513
9410
|
[key: string]: unknown;
|
|
9514
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
9411
|
+
}, 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>;
|
|
9515
9412
|
getAddress: () => Address$1;
|
|
9516
9413
|
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>>;
|
|
9517
9414
|
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>;
|
|
@@ -9540,15 +9437,15 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9540
9437
|
blobGasUsed: bigint;
|
|
9541
9438
|
difficulty: bigint;
|
|
9542
9439
|
excessBlobGas: bigint;
|
|
9543
|
-
extraData:
|
|
9440
|
+
extraData: Hex;
|
|
9544
9441
|
gasLimit: bigint;
|
|
9545
9442
|
gasUsed: bigint;
|
|
9546
9443
|
miner: Address$1;
|
|
9547
9444
|
mixHash: viem.Hash;
|
|
9548
9445
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
9549
9446
|
parentHash: viem.Hash;
|
|
9550
|
-
receiptsRoot:
|
|
9551
|
-
sealFields:
|
|
9447
|
+
receiptsRoot: Hex;
|
|
9448
|
+
sealFields: Hex[];
|
|
9552
9449
|
sha3Uncles: viem.Hash;
|
|
9553
9450
|
size: bigint;
|
|
9554
9451
|
stateRoot: viem.Hash;
|
|
@@ -9564,11 +9461,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9564
9461
|
yParity?: undefined | undefined;
|
|
9565
9462
|
gas: bigint;
|
|
9566
9463
|
hash: viem.Hash;
|
|
9567
|
-
input:
|
|
9464
|
+
input: Hex;
|
|
9568
9465
|
nonce: number;
|
|
9569
|
-
r:
|
|
9570
|
-
s:
|
|
9571
|
-
typeHex:
|
|
9466
|
+
r: Hex;
|
|
9467
|
+
s: Hex;
|
|
9468
|
+
typeHex: Hex | null;
|
|
9572
9469
|
v: bigint;
|
|
9573
9470
|
value: bigint;
|
|
9574
9471
|
accessList?: undefined | undefined;
|
|
@@ -9589,11 +9486,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9589
9486
|
yParity: number;
|
|
9590
9487
|
gas: bigint;
|
|
9591
9488
|
hash: viem.Hash;
|
|
9592
|
-
input:
|
|
9489
|
+
input: Hex;
|
|
9593
9490
|
nonce: number;
|
|
9594
|
-
r:
|
|
9595
|
-
s:
|
|
9596
|
-
typeHex:
|
|
9491
|
+
r: Hex;
|
|
9492
|
+
s: Hex;
|
|
9493
|
+
typeHex: Hex | null;
|
|
9597
9494
|
v: bigint;
|
|
9598
9495
|
value: bigint;
|
|
9599
9496
|
accessList: viem.AccessList;
|
|
@@ -9614,11 +9511,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9614
9511
|
yParity: number;
|
|
9615
9512
|
gas: bigint;
|
|
9616
9513
|
hash: viem.Hash;
|
|
9617
|
-
input:
|
|
9514
|
+
input: Hex;
|
|
9618
9515
|
nonce: number;
|
|
9619
|
-
r:
|
|
9620
|
-
s:
|
|
9621
|
-
typeHex:
|
|
9516
|
+
r: Hex;
|
|
9517
|
+
s: Hex;
|
|
9518
|
+
typeHex: Hex | null;
|
|
9622
9519
|
v: bigint;
|
|
9623
9520
|
value: bigint;
|
|
9624
9521
|
accessList: viem.AccessList;
|
|
@@ -9639,16 +9536,16 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9639
9536
|
yParity: number;
|
|
9640
9537
|
gas: bigint;
|
|
9641
9538
|
hash: viem.Hash;
|
|
9642
|
-
input:
|
|
9539
|
+
input: Hex;
|
|
9643
9540
|
nonce: number;
|
|
9644
|
-
r:
|
|
9645
|
-
s:
|
|
9646
|
-
typeHex:
|
|
9541
|
+
r: Hex;
|
|
9542
|
+
s: Hex;
|
|
9543
|
+
typeHex: Hex | null;
|
|
9647
9544
|
v: bigint;
|
|
9648
9545
|
value: bigint;
|
|
9649
9546
|
accessList: viem.AccessList;
|
|
9650
9547
|
authorizationList?: undefined | undefined;
|
|
9651
|
-
blobVersionedHashes: readonly
|
|
9548
|
+
blobVersionedHashes: readonly Hex[];
|
|
9652
9549
|
chainId: number;
|
|
9653
9550
|
type: "eip4844";
|
|
9654
9551
|
gasPrice?: undefined | undefined;
|
|
@@ -9664,11 +9561,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9664
9561
|
yParity: number;
|
|
9665
9562
|
gas: bigint;
|
|
9666
9563
|
hash: viem.Hash;
|
|
9667
|
-
input:
|
|
9564
|
+
input: Hex;
|
|
9668
9565
|
nonce: number;
|
|
9669
|
-
r:
|
|
9670
|
-
s:
|
|
9671
|
-
typeHex:
|
|
9566
|
+
r: Hex;
|
|
9567
|
+
s: Hex;
|
|
9568
|
+
typeHex: Hex | null;
|
|
9672
9569
|
v: bigint;
|
|
9673
9570
|
value: bigint;
|
|
9674
9571
|
accessList: viem.AccessList;
|
|
@@ -9714,11 +9611,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9714
9611
|
yParity?: undefined | undefined;
|
|
9715
9612
|
gas: bigint;
|
|
9716
9613
|
hash: viem.Hash;
|
|
9717
|
-
input:
|
|
9614
|
+
input: Hex;
|
|
9718
9615
|
nonce: number;
|
|
9719
|
-
r:
|
|
9720
|
-
s:
|
|
9721
|
-
typeHex:
|
|
9616
|
+
r: Hex;
|
|
9617
|
+
s: Hex;
|
|
9618
|
+
typeHex: Hex | null;
|
|
9722
9619
|
v: bigint;
|
|
9723
9620
|
value: bigint;
|
|
9724
9621
|
accessList?: undefined | undefined;
|
|
@@ -9739,11 +9636,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9739
9636
|
yParity: number;
|
|
9740
9637
|
gas: bigint;
|
|
9741
9638
|
hash: viem.Hash;
|
|
9742
|
-
input:
|
|
9639
|
+
input: Hex;
|
|
9743
9640
|
nonce: number;
|
|
9744
|
-
r:
|
|
9745
|
-
s:
|
|
9746
|
-
typeHex:
|
|
9641
|
+
r: Hex;
|
|
9642
|
+
s: Hex;
|
|
9643
|
+
typeHex: Hex | null;
|
|
9747
9644
|
v: bigint;
|
|
9748
9645
|
value: bigint;
|
|
9749
9646
|
accessList: viem.AccessList;
|
|
@@ -9764,11 +9661,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9764
9661
|
yParity: number;
|
|
9765
9662
|
gas: bigint;
|
|
9766
9663
|
hash: viem.Hash;
|
|
9767
|
-
input:
|
|
9664
|
+
input: Hex;
|
|
9768
9665
|
nonce: number;
|
|
9769
|
-
r:
|
|
9770
|
-
s:
|
|
9771
|
-
typeHex:
|
|
9666
|
+
r: Hex;
|
|
9667
|
+
s: Hex;
|
|
9668
|
+
typeHex: Hex | null;
|
|
9772
9669
|
v: bigint;
|
|
9773
9670
|
value: bigint;
|
|
9774
9671
|
accessList: viem.AccessList;
|
|
@@ -9789,16 +9686,16 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9789
9686
|
yParity: number;
|
|
9790
9687
|
gas: bigint;
|
|
9791
9688
|
hash: viem.Hash;
|
|
9792
|
-
input:
|
|
9689
|
+
input: Hex;
|
|
9793
9690
|
nonce: number;
|
|
9794
|
-
r:
|
|
9795
|
-
s:
|
|
9796
|
-
typeHex:
|
|
9691
|
+
r: Hex;
|
|
9692
|
+
s: Hex;
|
|
9693
|
+
typeHex: Hex | null;
|
|
9797
9694
|
v: bigint;
|
|
9798
9695
|
value: bigint;
|
|
9799
9696
|
accessList: viem.AccessList;
|
|
9800
9697
|
authorizationList?: undefined | undefined;
|
|
9801
|
-
blobVersionedHashes: readonly
|
|
9698
|
+
blobVersionedHashes: readonly Hex[];
|
|
9802
9699
|
chainId: number;
|
|
9803
9700
|
type: "eip4844";
|
|
9804
9701
|
gasPrice?: undefined | undefined;
|
|
@@ -9814,11 +9711,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9814
9711
|
yParity: number;
|
|
9815
9712
|
gas: bigint;
|
|
9816
9713
|
hash: viem.Hash;
|
|
9817
|
-
input:
|
|
9714
|
+
input: Hex;
|
|
9818
9715
|
nonce: number;
|
|
9819
|
-
r:
|
|
9820
|
-
s:
|
|
9821
|
-
typeHex:
|
|
9716
|
+
r: Hex;
|
|
9717
|
+
s: Hex;
|
|
9718
|
+
typeHex: Hex | null;
|
|
9822
9719
|
v: bigint;
|
|
9823
9720
|
value: bigint;
|
|
9824
9721
|
accessList: viem.AccessList;
|
|
@@ -16427,7 +16324,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16427
16324
|
}, {
|
|
16428
16325
|
Method: "eth_call";
|
|
16429
16326
|
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];
|
|
16430
|
-
ReturnType:
|
|
16327
|
+
ReturnType: Hex;
|
|
16431
16328
|
}, {
|
|
16432
16329
|
Method: "eth_createAccessList";
|
|
16433
16330
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -16478,11 +16375,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16478
16375
|
}, {
|
|
16479
16376
|
Method: "eth_getCode";
|
|
16480
16377
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16481
|
-
ReturnType:
|
|
16378
|
+
ReturnType: Hex;
|
|
16482
16379
|
}, {
|
|
16483
16380
|
Method: "eth_getFilterChanges";
|
|
16484
16381
|
Parameters: [filterId: viem.Quantity];
|
|
16485
|
-
ReturnType: viem.RpcLog[] |
|
|
16382
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
16486
16383
|
}, {
|
|
16487
16384
|
Method: "eth_getFilterLogs";
|
|
16488
16385
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -16509,7 +16406,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16509
16406
|
}, {
|
|
16510
16407
|
Method: "eth_getStorageAt";
|
|
16511
16408
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16512
|
-
ReturnType:
|
|
16409
|
+
ReturnType: Hex;
|
|
16513
16410
|
}, {
|
|
16514
16411
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
16515
16412
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -16573,11 +16470,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16573
16470
|
ReturnType: string;
|
|
16574
16471
|
}, {
|
|
16575
16472
|
Method: "eth_sendRawTransaction";
|
|
16576
|
-
Parameters: [signedTransaction:
|
|
16473
|
+
Parameters: [signedTransaction: Hex];
|
|
16577
16474
|
ReturnType: viem.Hash;
|
|
16578
16475
|
}, {
|
|
16579
16476
|
Method: "eth_sendRawTransactionSync";
|
|
16580
|
-
Parameters: [signedTransaction:
|
|
16477
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
16581
16478
|
ReturnType: viem.RpcTransactionReceipt;
|
|
16582
16479
|
}, {
|
|
16583
16480
|
Method: "eth_simulateV1";
|
|
@@ -16594,14 +16491,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16594
16491
|
ReturnType: readonly (viem.RpcBlock & {
|
|
16595
16492
|
calls: readonly {
|
|
16596
16493
|
error?: {
|
|
16597
|
-
data?:
|
|
16494
|
+
data?: Hex | undefined;
|
|
16598
16495
|
code: number;
|
|
16599
16496
|
message: string;
|
|
16600
16497
|
} | undefined;
|
|
16601
16498
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
16602
|
-
gasUsed:
|
|
16603
|
-
returnData:
|
|
16604
|
-
status:
|
|
16499
|
+
gasUsed: Hex;
|
|
16500
|
+
returnData: Hex;
|
|
16501
|
+
status: Hex;
|
|
16605
16502
|
}[];
|
|
16606
16503
|
})[];
|
|
16607
16504
|
}, {
|
|
@@ -16615,12 +16512,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16615
16512
|
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>>;
|
|
16616
16513
|
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>>>;
|
|
16617
16514
|
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>>>;
|
|
16618
|
-
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<
|
|
16619
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
16515
|
+
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>;
|
|
16516
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
16620
16517
|
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>>>;
|
|
16621
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
16622
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
16623
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
16518
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
16519
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
16520
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
16624
16521
|
signTypedData: <const TTypedData extends {
|
|
16625
16522
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
16626
16523
|
[x: `string[${string}]`]: undefined;
|
|
@@ -16632,7 +16529,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16632
16529
|
[x: `uint8[${string}]`]: undefined;
|
|
16633
16530
|
[x: `bool[${string}]`]: undefined;
|
|
16634
16531
|
[x: `bytes4[${string}]`]: undefined;
|
|
16635
|
-
[x: `uint32[${string}]`]: undefined;
|
|
16636
16532
|
[x: `bytes[${string}]`]: undefined;
|
|
16637
16533
|
[x: `bytes6[${string}]`]: undefined;
|
|
16638
16534
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -16700,6 +16596,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16700
16596
|
[x: `uint[${string}]`]: undefined;
|
|
16701
16597
|
[x: `uint16[${string}]`]: undefined;
|
|
16702
16598
|
[x: `uint24[${string}]`]: undefined;
|
|
16599
|
+
[x: `uint32[${string}]`]: undefined;
|
|
16703
16600
|
[x: `uint40[${string}]`]: undefined;
|
|
16704
16601
|
[x: `uint48[${string}]`]: undefined;
|
|
16705
16602
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -16734,7 +16631,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16734
16631
|
uint8?: undefined;
|
|
16735
16632
|
bool?: undefined;
|
|
16736
16633
|
bytes4?: undefined;
|
|
16737
|
-
uint32?: undefined;
|
|
16738
16634
|
bytes?: undefined;
|
|
16739
16635
|
bytes6?: undefined;
|
|
16740
16636
|
bytes10?: undefined;
|
|
@@ -16800,6 +16696,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16800
16696
|
int256?: undefined;
|
|
16801
16697
|
uint16?: undefined;
|
|
16802
16698
|
uint24?: undefined;
|
|
16699
|
+
uint32?: undefined;
|
|
16803
16700
|
uint40?: undefined;
|
|
16804
16701
|
uint48?: undefined;
|
|
16805
16702
|
uint56?: undefined;
|
|
@@ -16828,7 +16725,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16828
16725
|
uint248?: undefined;
|
|
16829
16726
|
} | {
|
|
16830
16727
|
[key: string]: unknown;
|
|
16831
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
16728
|
+
}, 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>;
|
|
16832
16729
|
} & {
|
|
16833
16730
|
getAddress: () => Address$1;
|
|
16834
16731
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
@@ -16882,7 +16779,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16882
16779
|
}, {
|
|
16883
16780
|
Method: "eth_call";
|
|
16884
16781
|
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];
|
|
16885
|
-
ReturnType:
|
|
16782
|
+
ReturnType: Hex;
|
|
16886
16783
|
}, {
|
|
16887
16784
|
Method: "eth_createAccessList";
|
|
16888
16785
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -16933,11 +16830,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16933
16830
|
}, {
|
|
16934
16831
|
Method: "eth_getCode";
|
|
16935
16832
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16936
|
-
ReturnType:
|
|
16833
|
+
ReturnType: Hex;
|
|
16937
16834
|
}, {
|
|
16938
16835
|
Method: "eth_getFilterChanges";
|
|
16939
16836
|
Parameters: [filterId: viem.Quantity];
|
|
16940
|
-
ReturnType: viem.RpcLog[] |
|
|
16837
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
16941
16838
|
}, {
|
|
16942
16839
|
Method: "eth_getFilterLogs";
|
|
16943
16840
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -16964,7 +16861,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16964
16861
|
}, {
|
|
16965
16862
|
Method: "eth_getStorageAt";
|
|
16966
16863
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16967
|
-
ReturnType:
|
|
16864
|
+
ReturnType: Hex;
|
|
16968
16865
|
}, {
|
|
16969
16866
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
16970
16867
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -17028,11 +16925,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17028
16925
|
ReturnType: string;
|
|
17029
16926
|
}, {
|
|
17030
16927
|
Method: "eth_sendRawTransaction";
|
|
17031
|
-
Parameters: [signedTransaction:
|
|
16928
|
+
Parameters: [signedTransaction: Hex];
|
|
17032
16929
|
ReturnType: viem.Hash;
|
|
17033
16930
|
}, {
|
|
17034
16931
|
Method: "eth_sendRawTransactionSync";
|
|
17035
|
-
Parameters: [signedTransaction:
|
|
16932
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
17036
16933
|
ReturnType: viem.RpcTransactionReceipt;
|
|
17037
16934
|
}, {
|
|
17038
16935
|
Method: "eth_simulateV1";
|
|
@@ -17049,14 +16946,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17049
16946
|
ReturnType: readonly (viem.RpcBlock & {
|
|
17050
16947
|
calls: readonly {
|
|
17051
16948
|
error?: {
|
|
17052
|
-
data?:
|
|
16949
|
+
data?: Hex | undefined;
|
|
17053
16950
|
code: number;
|
|
17054
16951
|
message: string;
|
|
17055
16952
|
} | undefined;
|
|
17056
16953
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
17057
|
-
gasUsed:
|
|
17058
|
-
returnData:
|
|
17059
|
-
status:
|
|
16954
|
+
gasUsed: Hex;
|
|
16955
|
+
returnData: Hex;
|
|
16956
|
+
status: Hex;
|
|
17060
16957
|
}[];
|
|
17061
16958
|
})[];
|
|
17062
16959
|
}, {
|
|
@@ -17070,12 +16967,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17070
16967
|
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>>;
|
|
17071
16968
|
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>>>;
|
|
17072
16969
|
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>>>;
|
|
17073
|
-
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<
|
|
17074
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
16970
|
+
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>;
|
|
16971
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
17075
16972
|
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>>>;
|
|
17076
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
17077
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
17078
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
16973
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
16974
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
16975
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
17079
16976
|
signTypedData: <const TTypedData extends {
|
|
17080
16977
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
17081
16978
|
[x: `string[${string}]`]: undefined;
|
|
@@ -17087,7 +16984,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17087
16984
|
[x: `uint8[${string}]`]: undefined;
|
|
17088
16985
|
[x: `bool[${string}]`]: undefined;
|
|
17089
16986
|
[x: `bytes4[${string}]`]: undefined;
|
|
17090
|
-
[x: `uint32[${string}]`]: undefined;
|
|
17091
16987
|
[x: `bytes[${string}]`]: undefined;
|
|
17092
16988
|
[x: `bytes6[${string}]`]: undefined;
|
|
17093
16989
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -17155,6 +17051,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17155
17051
|
[x: `uint[${string}]`]: undefined;
|
|
17156
17052
|
[x: `uint16[${string}]`]: undefined;
|
|
17157
17053
|
[x: `uint24[${string}]`]: undefined;
|
|
17054
|
+
[x: `uint32[${string}]`]: undefined;
|
|
17158
17055
|
[x: `uint40[${string}]`]: undefined;
|
|
17159
17056
|
[x: `uint48[${string}]`]: undefined;
|
|
17160
17057
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -17189,7 +17086,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17189
17086
|
uint8?: undefined;
|
|
17190
17087
|
bool?: undefined;
|
|
17191
17088
|
bytes4?: undefined;
|
|
17192
|
-
uint32?: undefined;
|
|
17193
17089
|
bytes?: undefined;
|
|
17194
17090
|
bytes6?: undefined;
|
|
17195
17091
|
bytes10?: undefined;
|
|
@@ -17255,6 +17151,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17255
17151
|
int256?: undefined;
|
|
17256
17152
|
uint16?: undefined;
|
|
17257
17153
|
uint24?: undefined;
|
|
17154
|
+
uint32?: undefined;
|
|
17258
17155
|
uint40?: undefined;
|
|
17259
17156
|
uint48?: undefined;
|
|
17260
17157
|
uint56?: undefined;
|
|
@@ -17283,14 +17180,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17283
17180
|
uint248?: undefined;
|
|
17284
17181
|
} | {
|
|
17285
17182
|
[key: string]: unknown;
|
|
17286
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
17183
|
+
}, 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>;
|
|
17287
17184
|
} & {
|
|
17288
17185
|
getAddress: () => Address$1;
|
|
17289
17186
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
17290
17187
|
};
|
|
17291
17188
|
get acpX402(): AcpX402;
|
|
17292
17189
|
private calculateGasFees;
|
|
17293
|
-
handleOperation(operations: OperationPayload[]
|
|
17190
|
+
handleOperation(operations: OperationPayload[]): Promise<{
|
|
17294
17191
|
userOpHash: Address$1;
|
|
17295
17192
|
txnHash: Address$1;
|
|
17296
17193
|
}>;
|
|
@@ -17299,8 +17196,8 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17299
17196
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
17300
17197
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
17301
17198
|
getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
|
|
17302
|
-
getAssetManager(): Promise<Address$1>;
|
|
17303
17199
|
getAcpVersion(): string;
|
|
17200
|
+
signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
|
|
17304
17201
|
}
|
|
17305
17202
|
|
|
17306
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo,
|
|
17203
|
+
export { ACP_ABI, AcpAgent, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, BaseAcpContractClient, type DeliverablePayload, Fare, FareAmount, FareBigInt, MemoType, baseAcpConfig, baseAcpConfigV2, baseAcpX402Config, baseAcpX402ConfigV2, baseSepoliaAcpConfig, baseSepoliaAcpConfigV2, AcpClient as default, ethFare, preparePayload, wethFare };
|