@virtuals-protocol/acp-node 0.3.0-beta.20 → 0.3.0-beta.21
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 +54 -23
- package/dist/index.d.ts +54 -23
- package/dist/index.js +1584 -127
- package/dist/index.mjs +1592 -120
- package/package.json +2 -1
package/dist/index.d.ts
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>;
|
|
@@ -275,7 +277,7 @@ declare class AcpJob {
|
|
|
275
277
|
userOpHash: Address;
|
|
276
278
|
txnHash: Address;
|
|
277
279
|
}>;
|
|
278
|
-
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, amount: FareAmountBase, recipient: Address, expiredAt?: Date): Promise<{
|
|
280
|
+
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW | MemoType.PAYABLE_TRANSFER, amount: FareAmountBase, recipient: Address, expiredAt?: Date): Promise<{
|
|
279
281
|
userOpHash: Address;
|
|
280
282
|
txnHash: Address;
|
|
281
283
|
}>;
|
|
@@ -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
|
+
deliverCrossChainPayable(recipient: Address, amount: FareAmountBase, isRequest?: boolean): Promise<void>;
|
|
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 = 0,
|
|
350
|
+
PENDING = 1,
|
|
351
|
+
IN_PROGRESS = 2,
|
|
352
|
+
READY = 3,
|
|
353
|
+
COMPLETED = 4,
|
|
354
|
+
REJECTED = 5
|
|
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,10 +579,12 @@ 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;
|
|
587
|
+
declare const baseSepoliaAcpX402ConfigV2: AcpContractConfig;
|
|
568
588
|
declare const baseAcpConfig: AcpContractConfig;
|
|
569
589
|
declare const baseAcpX402Config: AcpContractConfig;
|
|
570
590
|
declare const baseAcpConfigV2: AcpContractConfig;
|
|
@@ -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,10 @@ 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>;
|
|
662
|
+
abstract getAssetManager(): Promise<Address>;
|
|
636
663
|
abstract getAcpVersion(): string;
|
|
637
664
|
}
|
|
638
665
|
|
|
@@ -990,6 +1017,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
990
1017
|
[x: `uint8[${string}]`]: undefined;
|
|
991
1018
|
[x: `bool[${string}]`]: undefined;
|
|
992
1019
|
[x: `bytes4[${string}]`]: undefined;
|
|
1020
|
+
[x: `uint32[${string}]`]: undefined;
|
|
993
1021
|
[x: `bytes[${string}]`]: undefined;
|
|
994
1022
|
[x: `bytes6[${string}]`]: undefined;
|
|
995
1023
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -1057,7 +1085,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1057
1085
|
[x: `uint[${string}]`]: undefined;
|
|
1058
1086
|
[x: `uint16[${string}]`]: undefined;
|
|
1059
1087
|
[x: `uint24[${string}]`]: undefined;
|
|
1060
|
-
[x: `uint32[${string}]`]: undefined;
|
|
1061
1088
|
[x: `uint40[${string}]`]: undefined;
|
|
1062
1089
|
[x: `uint48[${string}]`]: undefined;
|
|
1063
1090
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -1092,6 +1119,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1092
1119
|
uint8?: undefined;
|
|
1093
1120
|
bool?: undefined;
|
|
1094
1121
|
bytes4?: undefined;
|
|
1122
|
+
uint32?: undefined;
|
|
1095
1123
|
bytes?: undefined;
|
|
1096
1124
|
bytes6?: undefined;
|
|
1097
1125
|
bytes10?: undefined;
|
|
@@ -1157,7 +1185,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1157
1185
|
int256?: undefined;
|
|
1158
1186
|
uint16?: undefined;
|
|
1159
1187
|
uint24?: undefined;
|
|
1160
|
-
uint32?: undefined;
|
|
1161
1188
|
uint40?: undefined;
|
|
1162
1189
|
uint48?: undefined;
|
|
1163
1190
|
uint56?: undefined;
|
|
@@ -8307,6 +8334,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8307
8334
|
[x: `uint8[${string}]`]: undefined;
|
|
8308
8335
|
[x: `bool[${string}]`]: undefined;
|
|
8309
8336
|
[x: `bytes4[${string}]`]: undefined;
|
|
8337
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8310
8338
|
[x: `bytes[${string}]`]: undefined;
|
|
8311
8339
|
[x: `bytes6[${string}]`]: undefined;
|
|
8312
8340
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8374,7 +8402,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8374
8402
|
[x: `uint[${string}]`]: undefined;
|
|
8375
8403
|
[x: `uint16[${string}]`]: undefined;
|
|
8376
8404
|
[x: `uint24[${string}]`]: undefined;
|
|
8377
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8378
8405
|
[x: `uint40[${string}]`]: undefined;
|
|
8379
8406
|
[x: `uint48[${string}]`]: undefined;
|
|
8380
8407
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8409,6 +8436,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8409
8436
|
uint8?: undefined;
|
|
8410
8437
|
bool?: undefined;
|
|
8411
8438
|
bytes4?: undefined;
|
|
8439
|
+
uint32?: undefined;
|
|
8412
8440
|
bytes?: undefined;
|
|
8413
8441
|
bytes6?: undefined;
|
|
8414
8442
|
bytes10?: undefined;
|
|
@@ -8474,7 +8502,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8474
8502
|
int256?: undefined;
|
|
8475
8503
|
uint16?: undefined;
|
|
8476
8504
|
uint24?: undefined;
|
|
8477
|
-
uint32?: undefined;
|
|
8478
8505
|
uint40?: undefined;
|
|
8479
8506
|
uint48?: undefined;
|
|
8480
8507
|
uint56?: undefined;
|
|
@@ -8762,6 +8789,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8762
8789
|
[x: `uint8[${string}]`]: undefined;
|
|
8763
8790
|
[x: `bool[${string}]`]: undefined;
|
|
8764
8791
|
[x: `bytes4[${string}]`]: undefined;
|
|
8792
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8765
8793
|
[x: `bytes[${string}]`]: undefined;
|
|
8766
8794
|
[x: `bytes6[${string}]`]: undefined;
|
|
8767
8795
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8829,7 +8857,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8829
8857
|
[x: `uint[${string}]`]: undefined;
|
|
8830
8858
|
[x: `uint16[${string}]`]: undefined;
|
|
8831
8859
|
[x: `uint24[${string}]`]: undefined;
|
|
8832
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8833
8860
|
[x: `uint40[${string}]`]: undefined;
|
|
8834
8861
|
[x: `uint48[${string}]`]: undefined;
|
|
8835
8862
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8864,6 +8891,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8864
8891
|
uint8?: undefined;
|
|
8865
8892
|
bool?: undefined;
|
|
8866
8893
|
bytes4?: undefined;
|
|
8894
|
+
uint32?: undefined;
|
|
8867
8895
|
bytes?: undefined;
|
|
8868
8896
|
bytes6?: undefined;
|
|
8869
8897
|
bytes10?: undefined;
|
|
@@ -8929,7 +8957,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8929
8957
|
int256?: undefined;
|
|
8930
8958
|
uint16?: undefined;
|
|
8931
8959
|
uint24?: undefined;
|
|
8932
|
-
uint32?: undefined;
|
|
8933
8960
|
uint40?: undefined;
|
|
8934
8961
|
uint48?: undefined;
|
|
8935
8962
|
uint56?: undefined;
|
|
@@ -8978,6 +9005,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8978
9005
|
updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
8979
9006
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
8980
9007
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
9008
|
+
getAssetManager(): Promise<Address$1>;
|
|
8981
9009
|
getAcpVersion(): string;
|
|
8982
9010
|
}
|
|
8983
9011
|
|
|
@@ -8994,7 +9022,9 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
8994
9022
|
private PRIORITY_FEE_MULTIPLIER;
|
|
8995
9023
|
private MAX_FEE_PER_GAS;
|
|
8996
9024
|
private MAX_PRIORITY_FEE_PER_GAS;
|
|
9025
|
+
private GAS_FEE_MULTIPLIER;
|
|
8997
9026
|
private _sessionKeyClient;
|
|
9027
|
+
private _sessionKeyClients;
|
|
8998
9028
|
private _acpX402;
|
|
8999
9029
|
constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
9000
9030
|
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
|
|
@@ -9274,6 +9304,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9274
9304
|
[x: `uint8[${string}]`]: undefined;
|
|
9275
9305
|
[x: `bool[${string}]`]: undefined;
|
|
9276
9306
|
[x: `bytes4[${string}]`]: undefined;
|
|
9307
|
+
[x: `uint32[${string}]`]: undefined;
|
|
9277
9308
|
[x: `bytes[${string}]`]: undefined;
|
|
9278
9309
|
[x: `bytes6[${string}]`]: undefined;
|
|
9279
9310
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -9341,7 +9372,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9341
9372
|
[x: `uint[${string}]`]: undefined;
|
|
9342
9373
|
[x: `uint16[${string}]`]: undefined;
|
|
9343
9374
|
[x: `uint24[${string}]`]: undefined;
|
|
9344
|
-
[x: `uint32[${string}]`]: undefined;
|
|
9345
9375
|
[x: `uint40[${string}]`]: undefined;
|
|
9346
9376
|
[x: `uint48[${string}]`]: undefined;
|
|
9347
9377
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -9376,6 +9406,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9376
9406
|
uint8?: undefined;
|
|
9377
9407
|
bool?: undefined;
|
|
9378
9408
|
bytes4?: undefined;
|
|
9409
|
+
uint32?: undefined;
|
|
9379
9410
|
bytes?: undefined;
|
|
9380
9411
|
bytes6?: undefined;
|
|
9381
9412
|
bytes10?: undefined;
|
|
@@ -9441,7 +9472,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9441
9472
|
int256?: undefined;
|
|
9442
9473
|
uint16?: undefined;
|
|
9443
9474
|
uint24?: undefined;
|
|
9444
|
-
uint32?: undefined;
|
|
9445
9475
|
uint40?: undefined;
|
|
9446
9476
|
uint48?: undefined;
|
|
9447
9477
|
uint56?: undefined;
|
|
@@ -16591,6 +16621,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16591
16621
|
[x: `uint8[${string}]`]: undefined;
|
|
16592
16622
|
[x: `bool[${string}]`]: undefined;
|
|
16593
16623
|
[x: `bytes4[${string}]`]: undefined;
|
|
16624
|
+
[x: `uint32[${string}]`]: undefined;
|
|
16594
16625
|
[x: `bytes[${string}]`]: undefined;
|
|
16595
16626
|
[x: `bytes6[${string}]`]: undefined;
|
|
16596
16627
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -16658,7 +16689,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16658
16689
|
[x: `uint[${string}]`]: undefined;
|
|
16659
16690
|
[x: `uint16[${string}]`]: undefined;
|
|
16660
16691
|
[x: `uint24[${string}]`]: undefined;
|
|
16661
|
-
[x: `uint32[${string}]`]: undefined;
|
|
16662
16692
|
[x: `uint40[${string}]`]: undefined;
|
|
16663
16693
|
[x: `uint48[${string}]`]: undefined;
|
|
16664
16694
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -16693,6 +16723,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16693
16723
|
uint8?: undefined;
|
|
16694
16724
|
bool?: undefined;
|
|
16695
16725
|
bytes4?: undefined;
|
|
16726
|
+
uint32?: undefined;
|
|
16696
16727
|
bytes?: undefined;
|
|
16697
16728
|
bytes6?: undefined;
|
|
16698
16729
|
bytes10?: undefined;
|
|
@@ -16758,7 +16789,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16758
16789
|
int256?: undefined;
|
|
16759
16790
|
uint16?: undefined;
|
|
16760
16791
|
uint24?: undefined;
|
|
16761
|
-
uint32?: undefined;
|
|
16762
16792
|
uint40?: undefined;
|
|
16763
16793
|
uint48?: undefined;
|
|
16764
16794
|
uint56?: undefined;
|
|
@@ -17046,6 +17076,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17046
17076
|
[x: `uint8[${string}]`]: undefined;
|
|
17047
17077
|
[x: `bool[${string}]`]: undefined;
|
|
17048
17078
|
[x: `bytes4[${string}]`]: undefined;
|
|
17079
|
+
[x: `uint32[${string}]`]: undefined;
|
|
17049
17080
|
[x: `bytes[${string}]`]: undefined;
|
|
17050
17081
|
[x: `bytes6[${string}]`]: undefined;
|
|
17051
17082
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -17113,7 +17144,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17113
17144
|
[x: `uint[${string}]`]: undefined;
|
|
17114
17145
|
[x: `uint16[${string}]`]: undefined;
|
|
17115
17146
|
[x: `uint24[${string}]`]: undefined;
|
|
17116
|
-
[x: `uint32[${string}]`]: undefined;
|
|
17117
17147
|
[x: `uint40[${string}]`]: undefined;
|
|
17118
17148
|
[x: `uint48[${string}]`]: undefined;
|
|
17119
17149
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -17148,6 +17178,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17148
17178
|
uint8?: undefined;
|
|
17149
17179
|
bool?: undefined;
|
|
17150
17180
|
bytes4?: undefined;
|
|
17181
|
+
uint32?: undefined;
|
|
17151
17182
|
bytes?: undefined;
|
|
17152
17183
|
bytes6?: undefined;
|
|
17153
17184
|
bytes10?: undefined;
|
|
@@ -17213,7 +17244,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17213
17244
|
int256?: undefined;
|
|
17214
17245
|
uint16?: undefined;
|
|
17215
17246
|
uint24?: undefined;
|
|
17216
|
-
uint32?: undefined;
|
|
17217
17247
|
uint40?: undefined;
|
|
17218
17248
|
uint48?: undefined;
|
|
17219
17249
|
uint56?: undefined;
|
|
@@ -17249,7 +17279,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17249
17279
|
};
|
|
17250
17280
|
get acpX402(): AcpX402;
|
|
17251
17281
|
private calculateGasFees;
|
|
17252
|
-
handleOperation(operations: OperationPayload[]): Promise<{
|
|
17282
|
+
handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
|
|
17253
17283
|
userOpHash: Address$1;
|
|
17254
17284
|
txnHash: Address$1;
|
|
17255
17285
|
}>;
|
|
@@ -17258,7 +17288,8 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17258
17288
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
17259
17289
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
17260
17290
|
getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
|
|
17291
|
+
getAssetManager(): Promise<Address$1>;
|
|
17261
17292
|
getAcpVersion(): string;
|
|
17262
17293
|
}
|
|
17263
17294
|
|
|
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 };
|
|
17295
|
+
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, baseSepoliaAcpX402ConfigV2, AcpClient as default, ethFare, preparePayload, wethFare };
|