@virtuals-protocol/acp-node 0.3.0-beta.19 → 0.3.0-beta.20
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 +23 -54
- package/dist/index.d.ts +23 -54
- package/dist/index.js +123 -1579
- package/dist/index.mjs +112 -1583
- 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
|
|
5
|
+
import { baseSepolia, base } 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,10 +98,9 @@ declare const ACP_ABI: ({
|
|
|
98
98
|
declare class Fare {
|
|
99
99
|
contractAddress: Address;
|
|
100
100
|
decimals: number;
|
|
101
|
-
|
|
102
|
-
constructor(contractAddress: Address, decimals: number, chainId?: number | undefined);
|
|
101
|
+
constructor(contractAddress: Address, decimals: number);
|
|
103
102
|
formatAmount(amount: number): bigint;
|
|
104
|
-
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig
|
|
103
|
+
static fromContractAddress(contractAddress: Address, config?: AcpContractConfig): Promise<Fare>;
|
|
105
104
|
}
|
|
106
105
|
declare abstract class FareAmountBase {
|
|
107
106
|
amount: bigint;
|
|
@@ -203,9 +202,8 @@ declare class AcpMemo {
|
|
|
203
202
|
payableDetails?: PayableDetails | undefined;
|
|
204
203
|
txHash?: `0x${string}` | undefined;
|
|
205
204
|
signedTxHash?: `0x${string}` | undefined;
|
|
206
|
-
state?: AcpMemoState | undefined;
|
|
207
205
|
structuredContent: GenericPayload | 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
|
|
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);
|
|
209
207
|
get payloadType(): PayloadType | undefined;
|
|
210
208
|
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
211
209
|
create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
|
|
@@ -277,7 +275,7 @@ declare class AcpJob {
|
|
|
277
275
|
userOpHash: Address;
|
|
278
276
|
txnHash: Address;
|
|
279
277
|
}>;
|
|
280
|
-
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW
|
|
278
|
+
createPayableRequirement(content: string, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, amount: FareAmountBase, recipient: Address, expiredAt?: Date): Promise<{
|
|
281
279
|
userOpHash: Address;
|
|
282
280
|
txnHash: Address;
|
|
283
281
|
}>;
|
|
@@ -305,7 +303,7 @@ declare class AcpJob {
|
|
|
305
303
|
userOpHash: Address;
|
|
306
304
|
txnHash: Address;
|
|
307
305
|
}>;
|
|
308
|
-
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<
|
|
306
|
+
deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
|
|
309
307
|
userOpHash: Address;
|
|
310
308
|
txnHash: Address;
|
|
311
309
|
}>;
|
|
@@ -319,7 +317,6 @@ declare class AcpJob {
|
|
|
319
317
|
txnHash: Address;
|
|
320
318
|
}>;
|
|
321
319
|
private performX402Payment;
|
|
322
|
-
deliverCrossChainPayable(recipient: Address, amount: FareAmountBase, isRequest?: boolean): Promise<void>;
|
|
323
320
|
[util.inspect.custom](): {
|
|
324
321
|
id: number;
|
|
325
322
|
clientAddress: `0x${string}`;
|
|
@@ -345,21 +342,11 @@ declare enum AcpMemoStatus {
|
|
|
345
342
|
APPROVED = "APPROVED",
|
|
346
343
|
REJECTED = "REJECTED"
|
|
347
344
|
}
|
|
348
|
-
declare enum AcpMemoState {
|
|
349
|
-
NONE = 0,
|
|
350
|
-
PENDING = 1,
|
|
351
|
-
IN_PROGRESS = 2,
|
|
352
|
-
READY = 3,
|
|
353
|
-
COMPLETED = 4,
|
|
354
|
-
REJECTED = 5
|
|
355
|
-
}
|
|
356
345
|
interface PayableDetails {
|
|
357
346
|
amount: bigint;
|
|
358
347
|
token: Address;
|
|
359
348
|
recipient: Address;
|
|
360
349
|
feeAmount: bigint;
|
|
361
|
-
lzSrcEid?: number;
|
|
362
|
-
lzDstEid?: number;
|
|
363
350
|
}
|
|
364
351
|
declare enum AcpAgentSort {
|
|
365
352
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
@@ -564,11 +551,6 @@ type X402PaymentResponse = {
|
|
|
564
551
|
data: X402PayableRequirements;
|
|
565
552
|
};
|
|
566
553
|
|
|
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
|
-
};
|
|
572
554
|
declare class AcpContractConfig {
|
|
573
555
|
chain: typeof baseSepolia | typeof base;
|
|
574
556
|
contractAddress: Address$1;
|
|
@@ -579,12 +561,10 @@ declare class AcpContractConfig {
|
|
|
579
561
|
maxRetries: number;
|
|
580
562
|
rpcEndpoint?: string | undefined;
|
|
581
563
|
x402Config?: X402Config | undefined;
|
|
582
|
-
|
|
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[]);
|
|
564
|
+
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);
|
|
584
565
|
}
|
|
585
566
|
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
586
567
|
declare const baseSepoliaAcpConfigV2: AcpContractConfig;
|
|
587
|
-
declare const baseSepoliaAcpX402ConfigV2: AcpContractConfig;
|
|
588
568
|
declare const baseAcpConfig: AcpContractConfig;
|
|
589
569
|
declare const baseAcpX402Config: AcpContractConfig;
|
|
590
570
|
declare const baseAcpConfigV2: AcpContractConfig;
|
|
@@ -631,10 +611,9 @@ declare abstract class BaseAcpContractClient {
|
|
|
631
611
|
abi: typeof ACP_ABI | typeof ACP_V2_ABI;
|
|
632
612
|
jobCreatedSignature: string;
|
|
633
613
|
publicClient: ReturnType<typeof createPublicClient>;
|
|
634
|
-
publicClients: Record<number, ReturnType<typeof createPublicClient>>;
|
|
635
614
|
constructor(agentWalletAddress: Address, config?: AcpContractConfig);
|
|
636
615
|
protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
|
|
637
|
-
abstract handleOperation(operations: OperationPayload[]
|
|
616
|
+
abstract handleOperation(operations: OperationPayload[]): Promise<{
|
|
638
617
|
userOpHash: Address;
|
|
639
618
|
txnHash: Address;
|
|
640
619
|
}>;
|
|
@@ -642,11 +621,9 @@ declare abstract class BaseAcpContractClient {
|
|
|
642
621
|
get walletAddress(): `0x${string}`;
|
|
643
622
|
createJobWithAccount(accountId: number, evaluatorAddress: Address, budgetBaseUnit: bigint, paymentTokenAddress: Address, expiredAt: Date, isX402Job?: boolean): OperationPayload;
|
|
644
623
|
createJob(providerAddress: Address, evaluatorAddress: Address, expiredAt: Date, paymentTokenAddress: Address, budgetBaseUnit: bigint, metadata: string, isX402Job?: boolean): OperationPayload;
|
|
645
|
-
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address
|
|
624
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload;
|
|
646
625
|
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;
|
|
648
626
|
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;
|
|
650
627
|
signMemo(memoId: number, isApproved: boolean, reason?: string): OperationPayload;
|
|
651
628
|
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address): OperationPayload | undefined;
|
|
652
629
|
updateAccountMetadata(accountId: number, metadata: string): OperationPayload;
|
|
@@ -656,10 +633,6 @@ declare abstract class BaseAcpContractClient {
|
|
|
656
633
|
abstract generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
657
634
|
abstract performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
658
635
|
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>;
|
|
663
636
|
abstract getAcpVersion(): string;
|
|
664
637
|
}
|
|
665
638
|
|
|
@@ -1017,7 +990,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1017
990
|
[x: `uint8[${string}]`]: undefined;
|
|
1018
991
|
[x: `bool[${string}]`]: undefined;
|
|
1019
992
|
[x: `bytes4[${string}]`]: undefined;
|
|
1020
|
-
[x: `uint32[${string}]`]: undefined;
|
|
1021
993
|
[x: `bytes[${string}]`]: undefined;
|
|
1022
994
|
[x: `bytes6[${string}]`]: undefined;
|
|
1023
995
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -1085,6 +1057,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1085
1057
|
[x: `uint[${string}]`]: undefined;
|
|
1086
1058
|
[x: `uint16[${string}]`]: undefined;
|
|
1087
1059
|
[x: `uint24[${string}]`]: undefined;
|
|
1060
|
+
[x: `uint32[${string}]`]: undefined;
|
|
1088
1061
|
[x: `uint40[${string}]`]: undefined;
|
|
1089
1062
|
[x: `uint48[${string}]`]: undefined;
|
|
1090
1063
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -1119,7 +1092,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1119
1092
|
uint8?: undefined;
|
|
1120
1093
|
bool?: undefined;
|
|
1121
1094
|
bytes4?: undefined;
|
|
1122
|
-
uint32?: undefined;
|
|
1123
1095
|
bytes?: undefined;
|
|
1124
1096
|
bytes6?: undefined;
|
|
1125
1097
|
bytes10?: undefined;
|
|
@@ -1185,6 +1157,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
1185
1157
|
int256?: undefined;
|
|
1186
1158
|
uint16?: undefined;
|
|
1187
1159
|
uint24?: undefined;
|
|
1160
|
+
uint32?: undefined;
|
|
1188
1161
|
uint40?: undefined;
|
|
1189
1162
|
uint48?: undefined;
|
|
1190
1163
|
uint56?: undefined;
|
|
@@ -8334,7 +8307,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8334
8307
|
[x: `uint8[${string}]`]: undefined;
|
|
8335
8308
|
[x: `bool[${string}]`]: undefined;
|
|
8336
8309
|
[x: `bytes4[${string}]`]: undefined;
|
|
8337
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8338
8310
|
[x: `bytes[${string}]`]: undefined;
|
|
8339
8311
|
[x: `bytes6[${string}]`]: undefined;
|
|
8340
8312
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8402,6 +8374,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8402
8374
|
[x: `uint[${string}]`]: undefined;
|
|
8403
8375
|
[x: `uint16[${string}]`]: undefined;
|
|
8404
8376
|
[x: `uint24[${string}]`]: undefined;
|
|
8377
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8405
8378
|
[x: `uint40[${string}]`]: undefined;
|
|
8406
8379
|
[x: `uint48[${string}]`]: undefined;
|
|
8407
8380
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8436,7 +8409,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8436
8409
|
uint8?: undefined;
|
|
8437
8410
|
bool?: undefined;
|
|
8438
8411
|
bytes4?: undefined;
|
|
8439
|
-
uint32?: undefined;
|
|
8440
8412
|
bytes?: undefined;
|
|
8441
8413
|
bytes6?: undefined;
|
|
8442
8414
|
bytes10?: undefined;
|
|
@@ -8502,6 +8474,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8502
8474
|
int256?: undefined;
|
|
8503
8475
|
uint16?: undefined;
|
|
8504
8476
|
uint24?: undefined;
|
|
8477
|
+
uint32?: undefined;
|
|
8505
8478
|
uint40?: undefined;
|
|
8506
8479
|
uint48?: undefined;
|
|
8507
8480
|
uint56?: undefined;
|
|
@@ -8789,7 +8762,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8789
8762
|
[x: `uint8[${string}]`]: undefined;
|
|
8790
8763
|
[x: `bool[${string}]`]: undefined;
|
|
8791
8764
|
[x: `bytes4[${string}]`]: undefined;
|
|
8792
|
-
[x: `uint32[${string}]`]: undefined;
|
|
8793
8765
|
[x: `bytes[${string}]`]: undefined;
|
|
8794
8766
|
[x: `bytes6[${string}]`]: undefined;
|
|
8795
8767
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -8857,6 +8829,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8857
8829
|
[x: `uint[${string}]`]: undefined;
|
|
8858
8830
|
[x: `uint16[${string}]`]: undefined;
|
|
8859
8831
|
[x: `uint24[${string}]`]: undefined;
|
|
8832
|
+
[x: `uint32[${string}]`]: undefined;
|
|
8860
8833
|
[x: `uint40[${string}]`]: undefined;
|
|
8861
8834
|
[x: `uint48[${string}]`]: undefined;
|
|
8862
8835
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -8891,7 +8864,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8891
8864
|
uint8?: undefined;
|
|
8892
8865
|
bool?: undefined;
|
|
8893
8866
|
bytes4?: undefined;
|
|
8894
|
-
uint32?: undefined;
|
|
8895
8867
|
bytes?: undefined;
|
|
8896
8868
|
bytes6?: undefined;
|
|
8897
8869
|
bytes10?: undefined;
|
|
@@ -8957,6 +8929,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
8957
8929
|
int256?: undefined;
|
|
8958
8930
|
uint16?: undefined;
|
|
8959
8931
|
uint24?: undefined;
|
|
8932
|
+
uint32?: undefined;
|
|
8960
8933
|
uint40?: undefined;
|
|
8961
8934
|
uint48?: undefined;
|
|
8962
8935
|
uint56?: undefined;
|
|
@@ -9005,7 +8978,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
|
|
|
9005
8978
|
updateJobX402Nonce(jobId: number, nonce: string): Promise<OffChainJob>;
|
|
9006
8979
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
9007
8980
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
9008
|
-
getAssetManager(): Promise<Address$1>;
|
|
9009
8981
|
getAcpVersion(): string;
|
|
9010
8982
|
}
|
|
9011
8983
|
|
|
@@ -9022,9 +8994,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9022
8994
|
private PRIORITY_FEE_MULTIPLIER;
|
|
9023
8995
|
private MAX_FEE_PER_GAS;
|
|
9024
8996
|
private MAX_PRIORITY_FEE_PER_GAS;
|
|
9025
|
-
private GAS_FEE_MULTIPLIER;
|
|
9026
8997
|
private _sessionKeyClient;
|
|
9027
|
-
private _sessionKeyClients;
|
|
9028
8998
|
private _acpX402;
|
|
9029
8999
|
constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
9030
9000
|
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
|
|
@@ -9304,7 +9274,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9304
9274
|
[x: `uint8[${string}]`]: undefined;
|
|
9305
9275
|
[x: `bool[${string}]`]: undefined;
|
|
9306
9276
|
[x: `bytes4[${string}]`]: undefined;
|
|
9307
|
-
[x: `uint32[${string}]`]: undefined;
|
|
9308
9277
|
[x: `bytes[${string}]`]: undefined;
|
|
9309
9278
|
[x: `bytes6[${string}]`]: undefined;
|
|
9310
9279
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -9372,6 +9341,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9372
9341
|
[x: `uint[${string}]`]: undefined;
|
|
9373
9342
|
[x: `uint16[${string}]`]: undefined;
|
|
9374
9343
|
[x: `uint24[${string}]`]: undefined;
|
|
9344
|
+
[x: `uint32[${string}]`]: undefined;
|
|
9375
9345
|
[x: `uint40[${string}]`]: undefined;
|
|
9376
9346
|
[x: `uint48[${string}]`]: undefined;
|
|
9377
9347
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -9406,7 +9376,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9406
9376
|
uint8?: undefined;
|
|
9407
9377
|
bool?: undefined;
|
|
9408
9378
|
bytes4?: undefined;
|
|
9409
|
-
uint32?: undefined;
|
|
9410
9379
|
bytes?: undefined;
|
|
9411
9380
|
bytes6?: undefined;
|
|
9412
9381
|
bytes10?: undefined;
|
|
@@ -9472,6 +9441,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
9472
9441
|
int256?: undefined;
|
|
9473
9442
|
uint16?: undefined;
|
|
9474
9443
|
uint24?: undefined;
|
|
9444
|
+
uint32?: undefined;
|
|
9475
9445
|
uint40?: undefined;
|
|
9476
9446
|
uint48?: undefined;
|
|
9477
9447
|
uint56?: undefined;
|
|
@@ -16621,7 +16591,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16621
16591
|
[x: `uint8[${string}]`]: undefined;
|
|
16622
16592
|
[x: `bool[${string}]`]: undefined;
|
|
16623
16593
|
[x: `bytes4[${string}]`]: undefined;
|
|
16624
|
-
[x: `uint32[${string}]`]: undefined;
|
|
16625
16594
|
[x: `bytes[${string}]`]: undefined;
|
|
16626
16595
|
[x: `bytes6[${string}]`]: undefined;
|
|
16627
16596
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -16689,6 +16658,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16689
16658
|
[x: `uint[${string}]`]: undefined;
|
|
16690
16659
|
[x: `uint16[${string}]`]: undefined;
|
|
16691
16660
|
[x: `uint24[${string}]`]: undefined;
|
|
16661
|
+
[x: `uint32[${string}]`]: undefined;
|
|
16692
16662
|
[x: `uint40[${string}]`]: undefined;
|
|
16693
16663
|
[x: `uint48[${string}]`]: undefined;
|
|
16694
16664
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -16723,7 +16693,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16723
16693
|
uint8?: undefined;
|
|
16724
16694
|
bool?: undefined;
|
|
16725
16695
|
bytes4?: undefined;
|
|
16726
|
-
uint32?: undefined;
|
|
16727
16696
|
bytes?: undefined;
|
|
16728
16697
|
bytes6?: undefined;
|
|
16729
16698
|
bytes10?: undefined;
|
|
@@ -16789,6 +16758,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
16789
16758
|
int256?: undefined;
|
|
16790
16759
|
uint16?: undefined;
|
|
16791
16760
|
uint24?: undefined;
|
|
16761
|
+
uint32?: undefined;
|
|
16792
16762
|
uint40?: undefined;
|
|
16793
16763
|
uint48?: undefined;
|
|
16794
16764
|
uint56?: undefined;
|
|
@@ -17076,7 +17046,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17076
17046
|
[x: `uint8[${string}]`]: undefined;
|
|
17077
17047
|
[x: `bool[${string}]`]: undefined;
|
|
17078
17048
|
[x: `bytes4[${string}]`]: undefined;
|
|
17079
|
-
[x: `uint32[${string}]`]: undefined;
|
|
17080
17049
|
[x: `bytes[${string}]`]: undefined;
|
|
17081
17050
|
[x: `bytes6[${string}]`]: undefined;
|
|
17082
17051
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -17144,6 +17113,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17144
17113
|
[x: `uint[${string}]`]: undefined;
|
|
17145
17114
|
[x: `uint16[${string}]`]: undefined;
|
|
17146
17115
|
[x: `uint24[${string}]`]: undefined;
|
|
17116
|
+
[x: `uint32[${string}]`]: undefined;
|
|
17147
17117
|
[x: `uint40[${string}]`]: undefined;
|
|
17148
17118
|
[x: `uint48[${string}]`]: undefined;
|
|
17149
17119
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -17178,7 +17148,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17178
17148
|
uint8?: undefined;
|
|
17179
17149
|
bool?: undefined;
|
|
17180
17150
|
bytes4?: undefined;
|
|
17181
|
-
uint32?: undefined;
|
|
17182
17151
|
bytes?: undefined;
|
|
17183
17152
|
bytes6?: undefined;
|
|
17184
17153
|
bytes10?: undefined;
|
|
@@ -17244,6 +17213,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17244
17213
|
int256?: undefined;
|
|
17245
17214
|
uint16?: undefined;
|
|
17246
17215
|
uint24?: undefined;
|
|
17216
|
+
uint32?: undefined;
|
|
17247
17217
|
uint40?: undefined;
|
|
17248
17218
|
uint48?: undefined;
|
|
17249
17219
|
uint56?: undefined;
|
|
@@ -17279,7 +17249,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17279
17249
|
};
|
|
17280
17250
|
get acpX402(): AcpX402;
|
|
17281
17251
|
private calculateGasFees;
|
|
17282
|
-
handleOperation(operations: OperationPayload[]
|
|
17252
|
+
handleOperation(operations: OperationPayload[]): Promise<{
|
|
17283
17253
|
userOpHash: Address$1;
|
|
17284
17254
|
txnHash: Address$1;
|
|
17285
17255
|
}>;
|
|
@@ -17288,8 +17258,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
|
|
|
17288
17258
|
generateX402Payment(payableRequest: X402PayableRequest, requirements: X402PayableRequirements): Promise<X402Payment>;
|
|
17289
17259
|
performX402Request(url: string, version: string, budget?: string, signature?: string): Promise<X402PaymentResponse>;
|
|
17290
17260
|
getX402PaymentDetails(jobId: number): Promise<IAcpJobX402PaymentDetails>;
|
|
17291
|
-
getAssetManager(): Promise<Address$1>;
|
|
17292
17261
|
getAcpVersion(): string;
|
|
17293
17262
|
}
|
|
17294
17263
|
|
|
17295
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractClientV2, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo,
|
|
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 };
|