@virtuals-protocol/acp-node 0.3.0-beta.3 → 0.3.0-beta.31
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 +57 -217
- package/dist/index.d.mts +709 -594
- package/dist/index.d.ts +709 -594
- package/dist/index.js +5030 -3175
- package/dist/index.mjs +5100 -3211
- package/package.json +21 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
|
-
import { Address, Chain } 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 } from '@account-kit/infra';
|
|
5
|
+
import { baseSepolia, base, mainnet, sepolia, polygon, polygonAmoy, bsc, bscTestnet, arbitrum, arbitrumSepolia } from '@account-kit/infra';
|
|
6
|
+
import * as util from 'util';
|
|
7
|
+
import util__default from 'util';
|
|
6
8
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
7
9
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_signTypedData from '@aa-sdk/core/dist/types/actions/smartAccount/signTypedData';
|
|
8
10
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_signMessage from '@aa-sdk/core/dist/types/actions/smartAccount/signMessage';
|
|
9
11
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_checkGasSponsorshipEligibility from '@aa-sdk/core/dist/types/actions/smartAccount/checkGasSponsorshipEligibility';
|
|
10
12
|
import * as viem__types_utils_ccip from 'viem/_types/utils/ccip';
|
|
11
13
|
import * as _account_kit_smart_contracts from '@account-kit/smart-contracts';
|
|
14
|
+
import { ModularAccountV2Client } from '@account-kit/smart-contracts';
|
|
12
15
|
|
|
13
16
|
declare const ACP_ABI: ({
|
|
14
17
|
inputs: never[];
|
|
@@ -95,9 +98,10 @@ declare const ACP_ABI: ({
|
|
|
95
98
|
declare class Fare {
|
|
96
99
|
contractAddress: Address;
|
|
97
100
|
decimals: number;
|
|
98
|
-
|
|
101
|
+
chainId?: number | undefined;
|
|
102
|
+
constructor(contractAddress: Address, decimals: number, chainId?: number | undefined);
|
|
99
103
|
formatAmount(amount: number): bigint;
|
|
100
|
-
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig): Promise<Fare>;
|
|
104
|
+
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig, chainId?: number): Promise<Fare>;
|
|
101
105
|
}
|
|
102
106
|
declare abstract class FareAmountBase {
|
|
103
107
|
amount: bigint;
|
|
@@ -176,76 +180,6 @@ declare const ACP_V2_ABI: ({
|
|
|
176
180
|
anonymous?: undefined;
|
|
177
181
|
})[];
|
|
178
182
|
|
|
179
|
-
declare class AcpContractConfig {
|
|
180
|
-
chain: typeof baseSepolia | typeof base;
|
|
181
|
-
contractAddress: Address$1;
|
|
182
|
-
baseFare: Fare;
|
|
183
|
-
alchemyRpcUrl: string;
|
|
184
|
-
acpUrl: string;
|
|
185
|
-
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
186
|
-
rpcEndpoint?: string | undefined;
|
|
187
|
-
constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, abi: typeof ACP_ABI | typeof ACP_V2_ABI, rpcEndpoint?: string | undefined);
|
|
188
|
-
}
|
|
189
|
-
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
190
|
-
declare const baseSepoliaAcpConfigV2: AcpContractConfig;
|
|
191
|
-
declare const baseAcpConfig: AcpContractConfig;
|
|
192
|
-
declare const baseAcpConfigV2: AcpContractConfig;
|
|
193
|
-
|
|
194
|
-
declare enum MemoType {
|
|
195
|
-
MESSAGE = 0,// 0 - Text message
|
|
196
|
-
CONTEXT_URL = 1,// 1 - URL for context
|
|
197
|
-
IMAGE_URL = 2,// 2 - Image URL
|
|
198
|
-
VOICE_URL = 3,// 3 - Voice/audio URL
|
|
199
|
-
OBJECT_URL = 4,// 4 - Object/file URL
|
|
200
|
-
TXHASH = 5,// 5 - Transaction hash reference
|
|
201
|
-
PAYABLE_REQUEST = 6,// 6 - Payment request
|
|
202
|
-
PAYABLE_TRANSFER = 7,// 7 - Direct payment transfer
|
|
203
|
-
PAYABLE_TRANSFER_ESCROW = 8,// 8 - Escrowed payment transfer
|
|
204
|
-
NOTIFICATION = 9,// 9 - Notification
|
|
205
|
-
PAYABLE_NOTIFICATION = 10
|
|
206
|
-
}
|
|
207
|
-
declare enum AcpJobPhases {
|
|
208
|
-
REQUEST = 0,
|
|
209
|
-
NEGOTIATION = 1,
|
|
210
|
-
TRANSACTION = 2,
|
|
211
|
-
EVALUATION = 3,
|
|
212
|
-
COMPLETED = 4,
|
|
213
|
-
REJECTED = 5,
|
|
214
|
-
EXPIRED = 6
|
|
215
|
-
}
|
|
216
|
-
declare enum FeeType {
|
|
217
|
-
NO_FEE = 0,
|
|
218
|
-
IMMEDIATE_FEE = 1,
|
|
219
|
-
DEFERRED_FEE = 2
|
|
220
|
-
}
|
|
221
|
-
declare abstract class BaseAcpContractClient {
|
|
222
|
-
agentWalletAddress: Address;
|
|
223
|
-
config: AcpContractConfig;
|
|
224
|
-
contractAddress: Address;
|
|
225
|
-
chain: Chain;
|
|
226
|
-
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
227
|
-
jobCreatedSignature: string;
|
|
228
|
-
constructor(agentWalletAddress: Address, config?: AcpContractConfig);
|
|
229
|
-
abstract handleOperation(data: `0x${string}`, contractAddress: Address, value?: bigint): Promise<Address>;
|
|
230
|
-
abstract getJobId(hash: Address, clientAddress: Address, providerAddress: Address): Promise<number>;
|
|
231
|
-
get walletAddress(): `0x${string}`;
|
|
232
|
-
createJobWithAccount(accountId: number, providerAddress: Address, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date): Promise<{
|
|
233
|
-
txHash: string;
|
|
234
|
-
jobId: number;
|
|
235
|
-
}>;
|
|
236
|
-
createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string): Promise<{
|
|
237
|
-
txHash: string;
|
|
238
|
-
jobId: number;
|
|
239
|
-
}>;
|
|
240
|
-
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address): Promise<`0x${string}`>;
|
|
241
|
-
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): Promise<`0x${string}`>;
|
|
242
|
-
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): Promise<Address>;
|
|
243
|
-
signMemo(memoId: number, isApproved: boolean, reason?: string): Promise<`0x${string}`>;
|
|
244
|
-
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): Promise<`0x${string}`>;
|
|
245
|
-
updateAccountMetadata(accountId: number, metadata: string): Promise<`0x${string}`>;
|
|
246
|
-
wrapEth(amountBaseUnit: bigint): Promise<`0x${string}`>;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
183
|
declare class AcpAccount {
|
|
250
184
|
contractClient: BaseAcpContractClient;
|
|
251
185
|
id: number;
|
|
@@ -253,7 +187,51 @@ declare class AcpAccount {
|
|
|
253
187
|
providerAddress: Address;
|
|
254
188
|
metadata: Record<string, any>;
|
|
255
189
|
constructor(contractClient: BaseAcpContractClient, id: number, clientAddress: Address, providerAddress: Address, metadata: Record<string, any>);
|
|
256
|
-
updateMetadata(metadata: Record<string, any>): Promise
|
|
190
|
+
updateMetadata(metadata: Record<string, any>): Promise<OperationPayload>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare enum PriceType {
|
|
194
|
+
FIXED = "fixed",
|
|
195
|
+
PERCENTAGE = "percentage"
|
|
196
|
+
}
|
|
197
|
+
declare class AcpJobOffering {
|
|
198
|
+
private readonly acpClient;
|
|
199
|
+
private readonly acpContractClient;
|
|
200
|
+
providerAddress: Address;
|
|
201
|
+
name: string;
|
|
202
|
+
price: number;
|
|
203
|
+
priceType: PriceType;
|
|
204
|
+
requiredFunds: boolean;
|
|
205
|
+
slaMinutes: number;
|
|
206
|
+
requirement?: (Object | string) | undefined;
|
|
207
|
+
deliverable?: (Object | string) | undefined;
|
|
208
|
+
private ajv;
|
|
209
|
+
constructor(acpClient: AcpClient, acpContractClient: BaseAcpContractClient, providerAddress: Address, name: string, price: number, priceType: PriceType, requiredFunds: boolean, slaMinutes: number, requirement?: (Object | string) | undefined, deliverable?: (Object | string) | undefined);
|
|
210
|
+
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address): Promise<number>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
type AcpAgentArgs = {
|
|
214
|
+
id: string | number;
|
|
215
|
+
name: string;
|
|
216
|
+
contractAddress: Address;
|
|
217
|
+
walletAddress: Address;
|
|
218
|
+
jobOfferings: AcpJobOffering[];
|
|
219
|
+
description?: string;
|
|
220
|
+
twitterHandle?: string;
|
|
221
|
+
metrics?: unknown;
|
|
222
|
+
resources?: unknown;
|
|
223
|
+
};
|
|
224
|
+
declare class AcpAgent {
|
|
225
|
+
readonly id: string;
|
|
226
|
+
readonly name: string;
|
|
227
|
+
readonly contractAddress: Address;
|
|
228
|
+
readonly walletAddress: Address;
|
|
229
|
+
readonly jobOfferings: readonly AcpJobOffering[];
|
|
230
|
+
readonly description?: string;
|
|
231
|
+
readonly twitterHandle?: string;
|
|
232
|
+
readonly metrics?: unknown;
|
|
233
|
+
readonly resources?: unknown;
|
|
234
|
+
constructor(args: AcpAgentArgs);
|
|
257
235
|
}
|
|
258
236
|
|
|
259
237
|
declare class AcpMemo {
|
|
@@ -267,27 +245,142 @@ declare class AcpMemo {
|
|
|
267
245
|
signedReason?: string | undefined;
|
|
268
246
|
expiry?: Date | undefined;
|
|
269
247
|
payableDetails?: PayableDetails | undefined;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
create(jobId: number, isSecured?: boolean): Promise
|
|
275
|
-
sign(approved: boolean, reason?: string): Promise
|
|
248
|
+
txHash?: `0x${string}` | undefined;
|
|
249
|
+
signedTxHash?: `0x${string}` | undefined;
|
|
250
|
+
state?: AcpMemoState | undefined;
|
|
251
|
+
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);
|
|
252
|
+
create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
|
|
253
|
+
sign(approved: boolean, reason?: string): Promise<{
|
|
254
|
+
userOpHash: Address;
|
|
255
|
+
txnHash: Address;
|
|
256
|
+
}>;
|
|
257
|
+
[util__default.inspect.custom](): {
|
|
258
|
+
id: number;
|
|
259
|
+
senderAddress: `0x${string}`;
|
|
260
|
+
type: string;
|
|
261
|
+
status: AcpMemoStatus;
|
|
262
|
+
content: string;
|
|
263
|
+
signedReason: string | undefined;
|
|
264
|
+
txHash: `0x${string}` | undefined;
|
|
265
|
+
signedTxHash: `0x${string}` | undefined;
|
|
266
|
+
nextPhase: string;
|
|
267
|
+
expiry: Date | undefined;
|
|
268
|
+
payableDetails: PayableDetails | undefined;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
declare class AcpJob {
|
|
273
|
+
private acpClient;
|
|
274
|
+
id: number;
|
|
275
|
+
clientAddress: Address;
|
|
276
|
+
providerAddress: Address;
|
|
277
|
+
evaluatorAddress: Address;
|
|
278
|
+
price: number;
|
|
279
|
+
priceTokenAddress: Address;
|
|
280
|
+
memos: AcpMemo[];
|
|
281
|
+
phase: AcpJobPhases;
|
|
282
|
+
context: Record<string, any>;
|
|
283
|
+
contractAddress: Address;
|
|
284
|
+
deliverable: DeliverablePayload | null;
|
|
285
|
+
netPayableAmount?: number | undefined;
|
|
286
|
+
name: string | undefined;
|
|
287
|
+
requirement: Record<string, any> | string | undefined;
|
|
288
|
+
priceType: PriceType;
|
|
289
|
+
priceValue: number;
|
|
290
|
+
constructor(acpClient: AcpClient, id: number, clientAddress: Address, providerAddress: Address, evaluatorAddress: Address, price: number, priceTokenAddress: Address, memos: AcpMemo[], phase: AcpJobPhases, context: Record<string, any>, contractAddress: Address, deliverable: DeliverablePayload | null, netPayableAmount?: number | undefined);
|
|
291
|
+
get acpContractClient(): BaseAcpContractClient;
|
|
292
|
+
get config(): AcpContractConfig;
|
|
293
|
+
get baseFare(): Fare;
|
|
294
|
+
get rejectionReason(): string | undefined;
|
|
295
|
+
get providerAgent(): Promise<AcpAgent | null>;
|
|
296
|
+
get clientAgent(): Promise<AcpAgent | null>;
|
|
297
|
+
get evaluatorAgent(): Promise<AcpAgent | null>;
|
|
298
|
+
get account(): Promise<AcpAccount | null>;
|
|
299
|
+
get latestMemo(): AcpMemo | undefined;
|
|
300
|
+
createRequirement(content: string): Promise<{
|
|
301
|
+
userOpHash: Address;
|
|
302
|
+
txnHash: Address;
|
|
303
|
+
}>;
|
|
304
|
+
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW | MemoType.PAYABLE_TRANSFER, amount: FareAmountBase, recipient: Address, expiredAt?: Date): Promise<{
|
|
305
|
+
userOpHash: Address;
|
|
306
|
+
txnHash: Address;
|
|
307
|
+
}>;
|
|
308
|
+
payAndAcceptRequirement(reason?: string): Promise<{
|
|
309
|
+
userOpHash: Address;
|
|
310
|
+
txnHash: Address;
|
|
311
|
+
} | undefined>;
|
|
312
|
+
respond(accept: boolean, reason?: string): Promise<{
|
|
313
|
+
userOpHash: Address;
|
|
314
|
+
txnHash: Address;
|
|
315
|
+
}>;
|
|
316
|
+
accept(reason?: string): Promise<{
|
|
317
|
+
userOpHash: Address;
|
|
318
|
+
txnHash: Address;
|
|
319
|
+
}>;
|
|
320
|
+
reject(reason?: string): Promise<{
|
|
321
|
+
userOpHash: Address;
|
|
322
|
+
txnHash: Address;
|
|
323
|
+
}>;
|
|
324
|
+
rejectPayable(reason: string | undefined, amount: FareAmountBase, expiredAt?: Date): Promise<{
|
|
325
|
+
userOpHash: Address;
|
|
326
|
+
txnHash: Address;
|
|
327
|
+
}>;
|
|
328
|
+
deliver(deliverable: DeliverablePayload): Promise<{
|
|
329
|
+
userOpHash: Address;
|
|
330
|
+
txnHash: Address;
|
|
331
|
+
}>;
|
|
332
|
+
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<void | {
|
|
333
|
+
userOpHash: Address;
|
|
334
|
+
txnHash: Address;
|
|
335
|
+
}>;
|
|
336
|
+
evaluate(accept: boolean, reason?: string): Promise<void>;
|
|
337
|
+
createNotification(content: string): Promise<{
|
|
338
|
+
userOpHash: Address;
|
|
339
|
+
txnHash: Address;
|
|
340
|
+
}>;
|
|
341
|
+
createPayableNotification(content: string, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
|
|
342
|
+
userOpHash: Address;
|
|
343
|
+
txnHash: Address;
|
|
344
|
+
}>;
|
|
345
|
+
private performX402Payment;
|
|
346
|
+
deliverCrossChainPayable(recipient: Address, content: string, amount: FareAmountBase, skipFee?: boolean): Promise<void>;
|
|
347
|
+
[util.inspect.custom](): {
|
|
348
|
+
id: number;
|
|
349
|
+
clientAddress: `0x${string}`;
|
|
350
|
+
providerAddress: `0x${string}`;
|
|
351
|
+
name: string | undefined;
|
|
352
|
+
requirement: string | Record<string, any> | undefined;
|
|
353
|
+
priceType: PriceType;
|
|
354
|
+
priceValue: number;
|
|
355
|
+
priceTokenAddress: `0x${string}`;
|
|
356
|
+
memos: AcpMemo[];
|
|
357
|
+
phase: AcpJobPhases;
|
|
358
|
+
context: Record<string, any>;
|
|
359
|
+
contractAddress: `0x${string}`;
|
|
360
|
+
netPayableAmount: number | undefined;
|
|
361
|
+
};
|
|
276
362
|
}
|
|
277
363
|
|
|
278
364
|
type DeliverablePayload = string | Record<string, unknown>;
|
|
279
|
-
/** @deprecated Use DeliverablePayload instead */
|
|
280
|
-
type IDeliverable = DeliverablePayload;
|
|
281
365
|
declare enum AcpMemoStatus {
|
|
282
366
|
PENDING = "PENDING",
|
|
283
367
|
APPROVED = "APPROVED",
|
|
284
368
|
REJECTED = "REJECTED"
|
|
285
369
|
}
|
|
370
|
+
declare enum AcpMemoState {
|
|
371
|
+
NONE = 0,
|
|
372
|
+
PENDING = 1,
|
|
373
|
+
IN_PROGRESS = 2,
|
|
374
|
+
FAILED = 3,
|
|
375
|
+
COMPLETED = 4
|
|
376
|
+
}
|
|
286
377
|
interface PayableDetails {
|
|
287
378
|
amount: bigint;
|
|
288
379
|
token: Address;
|
|
289
380
|
recipient: Address;
|
|
290
381
|
feeAmount: bigint;
|
|
382
|
+
lzSrcEid?: number;
|
|
383
|
+
lzDstEid?: number;
|
|
291
384
|
}
|
|
292
385
|
declare enum AcpAgentSort {
|
|
293
386
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
@@ -305,312 +398,283 @@ declare enum AcpOnlineStatus {
|
|
|
305
398
|
ONLINE = "online",
|
|
306
399
|
OFFLINE = "offline"
|
|
307
400
|
}
|
|
401
|
+
interface IAcpJobX402PaymentDetails {
|
|
402
|
+
isX402: boolean;
|
|
403
|
+
isBudgetReceived: boolean;
|
|
404
|
+
}
|
|
308
405
|
interface IAcpClientOptions {
|
|
309
406
|
acpContractClient: BaseAcpContractClient | BaseAcpContractClient[];
|
|
310
407
|
onNewTask?: (job: AcpJob, memoToSign?: AcpMemo) => void;
|
|
311
408
|
onEvaluate?: (job: AcpJob) => void;
|
|
312
409
|
customRpcUrl?: string;
|
|
410
|
+
skipSocketConnection?: boolean;
|
|
313
411
|
}
|
|
314
|
-
type
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
412
|
+
type X402Config = {
|
|
413
|
+
url: string;
|
|
414
|
+
};
|
|
415
|
+
type X402PayableRequirements = {
|
|
416
|
+
x402Version: number;
|
|
417
|
+
error: string;
|
|
418
|
+
accepts: X402Requirement[];
|
|
419
|
+
};
|
|
420
|
+
type X402Requirement = {
|
|
421
|
+
scheme: string;
|
|
422
|
+
network: string;
|
|
423
|
+
maxAmountRequired: string;
|
|
424
|
+
resource: string;
|
|
318
425
|
description: string;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
ownerAddress: string;
|
|
325
|
-
cluster: string | null;
|
|
326
|
-
twitterHandle: string;
|
|
327
|
-
jobs: {
|
|
328
|
-
name: string;
|
|
329
|
-
price: number;
|
|
330
|
-
requirement?: Object | string;
|
|
331
|
-
deliverable?: Object | string;
|
|
332
|
-
}[];
|
|
333
|
-
resources: {
|
|
426
|
+
mimeType: string;
|
|
427
|
+
payTo: Address;
|
|
428
|
+
maxTimeoutSeconds: number;
|
|
429
|
+
asset: Address;
|
|
430
|
+
extra: {
|
|
334
431
|
name: string;
|
|
335
|
-
|
|
336
|
-
url: string;
|
|
337
|
-
parameters?: Object;
|
|
338
|
-
id: number;
|
|
339
|
-
}[];
|
|
340
|
-
symbol: string | null;
|
|
341
|
-
virtualAgentId: string | null;
|
|
342
|
-
metrics?: {
|
|
343
|
-
successfulJobCount: number;
|
|
344
|
-
successRate: number;
|
|
345
|
-
uniqueBuyerCount: number;
|
|
346
|
-
minsFromLastOnline: number;
|
|
347
|
-
isOnline: boolean;
|
|
432
|
+
version: string;
|
|
348
433
|
};
|
|
349
|
-
|
|
350
|
-
};
|
|
351
|
-
declare enum PayloadType {
|
|
352
|
-
FUND_RESPONSE = "fund_response",
|
|
353
|
-
OPEN_POSITION = "open_position",
|
|
354
|
-
SWAP_TOKEN = "swap_token",
|
|
355
|
-
RESPONSE_SWAP_TOKEN = "response_swap_token",
|
|
356
|
-
CLOSE_PARTIAL_POSITION = "close_partial_position",
|
|
357
|
-
CLOSE_POSITION = "close_position",
|
|
358
|
-
POSITION_FULFILLED = "position_fulfilled",
|
|
359
|
-
CLOSE_JOB_AND_WITHDRAW = "close_job_and_withdraw",
|
|
360
|
-
UNFULFILLED_POSITION = "unfulfilled_position"
|
|
361
|
-
}
|
|
362
|
-
type GenericPayload<T = any> = {
|
|
363
|
-
type: PayloadType;
|
|
364
|
-
data: T;
|
|
434
|
+
outputSchema: any;
|
|
365
435
|
};
|
|
366
|
-
type
|
|
367
|
-
|
|
368
|
-
|
|
436
|
+
type X402PayableRequest = {
|
|
437
|
+
to: Address;
|
|
438
|
+
value: number;
|
|
439
|
+
maxTimeoutSeconds: number;
|
|
440
|
+
asset: Address;
|
|
369
441
|
};
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
tp: {
|
|
381
|
-
price?: number;
|
|
382
|
-
percentage?: number;
|
|
383
|
-
};
|
|
384
|
-
sl: {
|
|
385
|
-
price?: number;
|
|
386
|
-
percentage?: number;
|
|
442
|
+
type X402Payment = {
|
|
443
|
+
encodedPayment: string;
|
|
444
|
+
signature: string;
|
|
445
|
+
message: {
|
|
446
|
+
from: Address;
|
|
447
|
+
to: Address;
|
|
448
|
+
value: string;
|
|
449
|
+
validAfter: string;
|
|
450
|
+
validBefore: string;
|
|
451
|
+
nonce: string;
|
|
387
452
|
};
|
|
388
453
|
};
|
|
389
|
-
type
|
|
390
|
-
fromSymbol: string;
|
|
391
|
-
fromContractAddress: Address;
|
|
392
|
-
amount: number;
|
|
393
|
-
toSymbol: string;
|
|
394
|
-
toContractAddress?: Address;
|
|
395
|
-
};
|
|
396
|
-
type ResponseSwapTokenPayload = {
|
|
397
|
-
txnHash?: Address;
|
|
398
|
-
error?: string;
|
|
399
|
-
};
|
|
400
|
-
type ClosePositionPayload = {
|
|
401
|
-
positionId: number;
|
|
402
|
-
amount: number;
|
|
403
|
-
};
|
|
404
|
-
type PositionFulfilledPayload = {
|
|
405
|
-
symbol: string;
|
|
406
|
-
amount: number;
|
|
407
|
-
contractAddress: string;
|
|
408
|
-
type: "TP" | "SL" | "CLOSE";
|
|
409
|
-
pnl: number;
|
|
410
|
-
entryPrice: number;
|
|
411
|
-
exitPrice: number;
|
|
412
|
-
};
|
|
413
|
-
type UnfulfilledPositionPayload = {
|
|
414
|
-
symbol: string;
|
|
415
|
-
amount: number;
|
|
416
|
-
contractAddress: string;
|
|
417
|
-
type: "ERROR" | "PARTIAL";
|
|
418
|
-
reason?: string;
|
|
419
|
-
};
|
|
420
|
-
type RequestClosePositionPayload = {
|
|
421
|
-
positionId: number;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
declare class AcpJob {
|
|
425
|
-
private acpClient;
|
|
454
|
+
type OffChainJob = {
|
|
426
455
|
id: number;
|
|
456
|
+
documentId: string;
|
|
457
|
+
txHash: Address;
|
|
458
|
+
clientId: number;
|
|
459
|
+
providerId: number;
|
|
460
|
+
budget: number;
|
|
461
|
+
createdAt: string;
|
|
462
|
+
updatedAt: string;
|
|
463
|
+
publishedAt: string;
|
|
464
|
+
locale: string | null;
|
|
427
465
|
clientAddress: Address;
|
|
428
466
|
providerAddress: Address;
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
priceTokenAddress: Address;
|
|
432
|
-
memos: AcpMemo[];
|
|
467
|
+
evaluators: Address[];
|
|
468
|
+
budgetTxHash: Address | null;
|
|
433
469
|
phase: AcpJobPhases;
|
|
434
|
-
|
|
470
|
+
agentIdPair: string;
|
|
471
|
+
onChainJobId: string;
|
|
472
|
+
summary: string;
|
|
473
|
+
userOpHash: Address | null;
|
|
474
|
+
amountClaimed: number;
|
|
475
|
+
context: Record<string, any> | null;
|
|
476
|
+
expiry: string;
|
|
477
|
+
refundRetryTimes: number;
|
|
478
|
+
additionalFees: number;
|
|
479
|
+
budgetTokenAddress: Address;
|
|
480
|
+
budgetUSD: number;
|
|
481
|
+
amountClaimedUSD: number | null;
|
|
482
|
+
additionalFeesUSD: number | null;
|
|
435
483
|
contractAddress: Address;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
* @deprecated The method should not be used
|
|
472
|
-
*/
|
|
473
|
-
responseSwapToken(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
474
|
-
/**
|
|
475
|
-
* @deprecated The method should not be used
|
|
476
|
-
*/
|
|
477
|
-
transferFunds<T>(payload: GenericPayload<T>, fareAmount: FareAmountBase, walletAddress?: Address, expiredAt?: Date): Promise<`0x${string}`>;
|
|
478
|
-
/**
|
|
479
|
-
* @deprecated The method should not be used
|
|
480
|
-
*/
|
|
481
|
-
responseOpenPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
482
|
-
/**
|
|
483
|
-
* @deprecated The method should not be used
|
|
484
|
-
*/
|
|
485
|
-
closePartialPosition(payload: ClosePositionPayload, expireAt?: Date): Promise<`0x${string}`>;
|
|
486
|
-
/**
|
|
487
|
-
* @deprecated The method should not be used
|
|
488
|
-
*/
|
|
489
|
-
responseClosePartialPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
490
|
-
/**
|
|
491
|
-
* @deprecated The method should not be used
|
|
492
|
-
*/
|
|
493
|
-
requestClosePosition(payload: RequestClosePositionPayload): Promise<`0x${string}`>;
|
|
494
|
-
/**
|
|
495
|
-
* @deprecated The method should not be used
|
|
496
|
-
*/
|
|
497
|
-
responseRequestClosePosition(memoId: number, accept: boolean, payload: ClosePositionPayload, reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
|
|
498
|
-
/**
|
|
499
|
-
* @deprecated The method should not be used
|
|
500
|
-
*/
|
|
501
|
-
confirmClosePosition(memoId: number, accept: boolean, reason?: string): Promise<void>;
|
|
502
|
-
/**
|
|
503
|
-
* @deprecated The method should not be used
|
|
504
|
-
*/
|
|
505
|
-
positionFulfilled(payload: PositionFulfilledPayload, expiredAt?: Date): Promise<`0x${string}`>;
|
|
506
|
-
/**
|
|
507
|
-
* @deprecated The method should not be used
|
|
508
|
-
*/
|
|
509
|
-
unfulfilledPosition(payload: UnfulfilledPositionPayload, expiredAt?: Date): Promise<`0x${string}`>;
|
|
510
|
-
/**
|
|
511
|
-
* @deprecated The method should not be used
|
|
512
|
-
*/
|
|
513
|
-
responseUnfulfilledPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
514
|
-
/**
|
|
515
|
-
* @deprecated The method should not be used
|
|
516
|
-
*/
|
|
517
|
-
responsePositionFulfilled(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
518
|
-
/**
|
|
519
|
-
* @deprecated The method should not be used
|
|
520
|
-
*/
|
|
521
|
-
closeJob(message?: string): Promise<`0x${string}`>;
|
|
522
|
-
/**
|
|
523
|
-
* @deprecated The method should not be used
|
|
524
|
-
*/
|
|
525
|
-
responseCloseJob(memoId: number, accept: boolean, fulfilledPositions: PositionFulfilledPayload[], reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
|
|
526
|
-
/**
|
|
527
|
-
* @deprecated The method should not be used
|
|
528
|
-
*/
|
|
529
|
-
confirmJobClosure(memoId: number, accept: boolean, reason?: string): Promise<void>;
|
|
484
|
+
accountId: number | null;
|
|
485
|
+
x402Nonce: string;
|
|
486
|
+
};
|
|
487
|
+
type X402PaymentResponse = {
|
|
488
|
+
isPaymentRequired: boolean;
|
|
489
|
+
data: X402PayableRequirements;
|
|
490
|
+
};
|
|
491
|
+
type IAcpMemoContent = {
|
|
492
|
+
id: number;
|
|
493
|
+
content: string;
|
|
494
|
+
url: string;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
type SupportedChain = typeof mainnet | typeof sepolia | typeof polygon | typeof polygonAmoy | typeof bsc | typeof bscTestnet | typeof arbitrum | typeof arbitrumSepolia;
|
|
498
|
+
declare class AcpContractConfig {
|
|
499
|
+
chain: typeof baseSepolia | typeof base;
|
|
500
|
+
contractAddress: Address$1;
|
|
501
|
+
baseFare: Fare;
|
|
502
|
+
alchemyRpcUrl: string;
|
|
503
|
+
acpUrl: string;
|
|
504
|
+
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
505
|
+
maxRetries: number;
|
|
506
|
+
rpcEndpoint?: string | undefined;
|
|
507
|
+
x402Config?: X402Config | undefined;
|
|
508
|
+
retryConfig?: {
|
|
509
|
+
intervalMs: number;
|
|
510
|
+
multiplier: number;
|
|
511
|
+
maxRetries: number;
|
|
512
|
+
} | undefined;
|
|
513
|
+
chains: SupportedChain[];
|
|
514
|
+
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?: {
|
|
515
|
+
intervalMs: number;
|
|
516
|
+
multiplier: number;
|
|
517
|
+
maxRetries: number;
|
|
518
|
+
} | undefined, chains?: SupportedChain[]);
|
|
530
519
|
}
|
|
520
|
+
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
521
|
+
declare const baseSepoliaAcpConfigV2: AcpContractConfig;
|
|
522
|
+
declare const baseSepoliaAcpX402ConfigV2: AcpContractConfig;
|
|
523
|
+
declare const baseAcpConfig: AcpContractConfig;
|
|
524
|
+
declare const baseAcpX402Config: AcpContractConfig;
|
|
525
|
+
declare const baseAcpConfigV2: AcpContractConfig;
|
|
526
|
+
declare const baseAcpX402ConfigV2: AcpContractConfig;
|
|
531
527
|
|
|
532
|
-
declare
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
528
|
+
declare enum MemoType {
|
|
529
|
+
MESSAGE = 0,// 0 - Text message
|
|
530
|
+
CONTEXT_URL = 1,// 1 - URL for context
|
|
531
|
+
IMAGE_URL = 2,// 2 - Image URL
|
|
532
|
+
VOICE_URL = 3,// 3 - Voice/audio URL
|
|
533
|
+
OBJECT_URL = 4,// 4 - Object/file URL
|
|
534
|
+
TXHASH = 5,// 5 - Transaction hash reference
|
|
535
|
+
PAYABLE_REQUEST = 6,// 6 - Payment request
|
|
536
|
+
PAYABLE_TRANSFER = 7,// 7 - Direct payment transfer
|
|
537
|
+
PAYABLE_TRANSFER_ESCROW = 8,// 8 - Escrowed payment transfer
|
|
538
|
+
NOTIFICATION = 9,// 9 - Notification
|
|
539
|
+
PAYABLE_NOTIFICATION = 10
|
|
540
|
+
}
|
|
541
|
+
declare enum AcpJobPhases {
|
|
542
|
+
REQUEST = 0,
|
|
543
|
+
NEGOTIATION = 1,
|
|
544
|
+
TRANSACTION = 2,
|
|
545
|
+
EVALUATION = 3,
|
|
546
|
+
COMPLETED = 4,
|
|
547
|
+
REJECTED = 5,
|
|
548
|
+
EXPIRED = 6
|
|
549
|
+
}
|
|
550
|
+
declare enum FeeType {
|
|
551
|
+
NO_FEE = 0,
|
|
552
|
+
IMMEDIATE_FEE = 1,
|
|
553
|
+
DEFERRED_FEE = 2,
|
|
554
|
+
PERCENTAGE_FEE = 3
|
|
555
|
+
}
|
|
556
|
+
interface OperationPayload {
|
|
557
|
+
data: `0x${string}`;
|
|
558
|
+
contractAddress: Address;
|
|
559
|
+
value?: bigint;
|
|
560
|
+
}
|
|
561
|
+
declare abstract class BaseAcpContractClient {
|
|
562
|
+
agentWalletAddress: Address;
|
|
563
|
+
config: AcpContractConfig;
|
|
564
|
+
contractAddress: Address;
|
|
565
|
+
chain: Chain;
|
|
566
|
+
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
567
|
+
jobCreatedSignature: string;
|
|
568
|
+
publicClient: ReturnType<typeof createPublicClient>;
|
|
569
|
+
publicClients: Record<number, ReturnType<typeof createPublicClient>>;
|
|
570
|
+
constructor(agentWalletAddress: Address, config?: AcpContractConfig);
|
|
571
|
+
protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
|
|
572
|
+
abstract handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
|
|
573
|
+
userOpHash: Address;
|
|
574
|
+
txnHash: Address;
|
|
575
|
+
}>;
|
|
576
|
+
abstract getJobId(createJobUserOpHash: Address, clientAddress: Address, providerAddress: Address): Promise<number>;
|
|
577
|
+
get walletAddress(): `0x${string}`;
|
|
578
|
+
createJobWithAccount(accountId: number, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date, isX402Job?: boolean): OperationPayload;
|
|
579
|
+
createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
|
|
580
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address, targetAddress?: Address): OperationPayload;
|
|
581
|
+
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;
|
|
582
|
+
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;
|
|
583
|
+
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): OperationPayload;
|
|
584
|
+
createMemoWithMetadata(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases, metadata: string): OperationPayload;
|
|
585
|
+
signMemo(memoId: number, isApproved: boolean, reason?: string): OperationPayload;
|
|
586
|
+
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload | undefined;
|
|
587
|
+
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
588
|
+
wrapEth(amountBaseUnit: bigint): OperationPayload;
|
|
589
|
+
getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
|
|
590
|
+
abstract updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
591
|
+
abstract generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
592
|
+
abstract performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
593
|
+
submitTransferWithAuthorization(from: Address, to: Address, value: bigint, validAfter: bigint, validBefore: bigint, nonce: string, signature: string): Promise<OperationPayload[]>;
|
|
594
|
+
getERC20Balance(chainId: number, tokenAddress: Address, walletAddress: Address): Promise<bigint>;
|
|
595
|
+
getERC20Allowance(chainId: number, tokenAddress: Address, walletAddress: Address, spenderAddress: Address): Promise<bigint>;
|
|
596
|
+
getERC20Symbol(chainId: number, tokenAddress: Address): Promise<string>;
|
|
597
|
+
getERC20Decimals(chainId: number, tokenAddress: Address): Promise<number>;
|
|
598
|
+
abstract getAssetManager(): Promise<Address>;
|
|
599
|
+
abstract getAcpVersion(): string;
|
|
600
|
+
abstract signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
|
|
542
601
|
}
|
|
543
602
|
|
|
603
|
+
interface IAcpGetAgentOptions {
|
|
604
|
+
showHiddenOfferings?: boolean;
|
|
605
|
+
}
|
|
544
606
|
interface IAcpBrowseAgentsOptions {
|
|
545
607
|
cluster?: string;
|
|
608
|
+
sortBy?: AcpAgentSort[];
|
|
609
|
+
topK?: number;
|
|
546
610
|
sort_by?: AcpAgentSort[];
|
|
547
611
|
top_k?: number;
|
|
548
612
|
graduationStatus?: AcpGraduationStatus;
|
|
549
613
|
onlineStatus?: AcpOnlineStatus;
|
|
614
|
+
showHiddenOfferings?: boolean;
|
|
550
615
|
}
|
|
551
616
|
declare class AcpClient {
|
|
552
617
|
private contractClients;
|
|
553
618
|
private onNewTask?;
|
|
554
619
|
private onEvaluate?;
|
|
620
|
+
private acpClient;
|
|
621
|
+
private noAuthAcpClient;
|
|
622
|
+
private accessToken;
|
|
623
|
+
private accessTokenInflight;
|
|
555
624
|
constructor(options: IAcpClientOptions);
|
|
625
|
+
private getAccessToken;
|
|
626
|
+
private refreshToken;
|
|
627
|
+
private getAuthChallenge;
|
|
628
|
+
private verifyAuthChallenge;
|
|
556
629
|
contractClientByAddress(address: Address | undefined): BaseAcpContractClient;
|
|
557
630
|
get acpContractClient(): BaseAcpContractClient;
|
|
558
631
|
get acpUrl(): string;
|
|
559
632
|
private defaultOnEvaluate;
|
|
560
|
-
get walletAddress():
|
|
561
|
-
init(): Promise<void>;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
twitterHandle: string;
|
|
569
|
-
walletAddress: `0x${string}`;
|
|
570
|
-
metrics: {
|
|
571
|
-
successfulJobCount: number;
|
|
572
|
-
successRate: number;
|
|
573
|
-
uniqueBuyerCount: number;
|
|
574
|
-
minsFromLastOnline: number;
|
|
575
|
-
isOnline: boolean;
|
|
576
|
-
} | undefined;
|
|
577
|
-
resource: {
|
|
578
|
-
name: string;
|
|
579
|
-
description: string;
|
|
580
|
-
url: string;
|
|
581
|
-
parameters?: Object;
|
|
582
|
-
id: number;
|
|
583
|
-
}[];
|
|
584
|
-
}[]>;
|
|
633
|
+
get walletAddress(): `0x${string}`;
|
|
634
|
+
init(skipSocketConnection?: boolean): Promise<void>;
|
|
635
|
+
private _fetch;
|
|
636
|
+
private _hydrateMemo;
|
|
637
|
+
private _hydrateJob;
|
|
638
|
+
private _hydrateJobs;
|
|
639
|
+
private _hydrateAgent;
|
|
640
|
+
browseAgents(keyword: string, options?: IAcpBrowseAgentsOptions): Promise<AcpAgent[]>;
|
|
585
641
|
initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: FareAmountBase, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
586
|
-
createMemo(jobId: number, content: string, nextPhase: AcpJobPhases): Promise<`0x${string}`>;
|
|
587
|
-
createPayableMemo(jobId: number, content: string, amount: FareAmountBase, recipient: Address, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, expiredAt: Date): Promise<`0x${string}`>;
|
|
588
|
-
respondJob(jobId: number, memoId: number, accept: boolean, content?: string, reason?: string): Promise<`0x${string}` | undefined>;
|
|
589
|
-
payJob(jobId: number, amountBaseUnit: bigint, memoId: number, reason?: string): Promise<`0x${string}`>;
|
|
590
|
-
requestFunds<T>(jobId: number, transferFareAmount: FareAmountBase, recipient: Address, feeFareAmount: FareAmountBase, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
591
|
-
responseFundsRequest(memoId: number, accept: boolean, amountBaseUnit: bigint, reason?: string): Promise<`0x${string}`>;
|
|
592
|
-
transferFunds<T>(jobId: number, transferFareAmount: FareAmountBase, recipient: Address, feeFareAmount: FareAmountBase, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
593
|
-
sendMessage<T>(jobId: number, message: GenericPayload<T>, nextPhase: AcpJobPhases): Promise<`0x${string}`>;
|
|
594
|
-
responseFundsTransfer(memoId: number, accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
595
|
-
rejectJob(jobId: number, reason?: string): Promise<`0x${string}`>;
|
|
596
|
-
deliverJob(jobId: number, deliverable: DeliverablePayload): Promise<`0x${string}`>;
|
|
597
642
|
getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
598
643
|
getPendingMemoJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
599
644
|
getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
600
645
|
getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
601
|
-
getJobById(jobId: number): Promise<AcpJob |
|
|
602
|
-
getMemoById(jobId: number, memoId: number): Promise<AcpMemo |
|
|
603
|
-
getAgent(walletAddress: Address): Promise<AcpAgent |
|
|
646
|
+
getJobById(jobId: number): Promise<AcpJob | null>;
|
|
647
|
+
getMemoById(jobId: number, memoId: number): Promise<AcpMemo | null>;
|
|
648
|
+
getAgent(walletAddress: Address, options?: IAcpGetAgentOptions): Promise<AcpAgent | null>;
|
|
604
649
|
getAccountByJobId(jobId: number, acpContractClient?: BaseAcpContractClient): Promise<AcpAccount | null>;
|
|
605
650
|
getByClientAndProvider(clientAddress: Address, providerAddress: Address, acpContractClient?: BaseAcpContractClient): Promise<AcpAccount | null>;
|
|
651
|
+
createMemoContent(jobId: number, content: string): Promise<IAcpMemoContent>;
|
|
652
|
+
getTokenBalances(): Promise<{
|
|
653
|
+
tokens: Record<string, any>;
|
|
654
|
+
} | undefined>;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
declare class AcpX402 {
|
|
658
|
+
private config;
|
|
659
|
+
private sessionKeyClient;
|
|
660
|
+
private publicClient;
|
|
661
|
+
constructor(config: AcpContractConfig, sessionKeyClient: ModularAccountV2Client, publicClient: ReturnType<typeof createPublicClient>);
|
|
662
|
+
signUpdateJobNonceMessage(jobId: number, nonce: string): Promise<`0x${string}`>;
|
|
663
|
+
updateJobNonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
664
|
+
generatePayment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
665
|
+
performRequest(url: string, version: string, budget?: string, signature?: string): Promise<{
|
|
666
|
+
isPaymentRequired: boolean;
|
|
667
|
+
data: any;
|
|
668
|
+
}>;
|
|
606
669
|
}
|
|
607
670
|
|
|
608
671
|
declare class AcpContractClient extends BaseAcpContractClient {
|
|
609
|
-
protected MAX_RETRIES: number;
|
|
610
672
|
protected PRIORITY_FEE_MULTIPLIER: number;
|
|
611
673
|
protected MAX_FEE_PER_GAS: number;
|
|
612
674
|
protected MAX_PRIORITY_FEE_PER_GAS: number;
|
|
675
|
+
private RETRY_CONFIG;
|
|
613
676
|
private _sessionKeyClient;
|
|
677
|
+
private _acpX402;
|
|
614
678
|
constructor(agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
615
679
|
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClient>;
|
|
616
680
|
init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
|
|
@@ -626,6 +690,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
626
690
|
request?: (parameters: viem.CcipRequestParameters) => Promise<viem__types_utils_ccip.CcipRequestReturnType>;
|
|
627
691
|
} | undefined;
|
|
628
692
|
chain: viem.Chain;
|
|
693
|
+
experimental_blockTag?: viem.BlockTag | undefined;
|
|
629
694
|
key: string;
|
|
630
695
|
name: string;
|
|
631
696
|
pollingInterval: number;
|
|
@@ -639,7 +704,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
639
704
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
640
705
|
}, {
|
|
641
706
|
Method: "eth_getUserOperationReceipt";
|
|
642
|
-
Parameters: [viem.Hash];
|
|
707
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
643
708
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
644
709
|
}, {
|
|
645
710
|
Method: "eth_getUserOperationByHash";
|
|
@@ -679,8 +744,8 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
679
744
|
ReturnType: viem.Quantity;
|
|
680
745
|
}, {
|
|
681
746
|
Method: "eth_call";
|
|
682
|
-
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
683
|
-
ReturnType:
|
|
747
|
+
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];
|
|
748
|
+
ReturnType: Hex;
|
|
684
749
|
}, {
|
|
685
750
|
Method: "eth_createAccessList";
|
|
686
751
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -731,11 +796,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
731
796
|
}, {
|
|
732
797
|
Method: "eth_getCode";
|
|
733
798
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
734
|
-
ReturnType:
|
|
799
|
+
ReturnType: Hex;
|
|
735
800
|
}, {
|
|
736
801
|
Method: "eth_getFilterChanges";
|
|
737
802
|
Parameters: [filterId: viem.Quantity];
|
|
738
|
-
ReturnType: viem.RpcLog[] |
|
|
803
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
739
804
|
}, {
|
|
740
805
|
Method: "eth_getFilterLogs";
|
|
741
806
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -762,7 +827,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
762
827
|
}, {
|
|
763
828
|
Method: "eth_getStorageAt";
|
|
764
829
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
765
|
-
ReturnType:
|
|
830
|
+
ReturnType: Hex;
|
|
766
831
|
}, {
|
|
767
832
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
768
833
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -826,8 +891,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
826
891
|
ReturnType: string;
|
|
827
892
|
}, {
|
|
828
893
|
Method: "eth_sendRawTransaction";
|
|
829
|
-
Parameters: [signedTransaction:
|
|
894
|
+
Parameters: [signedTransaction: Hex];
|
|
830
895
|
ReturnType: viem.Hash;
|
|
896
|
+
}, {
|
|
897
|
+
Method: "eth_sendRawTransactionSync";
|
|
898
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
899
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
831
900
|
}, {
|
|
832
901
|
Method: "eth_simulateV1";
|
|
833
902
|
Parameters: [{
|
|
@@ -843,14 +912,14 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
843
912
|
ReturnType: readonly (viem.RpcBlock & {
|
|
844
913
|
calls: readonly {
|
|
845
914
|
error?: {
|
|
846
|
-
data?:
|
|
915
|
+
data?: Hex | undefined;
|
|
847
916
|
code: number;
|
|
848
917
|
message: string;
|
|
849
918
|
} | undefined;
|
|
850
919
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
851
|
-
gasUsed:
|
|
852
|
-
returnData:
|
|
853
|
-
status:
|
|
920
|
+
gasUsed: Hex;
|
|
921
|
+
returnData: Hex;
|
|
922
|
+
status: Hex;
|
|
854
923
|
}[];
|
|
855
924
|
})[];
|
|
856
925
|
}, {
|
|
@@ -867,12 +936,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
867
936
|
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>>;
|
|
868
937
|
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>>>;
|
|
869
938
|
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>>>;
|
|
870
|
-
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<
|
|
871
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
939
|
+
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>;
|
|
940
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
872
941
|
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>>>;
|
|
873
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
874
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
875
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
942
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
943
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
944
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
876
945
|
signTypedData: <const TTypedData extends {
|
|
877
946
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
878
947
|
[x: `string[${string}]`]: undefined;
|
|
@@ -884,8 +953,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
884
953
|
[x: `uint8[${string}]`]: undefined;
|
|
885
954
|
[x: `bool[${string}]`]: undefined;
|
|
886
955
|
[x: `bytes4[${string}]`]: undefined;
|
|
956
|
+
[x: `uint32[${string}]`]: undefined;
|
|
887
957
|
[x: `bytes[${string}]`]: undefined;
|
|
888
958
|
[x: `bytes6[${string}]`]: undefined;
|
|
959
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
889
960
|
[x: `bytes1[${string}]`]: undefined;
|
|
890
961
|
[x: `bytes2[${string}]`]: undefined;
|
|
891
962
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -893,7 +964,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
893
964
|
[x: `bytes7[${string}]`]: undefined;
|
|
894
965
|
[x: `bytes8[${string}]`]: undefined;
|
|
895
966
|
[x: `bytes9[${string}]`]: undefined;
|
|
896
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
897
967
|
[x: `bytes11[${string}]`]: undefined;
|
|
898
968
|
[x: `bytes12[${string}]`]: undefined;
|
|
899
969
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -916,6 +986,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
916
986
|
[x: `bytes30[${string}]`]: undefined;
|
|
917
987
|
[x: `bytes31[${string}]`]: undefined;
|
|
918
988
|
[x: `int[${string}]`]: undefined;
|
|
989
|
+
[x: `int200[${string}]`]: undefined;
|
|
919
990
|
[x: `int8[${string}]`]: undefined;
|
|
920
991
|
[x: `int16[${string}]`]: undefined;
|
|
921
992
|
[x: `int24[${string}]`]: undefined;
|
|
@@ -940,7 +1011,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
940
1011
|
[x: `int176[${string}]`]: undefined;
|
|
941
1012
|
[x: `int184[${string}]`]: undefined;
|
|
942
1013
|
[x: `int192[${string}]`]: undefined;
|
|
943
|
-
[x: `int200[${string}]`]: undefined;
|
|
944
1014
|
[x: `int208[${string}]`]: undefined;
|
|
945
1015
|
[x: `int216[${string}]`]: undefined;
|
|
946
1016
|
[x: `int224[${string}]`]: undefined;
|
|
@@ -949,9 +1019,9 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
949
1019
|
[x: `int248[${string}]`]: undefined;
|
|
950
1020
|
[x: `int256[${string}]`]: undefined;
|
|
951
1021
|
[x: `uint[${string}]`]: undefined;
|
|
1022
|
+
[x: `uint200[${string}]`]: undefined;
|
|
952
1023
|
[x: `uint16[${string}]`]: undefined;
|
|
953
1024
|
[x: `uint24[${string}]`]: undefined;
|
|
954
|
-
[x: `uint32[${string}]`]: undefined;
|
|
955
1025
|
[x: `uint40[${string}]`]: undefined;
|
|
956
1026
|
[x: `uint48[${string}]`]: undefined;
|
|
957
1027
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -971,7 +1041,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
971
1041
|
[x: `uint176[${string}]`]: undefined;
|
|
972
1042
|
[x: `uint184[${string}]`]: undefined;
|
|
973
1043
|
[x: `uint192[${string}]`]: undefined;
|
|
974
|
-
[x: `uint200[${string}]`]: undefined;
|
|
975
1044
|
[x: `uint208[${string}]`]: undefined;
|
|
976
1045
|
[x: `uint216[${string}]`]: undefined;
|
|
977
1046
|
[x: `uint224[${string}]`]: undefined;
|
|
@@ -986,8 +1055,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
986
1055
|
uint8?: undefined;
|
|
987
1056
|
bool?: undefined;
|
|
988
1057
|
bytes4?: undefined;
|
|
1058
|
+
uint32?: undefined;
|
|
989
1059
|
bytes?: undefined;
|
|
990
1060
|
bytes6?: undefined;
|
|
1061
|
+
bytes10?: undefined;
|
|
991
1062
|
bytes1?: undefined;
|
|
992
1063
|
bytes2?: undefined;
|
|
993
1064
|
bytes3?: undefined;
|
|
@@ -995,7 +1066,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
995
1066
|
bytes7?: undefined;
|
|
996
1067
|
bytes8?: undefined;
|
|
997
1068
|
bytes9?: undefined;
|
|
998
|
-
bytes10?: undefined;
|
|
999
1069
|
bytes11?: undefined;
|
|
1000
1070
|
bytes12?: undefined;
|
|
1001
1071
|
bytes13?: undefined;
|
|
@@ -1017,6 +1087,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1017
1087
|
bytes29?: undefined;
|
|
1018
1088
|
bytes30?: undefined;
|
|
1019
1089
|
bytes31?: undefined;
|
|
1090
|
+
int200?: undefined;
|
|
1020
1091
|
int8?: undefined;
|
|
1021
1092
|
int16?: undefined;
|
|
1022
1093
|
int24?: undefined;
|
|
@@ -1041,7 +1112,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1041
1112
|
int176?: undefined;
|
|
1042
1113
|
int184?: undefined;
|
|
1043
1114
|
int192?: undefined;
|
|
1044
|
-
int200?: undefined;
|
|
1045
1115
|
int208?: undefined;
|
|
1046
1116
|
int216?: undefined;
|
|
1047
1117
|
int224?: undefined;
|
|
@@ -1049,9 +1119,9 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1049
1119
|
int240?: undefined;
|
|
1050
1120
|
int248?: undefined;
|
|
1051
1121
|
int256?: undefined;
|
|
1122
|
+
uint200?: undefined;
|
|
1052
1123
|
uint16?: undefined;
|
|
1053
1124
|
uint24?: undefined;
|
|
1054
|
-
uint32?: undefined;
|
|
1055
1125
|
uint40?: undefined;
|
|
1056
1126
|
uint48?: undefined;
|
|
1057
1127
|
uint56?: undefined;
|
|
@@ -1071,7 +1141,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1071
1141
|
uint176?: undefined;
|
|
1072
1142
|
uint184?: undefined;
|
|
1073
1143
|
uint192?: undefined;
|
|
1074
|
-
uint200?: undefined;
|
|
1075
1144
|
uint208?: undefined;
|
|
1076
1145
|
uint216?: undefined;
|
|
1077
1146
|
uint224?: undefined;
|
|
@@ -1080,12 +1149,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1080
1149
|
uint248?: undefined;
|
|
1081
1150
|
} | {
|
|
1082
1151
|
[key: string]: unknown;
|
|
1083
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
1152
|
+
}, 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>;
|
|
1084
1153
|
getAddress: () => Address$1;
|
|
1085
1154
|
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>>;
|
|
1086
1155
|
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>;
|
|
1087
1156
|
getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
|
|
1088
|
-
getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
1157
|
+
getUserOperationReceipt: (hash: viem.Hash, tag?: "pending" | "latest") => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
1089
1158
|
getSupportedEntryPoints: () => Promise<Address$1[]>;
|
|
1090
1159
|
call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
|
|
1091
1160
|
createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
|
|
@@ -1109,15 +1178,15 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1109
1178
|
blobGasUsed: bigint;
|
|
1110
1179
|
difficulty: bigint;
|
|
1111
1180
|
excessBlobGas: bigint;
|
|
1112
|
-
extraData:
|
|
1181
|
+
extraData: Hex;
|
|
1113
1182
|
gasLimit: bigint;
|
|
1114
1183
|
gasUsed: bigint;
|
|
1115
1184
|
miner: Address$1;
|
|
1116
1185
|
mixHash: viem.Hash;
|
|
1117
1186
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
1118
1187
|
parentHash: viem.Hash;
|
|
1119
|
-
receiptsRoot:
|
|
1120
|
-
sealFields:
|
|
1188
|
+
receiptsRoot: Hex;
|
|
1189
|
+
sealFields: Hex[];
|
|
1121
1190
|
sha3Uncles: viem.Hash;
|
|
1122
1191
|
size: bigint;
|
|
1123
1192
|
stateRoot: viem.Hash;
|
|
@@ -1133,11 +1202,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1133
1202
|
yParity?: undefined | undefined;
|
|
1134
1203
|
gas: bigint;
|
|
1135
1204
|
hash: viem.Hash;
|
|
1136
|
-
input:
|
|
1205
|
+
input: Hex;
|
|
1137
1206
|
nonce: number;
|
|
1138
|
-
r:
|
|
1139
|
-
s:
|
|
1140
|
-
typeHex:
|
|
1207
|
+
r: Hex;
|
|
1208
|
+
s: Hex;
|
|
1209
|
+
typeHex: Hex | null;
|
|
1141
1210
|
v: bigint;
|
|
1142
1211
|
value: bigint;
|
|
1143
1212
|
accessList?: undefined | undefined;
|
|
@@ -1158,11 +1227,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1158
1227
|
yParity: number;
|
|
1159
1228
|
gas: bigint;
|
|
1160
1229
|
hash: viem.Hash;
|
|
1161
|
-
input:
|
|
1230
|
+
input: Hex;
|
|
1162
1231
|
nonce: number;
|
|
1163
|
-
r:
|
|
1164
|
-
s:
|
|
1165
|
-
typeHex:
|
|
1232
|
+
r: Hex;
|
|
1233
|
+
s: Hex;
|
|
1234
|
+
typeHex: Hex | null;
|
|
1166
1235
|
v: bigint;
|
|
1167
1236
|
value: bigint;
|
|
1168
1237
|
accessList: viem.AccessList;
|
|
@@ -1183,11 +1252,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1183
1252
|
yParity: number;
|
|
1184
1253
|
gas: bigint;
|
|
1185
1254
|
hash: viem.Hash;
|
|
1186
|
-
input:
|
|
1255
|
+
input: Hex;
|
|
1187
1256
|
nonce: number;
|
|
1188
|
-
r:
|
|
1189
|
-
s:
|
|
1190
|
-
typeHex:
|
|
1257
|
+
r: Hex;
|
|
1258
|
+
s: Hex;
|
|
1259
|
+
typeHex: Hex | null;
|
|
1191
1260
|
v: bigint;
|
|
1192
1261
|
value: bigint;
|
|
1193
1262
|
accessList: viem.AccessList;
|
|
@@ -1208,16 +1277,16 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1208
1277
|
yParity: number;
|
|
1209
1278
|
gas: bigint;
|
|
1210
1279
|
hash: viem.Hash;
|
|
1211
|
-
input:
|
|
1280
|
+
input: Hex;
|
|
1212
1281
|
nonce: number;
|
|
1213
|
-
r:
|
|
1214
|
-
s:
|
|
1215
|
-
typeHex:
|
|
1282
|
+
r: Hex;
|
|
1283
|
+
s: Hex;
|
|
1284
|
+
typeHex: Hex | null;
|
|
1216
1285
|
v: bigint;
|
|
1217
1286
|
value: bigint;
|
|
1218
1287
|
accessList: viem.AccessList;
|
|
1219
1288
|
authorizationList?: undefined | undefined;
|
|
1220
|
-
blobVersionedHashes: readonly
|
|
1289
|
+
blobVersionedHashes: readonly Hex[];
|
|
1221
1290
|
chainId: number;
|
|
1222
1291
|
type: "eip4844";
|
|
1223
1292
|
gasPrice?: undefined | undefined;
|
|
@@ -1233,11 +1302,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1233
1302
|
yParity: number;
|
|
1234
1303
|
gas: bigint;
|
|
1235
1304
|
hash: viem.Hash;
|
|
1236
|
-
input:
|
|
1305
|
+
input: Hex;
|
|
1237
1306
|
nonce: number;
|
|
1238
|
-
r:
|
|
1239
|
-
s:
|
|
1240
|
-
typeHex:
|
|
1307
|
+
r: Hex;
|
|
1308
|
+
s: Hex;
|
|
1309
|
+
typeHex: Hex | null;
|
|
1241
1310
|
v: bigint;
|
|
1242
1311
|
value: bigint;
|
|
1243
1312
|
accessList: viem.AccessList;
|
|
@@ -1283,11 +1352,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1283
1352
|
yParity?: undefined | undefined;
|
|
1284
1353
|
gas: bigint;
|
|
1285
1354
|
hash: viem.Hash;
|
|
1286
|
-
input:
|
|
1355
|
+
input: Hex;
|
|
1287
1356
|
nonce: number;
|
|
1288
|
-
r:
|
|
1289
|
-
s:
|
|
1290
|
-
typeHex:
|
|
1357
|
+
r: Hex;
|
|
1358
|
+
s: Hex;
|
|
1359
|
+
typeHex: Hex | null;
|
|
1291
1360
|
v: bigint;
|
|
1292
1361
|
value: bigint;
|
|
1293
1362
|
accessList?: undefined | undefined;
|
|
@@ -1308,11 +1377,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1308
1377
|
yParity: number;
|
|
1309
1378
|
gas: bigint;
|
|
1310
1379
|
hash: viem.Hash;
|
|
1311
|
-
input:
|
|
1380
|
+
input: Hex;
|
|
1312
1381
|
nonce: number;
|
|
1313
|
-
r:
|
|
1314
|
-
s:
|
|
1315
|
-
typeHex:
|
|
1382
|
+
r: Hex;
|
|
1383
|
+
s: Hex;
|
|
1384
|
+
typeHex: Hex | null;
|
|
1316
1385
|
v: bigint;
|
|
1317
1386
|
value: bigint;
|
|
1318
1387
|
accessList: viem.AccessList;
|
|
@@ -1333,11 +1402,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1333
1402
|
yParity: number;
|
|
1334
1403
|
gas: bigint;
|
|
1335
1404
|
hash: viem.Hash;
|
|
1336
|
-
input:
|
|
1405
|
+
input: Hex;
|
|
1337
1406
|
nonce: number;
|
|
1338
|
-
r:
|
|
1339
|
-
s:
|
|
1340
|
-
typeHex:
|
|
1407
|
+
r: Hex;
|
|
1408
|
+
s: Hex;
|
|
1409
|
+
typeHex: Hex | null;
|
|
1341
1410
|
v: bigint;
|
|
1342
1411
|
value: bigint;
|
|
1343
1412
|
accessList: viem.AccessList;
|
|
@@ -1358,16 +1427,16 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1358
1427
|
yParity: number;
|
|
1359
1428
|
gas: bigint;
|
|
1360
1429
|
hash: viem.Hash;
|
|
1361
|
-
input:
|
|
1430
|
+
input: Hex;
|
|
1362
1431
|
nonce: number;
|
|
1363
|
-
r:
|
|
1364
|
-
s:
|
|
1365
|
-
typeHex:
|
|
1432
|
+
r: Hex;
|
|
1433
|
+
s: Hex;
|
|
1434
|
+
typeHex: Hex | null;
|
|
1366
1435
|
v: bigint;
|
|
1367
1436
|
value: bigint;
|
|
1368
1437
|
accessList: viem.AccessList;
|
|
1369
1438
|
authorizationList?: undefined | undefined;
|
|
1370
|
-
blobVersionedHashes: readonly
|
|
1439
|
+
blobVersionedHashes: readonly Hex[];
|
|
1371
1440
|
chainId: number;
|
|
1372
1441
|
type: "eip4844";
|
|
1373
1442
|
gasPrice?: undefined | undefined;
|
|
@@ -1383,11 +1452,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1383
1452
|
yParity: number;
|
|
1384
1453
|
gas: bigint;
|
|
1385
1454
|
hash: viem.Hash;
|
|
1386
|
-
input:
|
|
1455
|
+
input: Hex;
|
|
1387
1456
|
nonce: number;
|
|
1388
|
-
r:
|
|
1389
|
-
s:
|
|
1390
|
-
typeHex:
|
|
1457
|
+
r: Hex;
|
|
1458
|
+
s: Hex;
|
|
1459
|
+
typeHex: Hex | null;
|
|
1391
1460
|
v: bigint;
|
|
1392
1461
|
value: bigint;
|
|
1393
1462
|
accessList: viem.AccessList;
|
|
@@ -7914,10 +7983,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7914
7983
|
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
|
|
7915
7984
|
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
7916
7985
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
7986
|
+
sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
|
|
7917
7987
|
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7918
7988
|
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7919
7989
|
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
7920
7990
|
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain | undefined, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
7991
|
+
verifyHash: (args: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>;
|
|
7921
7992
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
7922
7993
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
7923
7994
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -7935,6 +8006,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7935
8006
|
cacheTime?: undefined;
|
|
7936
8007
|
ccipRead?: undefined;
|
|
7937
8008
|
chain?: undefined;
|
|
8009
|
+
experimental_blockTag?: undefined;
|
|
7938
8010
|
key?: undefined;
|
|
7939
8011
|
name?: undefined;
|
|
7940
8012
|
pollingInterval?: undefined;
|
|
@@ -7952,7 +8024,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7952
8024
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7953
8025
|
}, {
|
|
7954
8026
|
Method: "eth_getUserOperationReceipt";
|
|
7955
|
-
Parameters: [viem.Hash];
|
|
8027
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
7956
8028
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
7957
8029
|
}, {
|
|
7958
8030
|
Method: "eth_getUserOperationByHash";
|
|
@@ -7992,8 +8064,8 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7992
8064
|
ReturnType: viem.Quantity;
|
|
7993
8065
|
}, {
|
|
7994
8066
|
Method: "eth_call";
|
|
7995
|
-
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
7996
|
-
ReturnType:
|
|
8067
|
+
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];
|
|
8068
|
+
ReturnType: Hex;
|
|
7997
8069
|
}, {
|
|
7998
8070
|
Method: "eth_createAccessList";
|
|
7999
8071
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -8044,11 +8116,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8044
8116
|
}, {
|
|
8045
8117
|
Method: "eth_getCode";
|
|
8046
8118
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8047
|
-
ReturnType:
|
|
8119
|
+
ReturnType: Hex;
|
|
8048
8120
|
}, {
|
|
8049
8121
|
Method: "eth_getFilterChanges";
|
|
8050
8122
|
Parameters: [filterId: viem.Quantity];
|
|
8051
|
-
ReturnType: viem.RpcLog[] |
|
|
8123
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
8052
8124
|
}, {
|
|
8053
8125
|
Method: "eth_getFilterLogs";
|
|
8054
8126
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -8075,7 +8147,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8075
8147
|
}, {
|
|
8076
8148
|
Method: "eth_getStorageAt";
|
|
8077
8149
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8078
|
-
ReturnType:
|
|
8150
|
+
ReturnType: Hex;
|
|
8079
8151
|
}, {
|
|
8080
8152
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
8081
8153
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -8139,8 +8211,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8139
8211
|
ReturnType: string;
|
|
8140
8212
|
}, {
|
|
8141
8213
|
Method: "eth_sendRawTransaction";
|
|
8142
|
-
Parameters: [signedTransaction:
|
|
8214
|
+
Parameters: [signedTransaction: Hex];
|
|
8143
8215
|
ReturnType: viem.Hash;
|
|
8216
|
+
}, {
|
|
8217
|
+
Method: "eth_sendRawTransactionSync";
|
|
8218
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
8219
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
8144
8220
|
}, {
|
|
8145
8221
|
Method: "eth_simulateV1";
|
|
8146
8222
|
Parameters: [{
|
|
@@ -8156,14 +8232,14 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8156
8232
|
ReturnType: readonly (viem.RpcBlock & {
|
|
8157
8233
|
calls: readonly {
|
|
8158
8234
|
error?: {
|
|
8159
|
-
data?:
|
|
8235
|
+
data?: Hex | undefined;
|
|
8160
8236
|
code: number;
|
|
8161
8237
|
message: string;
|
|
8162
8238
|
} | undefined;
|
|
8163
8239
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
8164
|
-
gasUsed:
|
|
8165
|
-
returnData:
|
|
8166
|
-
status:
|
|
8240
|
+
gasUsed: Hex;
|
|
8241
|
+
returnData: Hex;
|
|
8242
|
+
status: Hex;
|
|
8167
8243
|
}[];
|
|
8168
8244
|
})[];
|
|
8169
8245
|
}, {
|
|
@@ -8177,12 +8253,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8177
8253
|
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>>;
|
|
8178
8254
|
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>>>;
|
|
8179
8255
|
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>>>;
|
|
8180
|
-
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<
|
|
8181
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8256
|
+
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>;
|
|
8257
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8182
8258
|
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>>>;
|
|
8183
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
8184
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8185
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8259
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
8260
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8261
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
8186
8262
|
signTypedData: <const TTypedData extends {
|
|
8187
8263
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
8188
8264
|
[x: `string[${string}]`]: undefined;
|
|
@@ -8194,8 +8270,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8194
8270
|
[x: `uint8[${string}]`]: undefined;
|
|
8195
8271
|
[x: `bool[${string}]`]: undefined;
|
|
8196
8272
|
[x: `bytes4[${string}]`]: undefined;
|
|
8273
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8197
8274
|
[x: `bytes[${string}]`]: undefined;
|
|
8198
8275
|
[x: `bytes6[${string}]`]: undefined;
|
|
8276
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
8199
8277
|
[x: `bytes1[${string}]`]: undefined;
|
|
8200
8278
|
[x: `bytes2[${string}]`]: undefined;
|
|
8201
8279
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -8203,7 +8281,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8203
8281
|
[x: `bytes7[${string}]`]: undefined;
|
|
8204
8282
|
[x: `bytes8[${string}]`]: undefined;
|
|
8205
8283
|
[x: `bytes9[${string}]`]: undefined;
|
|
8206
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
8207
8284
|
[x: `bytes11[${string}]`]: undefined;
|
|
8208
8285
|
[x: `bytes12[${string}]`]: undefined;
|
|
8209
8286
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -8226,6 +8303,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8226
8303
|
[x: `bytes30[${string}]`]: undefined;
|
|
8227
8304
|
[x: `bytes31[${string}]`]: undefined;
|
|
8228
8305
|
[x: `int[${string}]`]: undefined;
|
|
8306
|
+
[x: `int200[${string}]`]: undefined;
|
|
8229
8307
|
[x: `int8[${string}]`]: undefined;
|
|
8230
8308
|
[x: `int16[${string}]`]: undefined;
|
|
8231
8309
|
[x: `int24[${string}]`]: undefined;
|
|
@@ -8250,7 +8328,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8250
8328
|
[x: `int176[${string}]`]: undefined;
|
|
8251
8329
|
[x: `int184[${string}]`]: undefined;
|
|
8252
8330
|
[x: `int192[${string}]`]: undefined;
|
|
8253
|
-
[x: `int200[${string}]`]: undefined;
|
|
8254
8331
|
[x: `int208[${string}]`]: undefined;
|
|
8255
8332
|
[x: `int216[${string}]`]: undefined;
|
|
8256
8333
|
[x: `int224[${string}]`]: undefined;
|
|
@@ -8259,9 +8336,9 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8259
8336
|
[x: `int248[${string}]`]: undefined;
|
|
8260
8337
|
[x: `int256[${string}]`]: undefined;
|
|
8261
8338
|
[x: `uint[${string}]`]: undefined;
|
|
8339
|
+
[x: `uint200[${string}]`]: undefined;
|
|
8262
8340
|
[x: `uint16[${string}]`]: undefined;
|
|
8263
8341
|
[x: `uint24[${string}]`]: undefined;
|
|
8264
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8265
8342
|
[x: `uint40[${string}]`]: undefined;
|
|
8266
8343
|
[x: `uint48[${string}]`]: undefined;
|
|
8267
8344
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8281,7 +8358,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8281
8358
|
[x: `uint176[${string}]`]: undefined;
|
|
8282
8359
|
[x: `uint184[${string}]`]: undefined;
|
|
8283
8360
|
[x: `uint192[${string}]`]: undefined;
|
|
8284
|
-
[x: `uint200[${string}]`]: undefined;
|
|
8285
8361
|
[x: `uint208[${string}]`]: undefined;
|
|
8286
8362
|
[x: `uint216[${string}]`]: undefined;
|
|
8287
8363
|
[x: `uint224[${string}]`]: undefined;
|
|
@@ -8296,8 +8372,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8296
8372
|
uint8?: undefined;
|
|
8297
8373
|
bool?: undefined;
|
|
8298
8374
|
bytes4?: undefined;
|
|
8375
|
+
uint32?: undefined;
|
|
8299
8376
|
bytes?: undefined;
|
|
8300
8377
|
bytes6?: undefined;
|
|
8378
|
+
bytes10?: undefined;
|
|
8301
8379
|
bytes1?: undefined;
|
|
8302
8380
|
bytes2?: undefined;
|
|
8303
8381
|
bytes3?: undefined;
|
|
@@ -8305,7 +8383,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8305
8383
|
bytes7?: undefined;
|
|
8306
8384
|
bytes8?: undefined;
|
|
8307
8385
|
bytes9?: undefined;
|
|
8308
|
-
bytes10?: undefined;
|
|
8309
8386
|
bytes11?: undefined;
|
|
8310
8387
|
bytes12?: undefined;
|
|
8311
8388
|
bytes13?: undefined;
|
|
@@ -8327,6 +8404,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8327
8404
|
bytes29?: undefined;
|
|
8328
8405
|
bytes30?: undefined;
|
|
8329
8406
|
bytes31?: undefined;
|
|
8407
|
+
int200?: undefined;
|
|
8330
8408
|
int8?: undefined;
|
|
8331
8409
|
int16?: undefined;
|
|
8332
8410
|
int24?: undefined;
|
|
@@ -8351,7 +8429,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8351
8429
|
int176?: undefined;
|
|
8352
8430
|
int184?: undefined;
|
|
8353
8431
|
int192?: undefined;
|
|
8354
|
-
int200?: undefined;
|
|
8355
8432
|
int208?: undefined;
|
|
8356
8433
|
int216?: undefined;
|
|
8357
8434
|
int224?: undefined;
|
|
@@ -8359,9 +8436,9 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8359
8436
|
int240?: undefined;
|
|
8360
8437
|
int248?: undefined;
|
|
8361
8438
|
int256?: undefined;
|
|
8439
|
+
uint200?: undefined;
|
|
8362
8440
|
uint16?: undefined;
|
|
8363
8441
|
uint24?: undefined;
|
|
8364
|
-
uint32?: undefined;
|
|
8365
8442
|
uint40?: undefined;
|
|
8366
8443
|
uint48?: undefined;
|
|
8367
8444
|
uint56?: undefined;
|
|
@@ -8381,7 +8458,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8381
8458
|
uint176?: undefined;
|
|
8382
8459
|
uint184?: undefined;
|
|
8383
8460
|
uint192?: undefined;
|
|
8384
|
-
uint200?: undefined;
|
|
8385
8461
|
uint208?: undefined;
|
|
8386
8462
|
uint216?: undefined;
|
|
8387
8463
|
uint224?: undefined;
|
|
@@ -8390,7 +8466,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8390
8466
|
uint248?: undefined;
|
|
8391
8467
|
} | {
|
|
8392
8468
|
[key: string]: unknown;
|
|
8393
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8469
|
+
}, 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>;
|
|
8394
8470
|
} & {
|
|
8395
8471
|
getAddress: () => Address$1;
|
|
8396
8472
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
@@ -8403,7 +8479,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8403
8479
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
8404
8480
|
}, {
|
|
8405
8481
|
Method: "eth_getUserOperationReceipt";
|
|
8406
|
-
Parameters: [viem.Hash];
|
|
8482
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
8407
8483
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
8408
8484
|
}, {
|
|
8409
8485
|
Method: "eth_getUserOperationByHash";
|
|
@@ -8443,8 +8519,8 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8443
8519
|
ReturnType: viem.Quantity;
|
|
8444
8520
|
}, {
|
|
8445
8521
|
Method: "eth_call";
|
|
8446
|
-
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
8447
|
-
ReturnType:
|
|
8522
|
+
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];
|
|
8523
|
+
ReturnType: Hex;
|
|
8448
8524
|
}, {
|
|
8449
8525
|
Method: "eth_createAccessList";
|
|
8450
8526
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -8495,11 +8571,11 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8495
8571
|
}, {
|
|
8496
8572
|
Method: "eth_getCode";
|
|
8497
8573
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8498
|
-
ReturnType:
|
|
8574
|
+
ReturnType: Hex;
|
|
8499
8575
|
}, {
|
|
8500
8576
|
Method: "eth_getFilterChanges";
|
|
8501
8577
|
Parameters: [filterId: viem.Quantity];
|
|
8502
|
-
ReturnType: viem.RpcLog[] |
|
|
8578
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
8503
8579
|
}, {
|
|
8504
8580
|
Method: "eth_getFilterLogs";
|
|
8505
8581
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -8526,7 +8602,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8526
8602
|
}, {
|
|
8527
8603
|
Method: "eth_getStorageAt";
|
|
8528
8604
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8529
|
-
ReturnType:
|
|
8605
|
+
ReturnType: Hex;
|
|
8530
8606
|
}, {
|
|
8531
8607
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
8532
8608
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -8590,8 +8666,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8590
8666
|
ReturnType: string;
|
|
8591
8667
|
}, {
|
|
8592
8668
|
Method: "eth_sendRawTransaction";
|
|
8593
|
-
Parameters: [signedTransaction:
|
|
8669
|
+
Parameters: [signedTransaction: Hex];
|
|
8594
8670
|
ReturnType: viem.Hash;
|
|
8671
|
+
}, {
|
|
8672
|
+
Method: "eth_sendRawTransactionSync";
|
|
8673
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
8674
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
8595
8675
|
}, {
|
|
8596
8676
|
Method: "eth_simulateV1";
|
|
8597
8677
|
Parameters: [{
|
|
@@ -8607,14 +8687,14 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8607
8687
|
ReturnType: readonly (viem.RpcBlock & {
|
|
8608
8688
|
calls: readonly {
|
|
8609
8689
|
error?: {
|
|
8610
|
-
data?:
|
|
8690
|
+
data?: Hex | undefined;
|
|
8611
8691
|
code: number;
|
|
8612
8692
|
message: string;
|
|
8613
8693
|
} | undefined;
|
|
8614
8694
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
8615
|
-
gasUsed:
|
|
8616
|
-
returnData:
|
|
8617
|
-
status:
|
|
8695
|
+
gasUsed: Hex;
|
|
8696
|
+
returnData: Hex;
|
|
8697
|
+
status: Hex;
|
|
8618
8698
|
}[];
|
|
8619
8699
|
})[];
|
|
8620
8700
|
}, {
|
|
@@ -8628,12 +8708,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8628
8708
|
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>>;
|
|
8629
8709
|
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>>>;
|
|
8630
8710
|
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>>>;
|
|
8631
|
-
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<
|
|
8632
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8711
|
+
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>;
|
|
8712
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8633
8713
|
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>>>;
|
|
8634
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
8635
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
8636
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8714
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
8715
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
8716
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
8637
8717
|
signTypedData: <const TTypedData extends {
|
|
8638
8718
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
8639
8719
|
[x: `string[${string}]`]: undefined;
|
|
@@ -8645,8 +8725,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8645
8725
|
[x: `uint8[${string}]`]: undefined;
|
|
8646
8726
|
[x: `bool[${string}]`]: undefined;
|
|
8647
8727
|
[x: `bytes4[${string}]`]: undefined;
|
|
8728
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8648
8729
|
[x: `bytes[${string}]`]: undefined;
|
|
8649
8730
|
[x: `bytes6[${string}]`]: undefined;
|
|
8731
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
8650
8732
|
[x: `bytes1[${string}]`]: undefined;
|
|
8651
8733
|
[x: `bytes2[${string}]`]: undefined;
|
|
8652
8734
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -8654,7 +8736,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8654
8736
|
[x: `bytes7[${string}]`]: undefined;
|
|
8655
8737
|
[x: `bytes8[${string}]`]: undefined;
|
|
8656
8738
|
[x: `bytes9[${string}]`]: undefined;
|
|
8657
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
8658
8739
|
[x: `bytes11[${string}]`]: undefined;
|
|
8659
8740
|
[x: `bytes12[${string}]`]: undefined;
|
|
8660
8741
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -8677,6 +8758,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8677
8758
|
[x: `bytes30[${string}]`]: undefined;
|
|
8678
8759
|
[x: `bytes31[${string}]`]: undefined;
|
|
8679
8760
|
[x: `int[${string}]`]: undefined;
|
|
8761
|
+
[x: `int200[${string}]`]: undefined;
|
|
8680
8762
|
[x: `int8[${string}]`]: undefined;
|
|
8681
8763
|
[x: `int16[${string}]`]: undefined;
|
|
8682
8764
|
[x: `int24[${string}]`]: undefined;
|
|
@@ -8701,7 +8783,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8701
8783
|
[x: `int176[${string}]`]: undefined;
|
|
8702
8784
|
[x: `int184[${string}]`]: undefined;
|
|
8703
8785
|
[x: `int192[${string}]`]: undefined;
|
|
8704
|
-
[x: `int200[${string}]`]: undefined;
|
|
8705
8786
|
[x: `int208[${string}]`]: undefined;
|
|
8706
8787
|
[x: `int216[${string}]`]: undefined;
|
|
8707
8788
|
[x: `int224[${string}]`]: undefined;
|
|
@@ -8710,9 +8791,9 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8710
8791
|
[x: `int248[${string}]`]: undefined;
|
|
8711
8792
|
[x: `int256[${string}]`]: undefined;
|
|
8712
8793
|
[x: `uint[${string}]`]: undefined;
|
|
8794
|
+
[x: `uint200[${string}]`]: undefined;
|
|
8713
8795
|
[x: `uint16[${string}]`]: undefined;
|
|
8714
8796
|
[x: `uint24[${string}]`]: undefined;
|
|
8715
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8716
8797
|
[x: `uint40[${string}]`]: undefined;
|
|
8717
8798
|
[x: `uint48[${string}]`]: undefined;
|
|
8718
8799
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8732,7 +8813,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8732
8813
|
[x: `uint176[${string}]`]: undefined;
|
|
8733
8814
|
[x: `uint184[${string}]`]: undefined;
|
|
8734
8815
|
[x: `uint192[${string}]`]: undefined;
|
|
8735
|
-
[x: `uint200[${string}]`]: undefined;
|
|
8736
8816
|
[x: `uint208[${string}]`]: undefined;
|
|
8737
8817
|
[x: `uint216[${string}]`]: undefined;
|
|
8738
8818
|
[x: `uint224[${string}]`]: undefined;
|
|
@@ -8747,8 +8827,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8747
8827
|
uint8?: undefined;
|
|
8748
8828
|
bool?: undefined;
|
|
8749
8829
|
bytes4?: undefined;
|
|
8830
|
+
uint32?: undefined;
|
|
8750
8831
|
bytes?: undefined;
|
|
8751
8832
|
bytes6?: undefined;
|
|
8833
|
+
bytes10?: undefined;
|
|
8752
8834
|
bytes1?: undefined;
|
|
8753
8835
|
bytes2?: undefined;
|
|
8754
8836
|
bytes3?: undefined;
|
|
@@ -8756,7 +8838,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8756
8838
|
bytes7?: undefined;
|
|
8757
8839
|
bytes8?: undefined;
|
|
8758
8840
|
bytes9?: undefined;
|
|
8759
|
-
bytes10?: undefined;
|
|
8760
8841
|
bytes11?: undefined;
|
|
8761
8842
|
bytes12?: undefined;
|
|
8762
8843
|
bytes13?: undefined;
|
|
@@ -8778,6 +8859,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8778
8859
|
bytes29?: undefined;
|
|
8779
8860
|
bytes30?: undefined;
|
|
8780
8861
|
bytes31?: undefined;
|
|
8862
|
+
int200?: undefined;
|
|
8781
8863
|
int8?: undefined;
|
|
8782
8864
|
int16?: undefined;
|
|
8783
8865
|
int24?: undefined;
|
|
@@ -8802,7 +8884,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8802
8884
|
int176?: undefined;
|
|
8803
8885
|
int184?: undefined;
|
|
8804
8886
|
int192?: undefined;
|
|
8805
|
-
int200?: undefined;
|
|
8806
8887
|
int208?: undefined;
|
|
8807
8888
|
int216?: undefined;
|
|
8808
8889
|
int224?: undefined;
|
|
@@ -8810,9 +8891,9 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8810
8891
|
int240?: undefined;
|
|
8811
8892
|
int248?: undefined;
|
|
8812
8893
|
int256?: undefined;
|
|
8894
|
+
uint200?: undefined;
|
|
8813
8895
|
uint16?: undefined;
|
|
8814
8896
|
uint24?: undefined;
|
|
8815
|
-
uint32?: undefined;
|
|
8816
8897
|
uint40?: undefined;
|
|
8817
8898
|
uint48?: undefined;
|
|
8818
8899
|
uint56?: undefined;
|
|
@@ -8832,7 +8913,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8832
8913
|
uint176?: undefined;
|
|
8833
8914
|
uint184?: undefined;
|
|
8834
8915
|
uint192?: undefined;
|
|
8835
|
-
uint200?: undefined;
|
|
8836
8916
|
uint208?: undefined;
|
|
8837
8917
|
uint216?: undefined;
|
|
8838
8918
|
uint224?: undefined;
|
|
@@ -8841,24 +8921,29 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8841
8921
|
uint248?: undefined;
|
|
8842
8922
|
} | {
|
|
8843
8923
|
[key: string]: unknown;
|
|
8844
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
8924
|
+
}, 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>;
|
|
8845
8925
|
} & {
|
|
8846
8926
|
getAddress: () => Address$1;
|
|
8847
8927
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
8848
8928
|
};
|
|
8929
|
+
get acpX402(): AcpX402;
|
|
8849
8930
|
private calculateGasFees;
|
|
8850
|
-
handleOperation(
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
txHash: string;
|
|
8854
|
-
jobId: number;
|
|
8855
|
-
}>;
|
|
8856
|
-
createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address$1, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, expiredAt: Date, token?: Address$1, secured?: boolean): Promise<`0x${string}`>;
|
|
8857
|
-
createJobWithAccount(accountId: number, providerAddress: Address$1, evaluatorAddress: Address$1, budgetBaseUnit: bigint, paymentTokenAddress: Address$1, expiredAt: Date): Promise<{
|
|
8858
|
-
txHash: string;
|
|
8859
|
-
jobId: number;
|
|
8931
|
+
handleOperation(operations: OperationPayload[]): Promise<{
|
|
8932
|
+
userOpHash: Address$1;
|
|
8933
|
+
txnHash: Address$1;
|
|
8860
8934
|
}>;
|
|
8861
|
-
|
|
8935
|
+
getJobId(createJobUserOpHash: Address$1, clientAddress: Address$1, providerAddress: Address$1): Promise<number>;
|
|
8936
|
+
createJob(providerAddress: Address$1, evaluatorAddress: Address$1, expireAt: Date, paymentTokenAddress: Address$1, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
|
|
8937
|
+
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address$1): OperationPayload;
|
|
8938
|
+
createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address$1, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, expiredAt: Date, token?: Address$1, secured?: boolean): OperationPayload;
|
|
8939
|
+
createJobWithAccount(accountId: number, evaluatorAddress: Address$1, budgetBaseUnit: bigint, paymentTokenAddress: Address$1, expiredAt: Date, isX402Job?: boolean): OperationPayload;
|
|
8940
|
+
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
8941
|
+
updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
8942
|
+
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
8943
|
+
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
8944
|
+
getAssetManager(): Promise<Address$1>;
|
|
8945
|
+
getAcpVersion(): string;
|
|
8946
|
+
signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
|
|
8862
8947
|
}
|
|
8863
8948
|
|
|
8864
8949
|
declare function preparePayload(payload: string | object): string;
|
|
@@ -8871,11 +8956,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8871
8956
|
private jobManagerAddress;
|
|
8872
8957
|
private memoManagerAddress;
|
|
8873
8958
|
private accountManagerAddress;
|
|
8874
|
-
private MAX_RETRIES;
|
|
8875
8959
|
private PRIORITY_FEE_MULTIPLIER;
|
|
8876
8960
|
private MAX_FEE_PER_GAS;
|
|
8877
8961
|
private MAX_PRIORITY_FEE_PER_GAS;
|
|
8962
|
+
private GAS_FEE_MULTIPLIER;
|
|
8963
|
+
private RETRY_CONFIG;
|
|
8878
8964
|
private _sessionKeyClient;
|
|
8965
|
+
private _sessionKeyClients;
|
|
8966
|
+
private _acpX402;
|
|
8879
8967
|
constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
8880
8968
|
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
|
|
8881
8969
|
init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
|
|
@@ -8891,6 +8979,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8891
8979
|
request?: (parameters: viem.CcipRequestParameters) => Promise<viem__types_utils_ccip.CcipRequestReturnType>;
|
|
8892
8980
|
} | undefined;
|
|
8893
8981
|
chain: viem.Chain;
|
|
8982
|
+
experimental_blockTag?: viem.BlockTag | undefined;
|
|
8894
8983
|
key: string;
|
|
8895
8984
|
name: string;
|
|
8896
8985
|
pollingInterval: number;
|
|
@@ -8904,7 +8993,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8904
8993
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
8905
8994
|
}, {
|
|
8906
8995
|
Method: "eth_getUserOperationReceipt";
|
|
8907
|
-
Parameters: [viem.Hash];
|
|
8996
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
8908
8997
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
8909
8998
|
}, {
|
|
8910
8999
|
Method: "eth_getUserOperationByHash";
|
|
@@ -8944,8 +9033,8 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8944
9033
|
ReturnType: viem.Quantity;
|
|
8945
9034
|
}, {
|
|
8946
9035
|
Method: "eth_call";
|
|
8947
|
-
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
8948
|
-
ReturnType:
|
|
9036
|
+
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];
|
|
9037
|
+
ReturnType: Hex;
|
|
8949
9038
|
}, {
|
|
8950
9039
|
Method: "eth_createAccessList";
|
|
8951
9040
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -8996,11 +9085,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8996
9085
|
}, {
|
|
8997
9086
|
Method: "eth_getCode";
|
|
8998
9087
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8999
|
-
ReturnType:
|
|
9088
|
+
ReturnType: Hex;
|
|
9000
9089
|
}, {
|
|
9001
9090
|
Method: "eth_getFilterChanges";
|
|
9002
9091
|
Parameters: [filterId: viem.Quantity];
|
|
9003
|
-
ReturnType: viem.RpcLog[] |
|
|
9092
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
9004
9093
|
}, {
|
|
9005
9094
|
Method: "eth_getFilterLogs";
|
|
9006
9095
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -9027,7 +9116,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9027
9116
|
}, {
|
|
9028
9117
|
Method: "eth_getStorageAt";
|
|
9029
9118
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
9030
|
-
ReturnType:
|
|
9119
|
+
ReturnType: Hex;
|
|
9031
9120
|
}, {
|
|
9032
9121
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
9033
9122
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -9091,8 +9180,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9091
9180
|
ReturnType: string;
|
|
9092
9181
|
}, {
|
|
9093
9182
|
Method: "eth_sendRawTransaction";
|
|
9094
|
-
Parameters: [signedTransaction:
|
|
9183
|
+
Parameters: [signedTransaction: Hex];
|
|
9095
9184
|
ReturnType: viem.Hash;
|
|
9185
|
+
}, {
|
|
9186
|
+
Method: "eth_sendRawTransactionSync";
|
|
9187
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
9188
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
9096
9189
|
}, {
|
|
9097
9190
|
Method: "eth_simulateV1";
|
|
9098
9191
|
Parameters: [{
|
|
@@ -9108,14 +9201,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9108
9201
|
ReturnType: readonly (viem.RpcBlock & {
|
|
9109
9202
|
calls: readonly {
|
|
9110
9203
|
error?: {
|
|
9111
|
-
data?:
|
|
9204
|
+
data?: Hex | undefined;
|
|
9112
9205
|
code: number;
|
|
9113
9206
|
message: string;
|
|
9114
9207
|
} | undefined;
|
|
9115
9208
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
9116
|
-
gasUsed:
|
|
9117
|
-
returnData:
|
|
9118
|
-
status:
|
|
9209
|
+
gasUsed: Hex;
|
|
9210
|
+
returnData: Hex;
|
|
9211
|
+
status: Hex;
|
|
9119
9212
|
}[];
|
|
9120
9213
|
})[];
|
|
9121
9214
|
}, {
|
|
@@ -9132,12 +9225,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9132
9225
|
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>>;
|
|
9133
9226
|
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>>>;
|
|
9134
9227
|
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>>>;
|
|
9135
|
-
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<
|
|
9136
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
9228
|
+
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>;
|
|
9229
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
9137
9230
|
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>>>;
|
|
9138
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
9139
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
9140
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
9231
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
9232
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
9233
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
9141
9234
|
signTypedData: <const TTypedData extends {
|
|
9142
9235
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
9143
9236
|
[x: `string[${string}]`]: undefined;
|
|
@@ -9149,8 +9242,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9149
9242
|
[x: `uint8[${string}]`]: undefined;
|
|
9150
9243
|
[x: `bool[${string}]`]: undefined;
|
|
9151
9244
|
[x: `bytes4[${string}]`]: undefined;
|
|
9245
|
+
[x: `uint32[${string}]`]: undefined;
|
|
9152
9246
|
[x: `bytes[${string}]`]: undefined;
|
|
9153
9247
|
[x: `bytes6[${string}]`]: undefined;
|
|
9248
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
9154
9249
|
[x: `bytes1[${string}]`]: undefined;
|
|
9155
9250
|
[x: `bytes2[${string}]`]: undefined;
|
|
9156
9251
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -9158,7 +9253,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9158
9253
|
[x: `bytes7[${string}]`]: undefined;
|
|
9159
9254
|
[x: `bytes8[${string}]`]: undefined;
|
|
9160
9255
|
[x: `bytes9[${string}]`]: undefined;
|
|
9161
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
9162
9256
|
[x: `bytes11[${string}]`]: undefined;
|
|
9163
9257
|
[x: `bytes12[${string}]`]: undefined;
|
|
9164
9258
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -9181,6 +9275,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9181
9275
|
[x: `bytes30[${string}]`]: undefined;
|
|
9182
9276
|
[x: `bytes31[${string}]`]: undefined;
|
|
9183
9277
|
[x: `int[${string}]`]: undefined;
|
|
9278
|
+
[x: `int200[${string}]`]: undefined;
|
|
9184
9279
|
[x: `int8[${string}]`]: undefined;
|
|
9185
9280
|
[x: `int16[${string}]`]: undefined;
|
|
9186
9281
|
[x: `int24[${string}]`]: undefined;
|
|
@@ -9205,7 +9300,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9205
9300
|
[x: `int176[${string}]`]: undefined;
|
|
9206
9301
|
[x: `int184[${string}]`]: undefined;
|
|
9207
9302
|
[x: `int192[${string}]`]: undefined;
|
|
9208
|
-
[x: `int200[${string}]`]: undefined;
|
|
9209
9303
|
[x: `int208[${string}]`]: undefined;
|
|
9210
9304
|
[x: `int216[${string}]`]: undefined;
|
|
9211
9305
|
[x: `int224[${string}]`]: undefined;
|
|
@@ -9214,9 +9308,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9214
9308
|
[x: `int248[${string}]`]: undefined;
|
|
9215
9309
|
[x: `int256[${string}]`]: undefined;
|
|
9216
9310
|
[x: `uint[${string}]`]: undefined;
|
|
9311
|
+
[x: `uint200[${string}]`]: undefined;
|
|
9217
9312
|
[x: `uint16[${string}]`]: undefined;
|
|
9218
9313
|
[x: `uint24[${string}]`]: undefined;
|
|
9219
|
-
[x: `uint32[${string}]`]: undefined;
|
|
9220
9314
|
[x: `uint40[${string}]`]: undefined;
|
|
9221
9315
|
[x: `uint48[${string}]`]: undefined;
|
|
9222
9316
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -9236,7 +9330,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9236
9330
|
[x: `uint176[${string}]`]: undefined;
|
|
9237
9331
|
[x: `uint184[${string}]`]: undefined;
|
|
9238
9332
|
[x: `uint192[${string}]`]: undefined;
|
|
9239
|
-
[x: `uint200[${string}]`]: undefined;
|
|
9240
9333
|
[x: `uint208[${string}]`]: undefined;
|
|
9241
9334
|
[x: `uint216[${string}]`]: undefined;
|
|
9242
9335
|
[x: `uint224[${string}]`]: undefined;
|
|
@@ -9251,8 +9344,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9251
9344
|
uint8?: undefined;
|
|
9252
9345
|
bool?: undefined;
|
|
9253
9346
|
bytes4?: undefined;
|
|
9347
|
+
uint32?: undefined;
|
|
9254
9348
|
bytes?: undefined;
|
|
9255
9349
|
bytes6?: undefined;
|
|
9350
|
+
bytes10?: undefined;
|
|
9256
9351
|
bytes1?: undefined;
|
|
9257
9352
|
bytes2?: undefined;
|
|
9258
9353
|
bytes3?: undefined;
|
|
@@ -9260,7 +9355,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9260
9355
|
bytes7?: undefined;
|
|
9261
9356
|
bytes8?: undefined;
|
|
9262
9357
|
bytes9?: undefined;
|
|
9263
|
-
bytes10?: undefined;
|
|
9264
9358
|
bytes11?: undefined;
|
|
9265
9359
|
bytes12?: undefined;
|
|
9266
9360
|
bytes13?: undefined;
|
|
@@ -9282,6 +9376,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9282
9376
|
bytes29?: undefined;
|
|
9283
9377
|
bytes30?: undefined;
|
|
9284
9378
|
bytes31?: undefined;
|
|
9379
|
+
int200?: undefined;
|
|
9285
9380
|
int8?: undefined;
|
|
9286
9381
|
int16?: undefined;
|
|
9287
9382
|
int24?: undefined;
|
|
@@ -9306,7 +9401,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9306
9401
|
int176?: undefined;
|
|
9307
9402
|
int184?: undefined;
|
|
9308
9403
|
int192?: undefined;
|
|
9309
|
-
int200?: undefined;
|
|
9310
9404
|
int208?: undefined;
|
|
9311
9405
|
int216?: undefined;
|
|
9312
9406
|
int224?: undefined;
|
|
@@ -9314,9 +9408,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9314
9408
|
int240?: undefined;
|
|
9315
9409
|
int248?: undefined;
|
|
9316
9410
|
int256?: undefined;
|
|
9411
|
+
uint200?: undefined;
|
|
9317
9412
|
uint16?: undefined;
|
|
9318
9413
|
uint24?: undefined;
|
|
9319
|
-
uint32?: undefined;
|
|
9320
9414
|
uint40?: undefined;
|
|
9321
9415
|
uint48?: undefined;
|
|
9322
9416
|
uint56?: undefined;
|
|
@@ -9336,7 +9430,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9336
9430
|
uint176?: undefined;
|
|
9337
9431
|
uint184?: undefined;
|
|
9338
9432
|
uint192?: undefined;
|
|
9339
|
-
uint200?: undefined;
|
|
9340
9433
|
uint208?: undefined;
|
|
9341
9434
|
uint216?: undefined;
|
|
9342
9435
|
uint224?: undefined;
|
|
@@ -9345,12 +9438,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9345
9438
|
uint248?: undefined;
|
|
9346
9439
|
} | {
|
|
9347
9440
|
[key: string]: unknown;
|
|
9348
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
9441
|
+
}, 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>;
|
|
9349
9442
|
getAddress: () => Address$1;
|
|
9350
9443
|
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>>;
|
|
9351
9444
|
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>;
|
|
9352
9445
|
getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
|
|
9353
|
-
getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
9446
|
+
getUserOperationReceipt: (hash: viem.Hash, tag?: "pending" | "latest") => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
9354
9447
|
getSupportedEntryPoints: () => Promise<Address$1[]>;
|
|
9355
9448
|
call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
|
|
9356
9449
|
createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
|
|
@@ -9374,15 +9467,15 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9374
9467
|
blobGasUsed: bigint;
|
|
9375
9468
|
difficulty: bigint;
|
|
9376
9469
|
excessBlobGas: bigint;
|
|
9377
|
-
extraData:
|
|
9470
|
+
extraData: Hex;
|
|
9378
9471
|
gasLimit: bigint;
|
|
9379
9472
|
gasUsed: bigint;
|
|
9380
9473
|
miner: Address$1;
|
|
9381
9474
|
mixHash: viem.Hash;
|
|
9382
9475
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
9383
9476
|
parentHash: viem.Hash;
|
|
9384
|
-
receiptsRoot:
|
|
9385
|
-
sealFields:
|
|
9477
|
+
receiptsRoot: Hex;
|
|
9478
|
+
sealFields: Hex[];
|
|
9386
9479
|
sha3Uncles: viem.Hash;
|
|
9387
9480
|
size: bigint;
|
|
9388
9481
|
stateRoot: viem.Hash;
|
|
@@ -9398,11 +9491,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9398
9491
|
yParity?: undefined | undefined;
|
|
9399
9492
|
gas: bigint;
|
|
9400
9493
|
hash: viem.Hash;
|
|
9401
|
-
input:
|
|
9494
|
+
input: Hex;
|
|
9402
9495
|
nonce: number;
|
|
9403
|
-
r:
|
|
9404
|
-
s:
|
|
9405
|
-
typeHex:
|
|
9496
|
+
r: Hex;
|
|
9497
|
+
s: Hex;
|
|
9498
|
+
typeHex: Hex | null;
|
|
9406
9499
|
v: bigint;
|
|
9407
9500
|
value: bigint;
|
|
9408
9501
|
accessList?: undefined | undefined;
|
|
@@ -9423,11 +9516,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9423
9516
|
yParity: number;
|
|
9424
9517
|
gas: bigint;
|
|
9425
9518
|
hash: viem.Hash;
|
|
9426
|
-
input:
|
|
9519
|
+
input: Hex;
|
|
9427
9520
|
nonce: number;
|
|
9428
|
-
r:
|
|
9429
|
-
s:
|
|
9430
|
-
typeHex:
|
|
9521
|
+
r: Hex;
|
|
9522
|
+
s: Hex;
|
|
9523
|
+
typeHex: Hex | null;
|
|
9431
9524
|
v: bigint;
|
|
9432
9525
|
value: bigint;
|
|
9433
9526
|
accessList: viem.AccessList;
|
|
@@ -9448,11 +9541,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9448
9541
|
yParity: number;
|
|
9449
9542
|
gas: bigint;
|
|
9450
9543
|
hash: viem.Hash;
|
|
9451
|
-
input:
|
|
9544
|
+
input: Hex;
|
|
9452
9545
|
nonce: number;
|
|
9453
|
-
r:
|
|
9454
|
-
s:
|
|
9455
|
-
typeHex:
|
|
9546
|
+
r: Hex;
|
|
9547
|
+
s: Hex;
|
|
9548
|
+
typeHex: Hex | null;
|
|
9456
9549
|
v: bigint;
|
|
9457
9550
|
value: bigint;
|
|
9458
9551
|
accessList: viem.AccessList;
|
|
@@ -9473,16 +9566,16 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9473
9566
|
yParity: number;
|
|
9474
9567
|
gas: bigint;
|
|
9475
9568
|
hash: viem.Hash;
|
|
9476
|
-
input:
|
|
9569
|
+
input: Hex;
|
|
9477
9570
|
nonce: number;
|
|
9478
|
-
r:
|
|
9479
|
-
s:
|
|
9480
|
-
typeHex:
|
|
9571
|
+
r: Hex;
|
|
9572
|
+
s: Hex;
|
|
9573
|
+
typeHex: Hex | null;
|
|
9481
9574
|
v: bigint;
|
|
9482
9575
|
value: bigint;
|
|
9483
9576
|
accessList: viem.AccessList;
|
|
9484
9577
|
authorizationList?: undefined | undefined;
|
|
9485
|
-
blobVersionedHashes: readonly
|
|
9578
|
+
blobVersionedHashes: readonly Hex[];
|
|
9486
9579
|
chainId: number;
|
|
9487
9580
|
type: "eip4844";
|
|
9488
9581
|
gasPrice?: undefined | undefined;
|
|
@@ -9498,11 +9591,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9498
9591
|
yParity: number;
|
|
9499
9592
|
gas: bigint;
|
|
9500
9593
|
hash: viem.Hash;
|
|
9501
|
-
input:
|
|
9594
|
+
input: Hex;
|
|
9502
9595
|
nonce: number;
|
|
9503
|
-
r:
|
|
9504
|
-
s:
|
|
9505
|
-
typeHex:
|
|
9596
|
+
r: Hex;
|
|
9597
|
+
s: Hex;
|
|
9598
|
+
typeHex: Hex | null;
|
|
9506
9599
|
v: bigint;
|
|
9507
9600
|
value: bigint;
|
|
9508
9601
|
accessList: viem.AccessList;
|
|
@@ -9548,11 +9641,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9548
9641
|
yParity?: undefined | undefined;
|
|
9549
9642
|
gas: bigint;
|
|
9550
9643
|
hash: viem.Hash;
|
|
9551
|
-
input:
|
|
9644
|
+
input: Hex;
|
|
9552
9645
|
nonce: number;
|
|
9553
|
-
r:
|
|
9554
|
-
s:
|
|
9555
|
-
typeHex:
|
|
9646
|
+
r: Hex;
|
|
9647
|
+
s: Hex;
|
|
9648
|
+
typeHex: Hex | null;
|
|
9556
9649
|
v: bigint;
|
|
9557
9650
|
value: bigint;
|
|
9558
9651
|
accessList?: undefined | undefined;
|
|
@@ -9573,11 +9666,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9573
9666
|
yParity: number;
|
|
9574
9667
|
gas: bigint;
|
|
9575
9668
|
hash: viem.Hash;
|
|
9576
|
-
input:
|
|
9669
|
+
input: Hex;
|
|
9577
9670
|
nonce: number;
|
|
9578
|
-
r:
|
|
9579
|
-
s:
|
|
9580
|
-
typeHex:
|
|
9671
|
+
r: Hex;
|
|
9672
|
+
s: Hex;
|
|
9673
|
+
typeHex: Hex | null;
|
|
9581
9674
|
v: bigint;
|
|
9582
9675
|
value: bigint;
|
|
9583
9676
|
accessList: viem.AccessList;
|
|
@@ -9598,11 +9691,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9598
9691
|
yParity: number;
|
|
9599
9692
|
gas: bigint;
|
|
9600
9693
|
hash: viem.Hash;
|
|
9601
|
-
input:
|
|
9694
|
+
input: Hex;
|
|
9602
9695
|
nonce: number;
|
|
9603
|
-
r:
|
|
9604
|
-
s:
|
|
9605
|
-
typeHex:
|
|
9696
|
+
r: Hex;
|
|
9697
|
+
s: Hex;
|
|
9698
|
+
typeHex: Hex | null;
|
|
9606
9699
|
v: bigint;
|
|
9607
9700
|
value: bigint;
|
|
9608
9701
|
accessList: viem.AccessList;
|
|
@@ -9623,16 +9716,16 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9623
9716
|
yParity: number;
|
|
9624
9717
|
gas: bigint;
|
|
9625
9718
|
hash: viem.Hash;
|
|
9626
|
-
input:
|
|
9719
|
+
input: Hex;
|
|
9627
9720
|
nonce: number;
|
|
9628
|
-
r:
|
|
9629
|
-
s:
|
|
9630
|
-
typeHex:
|
|
9721
|
+
r: Hex;
|
|
9722
|
+
s: Hex;
|
|
9723
|
+
typeHex: Hex | null;
|
|
9631
9724
|
v: bigint;
|
|
9632
9725
|
value: bigint;
|
|
9633
9726
|
accessList: viem.AccessList;
|
|
9634
9727
|
authorizationList?: undefined | undefined;
|
|
9635
|
-
blobVersionedHashes: readonly
|
|
9728
|
+
blobVersionedHashes: readonly Hex[];
|
|
9636
9729
|
chainId: number;
|
|
9637
9730
|
type: "eip4844";
|
|
9638
9731
|
gasPrice?: undefined | undefined;
|
|
@@ -9648,11 +9741,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9648
9741
|
yParity: number;
|
|
9649
9742
|
gas: bigint;
|
|
9650
9743
|
hash: viem.Hash;
|
|
9651
|
-
input:
|
|
9744
|
+
input: Hex;
|
|
9652
9745
|
nonce: number;
|
|
9653
|
-
r:
|
|
9654
|
-
s:
|
|
9655
|
-
typeHex:
|
|
9746
|
+
r: Hex;
|
|
9747
|
+
s: Hex;
|
|
9748
|
+
typeHex: Hex | null;
|
|
9656
9749
|
v: bigint;
|
|
9657
9750
|
value: bigint;
|
|
9658
9751
|
accessList: viem.AccessList;
|
|
@@ -16179,10 +16272,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16179
16272
|
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
|
|
16180
16273
|
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
16181
16274
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
16275
|
+
sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
|
|
16182
16276
|
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
16183
16277
|
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
16184
16278
|
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
16185
16279
|
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain | undefined, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
16280
|
+
verifyHash: (args: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>;
|
|
16186
16281
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
16187
16282
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
16188
16283
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -16200,6 +16295,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16200
16295
|
cacheTime?: undefined;
|
|
16201
16296
|
ccipRead?: undefined;
|
|
16202
16297
|
chain?: undefined;
|
|
16298
|
+
experimental_blockTag?: undefined;
|
|
16203
16299
|
key?: undefined;
|
|
16204
16300
|
name?: undefined;
|
|
16205
16301
|
pollingInterval?: undefined;
|
|
@@ -16217,7 +16313,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16217
16313
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
16218
16314
|
}, {
|
|
16219
16315
|
Method: "eth_getUserOperationReceipt";
|
|
16220
|
-
Parameters: [viem.Hash];
|
|
16316
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
16221
16317
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
16222
16318
|
}, {
|
|
16223
16319
|
Method: "eth_getUserOperationByHash";
|
|
@@ -16257,8 +16353,8 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16257
16353
|
ReturnType: viem.Quantity;
|
|
16258
16354
|
}, {
|
|
16259
16355
|
Method: "eth_call";
|
|
16260
|
-
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
16261
|
-
ReturnType:
|
|
16356
|
+
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];
|
|
16357
|
+
ReturnType: Hex;
|
|
16262
16358
|
}, {
|
|
16263
16359
|
Method: "eth_createAccessList";
|
|
16264
16360
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -16309,11 +16405,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16309
16405
|
}, {
|
|
16310
16406
|
Method: "eth_getCode";
|
|
16311
16407
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16312
|
-
ReturnType:
|
|
16408
|
+
ReturnType: Hex;
|
|
16313
16409
|
}, {
|
|
16314
16410
|
Method: "eth_getFilterChanges";
|
|
16315
16411
|
Parameters: [filterId: viem.Quantity];
|
|
16316
|
-
ReturnType: viem.RpcLog[] |
|
|
16412
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
16317
16413
|
}, {
|
|
16318
16414
|
Method: "eth_getFilterLogs";
|
|
16319
16415
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -16340,7 +16436,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16340
16436
|
}, {
|
|
16341
16437
|
Method: "eth_getStorageAt";
|
|
16342
16438
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16343
|
-
ReturnType:
|
|
16439
|
+
ReturnType: Hex;
|
|
16344
16440
|
}, {
|
|
16345
16441
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
16346
16442
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -16404,8 +16500,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16404
16500
|
ReturnType: string;
|
|
16405
16501
|
}, {
|
|
16406
16502
|
Method: "eth_sendRawTransaction";
|
|
16407
|
-
Parameters: [signedTransaction:
|
|
16503
|
+
Parameters: [signedTransaction: Hex];
|
|
16408
16504
|
ReturnType: viem.Hash;
|
|
16505
|
+
}, {
|
|
16506
|
+
Method: "eth_sendRawTransactionSync";
|
|
16507
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
16508
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
16409
16509
|
}, {
|
|
16410
16510
|
Method: "eth_simulateV1";
|
|
16411
16511
|
Parameters: [{
|
|
@@ -16421,14 +16521,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16421
16521
|
ReturnType: readonly (viem.RpcBlock & {
|
|
16422
16522
|
calls: readonly {
|
|
16423
16523
|
error?: {
|
|
16424
|
-
data?:
|
|
16524
|
+
data?: Hex | undefined;
|
|
16425
16525
|
code: number;
|
|
16426
16526
|
message: string;
|
|
16427
16527
|
} | undefined;
|
|
16428
16528
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
16429
|
-
gasUsed:
|
|
16430
|
-
returnData:
|
|
16431
|
-
status:
|
|
16529
|
+
gasUsed: Hex;
|
|
16530
|
+
returnData: Hex;
|
|
16531
|
+
status: Hex;
|
|
16432
16532
|
}[];
|
|
16433
16533
|
})[];
|
|
16434
16534
|
}, {
|
|
@@ -16442,12 +16542,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16442
16542
|
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>>;
|
|
16443
16543
|
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>>>;
|
|
16444
16544
|
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>>>;
|
|
16445
|
-
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<
|
|
16446
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
16545
|
+
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>;
|
|
16546
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
16447
16547
|
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>>>;
|
|
16448
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
16449
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
16450
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
16548
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
16549
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
16550
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
16451
16551
|
signTypedData: <const TTypedData extends {
|
|
16452
16552
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
16453
16553
|
[x: `string[${string}]`]: undefined;
|
|
@@ -16459,8 +16559,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16459
16559
|
[x: `uint8[${string}]`]: undefined;
|
|
16460
16560
|
[x: `bool[${string}]`]: undefined;
|
|
16461
16561
|
[x: `bytes4[${string}]`]: undefined;
|
|
16562
|
+
[x: `uint32[${string}]`]: undefined;
|
|
16462
16563
|
[x: `bytes[${string}]`]: undefined;
|
|
16463
16564
|
[x: `bytes6[${string}]`]: undefined;
|
|
16565
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
16464
16566
|
[x: `bytes1[${string}]`]: undefined;
|
|
16465
16567
|
[x: `bytes2[${string}]`]: undefined;
|
|
16466
16568
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -16468,7 +16570,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16468
16570
|
[x: `bytes7[${string}]`]: undefined;
|
|
16469
16571
|
[x: `bytes8[${string}]`]: undefined;
|
|
16470
16572
|
[x: `bytes9[${string}]`]: undefined;
|
|
16471
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
16472
16573
|
[x: `bytes11[${string}]`]: undefined;
|
|
16473
16574
|
[x: `bytes12[${string}]`]: undefined;
|
|
16474
16575
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -16491,6 +16592,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16491
16592
|
[x: `bytes30[${string}]`]: undefined;
|
|
16492
16593
|
[x: `bytes31[${string}]`]: undefined;
|
|
16493
16594
|
[x: `int[${string}]`]: undefined;
|
|
16595
|
+
[x: `int200[${string}]`]: undefined;
|
|
16494
16596
|
[x: `int8[${string}]`]: undefined;
|
|
16495
16597
|
[x: `int16[${string}]`]: undefined;
|
|
16496
16598
|
[x: `int24[${string}]`]: undefined;
|
|
@@ -16515,7 +16617,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16515
16617
|
[x: `int176[${string}]`]: undefined;
|
|
16516
16618
|
[x: `int184[${string}]`]: undefined;
|
|
16517
16619
|
[x: `int192[${string}]`]: undefined;
|
|
16518
|
-
[x: `int200[${string}]`]: undefined;
|
|
16519
16620
|
[x: `int208[${string}]`]: undefined;
|
|
16520
16621
|
[x: `int216[${string}]`]: undefined;
|
|
16521
16622
|
[x: `int224[${string}]`]: undefined;
|
|
@@ -16524,9 +16625,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16524
16625
|
[x: `int248[${string}]`]: undefined;
|
|
16525
16626
|
[x: `int256[${string}]`]: undefined;
|
|
16526
16627
|
[x: `uint[${string}]`]: undefined;
|
|
16628
|
+
[x: `uint200[${string}]`]: undefined;
|
|
16527
16629
|
[x: `uint16[${string}]`]: undefined;
|
|
16528
16630
|
[x: `uint24[${string}]`]: undefined;
|
|
16529
|
-
[x: `uint32[${string}]`]: undefined;
|
|
16530
16631
|
[x: `uint40[${string}]`]: undefined;
|
|
16531
16632
|
[x: `uint48[${string}]`]: undefined;
|
|
16532
16633
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -16546,7 +16647,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16546
16647
|
[x: `uint176[${string}]`]: undefined;
|
|
16547
16648
|
[x: `uint184[${string}]`]: undefined;
|
|
16548
16649
|
[x: `uint192[${string}]`]: undefined;
|
|
16549
|
-
[x: `uint200[${string}]`]: undefined;
|
|
16550
16650
|
[x: `uint208[${string}]`]: undefined;
|
|
16551
16651
|
[x: `uint216[${string}]`]: undefined;
|
|
16552
16652
|
[x: `uint224[${string}]`]: undefined;
|
|
@@ -16561,8 +16661,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16561
16661
|
uint8?: undefined;
|
|
16562
16662
|
bool?: undefined;
|
|
16563
16663
|
bytes4?: undefined;
|
|
16664
|
+
uint32?: undefined;
|
|
16564
16665
|
bytes?: undefined;
|
|
16565
16666
|
bytes6?: undefined;
|
|
16667
|
+
bytes10?: undefined;
|
|
16566
16668
|
bytes1?: undefined;
|
|
16567
16669
|
bytes2?: undefined;
|
|
16568
16670
|
bytes3?: undefined;
|
|
@@ -16570,7 +16672,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16570
16672
|
bytes7?: undefined;
|
|
16571
16673
|
bytes8?: undefined;
|
|
16572
16674
|
bytes9?: undefined;
|
|
16573
|
-
bytes10?: undefined;
|
|
16574
16675
|
bytes11?: undefined;
|
|
16575
16676
|
bytes12?: undefined;
|
|
16576
16677
|
bytes13?: undefined;
|
|
@@ -16592,6 +16693,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16592
16693
|
bytes29?: undefined;
|
|
16593
16694
|
bytes30?: undefined;
|
|
16594
16695
|
bytes31?: undefined;
|
|
16696
|
+
int200?: undefined;
|
|
16595
16697
|
int8?: undefined;
|
|
16596
16698
|
int16?: undefined;
|
|
16597
16699
|
int24?: undefined;
|
|
@@ -16616,7 +16718,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16616
16718
|
int176?: undefined;
|
|
16617
16719
|
int184?: undefined;
|
|
16618
16720
|
int192?: undefined;
|
|
16619
|
-
int200?: undefined;
|
|
16620
16721
|
int208?: undefined;
|
|
16621
16722
|
int216?: undefined;
|
|
16622
16723
|
int224?: undefined;
|
|
@@ -16624,9 +16725,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16624
16725
|
int240?: undefined;
|
|
16625
16726
|
int248?: undefined;
|
|
16626
16727
|
int256?: undefined;
|
|
16728
|
+
uint200?: undefined;
|
|
16627
16729
|
uint16?: undefined;
|
|
16628
16730
|
uint24?: undefined;
|
|
16629
|
-
uint32?: undefined;
|
|
16630
16731
|
uint40?: undefined;
|
|
16631
16732
|
uint48?: undefined;
|
|
16632
16733
|
uint56?: undefined;
|
|
@@ -16646,7 +16747,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16646
16747
|
uint176?: undefined;
|
|
16647
16748
|
uint184?: undefined;
|
|
16648
16749
|
uint192?: undefined;
|
|
16649
|
-
uint200?: undefined;
|
|
16650
16750
|
uint208?: undefined;
|
|
16651
16751
|
uint216?: undefined;
|
|
16652
16752
|
uint224?: undefined;
|
|
@@ -16655,7 +16755,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16655
16755
|
uint248?: undefined;
|
|
16656
16756
|
} | {
|
|
16657
16757
|
[key: string]: unknown;
|
|
16658
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
16758
|
+
}, 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>;
|
|
16659
16759
|
} & {
|
|
16660
16760
|
getAddress: () => Address$1;
|
|
16661
16761
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
@@ -16668,7 +16768,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16668
16768
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
16669
16769
|
}, {
|
|
16670
16770
|
Method: "eth_getUserOperationReceipt";
|
|
16671
|
-
Parameters: [viem.Hash];
|
|
16771
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
16672
16772
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
16673
16773
|
}, {
|
|
16674
16774
|
Method: "eth_getUserOperationByHash";
|
|
@@ -16708,8 +16808,8 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16708
16808
|
ReturnType: viem.Quantity;
|
|
16709
16809
|
}, {
|
|
16710
16810
|
Method: "eth_call";
|
|
16711
|
-
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
16712
|
-
ReturnType:
|
|
16811
|
+
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];
|
|
16812
|
+
ReturnType: Hex;
|
|
16713
16813
|
}, {
|
|
16714
16814
|
Method: "eth_createAccessList";
|
|
16715
16815
|
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -16760,11 +16860,11 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16760
16860
|
}, {
|
|
16761
16861
|
Method: "eth_getCode";
|
|
16762
16862
|
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16763
|
-
ReturnType:
|
|
16863
|
+
ReturnType: Hex;
|
|
16764
16864
|
}, {
|
|
16765
16865
|
Method: "eth_getFilterChanges";
|
|
16766
16866
|
Parameters: [filterId: viem.Quantity];
|
|
16767
|
-
ReturnType: viem.RpcLog[] |
|
|
16867
|
+
ReturnType: viem.RpcLog[] | Hex[];
|
|
16768
16868
|
}, {
|
|
16769
16869
|
Method: "eth_getFilterLogs";
|
|
16770
16870
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -16791,7 +16891,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16791
16891
|
}, {
|
|
16792
16892
|
Method: "eth_getStorageAt";
|
|
16793
16893
|
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
16794
|
-
ReturnType:
|
|
16894
|
+
ReturnType: Hex;
|
|
16795
16895
|
}, {
|
|
16796
16896
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
16797
16897
|
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
@@ -16855,8 +16955,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16855
16955
|
ReturnType: string;
|
|
16856
16956
|
}, {
|
|
16857
16957
|
Method: "eth_sendRawTransaction";
|
|
16858
|
-
Parameters: [signedTransaction:
|
|
16958
|
+
Parameters: [signedTransaction: Hex];
|
|
16859
16959
|
ReturnType: viem.Hash;
|
|
16960
|
+
}, {
|
|
16961
|
+
Method: "eth_sendRawTransactionSync";
|
|
16962
|
+
Parameters: [signedTransaction: Hex] | [signedTransaction: Hex, timeout: Hex];
|
|
16963
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
16860
16964
|
}, {
|
|
16861
16965
|
Method: "eth_simulateV1";
|
|
16862
16966
|
Parameters: [{
|
|
@@ -16872,14 +16976,14 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16872
16976
|
ReturnType: readonly (viem.RpcBlock & {
|
|
16873
16977
|
calls: readonly {
|
|
16874
16978
|
error?: {
|
|
16875
|
-
data?:
|
|
16979
|
+
data?: Hex | undefined;
|
|
16876
16980
|
code: number;
|
|
16877
16981
|
message: string;
|
|
16878
16982
|
} | undefined;
|
|
16879
16983
|
logs?: readonly viem.RpcLog[] | undefined;
|
|
16880
|
-
gasUsed:
|
|
16881
|
-
returnData:
|
|
16882
|
-
status:
|
|
16984
|
+
gasUsed: Hex;
|
|
16985
|
+
returnData: Hex;
|
|
16986
|
+
status: Hex;
|
|
16883
16987
|
}[];
|
|
16884
16988
|
})[];
|
|
16885
16989
|
}, {
|
|
@@ -16893,12 +16997,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16893
16997
|
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>>;
|
|
16894
16998
|
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>>>;
|
|
16895
16999
|
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>>>;
|
|
16896
|
-
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<
|
|
16897
|
-
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
17000
|
+
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>;
|
|
17001
|
+
sendTransactions: (args: _aa_sdk_core.SendTransactionsParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
16898
17002
|
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>>>;
|
|
16899
|
-
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<
|
|
16900
|
-
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<
|
|
16901
|
-
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
17003
|
+
waitForUserOperationTransaction: (args: _aa_sdk_core.WaitForUserOperationTxParameters) => Promise<Hex>;
|
|
17004
|
+
upgradeAccount: (args: _aa_sdk_core.UpgradeAccountParams<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, _aa_sdk_core.UserOperationContext | undefined>) => Promise<Hex>;
|
|
17005
|
+
signMessage: (args: _aa_sdk_core_dist_types_actions_smartAccount_signMessage.SignMessageParameters<_account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<Hex>;
|
|
16902
17006
|
signTypedData: <const TTypedData extends {
|
|
16903
17007
|
[x: string]: readonly viem.TypedDataParameter[];
|
|
16904
17008
|
[x: `string[${string}]`]: undefined;
|
|
@@ -16910,8 +17014,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16910
17014
|
[x: `uint8[${string}]`]: undefined;
|
|
16911
17015
|
[x: `bool[${string}]`]: undefined;
|
|
16912
17016
|
[x: `bytes4[${string}]`]: undefined;
|
|
17017
|
+
[x: `uint32[${string}]`]: undefined;
|
|
16913
17018
|
[x: `bytes[${string}]`]: undefined;
|
|
16914
17019
|
[x: `bytes6[${string}]`]: undefined;
|
|
17020
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
16915
17021
|
[x: `bytes1[${string}]`]: undefined;
|
|
16916
17022
|
[x: `bytes2[${string}]`]: undefined;
|
|
16917
17023
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -16919,7 +17025,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16919
17025
|
[x: `bytes7[${string}]`]: undefined;
|
|
16920
17026
|
[x: `bytes8[${string}]`]: undefined;
|
|
16921
17027
|
[x: `bytes9[${string}]`]: undefined;
|
|
16922
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
16923
17028
|
[x: `bytes11[${string}]`]: undefined;
|
|
16924
17029
|
[x: `bytes12[${string}]`]: undefined;
|
|
16925
17030
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -16942,6 +17047,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16942
17047
|
[x: `bytes30[${string}]`]: undefined;
|
|
16943
17048
|
[x: `bytes31[${string}]`]: undefined;
|
|
16944
17049
|
[x: `int[${string}]`]: undefined;
|
|
17050
|
+
[x: `int200[${string}]`]: undefined;
|
|
16945
17051
|
[x: `int8[${string}]`]: undefined;
|
|
16946
17052
|
[x: `int16[${string}]`]: undefined;
|
|
16947
17053
|
[x: `int24[${string}]`]: undefined;
|
|
@@ -16966,7 +17072,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16966
17072
|
[x: `int176[${string}]`]: undefined;
|
|
16967
17073
|
[x: `int184[${string}]`]: undefined;
|
|
16968
17074
|
[x: `int192[${string}]`]: undefined;
|
|
16969
|
-
[x: `int200[${string}]`]: undefined;
|
|
16970
17075
|
[x: `int208[${string}]`]: undefined;
|
|
16971
17076
|
[x: `int216[${string}]`]: undefined;
|
|
16972
17077
|
[x: `int224[${string}]`]: undefined;
|
|
@@ -16975,9 +17080,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16975
17080
|
[x: `int248[${string}]`]: undefined;
|
|
16976
17081
|
[x: `int256[${string}]`]: undefined;
|
|
16977
17082
|
[x: `uint[${string}]`]: undefined;
|
|
17083
|
+
[x: `uint200[${string}]`]: undefined;
|
|
16978
17084
|
[x: `uint16[${string}]`]: undefined;
|
|
16979
17085
|
[x: `uint24[${string}]`]: undefined;
|
|
16980
|
-
[x: `uint32[${string}]`]: undefined;
|
|
16981
17086
|
[x: `uint40[${string}]`]: undefined;
|
|
16982
17087
|
[x: `uint48[${string}]`]: undefined;
|
|
16983
17088
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -16997,7 +17102,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16997
17102
|
[x: `uint176[${string}]`]: undefined;
|
|
16998
17103
|
[x: `uint184[${string}]`]: undefined;
|
|
16999
17104
|
[x: `uint192[${string}]`]: undefined;
|
|
17000
|
-
[x: `uint200[${string}]`]: undefined;
|
|
17001
17105
|
[x: `uint208[${string}]`]: undefined;
|
|
17002
17106
|
[x: `uint216[${string}]`]: undefined;
|
|
17003
17107
|
[x: `uint224[${string}]`]: undefined;
|
|
@@ -17012,8 +17116,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17012
17116
|
uint8?: undefined;
|
|
17013
17117
|
bool?: undefined;
|
|
17014
17118
|
bytes4?: undefined;
|
|
17119
|
+
uint32?: undefined;
|
|
17015
17120
|
bytes?: undefined;
|
|
17016
17121
|
bytes6?: undefined;
|
|
17122
|
+
bytes10?: undefined;
|
|
17017
17123
|
bytes1?: undefined;
|
|
17018
17124
|
bytes2?: undefined;
|
|
17019
17125
|
bytes3?: undefined;
|
|
@@ -17021,7 +17127,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17021
17127
|
bytes7?: undefined;
|
|
17022
17128
|
bytes8?: undefined;
|
|
17023
17129
|
bytes9?: undefined;
|
|
17024
|
-
bytes10?: undefined;
|
|
17025
17130
|
bytes11?: undefined;
|
|
17026
17131
|
bytes12?: undefined;
|
|
17027
17132
|
bytes13?: undefined;
|
|
@@ -17043,6 +17148,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17043
17148
|
bytes29?: undefined;
|
|
17044
17149
|
bytes30?: undefined;
|
|
17045
17150
|
bytes31?: undefined;
|
|
17151
|
+
int200?: undefined;
|
|
17046
17152
|
int8?: undefined;
|
|
17047
17153
|
int16?: undefined;
|
|
17048
17154
|
int24?: undefined;
|
|
@@ -17067,7 +17173,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17067
17173
|
int176?: undefined;
|
|
17068
17174
|
int184?: undefined;
|
|
17069
17175
|
int192?: undefined;
|
|
17070
|
-
int200?: undefined;
|
|
17071
17176
|
int208?: undefined;
|
|
17072
17177
|
int216?: undefined;
|
|
17073
17178
|
int224?: undefined;
|
|
@@ -17075,9 +17180,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17075
17180
|
int240?: undefined;
|
|
17076
17181
|
int248?: undefined;
|
|
17077
17182
|
int256?: undefined;
|
|
17183
|
+
uint200?: undefined;
|
|
17078
17184
|
uint16?: undefined;
|
|
17079
17185
|
uint24?: undefined;
|
|
17080
|
-
uint32?: undefined;
|
|
17081
17186
|
uint40?: undefined;
|
|
17082
17187
|
uint48?: undefined;
|
|
17083
17188
|
uint56?: undefined;
|
|
@@ -17097,7 +17202,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17097
17202
|
uint176?: undefined;
|
|
17098
17203
|
uint184?: undefined;
|
|
17099
17204
|
uint192?: undefined;
|
|
17100
|
-
uint200?: undefined;
|
|
17101
17205
|
uint208?: undefined;
|
|
17102
17206
|
uint216?: undefined;
|
|
17103
17207
|
uint224?: undefined;
|
|
@@ -17106,14 +17210,25 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17106
17210
|
uint248?: undefined;
|
|
17107
17211
|
} | {
|
|
17108
17212
|
[key: string]: unknown;
|
|
17109
|
-
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<
|
|
17213
|
+
}, 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>;
|
|
17110
17214
|
} & {
|
|
17111
17215
|
getAddress: () => Address$1;
|
|
17112
17216
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
17113
17217
|
};
|
|
17218
|
+
get acpX402(): AcpX402;
|
|
17114
17219
|
private calculateGasFees;
|
|
17115
|
-
handleOperation(
|
|
17116
|
-
|
|
17220
|
+
handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
|
|
17221
|
+
userOpHash: Address$1;
|
|
17222
|
+
txnHash: Address$1;
|
|
17223
|
+
}>;
|
|
17224
|
+
getJobId(createJobUserOpHash: Address$1, clientAddress: Address$1, providerAddress: Address$1): Promise<number>;
|
|
17225
|
+
updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
17226
|
+
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
17227
|
+
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
17228
|
+
getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
|
|
17229
|
+
getAssetManager(): Promise<Address$1>;
|
|
17230
|
+
getAcpVersion(): string;
|
|
17231
|
+
signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
|
|
17117
17232
|
}
|
|
17118
17233
|
|
|
17119
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, BaseAcpContractClient, type
|
|
17234
|
+
export { ACP_ABI, AcpAgent, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoState, AcpMemoStatus, AcpOnlineStatus, BaseAcpContractClient, type DeliverablePayload, Fare, FareAmount, FareBigInt, MemoType, baseAcpConfig, baseAcpConfigV2, baseAcpX402Config, baseAcpX402ConfigV2, baseSepoliaAcpConfig, baseSepoliaAcpConfigV2, baseSepoliaAcpX402ConfigV2, AcpClient as default, ethFare, preparePayload, wethFare };
|