@virtuals-protocol/acp-node 0.3.0-beta.3 → 0.3.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +71 -142
- package/dist/index.d.ts +71 -142
- package/dist/index.js +428 -878
- package/dist/index.mjs +422 -872
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -218,6 +218,11 @@ declare enum FeeType {
|
|
|
218
218
|
IMMEDIATE_FEE = 1,
|
|
219
219
|
DEFERRED_FEE = 2
|
|
220
220
|
}
|
|
221
|
+
interface OperationPayload {
|
|
222
|
+
data: `0x${string}`;
|
|
223
|
+
contractAddress: Address;
|
|
224
|
+
value?: bigint;
|
|
225
|
+
}
|
|
221
226
|
declare abstract class BaseAcpContractClient {
|
|
222
227
|
agentWalletAddress: Address;
|
|
223
228
|
config: AcpContractConfig;
|
|
@@ -226,24 +231,18 @@ declare abstract class BaseAcpContractClient {
|
|
|
226
231
|
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
227
232
|
jobCreatedSignature: string;
|
|
228
233
|
constructor(agentWalletAddress: Address, config?: AcpContractConfig);
|
|
229
|
-
abstract handleOperation(
|
|
234
|
+
abstract handleOperation(operations: OperationPayload[]): Promise<Address>;
|
|
230
235
|
abstract getJobId(hash: Address, clientAddress: Address, providerAddress: Address): Promise<number>;
|
|
231
236
|
get walletAddress(): `0x${string}`;
|
|
232
|
-
createJobWithAccount(accountId: number, providerAddress: Address, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date):
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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}`>;
|
|
237
|
+
createJobWithAccount(accountId: number, providerAddress: Address, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date): OperationPayload;
|
|
238
|
+
createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string): OperationPayload;
|
|
239
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload;
|
|
240
|
+
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;
|
|
241
|
+
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): OperationPayload;
|
|
242
|
+
signMemo(memoId: number, isApproved: boolean, reason?: string): OperationPayload;
|
|
243
|
+
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload | undefined;
|
|
244
|
+
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
245
|
+
wrapEth(amountBaseUnit: bigint): OperationPayload;
|
|
247
246
|
}
|
|
248
247
|
|
|
249
248
|
declare class AcpAccount {
|
|
@@ -253,7 +252,7 @@ declare class AcpAccount {
|
|
|
253
252
|
providerAddress: Address;
|
|
254
253
|
metadata: Record<string, any>;
|
|
255
254
|
constructor(contractClient: BaseAcpContractClient, id: number, clientAddress: Address, providerAddress: Address, metadata: Record<string, any>);
|
|
256
|
-
updateMetadata(metadata: Record<string, any>): Promise
|
|
255
|
+
updateMetadata(metadata: Record<string, any>): Promise<OperationPayload>;
|
|
257
256
|
}
|
|
258
257
|
|
|
259
258
|
declare class AcpMemo {
|
|
@@ -271,7 +270,7 @@ declare class AcpMemo {
|
|
|
271
270
|
constructor(contractClient: BaseAcpContractClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, senderAddress: Address, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined);
|
|
272
271
|
get payloadType(): PayloadType | undefined;
|
|
273
272
|
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
274
|
-
create(jobId: number, isSecured?: boolean): Promise
|
|
273
|
+
create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
|
|
275
274
|
sign(approved: boolean, reason?: string): Promise<`0x${string}`>;
|
|
276
275
|
}
|
|
277
276
|
|
|
@@ -401,22 +400,6 @@ type ClosePositionPayload = {
|
|
|
401
400
|
positionId: number;
|
|
402
401
|
amount: number;
|
|
403
402
|
};
|
|
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
403
|
type RequestClosePositionPayload = {
|
|
421
404
|
positionId: number;
|
|
422
405
|
};
|
|
@@ -450,83 +433,13 @@ declare class AcpJob {
|
|
|
450
433
|
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, amount: FareAmountBase, recipient: Address, expiredAt?: Date): Promise<`0x${string}`>;
|
|
451
434
|
payAndAcceptRequirement(reason?: string): Promise<`0x${string}`>;
|
|
452
435
|
respond(accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
453
|
-
accept(reason?: string): Promise
|
|
436
|
+
accept(reason?: string): Promise<`0x${string}`>;
|
|
454
437
|
reject(reason?: string): Promise<`0x${string}`>;
|
|
455
438
|
deliver(deliverable: DeliverablePayload): Promise<`0x${string}`>;
|
|
456
439
|
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, expiredAt?: Date): Promise<`0x${string}`>;
|
|
457
440
|
evaluate(accept: boolean, reason?: string): Promise<void>;
|
|
458
|
-
pay(reason?: string): Promise<`0x${string}`>;
|
|
459
441
|
createNotification(content: string): Promise<`0x${string}`>;
|
|
460
442
|
createPayableNotification(content: string, amount: FareAmountBase, expiredAt?: Date): Promise<`0x${string}`>;
|
|
461
|
-
/**
|
|
462
|
-
* @deprecated The method should not be used
|
|
463
|
-
*/
|
|
464
|
-
openPosition(payload: OpenPositionPayload[], feeAmount: number, expiredAt?: Date, // 3 minutes
|
|
465
|
-
walletAddress?: Address): Promise<`0x${string}`>;
|
|
466
|
-
/**
|
|
467
|
-
* @deprecated The method should not be used
|
|
468
|
-
*/
|
|
469
|
-
swapToken(payload: SwapTokenPayload, decimals: number, feeAmount: number, walletAddress?: Address): Promise<`0x${string}`>;
|
|
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>;
|
|
530
443
|
}
|
|
531
444
|
|
|
532
445
|
declare class AcpJobOffering {
|
|
@@ -583,17 +496,6 @@ declare class AcpClient {
|
|
|
583
496
|
}[];
|
|
584
497
|
}[]>;
|
|
585
498
|
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
499
|
getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
598
500
|
getPendingMemoJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
599
501
|
getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
@@ -626,6 +528,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
626
528
|
request?: (parameters: viem.CcipRequestParameters) => Promise<viem__types_utils_ccip.CcipRequestReturnType>;
|
|
627
529
|
} | undefined;
|
|
628
530
|
chain: viem.Chain;
|
|
531
|
+
experimental_blockTag?: viem.BlockTag | undefined;
|
|
629
532
|
key: string;
|
|
630
533
|
name: string;
|
|
631
534
|
pollingInterval: number;
|
|
@@ -639,7 +542,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
639
542
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
640
543
|
}, {
|
|
641
544
|
Method: "eth_getUserOperationReceipt";
|
|
642
|
-
Parameters: [viem.Hash];
|
|
545
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
643
546
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
644
547
|
}, {
|
|
645
548
|
Method: "eth_getUserOperationByHash";
|
|
@@ -679,7 +582,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
679
582
|
ReturnType: viem.Quantity;
|
|
680
583
|
}, {
|
|
681
584
|
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];
|
|
585
|
+
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];
|
|
683
586
|
ReturnType: viem.Hex;
|
|
684
587
|
}, {
|
|
685
588
|
Method: "eth_createAccessList";
|
|
@@ -828,6 +731,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
828
731
|
Method: "eth_sendRawTransaction";
|
|
829
732
|
Parameters: [signedTransaction: viem.Hex];
|
|
830
733
|
ReturnType: viem.Hash;
|
|
734
|
+
}, {
|
|
735
|
+
Method: "eth_sendRawTransactionSync";
|
|
736
|
+
Parameters: [signedTransaction: viem.Hex] | [signedTransaction: viem.Hex, timeout: viem.Hex];
|
|
737
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
831
738
|
}, {
|
|
832
739
|
Method: "eth_simulateV1";
|
|
833
740
|
Parameters: [{
|
|
@@ -1085,7 +992,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1085
992
|
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
993
|
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
994
|
getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
|
|
1088
|
-
getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
995
|
+
getUserOperationReceipt: (hash: viem.Hash, tag?: "pending" | "latest") => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
1089
996
|
getSupportedEntryPoints: () => Promise<Address$1[]>;
|
|
1090
997
|
call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
|
|
1091
998
|
createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
|
|
@@ -7914,10 +7821,12 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7914
7821
|
}, (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
7822
|
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
7823
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
7824
|
+
sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
|
|
7917
7825
|
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7918
7826
|
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7919
7827
|
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
7920
7828
|
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>>;
|
|
7829
|
+
verifyHash: (args: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>;
|
|
7921
7830
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
7922
7831
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
7923
7832
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -7935,6 +7844,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7935
7844
|
cacheTime?: undefined;
|
|
7936
7845
|
ccipRead?: undefined;
|
|
7937
7846
|
chain?: undefined;
|
|
7847
|
+
experimental_blockTag?: undefined;
|
|
7938
7848
|
key?: undefined;
|
|
7939
7849
|
name?: undefined;
|
|
7940
7850
|
pollingInterval?: undefined;
|
|
@@ -7952,7 +7862,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7952
7862
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7953
7863
|
}, {
|
|
7954
7864
|
Method: "eth_getUserOperationReceipt";
|
|
7955
|
-
Parameters: [viem.Hash];
|
|
7865
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
7956
7866
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
7957
7867
|
}, {
|
|
7958
7868
|
Method: "eth_getUserOperationByHash";
|
|
@@ -7992,7 +7902,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
7992
7902
|
ReturnType: viem.Quantity;
|
|
7993
7903
|
}, {
|
|
7994
7904
|
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];
|
|
7905
|
+
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];
|
|
7996
7906
|
ReturnType: viem.Hex;
|
|
7997
7907
|
}, {
|
|
7998
7908
|
Method: "eth_createAccessList";
|
|
@@ -8141,6 +8051,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8141
8051
|
Method: "eth_sendRawTransaction";
|
|
8142
8052
|
Parameters: [signedTransaction: viem.Hex];
|
|
8143
8053
|
ReturnType: viem.Hash;
|
|
8054
|
+
}, {
|
|
8055
|
+
Method: "eth_sendRawTransactionSync";
|
|
8056
|
+
Parameters: [signedTransaction: viem.Hex] | [signedTransaction: viem.Hex, timeout: viem.Hex];
|
|
8057
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
8144
8058
|
}, {
|
|
8145
8059
|
Method: "eth_simulateV1";
|
|
8146
8060
|
Parameters: [{
|
|
@@ -8403,7 +8317,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8403
8317
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
8404
8318
|
}, {
|
|
8405
8319
|
Method: "eth_getUserOperationReceipt";
|
|
8406
|
-
Parameters: [viem.Hash];
|
|
8320
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
8407
8321
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
8408
8322
|
}, {
|
|
8409
8323
|
Method: "eth_getUserOperationByHash";
|
|
@@ -8443,7 +8357,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8443
8357
|
ReturnType: viem.Quantity;
|
|
8444
8358
|
}, {
|
|
8445
8359
|
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];
|
|
8360
|
+
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];
|
|
8447
8361
|
ReturnType: viem.Hex;
|
|
8448
8362
|
}, {
|
|
8449
8363
|
Method: "eth_createAccessList";
|
|
@@ -8592,6 +8506,10 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8592
8506
|
Method: "eth_sendRawTransaction";
|
|
8593
8507
|
Parameters: [signedTransaction: viem.Hex];
|
|
8594
8508
|
ReturnType: viem.Hash;
|
|
8509
|
+
}, {
|
|
8510
|
+
Method: "eth_sendRawTransactionSync";
|
|
8511
|
+
Parameters: [signedTransaction: viem.Hex] | [signedTransaction: viem.Hex, timeout: viem.Hex];
|
|
8512
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
8595
8513
|
}, {
|
|
8596
8514
|
Method: "eth_simulateV1";
|
|
8597
8515
|
Parameters: [{
|
|
@@ -8847,18 +8765,13 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8847
8765
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
8848
8766
|
};
|
|
8849
8767
|
private calculateGasFees;
|
|
8850
|
-
handleOperation(
|
|
8768
|
+
handleOperation(operations: OperationPayload[]): Promise<`0x${string}`>;
|
|
8851
8769
|
getJobId(hash: Address$1, clientAddress: Address$1, providerAddress: Address$1): Promise<number>;
|
|
8852
|
-
createJob(providerAddress: Address$1, evaluatorAddress: Address$1, expireAt: Date, paymentTokenAddress: Address$1, budgetBaseUnit: bigint, metadata: string):
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
createJobWithAccount(accountId: number, providerAddress: Address$1, evaluatorAddress: Address$1, budgetBaseUnit: bigint, paymentTokenAddress: Address$1, expiredAt: Date): Promise<{
|
|
8858
|
-
txHash: string;
|
|
8859
|
-
jobId: number;
|
|
8860
|
-
}>;
|
|
8861
|
-
updateAccountMetadata(accountId: number, metadata: string): Promise<Address$1>;
|
|
8770
|
+
createJob(providerAddress: Address$1, evaluatorAddress: Address$1, expireAt: Date, paymentTokenAddress: Address$1, budgetBaseUnit: bigint, metadata: string): OperationPayload;
|
|
8771
|
+
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address$1): OperationPayload;
|
|
8772
|
+
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;
|
|
8773
|
+
createJobWithAccount(accountId: number, providerAddress: Address$1, evaluatorAddress: Address$1, budgetBaseUnit: bigint, paymentTokenAddress: Address$1, expiredAt: Date): OperationPayload;
|
|
8774
|
+
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
8862
8775
|
}
|
|
8863
8776
|
|
|
8864
8777
|
declare function preparePayload(payload: string | object): string;
|
|
@@ -8891,6 +8804,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8891
8804
|
request?: (parameters: viem.CcipRequestParameters) => Promise<viem__types_utils_ccip.CcipRequestReturnType>;
|
|
8892
8805
|
} | undefined;
|
|
8893
8806
|
chain: viem.Chain;
|
|
8807
|
+
experimental_blockTag?: viem.BlockTag | undefined;
|
|
8894
8808
|
key: string;
|
|
8895
8809
|
name: string;
|
|
8896
8810
|
pollingInterval: number;
|
|
@@ -8904,7 +8818,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8904
8818
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
8905
8819
|
}, {
|
|
8906
8820
|
Method: "eth_getUserOperationReceipt";
|
|
8907
|
-
Parameters: [viem.Hash];
|
|
8821
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
8908
8822
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
8909
8823
|
}, {
|
|
8910
8824
|
Method: "eth_getUserOperationByHash";
|
|
@@ -8944,7 +8858,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8944
8858
|
ReturnType: viem.Quantity;
|
|
8945
8859
|
}, {
|
|
8946
8860
|
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];
|
|
8861
|
+
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];
|
|
8948
8862
|
ReturnType: viem.Hex;
|
|
8949
8863
|
}, {
|
|
8950
8864
|
Method: "eth_createAccessList";
|
|
@@ -9093,6 +9007,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9093
9007
|
Method: "eth_sendRawTransaction";
|
|
9094
9008
|
Parameters: [signedTransaction: viem.Hex];
|
|
9095
9009
|
ReturnType: viem.Hash;
|
|
9010
|
+
}, {
|
|
9011
|
+
Method: "eth_sendRawTransactionSync";
|
|
9012
|
+
Parameters: [signedTransaction: viem.Hex] | [signedTransaction: viem.Hex, timeout: viem.Hex];
|
|
9013
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
9096
9014
|
}, {
|
|
9097
9015
|
Method: "eth_simulateV1";
|
|
9098
9016
|
Parameters: [{
|
|
@@ -9350,7 +9268,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9350
9268
|
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
9269
|
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
9270
|
getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
|
|
9353
|
-
getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
9271
|
+
getUserOperationReceipt: (hash: viem.Hash, tag?: "pending" | "latest") => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
9354
9272
|
getSupportedEntryPoints: () => Promise<Address$1[]>;
|
|
9355
9273
|
call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
|
|
9356
9274
|
createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
|
|
@@ -16179,10 +16097,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16179
16097
|
}, (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
16098
|
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
16099
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
16100
|
+
sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
|
|
16182
16101
|
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
16183
16102
|
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
16184
16103
|
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
16185
16104
|
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>>;
|
|
16105
|
+
verifyHash: (args: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>;
|
|
16186
16106
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
16187
16107
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
16188
16108
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -16200,6 +16120,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16200
16120
|
cacheTime?: undefined;
|
|
16201
16121
|
ccipRead?: undefined;
|
|
16202
16122
|
chain?: undefined;
|
|
16123
|
+
experimental_blockTag?: undefined;
|
|
16203
16124
|
key?: undefined;
|
|
16204
16125
|
name?: undefined;
|
|
16205
16126
|
pollingInterval?: undefined;
|
|
@@ -16217,7 +16138,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16217
16138
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
16218
16139
|
}, {
|
|
16219
16140
|
Method: "eth_getUserOperationReceipt";
|
|
16220
|
-
Parameters: [viem.Hash];
|
|
16141
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
16221
16142
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
16222
16143
|
}, {
|
|
16223
16144
|
Method: "eth_getUserOperationByHash";
|
|
@@ -16257,7 +16178,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16257
16178
|
ReturnType: viem.Quantity;
|
|
16258
16179
|
}, {
|
|
16259
16180
|
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];
|
|
16181
|
+
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];
|
|
16261
16182
|
ReturnType: viem.Hex;
|
|
16262
16183
|
}, {
|
|
16263
16184
|
Method: "eth_createAccessList";
|
|
@@ -16406,6 +16327,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16406
16327
|
Method: "eth_sendRawTransaction";
|
|
16407
16328
|
Parameters: [signedTransaction: viem.Hex];
|
|
16408
16329
|
ReturnType: viem.Hash;
|
|
16330
|
+
}, {
|
|
16331
|
+
Method: "eth_sendRawTransactionSync";
|
|
16332
|
+
Parameters: [signedTransaction: viem.Hex] | [signedTransaction: viem.Hex, timeout: viem.Hex];
|
|
16333
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
16409
16334
|
}, {
|
|
16410
16335
|
Method: "eth_simulateV1";
|
|
16411
16336
|
Parameters: [{
|
|
@@ -16668,7 +16593,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16668
16593
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
16669
16594
|
}, {
|
|
16670
16595
|
Method: "eth_getUserOperationReceipt";
|
|
16671
|
-
Parameters: [viem.Hash];
|
|
16596
|
+
Parameters: [viem.Hash, ("pending" | "latest")?];
|
|
16672
16597
|
ReturnType: _aa_sdk_core.UserOperationReceipt | null;
|
|
16673
16598
|
}, {
|
|
16674
16599
|
Method: "eth_getUserOperationByHash";
|
|
@@ -16708,7 +16633,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16708
16633
|
ReturnType: viem.Quantity;
|
|
16709
16634
|
}, {
|
|
16710
16635
|
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];
|
|
16636
|
+
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];
|
|
16712
16637
|
ReturnType: viem.Hex;
|
|
16713
16638
|
}, {
|
|
16714
16639
|
Method: "eth_createAccessList";
|
|
@@ -16857,6 +16782,10 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16857
16782
|
Method: "eth_sendRawTransaction";
|
|
16858
16783
|
Parameters: [signedTransaction: viem.Hex];
|
|
16859
16784
|
ReturnType: viem.Hash;
|
|
16785
|
+
}, {
|
|
16786
|
+
Method: "eth_sendRawTransactionSync";
|
|
16787
|
+
Parameters: [signedTransaction: viem.Hex] | [signedTransaction: viem.Hex, timeout: viem.Hex];
|
|
16788
|
+
ReturnType: viem.RpcTransactionReceipt;
|
|
16860
16789
|
}, {
|
|
16861
16790
|
Method: "eth_simulateV1";
|
|
16862
16791
|
Parameters: [{
|
|
@@ -17112,7 +17041,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17112
17041
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
17113
17042
|
};
|
|
17114
17043
|
private calculateGasFees;
|
|
17115
|
-
handleOperation(
|
|
17044
|
+
handleOperation(operations: OperationPayload[]): Promise<Address$1>;
|
|
17116
17045
|
getJobId(hash: Address$1, clientAddress: Address$1, providerAddress: Address$1): Promise<number>;
|
|
17117
17046
|
}
|
|
17118
17047
|
|