@virtuals-protocol/acp-node 0.1.0-beta.9 → 0.2.0-beta-fund.3
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/README.md +77 -20
- package/dist/index.d.mts +309 -124
- package/dist/index.d.ts +309 -124
- package/dist/index.js +2168 -366
- package/dist/index.mjs +2167 -371
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
|
-
import { Address
|
|
2
|
+
import { Address } from 'viem';
|
|
3
3
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
4
4
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_signTypedData from '@aa-sdk/core/dist/types/actions/smartAccount/signTypedData';
|
|
5
5
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_signMessage from '@aa-sdk/core/dist/types/actions/smartAccount/signMessage';
|
|
6
6
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_checkGasSponsorshipEligibility from '@aa-sdk/core/dist/types/actions/smartAccount/checkGasSponsorshipEligibility';
|
|
7
7
|
import * as _aa_sdk_core from '@aa-sdk/core';
|
|
8
|
-
import { Address, SmartAccountSigner } from '@aa-sdk/core';
|
|
8
|
+
import { Address as Address$1, SmartAccountSigner } from '@aa-sdk/core';
|
|
9
9
|
import * as viem__types_utils_ccip from 'viem/_types/utils/ccip';
|
|
10
10
|
import * as _account_kit_smart_contracts from '@account-kit/smart-contracts';
|
|
11
11
|
import { baseSepolia, base } from '@account-kit/infra';
|
|
@@ -40,6 +40,31 @@ declare const ACP_ABI: ({
|
|
|
40
40
|
type: string;
|
|
41
41
|
stateMutability?: undefined;
|
|
42
42
|
outputs?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
inputs: ({
|
|
45
|
+
internalType: string;
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
components?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
components: {
|
|
51
|
+
internalType: string;
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}[];
|
|
55
|
+
internalType: string;
|
|
56
|
+
name: string;
|
|
57
|
+
type: string;
|
|
58
|
+
})[];
|
|
59
|
+
name: string;
|
|
60
|
+
outputs: {
|
|
61
|
+
internalType: string;
|
|
62
|
+
name: string;
|
|
63
|
+
type: string;
|
|
64
|
+
}[];
|
|
65
|
+
stateMutability: string;
|
|
66
|
+
type: string;
|
|
67
|
+
anonymous?: undefined;
|
|
43
68
|
} | {
|
|
44
69
|
inputs: {
|
|
45
70
|
internalType: string;
|
|
@@ -67,13 +92,29 @@ declare const ACP_ABI: ({
|
|
|
67
92
|
anonymous?: undefined;
|
|
68
93
|
})[];
|
|
69
94
|
|
|
70
|
-
|
|
71
|
-
chain: typeof baseSepolia | typeof base;
|
|
95
|
+
declare class Fare {
|
|
72
96
|
contractAddress: Address;
|
|
73
|
-
|
|
74
|
-
|
|
97
|
+
decimals: number;
|
|
98
|
+
constructor(contractAddress: Address, decimals: number);
|
|
99
|
+
formatAmount(amount: number): bigint;
|
|
100
|
+
}
|
|
101
|
+
declare class FareAmount {
|
|
102
|
+
amount: number;
|
|
103
|
+
fare: Fare;
|
|
104
|
+
constructor(amount: number, fare: Fare);
|
|
105
|
+
format(): bigint;
|
|
106
|
+
add(other: FareAmount): FareAmount;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare class AcpContractConfig {
|
|
110
|
+
chain: typeof baseSepolia | typeof base;
|
|
111
|
+
contractAddress: Address$1;
|
|
112
|
+
baseFare: Fare;
|
|
75
113
|
alchemyRpcUrl: string;
|
|
76
|
-
|
|
114
|
+
acpUrl: string;
|
|
115
|
+
rpcEndpoint?: string | undefined;
|
|
116
|
+
constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, rpcEndpoint?: string | undefined);
|
|
117
|
+
}
|
|
77
118
|
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
78
119
|
declare const baseAcpConfig: AcpContractConfig;
|
|
79
120
|
|
|
@@ -83,7 +124,10 @@ declare enum MemoType {
|
|
|
83
124
|
IMAGE_URL = 2,
|
|
84
125
|
VOICE_URL = 3,
|
|
85
126
|
OBJECT_URL = 4,
|
|
86
|
-
TXHASH = 5
|
|
127
|
+
TXHASH = 5,
|
|
128
|
+
PAYABLE_REQUEST = 6,
|
|
129
|
+
PAYABLE_TRANSFER = 7,
|
|
130
|
+
PAYABLE_TRANSFER_ESCROW = 8
|
|
87
131
|
}
|
|
88
132
|
declare enum AcpJobPhases {
|
|
89
133
|
REQUEST = 0,
|
|
@@ -91,19 +135,28 @@ declare enum AcpJobPhases {
|
|
|
91
135
|
TRANSACTION = 2,
|
|
92
136
|
EVALUATION = 3,
|
|
93
137
|
COMPLETED = 4,
|
|
94
|
-
REJECTED = 5
|
|
138
|
+
REJECTED = 5,
|
|
139
|
+
EXPIRED = 6
|
|
140
|
+
}
|
|
141
|
+
declare enum FeeType {
|
|
142
|
+
NO_FEE = 0,
|
|
143
|
+
IMMEDIATE_FEE = 1,
|
|
144
|
+
DEFERRED_FEE = 2
|
|
95
145
|
}
|
|
96
146
|
declare class AcpContractClient {
|
|
97
147
|
private walletPrivateKey;
|
|
98
148
|
private sessionEntityKeyId;
|
|
99
149
|
private agentWalletAddress;
|
|
100
150
|
config: AcpContractConfig;
|
|
151
|
+
private MAX_RETRIES;
|
|
152
|
+
private PRIORITY_FEE_MULTIPLIER;
|
|
153
|
+
private MAX_FEE_PER_GAS;
|
|
154
|
+
private MAX_PRIORITY_FEE_PER_GAS;
|
|
101
155
|
private _sessionKeyClient;
|
|
102
156
|
private chain;
|
|
103
157
|
private contractAddress;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
static build(walletPrivateKey: Address, sessionEntityKeyId: number, agentWalletAddress: Address, config?: AcpContractConfig): Promise<AcpContractClient>;
|
|
158
|
+
constructor(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
159
|
+
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClient>;
|
|
107
160
|
init(): Promise<void>;
|
|
108
161
|
get sessionKeyClient(): {
|
|
109
162
|
[x: string]: unknown;
|
|
@@ -121,11 +174,11 @@ declare class AcpContractClient {
|
|
|
121
174
|
pollingInterval: number;
|
|
122
175
|
request: viem.EIP1193RequestFn<[{
|
|
123
176
|
Method: "eth_sendUserOperation";
|
|
124
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
177
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
125
178
|
ReturnType: viem.Hash;
|
|
126
179
|
}, {
|
|
127
180
|
Method: "eth_estimateUserOperationGas";
|
|
128
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
181
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
129
182
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
130
183
|
}, {
|
|
131
184
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -138,7 +191,7 @@ declare class AcpContractClient {
|
|
|
138
191
|
}, {
|
|
139
192
|
Method: "eth_supportedEntryPoints";
|
|
140
193
|
Parameters: [];
|
|
141
|
-
ReturnType: Address[];
|
|
194
|
+
ReturnType: Address$1[];
|
|
142
195
|
}, {
|
|
143
196
|
Method: "web3_clientVersion";
|
|
144
197
|
Parameters?: undefined;
|
|
@@ -185,7 +238,7 @@ declare class AcpContractClient {
|
|
|
185
238
|
}, {
|
|
186
239
|
Method: "eth_coinbase";
|
|
187
240
|
Parameters?: undefined;
|
|
188
|
-
ReturnType: Address;
|
|
241
|
+
ReturnType: Address$1;
|
|
189
242
|
}, {
|
|
190
243
|
Method: "eth_estimateGas";
|
|
191
244
|
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
@@ -200,7 +253,7 @@ declare class AcpContractClient {
|
|
|
200
253
|
ReturnType: viem.Quantity;
|
|
201
254
|
}, {
|
|
202
255
|
Method: "eth_getBalance";
|
|
203
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
256
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
204
257
|
ReturnType: viem.Quantity;
|
|
205
258
|
}, {
|
|
206
259
|
Method: "eth_getBlockByHash";
|
|
@@ -220,7 +273,7 @@ declare class AcpContractClient {
|
|
|
220
273
|
ReturnType: viem.Quantity;
|
|
221
274
|
}, {
|
|
222
275
|
Method: "eth_getCode";
|
|
223
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
276
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
224
277
|
ReturnType: viem.Hex;
|
|
225
278
|
}, {
|
|
226
279
|
Method: "eth_getFilterChanges";
|
|
@@ -233,7 +286,7 @@ declare class AcpContractClient {
|
|
|
233
286
|
}, {
|
|
234
287
|
Method: "eth_getLogs";
|
|
235
288
|
Parameters: [{
|
|
236
|
-
address?: Address | Address[] | undefined;
|
|
289
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
237
290
|
topics?: viem.LogTopic[] | undefined;
|
|
238
291
|
} & ({
|
|
239
292
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -247,11 +300,11 @@ declare class AcpContractClient {
|
|
|
247
300
|
ReturnType: viem.RpcLog[];
|
|
248
301
|
}, {
|
|
249
302
|
Method: "eth_getProof";
|
|
250
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
303
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
251
304
|
ReturnType: viem.RpcProof;
|
|
252
305
|
}, {
|
|
253
306
|
Method: "eth_getStorageAt";
|
|
254
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
307
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
255
308
|
ReturnType: viem.Hex;
|
|
256
309
|
}, {
|
|
257
310
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -267,7 +320,7 @@ declare class AcpContractClient {
|
|
|
267
320
|
ReturnType: viem.RpcTransaction | null;
|
|
268
321
|
}, {
|
|
269
322
|
Method: "eth_getTransactionCount";
|
|
270
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
323
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
271
324
|
ReturnType: viem.Quantity;
|
|
272
325
|
}, {
|
|
273
326
|
Method: "eth_getTransactionReceipt";
|
|
@@ -302,7 +355,7 @@ declare class AcpContractClient {
|
|
|
302
355
|
Parameters: [filter: {
|
|
303
356
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
304
357
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
305
|
-
address?: Address | Address[] | undefined;
|
|
358
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
306
359
|
topics?: viem.LogTopic[] | undefined;
|
|
307
360
|
}];
|
|
308
361
|
ReturnType: viem.Quantity;
|
|
@@ -375,11 +428,11 @@ declare class AcpContractClient {
|
|
|
375
428
|
[x: `bool[${string}]`]: undefined;
|
|
376
429
|
[x: `bytes4[${string}]`]: undefined;
|
|
377
430
|
[x: `bytes[${string}]`]: undefined;
|
|
431
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
378
432
|
[x: `bytes1[${string}]`]: undefined;
|
|
379
433
|
[x: `bytes2[${string}]`]: undefined;
|
|
380
434
|
[x: `bytes3[${string}]`]: undefined;
|
|
381
435
|
[x: `bytes5[${string}]`]: undefined;
|
|
382
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
383
436
|
[x: `bytes7[${string}]`]: undefined;
|
|
384
437
|
[x: `bytes8[${string}]`]: undefined;
|
|
385
438
|
[x: `bytes9[${string}]`]: undefined;
|
|
@@ -477,11 +530,11 @@ declare class AcpContractClient {
|
|
|
477
530
|
bool?: undefined;
|
|
478
531
|
bytes4?: undefined;
|
|
479
532
|
bytes?: undefined;
|
|
533
|
+
bytes6?: undefined;
|
|
480
534
|
bytes1?: undefined;
|
|
481
535
|
bytes2?: undefined;
|
|
482
536
|
bytes3?: undefined;
|
|
483
537
|
bytes5?: undefined;
|
|
484
|
-
bytes6?: undefined;
|
|
485
538
|
bytes7?: undefined;
|
|
486
539
|
bytes8?: undefined;
|
|
487
540
|
bytes9?: undefined;
|
|
@@ -571,12 +624,12 @@ declare class AcpContractClient {
|
|
|
571
624
|
} | {
|
|
572
625
|
[key: string]: unknown;
|
|
573
626
|
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
|
|
574
|
-
getAddress: () => Address;
|
|
575
|
-
estimateUserOperationGas: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address, stateOverride?: viem.StateOverride) => Promise<_aa_sdk_core.UserOperationEstimateGasResponse<TEntryPointVersion>>;
|
|
576
|
-
sendRawUserOperation: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address) => Promise<viem.Hash>;
|
|
627
|
+
getAddress: () => Address$1;
|
|
628
|
+
estimateUserOperationGas: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address$1, stateOverride?: viem.StateOverride) => Promise<_aa_sdk_core.UserOperationEstimateGasResponse<TEntryPointVersion>>;
|
|
629
|
+
sendRawUserOperation: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address$1) => Promise<viem.Hash>;
|
|
577
630
|
getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
|
|
578
631
|
getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
579
|
-
getSupportedEntryPoints: () => Promise<Address[]>;
|
|
632
|
+
getSupportedEntryPoints: () => Promise<Address$1[]>;
|
|
580
633
|
call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
|
|
581
634
|
createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
|
|
582
635
|
accessList: viem.AccessList;
|
|
@@ -602,7 +655,7 @@ declare class AcpContractClient {
|
|
|
602
655
|
extraData: viem.Hex;
|
|
603
656
|
gasLimit: bigint;
|
|
604
657
|
gasUsed: bigint;
|
|
605
|
-
miner: Address;
|
|
658
|
+
miner: Address$1;
|
|
606
659
|
mixHash: viem.Hash;
|
|
607
660
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
608
661
|
parentHash: viem.Hash;
|
|
@@ -618,14 +671,14 @@ declare class AcpContractClient {
|
|
|
618
671
|
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
619
672
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
620
673
|
transactions: includeTransactions extends true ? ({
|
|
674
|
+
from: Address$1;
|
|
675
|
+
to: Address$1 | null;
|
|
621
676
|
type: "legacy";
|
|
622
677
|
r: viem.Hex;
|
|
623
678
|
s: viem.Hex;
|
|
624
679
|
v: bigint;
|
|
625
680
|
yParity?: undefined | undefined;
|
|
626
681
|
value: bigint;
|
|
627
|
-
to: Address | null;
|
|
628
|
-
from: Address;
|
|
629
682
|
gas: bigint;
|
|
630
683
|
nonce: number;
|
|
631
684
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -643,14 +696,14 @@ declare class AcpContractClient {
|
|
|
643
696
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
644
697
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
645
698
|
} | {
|
|
699
|
+
from: Address$1;
|
|
700
|
+
to: Address$1 | null;
|
|
646
701
|
type: "eip2930";
|
|
647
702
|
r: viem.Hex;
|
|
648
703
|
s: viem.Hex;
|
|
649
704
|
v: bigint;
|
|
650
705
|
yParity: number;
|
|
651
706
|
value: bigint;
|
|
652
|
-
to: Address | null;
|
|
653
|
-
from: Address;
|
|
654
707
|
gas: bigint;
|
|
655
708
|
nonce: number;
|
|
656
709
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -668,14 +721,14 @@ declare class AcpContractClient {
|
|
|
668
721
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
669
722
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
670
723
|
} | {
|
|
724
|
+
from: Address$1;
|
|
725
|
+
to: Address$1 | null;
|
|
671
726
|
type: "eip1559";
|
|
672
727
|
r: viem.Hex;
|
|
673
728
|
s: viem.Hex;
|
|
674
729
|
v: bigint;
|
|
675
730
|
yParity: number;
|
|
676
731
|
value: bigint;
|
|
677
|
-
to: Address | null;
|
|
678
|
-
from: Address;
|
|
679
732
|
gas: bigint;
|
|
680
733
|
nonce: number;
|
|
681
734
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -693,14 +746,14 @@ declare class AcpContractClient {
|
|
|
693
746
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
694
747
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
695
748
|
} | {
|
|
749
|
+
from: Address$1;
|
|
750
|
+
to: Address$1 | null;
|
|
696
751
|
type: "eip4844";
|
|
697
752
|
r: viem.Hex;
|
|
698
753
|
s: viem.Hex;
|
|
699
754
|
v: bigint;
|
|
700
755
|
yParity: number;
|
|
701
756
|
value: bigint;
|
|
702
|
-
to: Address | null;
|
|
703
|
-
from: Address;
|
|
704
757
|
gas: bigint;
|
|
705
758
|
nonce: number;
|
|
706
759
|
maxFeePerBlobGas: bigint;
|
|
@@ -718,14 +771,14 @@ declare class AcpContractClient {
|
|
|
718
771
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
719
772
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
720
773
|
} | {
|
|
774
|
+
from: Address$1;
|
|
775
|
+
to: Address$1 | null;
|
|
721
776
|
type: "eip7702";
|
|
722
777
|
r: viem.Hex;
|
|
723
778
|
s: viem.Hex;
|
|
724
779
|
v: bigint;
|
|
725
780
|
yParity: number;
|
|
726
781
|
value: bigint;
|
|
727
|
-
to: Address | null;
|
|
728
|
-
from: Address;
|
|
729
782
|
gas: bigint;
|
|
730
783
|
nonce: number;
|
|
731
784
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -768,14 +821,14 @@ declare class AcpContractClient {
|
|
|
768
821
|
} | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
|
|
769
822
|
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
770
823
|
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
|
|
824
|
+
from: Address$1;
|
|
825
|
+
to: Address$1 | null;
|
|
771
826
|
type: "legacy";
|
|
772
827
|
r: viem.Hex;
|
|
773
828
|
s: viem.Hex;
|
|
774
829
|
v: bigint;
|
|
775
830
|
yParity?: undefined | undefined;
|
|
776
831
|
value: bigint;
|
|
777
|
-
to: Address | null;
|
|
778
|
-
from: Address;
|
|
779
832
|
gas: bigint;
|
|
780
833
|
nonce: number;
|
|
781
834
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -793,14 +846,14 @@ declare class AcpContractClient {
|
|
|
793
846
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
794
847
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
795
848
|
} | {
|
|
849
|
+
from: Address$1;
|
|
850
|
+
to: Address$1 | null;
|
|
796
851
|
type: "eip2930";
|
|
797
852
|
r: viem.Hex;
|
|
798
853
|
s: viem.Hex;
|
|
799
854
|
v: bigint;
|
|
800
855
|
yParity: number;
|
|
801
856
|
value: bigint;
|
|
802
|
-
to: Address | null;
|
|
803
|
-
from: Address;
|
|
804
857
|
gas: bigint;
|
|
805
858
|
nonce: number;
|
|
806
859
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -818,14 +871,14 @@ declare class AcpContractClient {
|
|
|
818
871
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
819
872
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
820
873
|
} | {
|
|
874
|
+
from: Address$1;
|
|
875
|
+
to: Address$1 | null;
|
|
821
876
|
type: "eip1559";
|
|
822
877
|
r: viem.Hex;
|
|
823
878
|
s: viem.Hex;
|
|
824
879
|
v: bigint;
|
|
825
880
|
yParity: number;
|
|
826
881
|
value: bigint;
|
|
827
|
-
to: Address | null;
|
|
828
|
-
from: Address;
|
|
829
882
|
gas: bigint;
|
|
830
883
|
nonce: number;
|
|
831
884
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -843,14 +896,14 @@ declare class AcpContractClient {
|
|
|
843
896
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
844
897
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
845
898
|
} | {
|
|
899
|
+
from: Address$1;
|
|
900
|
+
to: Address$1 | null;
|
|
846
901
|
type: "eip4844";
|
|
847
902
|
r: viem.Hex;
|
|
848
903
|
s: viem.Hex;
|
|
849
904
|
v: bigint;
|
|
850
905
|
yParity: number;
|
|
851
906
|
value: bigint;
|
|
852
|
-
to: Address | null;
|
|
853
|
-
from: Address;
|
|
854
907
|
gas: bigint;
|
|
855
908
|
nonce: number;
|
|
856
909
|
maxFeePerBlobGas: bigint;
|
|
@@ -868,14 +921,14 @@ declare class AcpContractClient {
|
|
|
868
921
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
869
922
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
870
923
|
} | {
|
|
924
|
+
from: Address$1;
|
|
925
|
+
to: Address$1 | null;
|
|
871
926
|
type: "eip7702";
|
|
872
927
|
r: viem.Hex;
|
|
873
928
|
s: viem.Hex;
|
|
874
929
|
v: bigint;
|
|
875
930
|
yParity: number;
|
|
876
931
|
value: bigint;
|
|
877
|
-
to: Address | null;
|
|
878
|
-
from: Address;
|
|
879
932
|
gas: bigint;
|
|
880
933
|
nonce: number;
|
|
881
934
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -897,13 +950,13 @@ declare class AcpContractClient {
|
|
|
897
950
|
getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
|
|
898
951
|
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.TransactionReceipt>;
|
|
899
952
|
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
900
|
-
prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain | undefined, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | Address | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_14 ? T_14 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_14 extends viem.Chain ? {
|
|
953
|
+
prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain | undefined, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_14 ? T_14 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_14 extends viem.Chain ? {
|
|
901
954
|
chain: T_14;
|
|
902
955
|
} : {
|
|
903
956
|
chain?: undefined;
|
|
904
957
|
} : never : never) & (viem.DeriveAccount<viem.Account | undefined, accountOverride> extends infer T_15 ? T_15 extends viem.DeriveAccount<viem.Account | undefined, accountOverride> ? T_15 extends viem.Account ? {
|
|
905
958
|
account: T_15;
|
|
906
|
-
from: Address;
|
|
959
|
+
from: Address$1;
|
|
907
960
|
} : {
|
|
908
961
|
account?: undefined;
|
|
909
962
|
from?: undefined;
|
|
@@ -4155,7 +4208,7 @@ declare class AcpContractClient {
|
|
|
4155
4208
|
chain?: undefined;
|
|
4156
4209
|
} : never : never) & (viem.DeriveAccount<viem.Account | undefined, accountOverride> extends infer T_2 ? T_2 extends viem.DeriveAccount<viem.Account | undefined, accountOverride> ? T_2 extends viem.Account ? {
|
|
4157
4210
|
account: T_2;
|
|
4158
|
-
from: Address;
|
|
4211
|
+
from: Address$1;
|
|
4159
4212
|
} : {
|
|
4160
4213
|
account?: undefined;
|
|
4161
4214
|
from?: undefined;
|
|
@@ -7407,7 +7460,7 @@ declare class AcpContractClient {
|
|
|
7407
7460
|
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7408
7461
|
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7409
7462
|
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
7410
|
-
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | Address | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain | undefined, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
7463
|
+
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain | undefined, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
7411
7464
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
7412
7465
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
7413
7466
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -7434,11 +7487,11 @@ declare class AcpContractClient {
|
|
|
7434
7487
|
uid?: undefined;
|
|
7435
7488
|
} & viem.ExactPartial<Pick<viem.PublicActions<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
7436
7489
|
Method: "eth_sendUserOperation";
|
|
7437
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
7490
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
7438
7491
|
ReturnType: viem.Hash;
|
|
7439
7492
|
}, {
|
|
7440
7493
|
Method: "eth_estimateUserOperationGas";
|
|
7441
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
7494
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
7442
7495
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7443
7496
|
}, {
|
|
7444
7497
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -7451,7 +7504,7 @@ declare class AcpContractClient {
|
|
|
7451
7504
|
}, {
|
|
7452
7505
|
Method: "eth_supportedEntryPoints";
|
|
7453
7506
|
Parameters: [];
|
|
7454
|
-
ReturnType: Address[];
|
|
7507
|
+
ReturnType: Address$1[];
|
|
7455
7508
|
}, {
|
|
7456
7509
|
Method: "web3_clientVersion";
|
|
7457
7510
|
Parameters?: undefined;
|
|
@@ -7498,7 +7551,7 @@ declare class AcpContractClient {
|
|
|
7498
7551
|
}, {
|
|
7499
7552
|
Method: "eth_coinbase";
|
|
7500
7553
|
Parameters?: undefined;
|
|
7501
|
-
ReturnType: Address;
|
|
7554
|
+
ReturnType: Address$1;
|
|
7502
7555
|
}, {
|
|
7503
7556
|
Method: "eth_estimateGas";
|
|
7504
7557
|
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
@@ -7513,7 +7566,7 @@ declare class AcpContractClient {
|
|
|
7513
7566
|
ReturnType: viem.Quantity;
|
|
7514
7567
|
}, {
|
|
7515
7568
|
Method: "eth_getBalance";
|
|
7516
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7569
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7517
7570
|
ReturnType: viem.Quantity;
|
|
7518
7571
|
}, {
|
|
7519
7572
|
Method: "eth_getBlockByHash";
|
|
@@ -7533,7 +7586,7 @@ declare class AcpContractClient {
|
|
|
7533
7586
|
ReturnType: viem.Quantity;
|
|
7534
7587
|
}, {
|
|
7535
7588
|
Method: "eth_getCode";
|
|
7536
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7589
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7537
7590
|
ReturnType: viem.Hex;
|
|
7538
7591
|
}, {
|
|
7539
7592
|
Method: "eth_getFilterChanges";
|
|
@@ -7546,7 +7599,7 @@ declare class AcpContractClient {
|
|
|
7546
7599
|
}, {
|
|
7547
7600
|
Method: "eth_getLogs";
|
|
7548
7601
|
Parameters: [{
|
|
7549
|
-
address?: Address | Address[] | undefined;
|
|
7602
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
7550
7603
|
topics?: viem.LogTopic[] | undefined;
|
|
7551
7604
|
} & ({
|
|
7552
7605
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -7560,11 +7613,11 @@ declare class AcpContractClient {
|
|
|
7560
7613
|
ReturnType: viem.RpcLog[];
|
|
7561
7614
|
}, {
|
|
7562
7615
|
Method: "eth_getProof";
|
|
7563
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
7616
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
7564
7617
|
ReturnType: viem.RpcProof;
|
|
7565
7618
|
}, {
|
|
7566
7619
|
Method: "eth_getStorageAt";
|
|
7567
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7620
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7568
7621
|
ReturnType: viem.Hex;
|
|
7569
7622
|
}, {
|
|
7570
7623
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -7580,7 +7633,7 @@ declare class AcpContractClient {
|
|
|
7580
7633
|
ReturnType: viem.RpcTransaction | null;
|
|
7581
7634
|
}, {
|
|
7582
7635
|
Method: "eth_getTransactionCount";
|
|
7583
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7636
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7584
7637
|
ReturnType: viem.Quantity;
|
|
7585
7638
|
}, {
|
|
7586
7639
|
Method: "eth_getTransactionReceipt";
|
|
@@ -7615,7 +7668,7 @@ declare class AcpContractClient {
|
|
|
7615
7668
|
Parameters: [filter: {
|
|
7616
7669
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
7617
7670
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
7618
|
-
address?: Address | Address[] | undefined;
|
|
7671
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
7619
7672
|
topics?: viem.LogTopic[] | undefined;
|
|
7620
7673
|
}];
|
|
7621
7674
|
ReturnType: viem.Quantity;
|
|
@@ -7685,11 +7738,11 @@ declare class AcpContractClient {
|
|
|
7685
7738
|
[x: `bool[${string}]`]: undefined;
|
|
7686
7739
|
[x: `bytes4[${string}]`]: undefined;
|
|
7687
7740
|
[x: `bytes[${string}]`]: undefined;
|
|
7741
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
7688
7742
|
[x: `bytes1[${string}]`]: undefined;
|
|
7689
7743
|
[x: `bytes2[${string}]`]: undefined;
|
|
7690
7744
|
[x: `bytes3[${string}]`]: undefined;
|
|
7691
7745
|
[x: `bytes5[${string}]`]: undefined;
|
|
7692
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
7693
7746
|
[x: `bytes7[${string}]`]: undefined;
|
|
7694
7747
|
[x: `bytes8[${string}]`]: undefined;
|
|
7695
7748
|
[x: `bytes9[${string}]`]: undefined;
|
|
@@ -7787,11 +7840,11 @@ declare class AcpContractClient {
|
|
|
7787
7840
|
bool?: undefined;
|
|
7788
7841
|
bytes4?: undefined;
|
|
7789
7842
|
bytes?: undefined;
|
|
7843
|
+
bytes6?: undefined;
|
|
7790
7844
|
bytes1?: undefined;
|
|
7791
7845
|
bytes2?: undefined;
|
|
7792
7846
|
bytes3?: undefined;
|
|
7793
7847
|
bytes5?: undefined;
|
|
7794
|
-
bytes6?: undefined;
|
|
7795
7848
|
bytes7?: undefined;
|
|
7796
7849
|
bytes8?: undefined;
|
|
7797
7850
|
bytes9?: undefined;
|
|
@@ -7882,14 +7935,14 @@ declare class AcpContractClient {
|
|
|
7882
7935
|
[key: string]: unknown;
|
|
7883
7936
|
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
|
|
7884
7937
|
} & {
|
|
7885
|
-
getAddress: () => Address;
|
|
7938
|
+
getAddress: () => Address$1;
|
|
7886
7939
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
7887
7940
|
Method: "eth_sendUserOperation";
|
|
7888
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
7941
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
7889
7942
|
ReturnType: viem.Hash;
|
|
7890
7943
|
}, {
|
|
7891
7944
|
Method: "eth_estimateUserOperationGas";
|
|
7892
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
7945
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
7893
7946
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7894
7947
|
}, {
|
|
7895
7948
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -7902,7 +7955,7 @@ declare class AcpContractClient {
|
|
|
7902
7955
|
}, {
|
|
7903
7956
|
Method: "eth_supportedEntryPoints";
|
|
7904
7957
|
Parameters: [];
|
|
7905
|
-
ReturnType: Address[];
|
|
7958
|
+
ReturnType: Address$1[];
|
|
7906
7959
|
}, {
|
|
7907
7960
|
Method: "web3_clientVersion";
|
|
7908
7961
|
Parameters?: undefined;
|
|
@@ -7949,7 +8002,7 @@ declare class AcpContractClient {
|
|
|
7949
8002
|
}, {
|
|
7950
8003
|
Method: "eth_coinbase";
|
|
7951
8004
|
Parameters?: undefined;
|
|
7952
|
-
ReturnType: Address;
|
|
8005
|
+
ReturnType: Address$1;
|
|
7953
8006
|
}, {
|
|
7954
8007
|
Method: "eth_estimateGas";
|
|
7955
8008
|
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
@@ -7964,7 +8017,7 @@ declare class AcpContractClient {
|
|
|
7964
8017
|
ReturnType: viem.Quantity;
|
|
7965
8018
|
}, {
|
|
7966
8019
|
Method: "eth_getBalance";
|
|
7967
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8020
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7968
8021
|
ReturnType: viem.Quantity;
|
|
7969
8022
|
}, {
|
|
7970
8023
|
Method: "eth_getBlockByHash";
|
|
@@ -7984,7 +8037,7 @@ declare class AcpContractClient {
|
|
|
7984
8037
|
ReturnType: viem.Quantity;
|
|
7985
8038
|
}, {
|
|
7986
8039
|
Method: "eth_getCode";
|
|
7987
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8040
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7988
8041
|
ReturnType: viem.Hex;
|
|
7989
8042
|
}, {
|
|
7990
8043
|
Method: "eth_getFilterChanges";
|
|
@@ -7997,7 +8050,7 @@ declare class AcpContractClient {
|
|
|
7997
8050
|
}, {
|
|
7998
8051
|
Method: "eth_getLogs";
|
|
7999
8052
|
Parameters: [{
|
|
8000
|
-
address?: Address | Address[] | undefined;
|
|
8053
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
8001
8054
|
topics?: viem.LogTopic[] | undefined;
|
|
8002
8055
|
} & ({
|
|
8003
8056
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -8011,11 +8064,11 @@ declare class AcpContractClient {
|
|
|
8011
8064
|
ReturnType: viem.RpcLog[];
|
|
8012
8065
|
}, {
|
|
8013
8066
|
Method: "eth_getProof";
|
|
8014
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
8067
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
8015
8068
|
ReturnType: viem.RpcProof;
|
|
8016
8069
|
}, {
|
|
8017
8070
|
Method: "eth_getStorageAt";
|
|
8018
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8071
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8019
8072
|
ReturnType: viem.Hex;
|
|
8020
8073
|
}, {
|
|
8021
8074
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -8031,7 +8084,7 @@ declare class AcpContractClient {
|
|
|
8031
8084
|
ReturnType: viem.RpcTransaction | null;
|
|
8032
8085
|
}, {
|
|
8033
8086
|
Method: "eth_getTransactionCount";
|
|
8034
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8087
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8035
8088
|
ReturnType: viem.Quantity;
|
|
8036
8089
|
}, {
|
|
8037
8090
|
Method: "eth_getTransactionReceipt";
|
|
@@ -8066,7 +8119,7 @@ declare class AcpContractClient {
|
|
|
8066
8119
|
Parameters: [filter: {
|
|
8067
8120
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
8068
8121
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
8069
|
-
address?: Address | Address[] | undefined;
|
|
8122
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
8070
8123
|
topics?: viem.LogTopic[] | undefined;
|
|
8071
8124
|
}];
|
|
8072
8125
|
ReturnType: viem.Quantity;
|
|
@@ -8136,11 +8189,11 @@ declare class AcpContractClient {
|
|
|
8136
8189
|
[x: `bool[${string}]`]: undefined;
|
|
8137
8190
|
[x: `bytes4[${string}]`]: undefined;
|
|
8138
8191
|
[x: `bytes[${string}]`]: undefined;
|
|
8192
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
8139
8193
|
[x: `bytes1[${string}]`]: undefined;
|
|
8140
8194
|
[x: `bytes2[${string}]`]: undefined;
|
|
8141
8195
|
[x: `bytes3[${string}]`]: undefined;
|
|
8142
8196
|
[x: `bytes5[${string}]`]: undefined;
|
|
8143
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
8144
8197
|
[x: `bytes7[${string}]`]: undefined;
|
|
8145
8198
|
[x: `bytes8[${string}]`]: undefined;
|
|
8146
8199
|
[x: `bytes9[${string}]`]: undefined;
|
|
@@ -8238,11 +8291,11 @@ declare class AcpContractClient {
|
|
|
8238
8291
|
bool?: undefined;
|
|
8239
8292
|
bytes4?: undefined;
|
|
8240
8293
|
bytes?: undefined;
|
|
8294
|
+
bytes6?: undefined;
|
|
8241
8295
|
bytes1?: undefined;
|
|
8242
8296
|
bytes2?: undefined;
|
|
8243
8297
|
bytes3?: undefined;
|
|
8244
8298
|
bytes5?: undefined;
|
|
8245
|
-
bytes6?: undefined;
|
|
8246
8299
|
bytes7?: undefined;
|
|
8247
8300
|
bytes8?: undefined;
|
|
8248
8301
|
bytes9?: undefined;
|
|
@@ -8333,19 +8386,24 @@ declare class AcpContractClient {
|
|
|
8333
8386
|
[key: string]: unknown;
|
|
8334
8387
|
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
|
|
8335
8388
|
} & {
|
|
8336
|
-
getAddress: () => Address;
|
|
8389
|
+
getAddress: () => Address$1;
|
|
8337
8390
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
8338
8391
|
};
|
|
8339
|
-
get walletAddress(): Address;
|
|
8392
|
+
get walletAddress(): Address$1;
|
|
8393
|
+
private calculateGasFees;
|
|
8394
|
+
private handleSendUserOperation;
|
|
8340
8395
|
private getJobId;
|
|
8341
8396
|
createJob(providerAddress: string, evaluatorAddress: string, expireAt: Date): Promise<{
|
|
8342
8397
|
txHash: string;
|
|
8343
8398
|
jobId: number;
|
|
8344
8399
|
}>;
|
|
8345
|
-
approveAllowance(
|
|
8346
|
-
|
|
8400
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
|
|
8401
|
+
createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address$1, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, expiredAt: Date, token?: Address$1): Promise<`0x${string}`>;
|
|
8402
|
+
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): Promise<Address$1>;
|
|
8403
|
+
getMemoId(hash: Address$1): Promise<number>;
|
|
8347
8404
|
signMemo(memoId: number, isApproved: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8348
|
-
setBudget(jobId: number,
|
|
8405
|
+
setBudget(jobId: number, budgetBaseUnit: bigint): Promise<`0x${string}`>;
|
|
8406
|
+
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
|
|
8349
8407
|
}
|
|
8350
8408
|
|
|
8351
8409
|
declare class AcpMemo {
|
|
@@ -8354,51 +8412,61 @@ declare class AcpMemo {
|
|
|
8354
8412
|
type: MemoType;
|
|
8355
8413
|
content: string;
|
|
8356
8414
|
nextPhase: AcpJobPhases;
|
|
8357
|
-
|
|
8415
|
+
status: AcpMemoStatus;
|
|
8416
|
+
signedReason?: string | undefined;
|
|
8417
|
+
expiry?: Date | undefined;
|
|
8418
|
+
payableDetails?: PayableDetails | undefined;
|
|
8419
|
+
structuredContent: GenericPayload | undefined;
|
|
8420
|
+
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined);
|
|
8421
|
+
get payloadType(): PayloadType | undefined;
|
|
8422
|
+
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
8358
8423
|
create(jobId: number, isSecured?: boolean): Promise<`0x${string}`>;
|
|
8359
8424
|
sign(approved: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8360
8425
|
}
|
|
8361
8426
|
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
get clientAgent(): Promise<AcpAgent | undefined>;
|
|
8377
|
-
get evaluatorAgent(): Promise<AcpAgent | undefined>;
|
|
8378
|
-
pay(amount: number, reason?: string): Promise<`0x${string}`>;
|
|
8379
|
-
respond(accept: boolean, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8380
|
-
deliver(deliverable: string): Promise<`0x${string}`>;
|
|
8381
|
-
evaluate(accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8427
|
+
interface IDeliverable {
|
|
8428
|
+
type: string;
|
|
8429
|
+
value: string | object;
|
|
8430
|
+
}
|
|
8431
|
+
declare enum AcpMemoStatus {
|
|
8432
|
+
PENDING = "PENDING",
|
|
8433
|
+
APPROVED = "APPROVED",
|
|
8434
|
+
REJECTED = "REJECTED"
|
|
8435
|
+
}
|
|
8436
|
+
interface PayableDetails {
|
|
8437
|
+
amount: bigint;
|
|
8438
|
+
token: Address;
|
|
8439
|
+
recipient: Address;
|
|
8440
|
+
feeAmount: bigint;
|
|
8382
8441
|
}
|
|
8383
|
-
|
|
8384
8442
|
declare enum AcpAgentSort {
|
|
8385
8443
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
8386
8444
|
SUCCESS_RATE = "successRate",
|
|
8387
8445
|
UNIQUE_BUYER_COUNT = "uniqueBuyerCount",
|
|
8388
|
-
MINS_FROM_LAST_ONLINE = "minsFromLastOnlineTime"
|
|
8389
|
-
|
|
8446
|
+
MINS_FROM_LAST_ONLINE = "minsFromLastOnlineTime"
|
|
8447
|
+
}
|
|
8448
|
+
declare enum AcpGraduationStatus {
|
|
8449
|
+
ALL = "all",
|
|
8450
|
+
GRADUATED = "graduated",
|
|
8451
|
+
NOT_GRADUATED = "not_graduated"
|
|
8452
|
+
}
|
|
8453
|
+
declare enum AcpOnlineStatus {
|
|
8454
|
+
ALL = "all",
|
|
8455
|
+
ONLINE = "online",
|
|
8456
|
+
OFFLINE = "offline"
|
|
8390
8457
|
}
|
|
8391
8458
|
interface IAcpClientOptions {
|
|
8392
8459
|
acpContractClient: AcpContractClient;
|
|
8393
|
-
onNewTask?: (job: AcpJob) => void;
|
|
8460
|
+
onNewTask?: (job: AcpJob, memoToSign?: AcpMemo) => void;
|
|
8394
8461
|
onEvaluate?: (job: AcpJob) => void;
|
|
8462
|
+
customRpcUrl?: string;
|
|
8395
8463
|
}
|
|
8396
8464
|
type AcpAgent = {
|
|
8397
8465
|
id: number;
|
|
8398
8466
|
documentId: string;
|
|
8399
8467
|
name: string;
|
|
8400
8468
|
description: string;
|
|
8401
|
-
walletAddress: Address
|
|
8469
|
+
walletAddress: Address;
|
|
8402
8470
|
isVirtualAgent: boolean;
|
|
8403
8471
|
profilePic: string;
|
|
8404
8472
|
category: string;
|
|
@@ -8409,6 +8477,7 @@ type AcpAgent = {
|
|
|
8409
8477
|
offerings: {
|
|
8410
8478
|
name: string;
|
|
8411
8479
|
price: number;
|
|
8480
|
+
priceUsd: number;
|
|
8412
8481
|
requirementSchema?: Object;
|
|
8413
8482
|
deliverableSchema?: Object;
|
|
8414
8483
|
}[];
|
|
@@ -8422,24 +8491,135 @@ type AcpAgent = {
|
|
|
8422
8491
|
isOnline: boolean;
|
|
8423
8492
|
};
|
|
8424
8493
|
};
|
|
8494
|
+
declare enum PayloadType {
|
|
8495
|
+
FUND_RESPONSE = "fund_response",
|
|
8496
|
+
OPEN_POSITION = "open_position",
|
|
8497
|
+
SWAP_TOKEN = "swap_token",
|
|
8498
|
+
RESPONSE_SWAP_TOKEN = "response_swap_token",
|
|
8499
|
+
CLOSE_PARTIAL_POSITION = "close_partial_position",
|
|
8500
|
+
CLOSE_POSITION = "close_position",
|
|
8501
|
+
POSITION_FULFILLED = "position_fulfilled",
|
|
8502
|
+
CLOSE_JOB_AND_WITHDRAW = "close_job_and_withdraw",
|
|
8503
|
+
UNFULFILLED_POSITION = "unfulfilled_position"
|
|
8504
|
+
}
|
|
8505
|
+
type GenericPayload<T = any> = {
|
|
8506
|
+
type: PayloadType;
|
|
8507
|
+
data: T;
|
|
8508
|
+
};
|
|
8509
|
+
type FundResponsePayload = {
|
|
8510
|
+
reportingApiEndpoint: string;
|
|
8511
|
+
walletAddress?: Address;
|
|
8512
|
+
};
|
|
8513
|
+
type OpenPositionPayload = {
|
|
8514
|
+
symbol: string;
|
|
8515
|
+
amount: number;
|
|
8516
|
+
chain?: string;
|
|
8517
|
+
contractAddress?: string;
|
|
8518
|
+
tp: {
|
|
8519
|
+
price?: number;
|
|
8520
|
+
percentage?: number;
|
|
8521
|
+
};
|
|
8522
|
+
sl: {
|
|
8523
|
+
price?: number;
|
|
8524
|
+
percentage?: number;
|
|
8525
|
+
};
|
|
8526
|
+
};
|
|
8527
|
+
type SwapTokenPayload = {
|
|
8528
|
+
fromSymbol: string;
|
|
8529
|
+
fromContractAddress: Address;
|
|
8530
|
+
amount: number;
|
|
8531
|
+
toSymbol: string;
|
|
8532
|
+
toContractAddress?: Address;
|
|
8533
|
+
};
|
|
8534
|
+
type ResponseSwapTokenPayload = {
|
|
8535
|
+
txnHash?: Address;
|
|
8536
|
+
error?: string;
|
|
8537
|
+
};
|
|
8538
|
+
type ClosePositionPayload = {
|
|
8539
|
+
positionId: number;
|
|
8540
|
+
amount: number;
|
|
8541
|
+
};
|
|
8542
|
+
type PositionFulfilledPayload = {
|
|
8543
|
+
symbol: string;
|
|
8544
|
+
amount: number;
|
|
8545
|
+
contractAddress: string;
|
|
8546
|
+
type: "TP" | "SL" | "CLOSE";
|
|
8547
|
+
pnl: number;
|
|
8548
|
+
entryPrice: number;
|
|
8549
|
+
exitPrice: number;
|
|
8550
|
+
};
|
|
8551
|
+
type UnfulfilledPositionPayload = {
|
|
8552
|
+
symbol: string;
|
|
8553
|
+
amount: number;
|
|
8554
|
+
contractAddress: string;
|
|
8555
|
+
type: "ERROR" | "PARTIAL";
|
|
8556
|
+
reason?: string;
|
|
8557
|
+
};
|
|
8558
|
+
type RequestClosePositionPayload = {
|
|
8559
|
+
positionId: number;
|
|
8560
|
+
};
|
|
8561
|
+
|
|
8562
|
+
declare class AcpJob {
|
|
8563
|
+
private acpClient;
|
|
8564
|
+
id: number;
|
|
8565
|
+
clientAddress: Address;
|
|
8566
|
+
providerAddress: Address;
|
|
8567
|
+
evaluatorAddress: Address;
|
|
8568
|
+
price: number;
|
|
8569
|
+
priceTokenAddress: Address;
|
|
8570
|
+
memos: AcpMemo[];
|
|
8571
|
+
phase: AcpJobPhases;
|
|
8572
|
+
context: Record<string, any>;
|
|
8573
|
+
private baseFare;
|
|
8574
|
+
constructor(acpClient: AcpClient, id: number, clientAddress: Address, providerAddress: Address, evaluatorAddress: Address, price: number, priceTokenAddress: Address, memos: AcpMemo[], phase: AcpJobPhases, context: Record<string, any>);
|
|
8575
|
+
get serviceRequirement(): Record<string, any> | string | undefined;
|
|
8576
|
+
get serviceName(): string | undefined;
|
|
8577
|
+
get deliverable(): string | undefined;
|
|
8578
|
+
get providerAgent(): Promise<AcpAgent | undefined>;
|
|
8579
|
+
get clientAgent(): Promise<AcpAgent | undefined>;
|
|
8580
|
+
get evaluatorAgent(): Promise<AcpAgent | undefined>;
|
|
8581
|
+
get latestMemo(): AcpMemo | undefined;
|
|
8582
|
+
pay(amount: number, reason?: string): Promise<`0x${string}`>;
|
|
8583
|
+
respond<T>(accept: boolean, payload?: GenericPayload<T>, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8584
|
+
deliver(deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8585
|
+
evaluate(accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8586
|
+
openPosition(payload: OpenPositionPayload[], feeAmount: number, expiredAt?: Date, // 3 minutes
|
|
8587
|
+
walletAddress?: Address): Promise<`0x${string}`>;
|
|
8588
|
+
swapToken(payload: SwapTokenPayload, decimals: number, feeAmount: number, walletAddress?: Address): Promise<`0x${string}`>;
|
|
8589
|
+
responseSwapToken(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8590
|
+
transferFunds<T>(payload: GenericPayload<T>, fareAmount: FareAmount, walletAddress?: Address, expiredAt?: Date): Promise<`0x${string}`>;
|
|
8591
|
+
responseOpenPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8592
|
+
closePartialPosition(payload: ClosePositionPayload, expireAt?: Date): Promise<`0x${string}`>;
|
|
8593
|
+
responseClosePartialPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8594
|
+
requestClosePosition(payload: RequestClosePositionPayload): Promise<`0x${string}`>;
|
|
8595
|
+
responseRequestClosePosition(memoId: number, accept: boolean, payload: ClosePositionPayload, reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
|
|
8596
|
+
confirmClosePosition(memoId: number, accept: boolean, reason?: string): Promise<void>;
|
|
8597
|
+
positionFulfilled(payload: PositionFulfilledPayload, expiredAt?: Date): Promise<`0x${string}`>;
|
|
8598
|
+
unfulfilledPosition(payload: UnfulfilledPositionPayload, expiredAt?: Date): Promise<`0x${string}`>;
|
|
8599
|
+
responseUnfulfilledPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8600
|
+
responsePositionFulfilled(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8601
|
+
closeJob(message?: string): Promise<`0x${string}`>;
|
|
8602
|
+
responseCloseJob(memoId: number, accept: boolean, fulfilledPositions: PositionFulfilledPayload[], reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
|
|
8603
|
+
confirmJobClosure(memoId: number, accept: boolean, reason?: string): Promise<void>;
|
|
8604
|
+
}
|
|
8425
8605
|
|
|
8426
8606
|
declare class AcpJobOffering {
|
|
8427
8607
|
private readonly acpClient;
|
|
8428
|
-
providerAddress: Address
|
|
8429
|
-
|
|
8608
|
+
providerAddress: Address;
|
|
8609
|
+
name: string;
|
|
8430
8610
|
price: number;
|
|
8431
8611
|
requirementSchema?: Object | undefined;
|
|
8432
8612
|
private ajv;
|
|
8433
|
-
constructor(acpClient: AcpClient, providerAddress: Address
|
|
8434
|
-
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address
|
|
8613
|
+
constructor(acpClient: AcpClient, providerAddress: Address, name: string, price: number, requirementSchema?: Object | undefined);
|
|
8614
|
+
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
8435
8615
|
}
|
|
8436
8616
|
|
|
8437
8617
|
interface IAcpBrowseAgentsOptions {
|
|
8438
8618
|
cluster?: string;
|
|
8439
8619
|
sort_by?: AcpAgentSort[];
|
|
8440
|
-
rerank?: boolean;
|
|
8441
8620
|
top_k?: number;
|
|
8442
|
-
|
|
8621
|
+
graduationStatus?: AcpGraduationStatus;
|
|
8622
|
+
onlineStatus?: AcpOnlineStatus;
|
|
8443
8623
|
}
|
|
8444
8624
|
declare class AcpClient {
|
|
8445
8625
|
private acpUrl;
|
|
@@ -8464,16 +8644,21 @@ declare class AcpClient {
|
|
|
8464
8644
|
isOnline: boolean;
|
|
8465
8645
|
} | undefined;
|
|
8466
8646
|
}[]>;
|
|
8467
|
-
initiateJob(providerAddress: Address
|
|
8468
|
-
respondJob(jobId: number, memoId: number, accept: boolean, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8469
|
-
payJob(jobId: number,
|
|
8470
|
-
|
|
8647
|
+
initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: FareAmount, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
8648
|
+
respondJob(jobId: number, memoId: number, accept: boolean, content?: string, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8649
|
+
payJob(jobId: number, amountBaseUnit: bigint, memoId: number, reason?: string): Promise<`0x${string}`>;
|
|
8650
|
+
requestFunds<T>(jobId: number, transferFareAmount: FareAmount, recipient: Address, feeFareAmount: FareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
8651
|
+
responseFundsRequest(memoId: number, accept: boolean, amountBaseUnit: bigint, reason?: string): Promise<`0x${string}`>;
|
|
8652
|
+
transferFunds<T>(jobId: number, transferFareAmount: FareAmount, recipient: Address, feeFareAmount: FareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
8653
|
+
sendMessage<T>(jobId: number, message: GenericPayload<T>, nextPhase: AcpJobPhases): Promise<`0x${string}`>;
|
|
8654
|
+
responseFundsTransfer(memoId: number, accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8655
|
+
deliverJob(jobId: number, deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8471
8656
|
getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8472
8657
|
getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8473
8658
|
getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8474
8659
|
getJobById(jobId: number): Promise<AcpJob | undefined>;
|
|
8475
8660
|
getMemoById(jobId: number, memoId: number): Promise<AcpMemo | undefined>;
|
|
8476
|
-
getAgent(walletAddress: Address
|
|
8661
|
+
getAgent(walletAddress: Address): Promise<AcpAgent | undefined>;
|
|
8477
8662
|
}
|
|
8478
8663
|
|
|
8479
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient,
|
|
8664
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractConfig, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, type ClosePositionPayload, Fare, FareAmount, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, type RequestClosePositionPayload, type ResponseSwapTokenPayload, type SwapTokenPayload, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|