@virtuals-protocol/acp-node 0.3.0-beta.16 → 0.3.0-beta.18
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 +51 -23
- package/dist/index.d.ts +51 -23
- package/dist/index.js +387 -58
- package/dist/index.mjs +398 -45
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as viem from 'viem';
|
|
|
2
2
|
import { Address, Chain, createPublicClient } 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
6
|
import * as util from 'util';
|
|
7
7
|
import util__default from 'util';
|
|
8
8
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
@@ -98,9 +98,10 @@ declare const ACP_ABI: ({
|
|
|
98
98
|
declare class Fare {
|
|
99
99
|
contractAddress: Address;
|
|
100
100
|
decimals: number;
|
|
101
|
-
|
|
101
|
+
chainId?: number | undefined;
|
|
102
|
+
constructor(contractAddress: Address, decimals: number, chainId?: number | undefined);
|
|
102
103
|
formatAmount(amount: number): bigint;
|
|
103
|
-
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig): Promise<Fare>;
|
|
104
|
+
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig, chainId?: number): Promise<Fare>;
|
|
104
105
|
}
|
|
105
106
|
declare abstract class FareAmountBase {
|
|
106
107
|
amount: bigint;
|
|
@@ -202,8 +203,9 @@ declare class AcpMemo {
|
|
|
202
203
|
payableDetails?: PayableDetails | undefined;
|
|
203
204
|
txHash?: `0x${string}` | undefined;
|
|
204
205
|
signedTxHash?: `0x${string}` | undefined;
|
|
206
|
+
state?: AcpMemoState | undefined;
|
|
205
207
|
structuredContent: GenericPayload | undefined;
|
|
206
|
-
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);
|
|
208
|
+
constructor(contractClient: BaseAcpContractClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, senderAddress: Address, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined, txHash?: `0x${string}` | undefined, signedTxHash?: `0x${string}` | undefined, state?: AcpMemoState | undefined);
|
|
207
209
|
get payloadType(): PayloadType | undefined;
|
|
208
210
|
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
209
211
|
create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
|
|
@@ -303,7 +305,7 @@ declare class AcpJob {
|
|
|
303
305
|
userOpHash: Address;
|
|
304
306
|
txnHash: Address;
|
|
305
307
|
}>;
|
|
306
|
-
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
|
|
308
|
+
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<void | {
|
|
307
309
|
userOpHash: Address;
|
|
308
310
|
txnHash: Address;
|
|
309
311
|
}>;
|
|
@@ -317,6 +319,7 @@ declare class AcpJob {
|
|
|
317
319
|
txnHash: Address;
|
|
318
320
|
}>;
|
|
319
321
|
private performX402Payment;
|
|
322
|
+
private deliverCrossChainPayable;
|
|
320
323
|
[util.inspect.custom](): {
|
|
321
324
|
id: number;
|
|
322
325
|
clientAddress: `0x${string}`;
|
|
@@ -342,11 +345,21 @@ declare enum AcpMemoStatus {
|
|
|
342
345
|
APPROVED = "APPROVED",
|
|
343
346
|
REJECTED = "REJECTED"
|
|
344
347
|
}
|
|
348
|
+
declare enum AcpMemoState {
|
|
349
|
+
NONE = "NONE",
|
|
350
|
+
PENDING = "PENDING",
|
|
351
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
352
|
+
READY = "READY",
|
|
353
|
+
COMPLETED = "COMPLETED",
|
|
354
|
+
REJECTED = "REJECTED"
|
|
355
|
+
}
|
|
345
356
|
interface PayableDetails {
|
|
346
357
|
amount: bigint;
|
|
347
358
|
token: Address;
|
|
348
359
|
recipient: Address;
|
|
349
360
|
feeAmount: bigint;
|
|
361
|
+
lzSrcEid?: number;
|
|
362
|
+
lzDstEid?: number;
|
|
350
363
|
}
|
|
351
364
|
declare enum AcpAgentSort {
|
|
352
365
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
@@ -551,6 +564,11 @@ type X402PaymentResponse = {
|
|
|
551
564
|
data: X402PayableRequirements;
|
|
552
565
|
};
|
|
553
566
|
|
|
567
|
+
type SupportedChain = typeof mainnet | typeof sepolia | typeof polygon | typeof polygonAmoy | typeof bsc | typeof bscTestnet | typeof arbitrum | typeof arbitrumSepolia;
|
|
568
|
+
type ChainConfig = {
|
|
569
|
+
chain: SupportedChain;
|
|
570
|
+
rpcUrl?: string;
|
|
571
|
+
};
|
|
554
572
|
declare class AcpContractConfig {
|
|
555
573
|
chain: typeof baseSepolia | typeof base;
|
|
556
574
|
contractAddress: Address$1;
|
|
@@ -561,7 +579,8 @@ declare class AcpContractConfig {
|
|
|
561
579
|
maxRetries: number;
|
|
562
580
|
rpcEndpoint?: string | undefined;
|
|
563
581
|
x402Config?: X402Config | undefined;
|
|
564
|
-
|
|
582
|
+
chains: ChainConfig[];
|
|
583
|
+
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, chains?: ChainConfig[]);
|
|
565
584
|
}
|
|
566
585
|
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
567
586
|
declare const baseSepoliaAcpConfigV2: AcpContractConfig;
|
|
@@ -581,7 +600,8 @@ declare enum MemoType {
|
|
|
581
600
|
PAYABLE_TRANSFER = 7,// 7 - Direct payment transfer
|
|
582
601
|
PAYABLE_TRANSFER_ESCROW = 8,// 8 - Escrowed payment transfer
|
|
583
602
|
NOTIFICATION = 9,// 9 - Notification
|
|
584
|
-
PAYABLE_NOTIFICATION = 10
|
|
603
|
+
PAYABLE_NOTIFICATION = 10,// 10 - Payable notification
|
|
604
|
+
TRANSFER_EVENT = 11
|
|
585
605
|
}
|
|
586
606
|
declare enum AcpJobPhases {
|
|
587
607
|
REQUEST = 0,
|
|
@@ -611,9 +631,10 @@ declare abstract class BaseAcpContractClient {
|
|
|
611
631
|
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
612
632
|
jobCreatedSignature: string;
|
|
613
633
|
publicClient: ReturnType<typeof createPublicClient>;
|
|
634
|
+
publicClients: Record<number, ReturnType<typeof createPublicClient>>;
|
|
614
635
|
constructor(agentWalletAddress: Address, config?: AcpContractConfig);
|
|
615
636
|
protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
|
|
616
|
-
abstract handleOperation(operations: OperationPayload[]): Promise<{
|
|
637
|
+
abstract handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
|
|
617
638
|
userOpHash: Address;
|
|
618
639
|
txnHash: Address;
|
|
619
640
|
}>;
|
|
@@ -621,9 +642,11 @@ declare abstract class BaseAcpContractClient {
|
|
|
621
642
|
get walletAddress(): `0x${string}`;
|
|
622
643
|
createJobWithAccount(accountId: number, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date, isX402Job?: boolean): OperationPayload;
|
|
623
644
|
createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
|
|
624
|
-
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload;
|
|
645
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address, targetAddress?: Address): OperationPayload;
|
|
625
646
|
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;
|
|
647
|
+
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;
|
|
626
648
|
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): OperationPayload;
|
|
649
|
+
createMemoWithMetadata(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases, metadata: string): OperationPayload;
|
|
627
650
|
signMemo(memoId: number, isApproved: boolean, reason?: string): OperationPayload;
|
|
628
651
|
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload | undefined;
|
|
629
652
|
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
@@ -633,6 +656,9 @@ declare abstract class BaseAcpContractClient {
|
|
|
633
656
|
abstract generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
634
657
|
abstract performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
635
658
|
submitTransferWithAuthorization(from: Address, to: Address, value: bigint, validAfter: bigint, validBefore: bigint, nonce: string, signature: string): Promise<OperationPayload[]>;
|
|
659
|
+
getERC20Balance(chainId: number, tokenAddress: Address, walletAddress: Address): Promise<bigint>;
|
|
660
|
+
getERC20Allowance(chainId: number, tokenAddress: Address, walletAddress: Address, spenderAddress: Address): Promise<bigint>;
|
|
661
|
+
getERC20Symbol(chainId: number, tokenAddress: Address): Promise<string>;
|
|
636
662
|
abstract getAcpVersion(): string;
|
|
637
663
|
}
|
|
638
664
|
|
|
@@ -990,6 +1016,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
990
1016
|
[x: `uint8[${string}]`]: undefined;
|
|
991
1017
|
[x: `bool[${string}]`]: undefined;
|
|
992
1018
|
[x: `bytes4[${string}]`]: undefined;
|
|
1019
|
+
[x: `uint32[${string}]`]: undefined;
|
|
993
1020
|
[x: `bytes[${string}]`]: undefined;
|
|
994
1021
|
[x: `bytes6[${string}]`]: undefined;
|
|
995
1022
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -1057,7 +1084,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1057
1084
|
[x: `uint[${string}]`]: undefined;
|
|
1058
1085
|
[x: `uint16[${string}]`]: undefined;
|
|
1059
1086
|
[x: `uint24[${string}]`]: undefined;
|
|
1060
|
-
[x: `uint32[${string}]`]: undefined;
|
|
1061
1087
|
[x: `uint40[${string}]`]: undefined;
|
|
1062
1088
|
[x: `uint48[${string}]`]: undefined;
|
|
1063
1089
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -1092,6 +1118,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1092
1118
|
uint8?: undefined;
|
|
1093
1119
|
bool?: undefined;
|
|
1094
1120
|
bytes4?: undefined;
|
|
1121
|
+
uint32?: undefined;
|
|
1095
1122
|
bytes?: undefined;
|
|
1096
1123
|
bytes6?: undefined;
|
|
1097
1124
|
bytes10?: undefined;
|
|
@@ -1157,7 +1184,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1157
1184
|
int256?: undefined;
|
|
1158
1185
|
uint16?: undefined;
|
|
1159
1186
|
uint24?: undefined;
|
|
1160
|
-
uint32?: undefined;
|
|
1161
1187
|
uint40?: undefined;
|
|
1162
1188
|
uint48?: undefined;
|
|
1163
1189
|
uint56?: undefined;
|
|
@@ -8307,6 +8333,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8307
8333
|
[x: `uint8[${string}]`]: undefined;
|
|
8308
8334
|
[x: `bool[${string}]`]: undefined;
|
|
8309
8335
|
[x: `bytes4[${string}]`]: undefined;
|
|
8336
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8310
8337
|
[x: `bytes[${string}]`]: undefined;
|
|
8311
8338
|
[x: `bytes6[${string}]`]: undefined;
|
|
8312
8339
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8374,7 +8401,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8374
8401
|
[x: `uint[${string}]`]: undefined;
|
|
8375
8402
|
[x: `uint16[${string}]`]: undefined;
|
|
8376
8403
|
[x: `uint24[${string}]`]: undefined;
|
|
8377
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8378
8404
|
[x: `uint40[${string}]`]: undefined;
|
|
8379
8405
|
[x: `uint48[${string}]`]: undefined;
|
|
8380
8406
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8409,6 +8435,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8409
8435
|
uint8?: undefined;
|
|
8410
8436
|
bool?: undefined;
|
|
8411
8437
|
bytes4?: undefined;
|
|
8438
|
+
uint32?: undefined;
|
|
8412
8439
|
bytes?: undefined;
|
|
8413
8440
|
bytes6?: undefined;
|
|
8414
8441
|
bytes10?: undefined;
|
|
@@ -8474,7 +8501,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8474
8501
|
int256?: undefined;
|
|
8475
8502
|
uint16?: undefined;
|
|
8476
8503
|
uint24?: undefined;
|
|
8477
|
-
uint32?: undefined;
|
|
8478
8504
|
uint40?: undefined;
|
|
8479
8505
|
uint48?: undefined;
|
|
8480
8506
|
uint56?: undefined;
|
|
@@ -8762,6 +8788,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8762
8788
|
[x: `uint8[${string}]`]: undefined;
|
|
8763
8789
|
[x: `bool[${string}]`]: undefined;
|
|
8764
8790
|
[x: `bytes4[${string}]`]: undefined;
|
|
8791
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8765
8792
|
[x: `bytes[${string}]`]: undefined;
|
|
8766
8793
|
[x: `bytes6[${string}]`]: undefined;
|
|
8767
8794
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8829,7 +8856,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8829
8856
|
[x: `uint[${string}]`]: undefined;
|
|
8830
8857
|
[x: `uint16[${string}]`]: undefined;
|
|
8831
8858
|
[x: `uint24[${string}]`]: undefined;
|
|
8832
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8833
8859
|
[x: `uint40[${string}]`]: undefined;
|
|
8834
8860
|
[x: `uint48[${string}]`]: undefined;
|
|
8835
8861
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8864,6 +8890,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8864
8890
|
uint8?: undefined;
|
|
8865
8891
|
bool?: undefined;
|
|
8866
8892
|
bytes4?: undefined;
|
|
8893
|
+
uint32?: undefined;
|
|
8867
8894
|
bytes?: undefined;
|
|
8868
8895
|
bytes6?: undefined;
|
|
8869
8896
|
bytes10?: undefined;
|
|
@@ -8929,7 +8956,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8929
8956
|
int256?: undefined;
|
|
8930
8957
|
uint16?: undefined;
|
|
8931
8958
|
uint24?: undefined;
|
|
8932
|
-
uint32?: undefined;
|
|
8933
8959
|
uint40?: undefined;
|
|
8934
8960
|
uint48?: undefined;
|
|
8935
8961
|
uint56?: undefined;
|
|
@@ -8994,7 +9020,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8994
9020
|
private PRIORITY_FEE_MULTIPLIER;
|
|
8995
9021
|
private MAX_FEE_PER_GAS;
|
|
8996
9022
|
private MAX_PRIORITY_FEE_PER_GAS;
|
|
9023
|
+
private GAS_FEE_MULTIPLIER;
|
|
8997
9024
|
private _sessionKeyClient;
|
|
9025
|
+
private _sessionKeyClients;
|
|
8998
9026
|
private _acpX402;
|
|
8999
9027
|
constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
9000
9028
|
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
|
|
@@ -9274,6 +9302,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9274
9302
|
[x: `uint8[${string}]`]: undefined;
|
|
9275
9303
|
[x: `bool[${string}]`]: undefined;
|
|
9276
9304
|
[x: `bytes4[${string}]`]: undefined;
|
|
9305
|
+
[x: `uint32[${string}]`]: undefined;
|
|
9277
9306
|
[x: `bytes[${string}]`]: undefined;
|
|
9278
9307
|
[x: `bytes6[${string}]`]: undefined;
|
|
9279
9308
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -9341,7 +9370,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9341
9370
|
[x: `uint[${string}]`]: undefined;
|
|
9342
9371
|
[x: `uint16[${string}]`]: undefined;
|
|
9343
9372
|
[x: `uint24[${string}]`]: undefined;
|
|
9344
|
-
[x: `uint32[${string}]`]: undefined;
|
|
9345
9373
|
[x: `uint40[${string}]`]: undefined;
|
|
9346
9374
|
[x: `uint48[${string}]`]: undefined;
|
|
9347
9375
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -9376,6 +9404,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9376
9404
|
uint8?: undefined;
|
|
9377
9405
|
bool?: undefined;
|
|
9378
9406
|
bytes4?: undefined;
|
|
9407
|
+
uint32?: undefined;
|
|
9379
9408
|
bytes?: undefined;
|
|
9380
9409
|
bytes6?: undefined;
|
|
9381
9410
|
bytes10?: undefined;
|
|
@@ -9441,7 +9470,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9441
9470
|
int256?: undefined;
|
|
9442
9471
|
uint16?: undefined;
|
|
9443
9472
|
uint24?: undefined;
|
|
9444
|
-
uint32?: undefined;
|
|
9445
9473
|
uint40?: undefined;
|
|
9446
9474
|
uint48?: undefined;
|
|
9447
9475
|
uint56?: undefined;
|
|
@@ -16591,6 +16619,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16591
16619
|
[x: `uint8[${string}]`]: undefined;
|
|
16592
16620
|
[x: `bool[${string}]`]: undefined;
|
|
16593
16621
|
[x: `bytes4[${string}]`]: undefined;
|
|
16622
|
+
[x: `uint32[${string}]`]: undefined;
|
|
16594
16623
|
[x: `bytes[${string}]`]: undefined;
|
|
16595
16624
|
[x: `bytes6[${string}]`]: undefined;
|
|
16596
16625
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -16658,7 +16687,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16658
16687
|
[x: `uint[${string}]`]: undefined;
|
|
16659
16688
|
[x: `uint16[${string}]`]: undefined;
|
|
16660
16689
|
[x: `uint24[${string}]`]: undefined;
|
|
16661
|
-
[x: `uint32[${string}]`]: undefined;
|
|
16662
16690
|
[x: `uint40[${string}]`]: undefined;
|
|
16663
16691
|
[x: `uint48[${string}]`]: undefined;
|
|
16664
16692
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -16693,6 +16721,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16693
16721
|
uint8?: undefined;
|
|
16694
16722
|
bool?: undefined;
|
|
16695
16723
|
bytes4?: undefined;
|
|
16724
|
+
uint32?: undefined;
|
|
16696
16725
|
bytes?: undefined;
|
|
16697
16726
|
bytes6?: undefined;
|
|
16698
16727
|
bytes10?: undefined;
|
|
@@ -16758,7 +16787,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16758
16787
|
int256?: undefined;
|
|
16759
16788
|
uint16?: undefined;
|
|
16760
16789
|
uint24?: undefined;
|
|
16761
|
-
uint32?: undefined;
|
|
16762
16790
|
uint40?: undefined;
|
|
16763
16791
|
uint48?: undefined;
|
|
16764
16792
|
uint56?: undefined;
|
|
@@ -17046,6 +17074,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17046
17074
|
[x: `uint8[${string}]`]: undefined;
|
|
17047
17075
|
[x: `bool[${string}]`]: undefined;
|
|
17048
17076
|
[x: `bytes4[${string}]`]: undefined;
|
|
17077
|
+
[x: `uint32[${string}]`]: undefined;
|
|
17049
17078
|
[x: `bytes[${string}]`]: undefined;
|
|
17050
17079
|
[x: `bytes6[${string}]`]: undefined;
|
|
17051
17080
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -17113,7 +17142,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17113
17142
|
[x: `uint[${string}]`]: undefined;
|
|
17114
17143
|
[x: `uint16[${string}]`]: undefined;
|
|
17115
17144
|
[x: `uint24[${string}]`]: undefined;
|
|
17116
|
-
[x: `uint32[${string}]`]: undefined;
|
|
17117
17145
|
[x: `uint40[${string}]`]: undefined;
|
|
17118
17146
|
[x: `uint48[${string}]`]: undefined;
|
|
17119
17147
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -17148,6 +17176,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17148
17176
|
uint8?: undefined;
|
|
17149
17177
|
bool?: undefined;
|
|
17150
17178
|
bytes4?: undefined;
|
|
17179
|
+
uint32?: undefined;
|
|
17151
17180
|
bytes?: undefined;
|
|
17152
17181
|
bytes6?: undefined;
|
|
17153
17182
|
bytes10?: undefined;
|
|
@@ -17213,7 +17242,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17213
17242
|
int256?: undefined;
|
|
17214
17243
|
uint16?: undefined;
|
|
17215
17244
|
uint24?: undefined;
|
|
17216
|
-
uint32?: undefined;
|
|
17217
17245
|
uint40?: undefined;
|
|
17218
17246
|
uint48?: undefined;
|
|
17219
17247
|
uint56?: undefined;
|
|
@@ -17249,7 +17277,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17249
17277
|
};
|
|
17250
17278
|
get acpX402(): AcpX402;
|
|
17251
17279
|
private calculateGasFees;
|
|
17252
|
-
handleOperation(operations: OperationPayload[]): Promise<{
|
|
17280
|
+
handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
|
|
17253
17281
|
userOpHash: Address$1;
|
|
17254
17282
|
txnHash: Address$1;
|
|
17255
17283
|
}>;
|
|
@@ -17261,4 +17289,4 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17261
17289
|
getAcpVersion(): string;
|
|
17262
17290
|
}
|
|
17263
17291
|
|
|
17264
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, BaseAcpContractClient, type ClosePositionPayload, type DeliverablePayload, Fare, FareAmount, FareBigInt, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, PositionDirection, type RequestClosePositionPayload, type ResponseSwapTokenPayload, type SwapTokenPayload, baseAcpConfig, baseAcpConfigV2, baseAcpX402Config, baseAcpX402ConfigV2, baseSepoliaAcpConfig, baseSepoliaAcpConfigV2, AcpClient as default, ethFare, preparePayload, wethFare };
|
|
17292
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoState, AcpMemoStatus, AcpOnlineStatus, BaseAcpContractClient, type ClosePositionPayload, type DeliverablePayload, Fare, FareAmount, FareBigInt, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, PositionDirection, type RequestClosePositionPayload, type ResponseSwapTokenPayload, type SwapTokenPayload, baseAcpConfig, baseAcpConfigV2, baseAcpX402Config, baseAcpX402ConfigV2, baseSepoliaAcpConfig, baseSepoliaAcpConfigV2, AcpClient as default, ethFare, preparePayload, wethFare };
|