@virtuals-protocol/acp-node 0.3.0-beta.22 → 0.3.0-beta.23
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 +53 -23
- package/dist/index.d.ts +53 -23
- package/dist/index.js +1576 -126
- package/dist/index.mjs +1584 -119
- package/package.json +1 -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>;
|
|
@@ -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;
|
|
@@ -566,14 +584,16 @@ declare class AcpContractConfig {
|
|
|
566
584
|
multiplier: number;
|
|
567
585
|
maxRetries: number;
|
|
568
586
|
} | undefined;
|
|
587
|
+
chains: ChainConfig[];
|
|
569
588
|
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?: {
|
|
570
589
|
intervalMs: number;
|
|
571
590
|
multiplier: number;
|
|
572
591
|
maxRetries: number;
|
|
573
|
-
} | undefined);
|
|
592
|
+
} | undefined, chains?: ChainConfig[]);
|
|
574
593
|
}
|
|
575
594
|
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
576
595
|
declare const baseSepoliaAcpConfigV2: AcpContractConfig;
|
|
596
|
+
declare const baseSepoliaAcpX402ConfigV2: AcpContractConfig;
|
|
577
597
|
declare const baseAcpConfig: AcpContractConfig;
|
|
578
598
|
declare const baseAcpX402Config: AcpContractConfig;
|
|
579
599
|
declare const baseAcpConfigV2: AcpContractConfig;
|
|
@@ -620,9 +640,10 @@ declare abstract class BaseAcpContractClient {
|
|
|
620
640
|
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
621
641
|
jobCreatedSignature: string;
|
|
622
642
|
publicClient: ReturnType<typeof createPublicClient>;
|
|
643
|
+
publicClients: Record<number, ReturnType<typeof createPublicClient>>;
|
|
623
644
|
constructor(agentWalletAddress: Address, config?: AcpContractConfig);
|
|
624
645
|
protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
|
|
625
|
-
abstract handleOperation(operations: OperationPayload[]): Promise<{
|
|
646
|
+
abstract handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
|
|
626
647
|
userOpHash: Address;
|
|
627
648
|
txnHash: Address;
|
|
628
649
|
}>;
|
|
@@ -630,9 +651,11 @@ declare abstract class BaseAcpContractClient {
|
|
|
630
651
|
get walletAddress(): `0x${string}`;
|
|
631
652
|
createJobWithAccount(accountId: number, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date, isX402Job?: boolean): OperationPayload;
|
|
632
653
|
createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
|
|
633
|
-
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload;
|
|
654
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address, targetAddress?: Address): OperationPayload;
|
|
634
655
|
createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW | MemoType.PAYABLE_TRANSFER | MemoType.PAYABLE_NOTIFICATION, expiredAt: Date, token?: Address, secured?: boolean): OperationPayload;
|
|
656
|
+
createCrossChainPayableMemo(jobId: number, content: string, token: Address, amountBaseUnit: bigint, recipient: Address, feeAmountBaseUnit: bigint, feeType: FeeType, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER | MemoType.PAYABLE_NOTIFICATION, expiredAt: Date, nextPhase: AcpJobPhases, destinationEid: number, secured?: boolean): OperationPayload;
|
|
635
657
|
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): OperationPayload;
|
|
658
|
+
createMemoWithMetadata(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases, metadata: string): OperationPayload;
|
|
636
659
|
signMemo(memoId: number, isApproved: boolean, reason?: string): OperationPayload;
|
|
637
660
|
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload | undefined;
|
|
638
661
|
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
@@ -642,6 +665,10 @@ declare abstract class BaseAcpContractClient {
|
|
|
642
665
|
abstract generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
643
666
|
abstract performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
644
667
|
submitTransferWithAuthorization(from: Address, to: Address, value: bigint, validAfter: bigint, validBefore: bigint, nonce: string, signature: string): Promise<OperationPayload[]>;
|
|
668
|
+
getERC20Balance(chainId: number, tokenAddress: Address, walletAddress: Address): Promise<bigint>;
|
|
669
|
+
getERC20Allowance(chainId: number, tokenAddress: Address, walletAddress: Address, spenderAddress: Address): Promise<bigint>;
|
|
670
|
+
getERC20Symbol(chainId: number, tokenAddress: Address): Promise<string>;
|
|
671
|
+
abstract getAssetManager(): Promise<Address>;
|
|
645
672
|
abstract getAcpVersion(): string;
|
|
646
673
|
}
|
|
647
674
|
|
|
@@ -1000,6 +1027,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1000
1027
|
[x: `uint8[${string}]`]: undefined;
|
|
1001
1028
|
[x: `bool[${string}]`]: undefined;
|
|
1002
1029
|
[x: `bytes4[${string}]`]: undefined;
|
|
1030
|
+
[x: `uint32[${string}]`]: undefined;
|
|
1003
1031
|
[x: `bytes[${string}]`]: undefined;
|
|
1004
1032
|
[x: `bytes6[${string}]`]: undefined;
|
|
1005
1033
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -1067,7 +1095,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1067
1095
|
[x: `uint[${string}]`]: undefined;
|
|
1068
1096
|
[x: `uint16[${string}]`]: undefined;
|
|
1069
1097
|
[x: `uint24[${string}]`]: undefined;
|
|
1070
|
-
[x: `uint32[${string}]`]: undefined;
|
|
1071
1098
|
[x: `uint40[${string}]`]: undefined;
|
|
1072
1099
|
[x: `uint48[${string}]`]: undefined;
|
|
1073
1100
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -1102,6 +1129,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1102
1129
|
uint8?: undefined;
|
|
1103
1130
|
bool?: undefined;
|
|
1104
1131
|
bytes4?: undefined;
|
|
1132
|
+
uint32?: undefined;
|
|
1105
1133
|
bytes?: undefined;
|
|
1106
1134
|
bytes6?: undefined;
|
|
1107
1135
|
bytes10?: undefined;
|
|
@@ -1167,7 +1195,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1167
1195
|
int256?: undefined;
|
|
1168
1196
|
uint16?: undefined;
|
|
1169
1197
|
uint24?: undefined;
|
|
1170
|
-
uint32?: undefined;
|
|
1171
1198
|
uint40?: undefined;
|
|
1172
1199
|
uint48?: undefined;
|
|
1173
1200
|
uint56?: undefined;
|
|
@@ -8317,6 +8344,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8317
8344
|
[x: `uint8[${string}]`]: undefined;
|
|
8318
8345
|
[x: `bool[${string}]`]: undefined;
|
|
8319
8346
|
[x: `bytes4[${string}]`]: undefined;
|
|
8347
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8320
8348
|
[x: `bytes[${string}]`]: undefined;
|
|
8321
8349
|
[x: `bytes6[${string}]`]: undefined;
|
|
8322
8350
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8384,7 +8412,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8384
8412
|
[x: `uint[${string}]`]: undefined;
|
|
8385
8413
|
[x: `uint16[${string}]`]: undefined;
|
|
8386
8414
|
[x: `uint24[${string}]`]: undefined;
|
|
8387
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8388
8415
|
[x: `uint40[${string}]`]: undefined;
|
|
8389
8416
|
[x: `uint48[${string}]`]: undefined;
|
|
8390
8417
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8419,6 +8446,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8419
8446
|
uint8?: undefined;
|
|
8420
8447
|
bool?: undefined;
|
|
8421
8448
|
bytes4?: undefined;
|
|
8449
|
+
uint32?: undefined;
|
|
8422
8450
|
bytes?: undefined;
|
|
8423
8451
|
bytes6?: undefined;
|
|
8424
8452
|
bytes10?: undefined;
|
|
@@ -8484,7 +8512,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8484
8512
|
int256?: undefined;
|
|
8485
8513
|
uint16?: undefined;
|
|
8486
8514
|
uint24?: undefined;
|
|
8487
|
-
uint32?: undefined;
|
|
8488
8515
|
uint40?: undefined;
|
|
8489
8516
|
uint48?: undefined;
|
|
8490
8517
|
uint56?: undefined;
|
|
@@ -8772,6 +8799,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8772
8799
|
[x: `uint8[${string}]`]: undefined;
|
|
8773
8800
|
[x: `bool[${string}]`]: undefined;
|
|
8774
8801
|
[x: `bytes4[${string}]`]: undefined;
|
|
8802
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8775
8803
|
[x: `bytes[${string}]`]: undefined;
|
|
8776
8804
|
[x: `bytes6[${string}]`]: undefined;
|
|
8777
8805
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8839,7 +8867,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8839
8867
|
[x: `uint[${string}]`]: undefined;
|
|
8840
8868
|
[x: `uint16[${string}]`]: undefined;
|
|
8841
8869
|
[x: `uint24[${string}]`]: undefined;
|
|
8842
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8843
8870
|
[x: `uint40[${string}]`]: undefined;
|
|
8844
8871
|
[x: `uint48[${string}]`]: undefined;
|
|
8845
8872
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8874,6 +8901,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8874
8901
|
uint8?: undefined;
|
|
8875
8902
|
bool?: undefined;
|
|
8876
8903
|
bytes4?: undefined;
|
|
8904
|
+
uint32?: undefined;
|
|
8877
8905
|
bytes?: undefined;
|
|
8878
8906
|
bytes6?: undefined;
|
|
8879
8907
|
bytes10?: undefined;
|
|
@@ -8939,7 +8967,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8939
8967
|
int256?: undefined;
|
|
8940
8968
|
uint16?: undefined;
|
|
8941
8969
|
uint24?: undefined;
|
|
8942
|
-
uint32?: undefined;
|
|
8943
8970
|
uint40?: undefined;
|
|
8944
8971
|
uint48?: undefined;
|
|
8945
8972
|
uint56?: undefined;
|
|
@@ -8988,6 +9015,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8988
9015
|
updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
8989
9016
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
8990
9017
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
9018
|
+
getAssetManager(): Promise<Address$1>;
|
|
8991
9019
|
getAcpVersion(): string;
|
|
8992
9020
|
}
|
|
8993
9021
|
|
|
@@ -9007,6 +9035,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9007
9035
|
private GAS_FEE_MULTIPLIER;
|
|
9008
9036
|
private RETRY_CONFIG;
|
|
9009
9037
|
private _sessionKeyClient;
|
|
9038
|
+
private _sessionKeyClients;
|
|
9010
9039
|
private _acpX402;
|
|
9011
9040
|
constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
9012
9041
|
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
|
|
@@ -9286,6 +9315,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9286
9315
|
[x: `uint8[${string}]`]: undefined;
|
|
9287
9316
|
[x: `bool[${string}]`]: undefined;
|
|
9288
9317
|
[x: `bytes4[${string}]`]: undefined;
|
|
9318
|
+
[x: `uint32[${string}]`]: undefined;
|
|
9289
9319
|
[x: `bytes[${string}]`]: undefined;
|
|
9290
9320
|
[x: `bytes6[${string}]`]: undefined;
|
|
9291
9321
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -9353,7 +9383,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9353
9383
|
[x: `uint[${string}]`]: undefined;
|
|
9354
9384
|
[x: `uint16[${string}]`]: undefined;
|
|
9355
9385
|
[x: `uint24[${string}]`]: undefined;
|
|
9356
|
-
[x: `uint32[${string}]`]: undefined;
|
|
9357
9386
|
[x: `uint40[${string}]`]: undefined;
|
|
9358
9387
|
[x: `uint48[${string}]`]: undefined;
|
|
9359
9388
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -9388,6 +9417,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9388
9417
|
uint8?: undefined;
|
|
9389
9418
|
bool?: undefined;
|
|
9390
9419
|
bytes4?: undefined;
|
|
9420
|
+
uint32?: undefined;
|
|
9391
9421
|
bytes?: undefined;
|
|
9392
9422
|
bytes6?: undefined;
|
|
9393
9423
|
bytes10?: undefined;
|
|
@@ -9453,7 +9483,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9453
9483
|
int256?: undefined;
|
|
9454
9484
|
uint16?: undefined;
|
|
9455
9485
|
uint24?: undefined;
|
|
9456
|
-
uint32?: undefined;
|
|
9457
9486
|
uint40?: undefined;
|
|
9458
9487
|
uint48?: undefined;
|
|
9459
9488
|
uint56?: undefined;
|
|
@@ -16603,6 +16632,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16603
16632
|
[x: `uint8[${string}]`]: undefined;
|
|
16604
16633
|
[x: `bool[${string}]`]: undefined;
|
|
16605
16634
|
[x: `bytes4[${string}]`]: undefined;
|
|
16635
|
+
[x: `uint32[${string}]`]: undefined;
|
|
16606
16636
|
[x: `bytes[${string}]`]: undefined;
|
|
16607
16637
|
[x: `bytes6[${string}]`]: undefined;
|
|
16608
16638
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -16670,7 +16700,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16670
16700
|
[x: `uint[${string}]`]: undefined;
|
|
16671
16701
|
[x: `uint16[${string}]`]: undefined;
|
|
16672
16702
|
[x: `uint24[${string}]`]: undefined;
|
|
16673
|
-
[x: `uint32[${string}]`]: undefined;
|
|
16674
16703
|
[x: `uint40[${string}]`]: undefined;
|
|
16675
16704
|
[x: `uint48[${string}]`]: undefined;
|
|
16676
16705
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -16705,6 +16734,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16705
16734
|
uint8?: undefined;
|
|
16706
16735
|
bool?: undefined;
|
|
16707
16736
|
bytes4?: undefined;
|
|
16737
|
+
uint32?: undefined;
|
|
16708
16738
|
bytes?: undefined;
|
|
16709
16739
|
bytes6?: undefined;
|
|
16710
16740
|
bytes10?: undefined;
|
|
@@ -16770,7 +16800,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16770
16800
|
int256?: undefined;
|
|
16771
16801
|
uint16?: undefined;
|
|
16772
16802
|
uint24?: undefined;
|
|
16773
|
-
uint32?: undefined;
|
|
16774
16803
|
uint40?: undefined;
|
|
16775
16804
|
uint48?: undefined;
|
|
16776
16805
|
uint56?: undefined;
|
|
@@ -17058,6 +17087,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17058
17087
|
[x: `uint8[${string}]`]: undefined;
|
|
17059
17088
|
[x: `bool[${string}]`]: undefined;
|
|
17060
17089
|
[x: `bytes4[${string}]`]: undefined;
|
|
17090
|
+
[x: `uint32[${string}]`]: undefined;
|
|
17061
17091
|
[x: `bytes[${string}]`]: undefined;
|
|
17062
17092
|
[x: `bytes6[${string}]`]: undefined;
|
|
17063
17093
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -17125,7 +17155,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17125
17155
|
[x: `uint[${string}]`]: undefined;
|
|
17126
17156
|
[x: `uint16[${string}]`]: undefined;
|
|
17127
17157
|
[x: `uint24[${string}]`]: undefined;
|
|
17128
|
-
[x: `uint32[${string}]`]: undefined;
|
|
17129
17158
|
[x: `uint40[${string}]`]: undefined;
|
|
17130
17159
|
[x: `uint48[${string}]`]: undefined;
|
|
17131
17160
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -17160,6 +17189,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17160
17189
|
uint8?: undefined;
|
|
17161
17190
|
bool?: undefined;
|
|
17162
17191
|
bytes4?: undefined;
|
|
17192
|
+
uint32?: undefined;
|
|
17163
17193
|
bytes?: undefined;
|
|
17164
17194
|
bytes6?: undefined;
|
|
17165
17195
|
bytes10?: undefined;
|
|
@@ -17225,7 +17255,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17225
17255
|
int256?: undefined;
|
|
17226
17256
|
uint16?: undefined;
|
|
17227
17257
|
uint24?: undefined;
|
|
17228
|
-
uint32?: undefined;
|
|
17229
17258
|
uint40?: undefined;
|
|
17230
17259
|
uint48?: undefined;
|
|
17231
17260
|
uint56?: undefined;
|
|
@@ -17261,7 +17290,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17261
17290
|
};
|
|
17262
17291
|
get acpX402(): AcpX402;
|
|
17263
17292
|
private calculateGasFees;
|
|
17264
|
-
handleOperation(operations: OperationPayload[]): Promise<{
|
|
17293
|
+
handleOperation(operations: OperationPayload[], chainId?: number): Promise<{
|
|
17265
17294
|
userOpHash: Address$1;
|
|
17266
17295
|
txnHash: Address$1;
|
|
17267
17296
|
}>;
|
|
@@ -17270,7 +17299,8 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17270
17299
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
17271
17300
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
17272
17301
|
getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
|
|
17302
|
+
getAssetManager(): Promise<Address$1>;
|
|
17273
17303
|
getAcpVersion(): string;
|
|
17274
17304
|
}
|
|
17275
17305
|
|
|
17276
|
-
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 };
|
|
17306
|
+
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 };
|