@virtuals-protocol/acp-node 0.2.0-beta.1 → 0.2.0-beta.11
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 +42 -21
- package/dist/index.d.mts +285 -214
- package/dist/index.d.ts +285 -214
- package/dist/index.js +1705 -509
- package/dist/index.mjs +1689 -509
- package/package.json +1 -1
package/dist/index.d.mts
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';
|
|
@@ -92,16 +92,42 @@ declare const ACP_ABI: ({
|
|
|
92
92
|
anonymous?: undefined;
|
|
93
93
|
})[];
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
chain: typeof baseSepolia | typeof base;
|
|
95
|
+
declare class Fare {
|
|
97
96
|
contractAddress: Address;
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
decimals: number;
|
|
98
|
+
constructor(contractAddress: Address, decimals: number);
|
|
99
|
+
formatAmount(amount: number): bigint;
|
|
100
|
+
}
|
|
101
|
+
interface IFareAmount {
|
|
102
|
+
amount: bigint;
|
|
103
|
+
fare: Fare;
|
|
104
|
+
add(other: IFareAmount): IFareAmount;
|
|
105
|
+
}
|
|
106
|
+
declare class FareAmount implements IFareAmount {
|
|
107
|
+
amount: bigint;
|
|
108
|
+
fare: Fare;
|
|
109
|
+
constructor(fareAmount: number, fare: Fare);
|
|
110
|
+
truncateTo6Decimals(input: string): number;
|
|
111
|
+
add(other: IFareAmount): FareAmount;
|
|
112
|
+
}
|
|
113
|
+
declare class FareBigInt implements IFareAmount {
|
|
114
|
+
amount: bigint;
|
|
115
|
+
fare: Fare;
|
|
116
|
+
constructor(amount: bigint, fare: Fare);
|
|
117
|
+
add(other: IFareAmount): IFareAmount;
|
|
118
|
+
}
|
|
119
|
+
declare const wethFare: Fare;
|
|
120
|
+
declare const ethFare: Fare;
|
|
121
|
+
|
|
122
|
+
declare class AcpContractConfig {
|
|
123
|
+
chain: typeof baseSepolia | typeof base;
|
|
124
|
+
contractAddress: Address$1;
|
|
125
|
+
baseFare: Fare;
|
|
100
126
|
alchemyRpcUrl: string;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
127
|
+
acpUrl: string;
|
|
128
|
+
rpcEndpoint?: string | undefined;
|
|
129
|
+
constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, rpcEndpoint?: string | undefined);
|
|
130
|
+
}
|
|
105
131
|
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
106
132
|
declare const baseAcpConfig: AcpContractConfig;
|
|
107
133
|
|
|
@@ -114,8 +140,7 @@ declare enum MemoType {
|
|
|
114
140
|
TXHASH = 5,
|
|
115
141
|
PAYABLE_REQUEST = 6,
|
|
116
142
|
PAYABLE_TRANSFER = 7,
|
|
117
|
-
|
|
118
|
-
PAYABLE_FEE_REQUEST = 9
|
|
143
|
+
PAYABLE_TRANSFER_ESCROW = 8
|
|
119
144
|
}
|
|
120
145
|
declare enum AcpJobPhases {
|
|
121
146
|
REQUEST = 0,
|
|
@@ -136,16 +161,17 @@ declare class AcpContractClient {
|
|
|
136
161
|
private sessionEntityKeyId;
|
|
137
162
|
private agentWalletAddress;
|
|
138
163
|
config: AcpContractConfig;
|
|
139
|
-
customRpcUrl?: string | undefined;
|
|
140
164
|
private MAX_RETRIES;
|
|
165
|
+
private PRIORITY_FEE_MULTIPLIER;
|
|
166
|
+
private MAX_FEE_PER_GAS;
|
|
167
|
+
private MAX_PRIORITY_FEE_PER_GAS;
|
|
141
168
|
private _sessionKeyClient;
|
|
142
169
|
private chain;
|
|
143
170
|
private contractAddress;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
constructor(walletPrivateKey: Address, sessionEntityKeyId: number, agentWalletAddress: Address, config?: AcpContractConfig, customRpcUrl?: string | undefined);
|
|
147
|
-
static build(walletPrivateKey: Address, sessionEntityKeyId: number, agentWalletAddress: Address, customRpcUrl?: string, config?: AcpContractConfig): Promise<AcpContractClient>;
|
|
171
|
+
constructor(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
172
|
+
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClient>;
|
|
148
173
|
init(): Promise<void>;
|
|
174
|
+
getRandomNonce(bits?: number): bigint;
|
|
149
175
|
get sessionKeyClient(): {
|
|
150
176
|
[x: string]: unknown;
|
|
151
177
|
account: _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>;
|
|
@@ -162,11 +188,11 @@ declare class AcpContractClient {
|
|
|
162
188
|
pollingInterval: number;
|
|
163
189
|
request: viem.EIP1193RequestFn<[{
|
|
164
190
|
Method: "eth_sendUserOperation";
|
|
165
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
191
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
166
192
|
ReturnType: viem.Hash;
|
|
167
193
|
}, {
|
|
168
194
|
Method: "eth_estimateUserOperationGas";
|
|
169
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
195
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
170
196
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
171
197
|
}, {
|
|
172
198
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -179,7 +205,7 @@ declare class AcpContractClient {
|
|
|
179
205
|
}, {
|
|
180
206
|
Method: "eth_supportedEntryPoints";
|
|
181
207
|
Parameters: [];
|
|
182
|
-
ReturnType: Address[];
|
|
208
|
+
ReturnType: Address$1[];
|
|
183
209
|
}, {
|
|
184
210
|
Method: "web3_clientVersion";
|
|
185
211
|
Parameters?: undefined;
|
|
@@ -226,7 +252,7 @@ declare class AcpContractClient {
|
|
|
226
252
|
}, {
|
|
227
253
|
Method: "eth_coinbase";
|
|
228
254
|
Parameters?: undefined;
|
|
229
|
-
ReturnType: Address;
|
|
255
|
+
ReturnType: Address$1;
|
|
230
256
|
}, {
|
|
231
257
|
Method: "eth_estimateGas";
|
|
232
258
|
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
@@ -241,7 +267,7 @@ declare class AcpContractClient {
|
|
|
241
267
|
ReturnType: viem.Quantity;
|
|
242
268
|
}, {
|
|
243
269
|
Method: "eth_getBalance";
|
|
244
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
270
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
245
271
|
ReturnType: viem.Quantity;
|
|
246
272
|
}, {
|
|
247
273
|
Method: "eth_getBlockByHash";
|
|
@@ -261,7 +287,7 @@ declare class AcpContractClient {
|
|
|
261
287
|
ReturnType: viem.Quantity;
|
|
262
288
|
}, {
|
|
263
289
|
Method: "eth_getCode";
|
|
264
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
290
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
265
291
|
ReturnType: viem.Hex;
|
|
266
292
|
}, {
|
|
267
293
|
Method: "eth_getFilterChanges";
|
|
@@ -274,7 +300,7 @@ declare class AcpContractClient {
|
|
|
274
300
|
}, {
|
|
275
301
|
Method: "eth_getLogs";
|
|
276
302
|
Parameters: [{
|
|
277
|
-
address?: Address | Address[] | undefined;
|
|
303
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
278
304
|
topics?: viem.LogTopic[] | undefined;
|
|
279
305
|
} & ({
|
|
280
306
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -288,11 +314,11 @@ declare class AcpContractClient {
|
|
|
288
314
|
ReturnType: viem.RpcLog[];
|
|
289
315
|
}, {
|
|
290
316
|
Method: "eth_getProof";
|
|
291
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
317
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
292
318
|
ReturnType: viem.RpcProof;
|
|
293
319
|
}, {
|
|
294
320
|
Method: "eth_getStorageAt";
|
|
295
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
321
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
296
322
|
ReturnType: viem.Hex;
|
|
297
323
|
}, {
|
|
298
324
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -308,7 +334,7 @@ declare class AcpContractClient {
|
|
|
308
334
|
ReturnType: viem.RpcTransaction | null;
|
|
309
335
|
}, {
|
|
310
336
|
Method: "eth_getTransactionCount";
|
|
311
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
337
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
312
338
|
ReturnType: viem.Quantity;
|
|
313
339
|
}, {
|
|
314
340
|
Method: "eth_getTransactionReceipt";
|
|
@@ -343,7 +369,7 @@ declare class AcpContractClient {
|
|
|
343
369
|
Parameters: [filter: {
|
|
344
370
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
345
371
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
346
|
-
address?: Address | Address[] | undefined;
|
|
372
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
347
373
|
topics?: viem.LogTopic[] | undefined;
|
|
348
374
|
}];
|
|
349
375
|
ReturnType: viem.Quantity;
|
|
@@ -416,11 +442,12 @@ declare class AcpContractClient {
|
|
|
416
442
|
[x: `bool[${string}]`]: undefined;
|
|
417
443
|
[x: `bytes4[${string}]`]: undefined;
|
|
418
444
|
[x: `bytes[${string}]`]: undefined;
|
|
419
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
420
445
|
[x: `bytes1[${string}]`]: undefined;
|
|
446
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
447
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
448
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
421
449
|
[x: `bytes3[${string}]`]: undefined;
|
|
422
450
|
[x: `bytes5[${string}]`]: undefined;
|
|
423
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
424
451
|
[x: `bytes7[${string}]`]: undefined;
|
|
425
452
|
[x: `bytes8[${string}]`]: undefined;
|
|
426
453
|
[x: `bytes9[${string}]`]: undefined;
|
|
@@ -432,7 +459,6 @@ declare class AcpContractClient {
|
|
|
432
459
|
[x: `bytes15[${string}]`]: undefined;
|
|
433
460
|
[x: `bytes16[${string}]`]: undefined;
|
|
434
461
|
[x: `bytes17[${string}]`]: undefined;
|
|
435
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
436
462
|
[x: `bytes19[${string}]`]: undefined;
|
|
437
463
|
[x: `bytes20[${string}]`]: undefined;
|
|
438
464
|
[x: `bytes21[${string}]`]: undefined;
|
|
@@ -518,11 +544,12 @@ declare class AcpContractClient {
|
|
|
518
544
|
bool?: undefined;
|
|
519
545
|
bytes4?: undefined;
|
|
520
546
|
bytes?: undefined;
|
|
521
|
-
bytes2?: undefined;
|
|
522
547
|
bytes1?: undefined;
|
|
548
|
+
bytes6?: undefined;
|
|
549
|
+
bytes18?: undefined;
|
|
550
|
+
bytes2?: undefined;
|
|
523
551
|
bytes3?: undefined;
|
|
524
552
|
bytes5?: undefined;
|
|
525
|
-
bytes6?: undefined;
|
|
526
553
|
bytes7?: undefined;
|
|
527
554
|
bytes8?: undefined;
|
|
528
555
|
bytes9?: undefined;
|
|
@@ -534,7 +561,6 @@ declare class AcpContractClient {
|
|
|
534
561
|
bytes15?: undefined;
|
|
535
562
|
bytes16?: undefined;
|
|
536
563
|
bytes17?: undefined;
|
|
537
|
-
bytes18?: undefined;
|
|
538
564
|
bytes19?: undefined;
|
|
539
565
|
bytes20?: undefined;
|
|
540
566
|
bytes21?: undefined;
|
|
@@ -612,12 +638,12 @@ declare class AcpContractClient {
|
|
|
612
638
|
} | {
|
|
613
639
|
[key: string]: unknown;
|
|
614
640
|
}, 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>;
|
|
615
|
-
getAddress: () => Address;
|
|
616
|
-
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>>;
|
|
617
|
-
sendRawUserOperation: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address) => Promise<viem.Hash>;
|
|
641
|
+
getAddress: () => Address$1;
|
|
642
|
+
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>>;
|
|
643
|
+
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>;
|
|
618
644
|
getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
|
|
619
645
|
getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
620
|
-
getSupportedEntryPoints: () => Promise<Address[]>;
|
|
646
|
+
getSupportedEntryPoints: () => Promise<Address$1[]>;
|
|
621
647
|
call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
|
|
622
648
|
createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
|
|
623
649
|
accessList: viem.AccessList;
|
|
@@ -643,7 +669,7 @@ declare class AcpContractClient {
|
|
|
643
669
|
extraData: viem.Hex;
|
|
644
670
|
gasLimit: bigint;
|
|
645
671
|
gasUsed: bigint;
|
|
646
|
-
miner: Address;
|
|
672
|
+
miner: Address$1;
|
|
647
673
|
mixHash: viem.Hash;
|
|
648
674
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
649
675
|
parentHash: viem.Hash;
|
|
@@ -659,129 +685,129 @@ declare class AcpContractClient {
|
|
|
659
685
|
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
660
686
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
661
687
|
transactions: includeTransactions extends true ? ({
|
|
662
|
-
from: Address;
|
|
663
|
-
to: Address | null;
|
|
688
|
+
from: Address$1;
|
|
689
|
+
to: Address$1 | null;
|
|
664
690
|
type: "legacy";
|
|
691
|
+
r: viem.Hex;
|
|
692
|
+
s: viem.Hex;
|
|
693
|
+
v: bigint;
|
|
694
|
+
yParity?: undefined | undefined;
|
|
695
|
+
value: bigint;
|
|
665
696
|
gas: bigint;
|
|
666
697
|
nonce: number;
|
|
667
|
-
value: bigint;
|
|
668
698
|
maxFeePerBlobGas?: undefined | undefined;
|
|
669
699
|
gasPrice: bigint;
|
|
670
700
|
maxFeePerGas?: undefined | undefined;
|
|
671
701
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
702
|
+
authorizationList?: undefined | undefined;
|
|
672
703
|
accessList?: undefined | undefined;
|
|
673
704
|
blobVersionedHashes?: undefined | undefined;
|
|
674
|
-
authorizationList?: undefined | undefined;
|
|
675
705
|
hash: viem.Hash;
|
|
676
|
-
r: viem.Hex;
|
|
677
|
-
s: viem.Hex;
|
|
678
|
-
v: bigint;
|
|
679
|
-
yParity?: undefined | undefined;
|
|
680
706
|
input: viem.Hex;
|
|
681
707
|
typeHex: viem.Hex | null;
|
|
682
708
|
chainId?: number | undefined;
|
|
683
|
-
|
|
684
|
-
|
|
709
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
710
|
+
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;
|
|
685
711
|
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;
|
|
686
712
|
} | {
|
|
687
|
-
from: Address;
|
|
688
|
-
to: Address | null;
|
|
713
|
+
from: Address$1;
|
|
714
|
+
to: Address$1 | null;
|
|
689
715
|
type: "eip2930";
|
|
716
|
+
r: viem.Hex;
|
|
717
|
+
s: viem.Hex;
|
|
718
|
+
v: bigint;
|
|
719
|
+
yParity: number;
|
|
720
|
+
value: bigint;
|
|
690
721
|
gas: bigint;
|
|
691
722
|
nonce: number;
|
|
692
|
-
value: bigint;
|
|
693
723
|
maxFeePerBlobGas?: undefined | undefined;
|
|
694
724
|
gasPrice: bigint;
|
|
695
725
|
maxFeePerGas?: undefined | undefined;
|
|
696
726
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
727
|
+
authorizationList?: undefined | undefined;
|
|
697
728
|
accessList: viem.AccessList;
|
|
698
729
|
blobVersionedHashes?: undefined | undefined;
|
|
699
|
-
authorizationList?: undefined | undefined;
|
|
700
730
|
hash: viem.Hash;
|
|
701
|
-
r: viem.Hex;
|
|
702
|
-
s: viem.Hex;
|
|
703
|
-
v: bigint;
|
|
704
|
-
yParity: number;
|
|
705
731
|
input: viem.Hex;
|
|
706
732
|
typeHex: viem.Hex | null;
|
|
707
733
|
chainId: number;
|
|
708
|
-
|
|
709
|
-
|
|
734
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
|
|
735
|
+
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;
|
|
710
736
|
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;
|
|
711
737
|
} | {
|
|
712
|
-
from: Address;
|
|
713
|
-
to: Address | null;
|
|
738
|
+
from: Address$1;
|
|
739
|
+
to: Address$1 | null;
|
|
714
740
|
type: "eip1559";
|
|
741
|
+
r: viem.Hex;
|
|
742
|
+
s: viem.Hex;
|
|
743
|
+
v: bigint;
|
|
744
|
+
yParity: number;
|
|
745
|
+
value: bigint;
|
|
715
746
|
gas: bigint;
|
|
716
747
|
nonce: number;
|
|
717
|
-
value: bigint;
|
|
718
748
|
maxFeePerBlobGas?: undefined | undefined;
|
|
719
749
|
gasPrice?: undefined | undefined;
|
|
720
750
|
maxFeePerGas: bigint;
|
|
721
751
|
maxPriorityFeePerGas: bigint;
|
|
752
|
+
authorizationList?: undefined | undefined;
|
|
722
753
|
accessList: viem.AccessList;
|
|
723
754
|
blobVersionedHashes?: undefined | undefined;
|
|
724
|
-
authorizationList?: undefined | undefined;
|
|
725
755
|
hash: viem.Hash;
|
|
726
|
-
r: viem.Hex;
|
|
727
|
-
s: viem.Hex;
|
|
728
|
-
v: bigint;
|
|
729
|
-
yParity: number;
|
|
730
756
|
input: viem.Hex;
|
|
731
757
|
typeHex: viem.Hex | null;
|
|
732
758
|
chainId: number;
|
|
733
|
-
|
|
734
|
-
|
|
759
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
|
|
760
|
+
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;
|
|
735
761
|
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;
|
|
736
762
|
} | {
|
|
737
|
-
from: Address;
|
|
738
|
-
to: Address | null;
|
|
763
|
+
from: Address$1;
|
|
764
|
+
to: Address$1 | null;
|
|
739
765
|
type: "eip4844";
|
|
766
|
+
r: viem.Hex;
|
|
767
|
+
s: viem.Hex;
|
|
768
|
+
v: bigint;
|
|
769
|
+
yParity: number;
|
|
770
|
+
value: bigint;
|
|
740
771
|
gas: bigint;
|
|
741
772
|
nonce: number;
|
|
742
|
-
value: bigint;
|
|
743
773
|
maxFeePerBlobGas: bigint;
|
|
744
774
|
gasPrice?: undefined | undefined;
|
|
745
775
|
maxFeePerGas: bigint;
|
|
746
776
|
maxPriorityFeePerGas: bigint;
|
|
777
|
+
authorizationList?: undefined | undefined;
|
|
747
778
|
accessList: viem.AccessList;
|
|
748
779
|
blobVersionedHashes: readonly viem.Hex[];
|
|
749
|
-
authorizationList?: undefined | undefined;
|
|
750
780
|
hash: viem.Hash;
|
|
751
|
-
r: viem.Hex;
|
|
752
|
-
s: viem.Hex;
|
|
753
|
-
v: bigint;
|
|
754
|
-
yParity: number;
|
|
755
781
|
input: viem.Hex;
|
|
756
782
|
typeHex: viem.Hex | null;
|
|
757
783
|
chainId: number;
|
|
758
|
-
|
|
759
|
-
|
|
784
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
|
|
785
|
+
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;
|
|
760
786
|
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;
|
|
761
787
|
} | {
|
|
762
|
-
from: Address;
|
|
763
|
-
to: Address | null;
|
|
788
|
+
from: Address$1;
|
|
789
|
+
to: Address$1 | null;
|
|
764
790
|
type: "eip7702";
|
|
791
|
+
r: viem.Hex;
|
|
792
|
+
s: viem.Hex;
|
|
793
|
+
v: bigint;
|
|
794
|
+
yParity: number;
|
|
795
|
+
value: bigint;
|
|
765
796
|
gas: bigint;
|
|
766
797
|
nonce: number;
|
|
767
|
-
value: bigint;
|
|
768
798
|
maxFeePerBlobGas?: undefined | undefined;
|
|
769
799
|
gasPrice?: undefined | undefined;
|
|
770
800
|
maxFeePerGas: bigint;
|
|
771
801
|
maxPriorityFeePerGas: bigint;
|
|
802
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
772
803
|
accessList: viem.AccessList;
|
|
773
804
|
blobVersionedHashes?: undefined | undefined;
|
|
774
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
775
805
|
hash: viem.Hash;
|
|
776
|
-
r: viem.Hex;
|
|
777
|
-
s: viem.Hex;
|
|
778
|
-
v: bigint;
|
|
779
|
-
yParity: number;
|
|
780
806
|
input: viem.Hex;
|
|
781
807
|
typeHex: viem.Hex | null;
|
|
782
808
|
chainId: number;
|
|
783
|
-
|
|
784
|
-
|
|
809
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
|
|
810
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
|
|
785
811
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
|
|
786
812
|
})[] : `0x${string}`[];
|
|
787
813
|
}>;
|
|
@@ -809,142 +835,142 @@ declare class AcpContractClient {
|
|
|
809
835
|
} | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
|
|
810
836
|
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
811
837
|
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
|
|
812
|
-
from: Address;
|
|
813
|
-
to: Address | null;
|
|
838
|
+
from: Address$1;
|
|
839
|
+
to: Address$1 | null;
|
|
814
840
|
type: "legacy";
|
|
841
|
+
r: viem.Hex;
|
|
842
|
+
s: viem.Hex;
|
|
843
|
+
v: bigint;
|
|
844
|
+
yParity?: undefined | undefined;
|
|
845
|
+
value: bigint;
|
|
815
846
|
gas: bigint;
|
|
816
847
|
nonce: number;
|
|
817
|
-
value: bigint;
|
|
818
848
|
maxFeePerBlobGas?: undefined | undefined;
|
|
819
849
|
gasPrice: bigint;
|
|
820
850
|
maxFeePerGas?: undefined | undefined;
|
|
821
851
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
852
|
+
authorizationList?: undefined | undefined;
|
|
822
853
|
accessList?: undefined | undefined;
|
|
823
854
|
blobVersionedHashes?: undefined | undefined;
|
|
824
|
-
authorizationList?: undefined | undefined;
|
|
825
855
|
hash: viem.Hash;
|
|
826
|
-
r: viem.Hex;
|
|
827
|
-
s: viem.Hex;
|
|
828
|
-
v: bigint;
|
|
829
|
-
yParity?: undefined | undefined;
|
|
830
856
|
input: viem.Hex;
|
|
831
857
|
typeHex: viem.Hex | null;
|
|
832
858
|
chainId?: number | undefined;
|
|
833
|
-
|
|
834
|
-
|
|
859
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
860
|
+
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;
|
|
835
861
|
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;
|
|
836
862
|
} | {
|
|
837
|
-
from: Address;
|
|
838
|
-
to: Address | null;
|
|
863
|
+
from: Address$1;
|
|
864
|
+
to: Address$1 | null;
|
|
839
865
|
type: "eip2930";
|
|
866
|
+
r: viem.Hex;
|
|
867
|
+
s: viem.Hex;
|
|
868
|
+
v: bigint;
|
|
869
|
+
yParity: number;
|
|
870
|
+
value: bigint;
|
|
840
871
|
gas: bigint;
|
|
841
872
|
nonce: number;
|
|
842
|
-
value: bigint;
|
|
843
873
|
maxFeePerBlobGas?: undefined | undefined;
|
|
844
874
|
gasPrice: bigint;
|
|
845
875
|
maxFeePerGas?: undefined | undefined;
|
|
846
876
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
877
|
+
authorizationList?: undefined | undefined;
|
|
847
878
|
accessList: viem.AccessList;
|
|
848
879
|
blobVersionedHashes?: undefined | undefined;
|
|
849
|
-
authorizationList?: undefined | undefined;
|
|
850
880
|
hash: viem.Hash;
|
|
851
|
-
r: viem.Hex;
|
|
852
|
-
s: viem.Hex;
|
|
853
|
-
v: bigint;
|
|
854
|
-
yParity: number;
|
|
855
881
|
input: viem.Hex;
|
|
856
882
|
typeHex: viem.Hex | null;
|
|
857
883
|
chainId: number;
|
|
858
|
-
|
|
859
|
-
|
|
884
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
|
|
885
|
+
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;
|
|
860
886
|
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;
|
|
861
887
|
} | {
|
|
862
|
-
from: Address;
|
|
863
|
-
to: Address | null;
|
|
888
|
+
from: Address$1;
|
|
889
|
+
to: Address$1 | null;
|
|
864
890
|
type: "eip1559";
|
|
891
|
+
r: viem.Hex;
|
|
892
|
+
s: viem.Hex;
|
|
893
|
+
v: bigint;
|
|
894
|
+
yParity: number;
|
|
895
|
+
value: bigint;
|
|
865
896
|
gas: bigint;
|
|
866
897
|
nonce: number;
|
|
867
|
-
value: bigint;
|
|
868
898
|
maxFeePerBlobGas?: undefined | undefined;
|
|
869
899
|
gasPrice?: undefined | undefined;
|
|
870
900
|
maxFeePerGas: bigint;
|
|
871
901
|
maxPriorityFeePerGas: bigint;
|
|
902
|
+
authorizationList?: undefined | undefined;
|
|
872
903
|
accessList: viem.AccessList;
|
|
873
904
|
blobVersionedHashes?: undefined | undefined;
|
|
874
|
-
authorizationList?: undefined | undefined;
|
|
875
905
|
hash: viem.Hash;
|
|
876
|
-
r: viem.Hex;
|
|
877
|
-
s: viem.Hex;
|
|
878
|
-
v: bigint;
|
|
879
|
-
yParity: number;
|
|
880
906
|
input: viem.Hex;
|
|
881
907
|
typeHex: viem.Hex | null;
|
|
882
908
|
chainId: number;
|
|
883
|
-
|
|
884
|
-
|
|
909
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
|
|
910
|
+
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;
|
|
885
911
|
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;
|
|
886
912
|
} | {
|
|
887
|
-
from: Address;
|
|
888
|
-
to: Address | null;
|
|
913
|
+
from: Address$1;
|
|
914
|
+
to: Address$1 | null;
|
|
889
915
|
type: "eip4844";
|
|
916
|
+
r: viem.Hex;
|
|
917
|
+
s: viem.Hex;
|
|
918
|
+
v: bigint;
|
|
919
|
+
yParity: number;
|
|
920
|
+
value: bigint;
|
|
890
921
|
gas: bigint;
|
|
891
922
|
nonce: number;
|
|
892
|
-
value: bigint;
|
|
893
923
|
maxFeePerBlobGas: bigint;
|
|
894
924
|
gasPrice?: undefined | undefined;
|
|
895
925
|
maxFeePerGas: bigint;
|
|
896
926
|
maxPriorityFeePerGas: bigint;
|
|
927
|
+
authorizationList?: undefined | undefined;
|
|
897
928
|
accessList: viem.AccessList;
|
|
898
929
|
blobVersionedHashes: readonly viem.Hex[];
|
|
899
|
-
authorizationList?: undefined | undefined;
|
|
900
930
|
hash: viem.Hash;
|
|
901
|
-
r: viem.Hex;
|
|
902
|
-
s: viem.Hex;
|
|
903
|
-
v: bigint;
|
|
904
|
-
yParity: number;
|
|
905
931
|
input: viem.Hex;
|
|
906
932
|
typeHex: viem.Hex | null;
|
|
907
933
|
chainId: number;
|
|
908
|
-
|
|
909
|
-
|
|
934
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
|
|
935
|
+
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;
|
|
910
936
|
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;
|
|
911
937
|
} | {
|
|
912
|
-
from: Address;
|
|
913
|
-
to: Address | null;
|
|
938
|
+
from: Address$1;
|
|
939
|
+
to: Address$1 | null;
|
|
914
940
|
type: "eip7702";
|
|
941
|
+
r: viem.Hex;
|
|
942
|
+
s: viem.Hex;
|
|
943
|
+
v: bigint;
|
|
944
|
+
yParity: number;
|
|
945
|
+
value: bigint;
|
|
915
946
|
gas: bigint;
|
|
916
947
|
nonce: number;
|
|
917
|
-
value: bigint;
|
|
918
948
|
maxFeePerBlobGas?: undefined | undefined;
|
|
919
949
|
gasPrice?: undefined | undefined;
|
|
920
950
|
maxFeePerGas: bigint;
|
|
921
951
|
maxPriorityFeePerGas: bigint;
|
|
952
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
922
953
|
accessList: viem.AccessList;
|
|
923
954
|
blobVersionedHashes?: undefined | undefined;
|
|
924
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
925
955
|
hash: viem.Hash;
|
|
926
|
-
r: viem.Hex;
|
|
927
|
-
s: viem.Hex;
|
|
928
|
-
v: bigint;
|
|
929
|
-
yParity: number;
|
|
930
956
|
input: viem.Hex;
|
|
931
957
|
typeHex: viem.Hex | null;
|
|
932
958
|
chainId: number;
|
|
933
|
-
|
|
934
|
-
|
|
959
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
|
|
960
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
|
|
935
961
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
|
|
936
962
|
}>;
|
|
937
963
|
getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<viem.Chain | undefined>) => Promise<viem.GetTransactionConfirmationsReturnType>;
|
|
938
964
|
getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
|
|
939
965
|
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.TransactionReceipt>;
|
|
940
966
|
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
941
|
-
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 ? {
|
|
967
|
+
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 ? {
|
|
942
968
|
chain: T_14;
|
|
943
969
|
} : {
|
|
944
970
|
chain?: undefined;
|
|
945
971
|
} : 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 ? {
|
|
946
972
|
account: T_15;
|
|
947
|
-
from: Address;
|
|
973
|
+
from: Address$1;
|
|
948
974
|
} : {
|
|
949
975
|
account?: undefined;
|
|
950
976
|
from?: undefined;
|
|
@@ -4190,13 +4216,13 @@ declare class AcpContractClient {
|
|
|
4190
4216
|
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
4191
4217
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
4192
4218
|
chainId?: number | undefined;
|
|
4193
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "
|
|
4219
|
+
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (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_1 ? T_1 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_1 extends viem.Chain ? {
|
|
4194
4220
|
chain: T_1;
|
|
4195
4221
|
} : {
|
|
4196
4222
|
chain?: undefined;
|
|
4197
4223
|
} : 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 ? {
|
|
4198
4224
|
account: T_2;
|
|
4199
|
-
from: Address;
|
|
4225
|
+
from: Address$1;
|
|
4200
4226
|
} : {
|
|
4201
4227
|
account?: undefined;
|
|
4202
4228
|
from?: undefined;
|
|
@@ -7442,13 +7468,13 @@ declare class AcpContractClient {
|
|
|
7442
7468
|
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
7443
7469
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
7444
7470
|
chainId?: number | undefined;
|
|
7445
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "
|
|
7471
|
+
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
|
|
7446
7472
|
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
7447
7473
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
7448
7474
|
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7449
7475
|
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7450
7476
|
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
7451
|
-
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>>;
|
|
7477
|
+
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>>;
|
|
7452
7478
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
7453
7479
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
7454
7480
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -7475,11 +7501,11 @@ declare class AcpContractClient {
|
|
|
7475
7501
|
uid?: undefined;
|
|
7476
7502
|
} & 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>>, [{
|
|
7477
7503
|
Method: "eth_sendUserOperation";
|
|
7478
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
7504
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
7479
7505
|
ReturnType: viem.Hash;
|
|
7480
7506
|
}, {
|
|
7481
7507
|
Method: "eth_estimateUserOperationGas";
|
|
7482
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
7508
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
7483
7509
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7484
7510
|
}, {
|
|
7485
7511
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -7492,7 +7518,7 @@ declare class AcpContractClient {
|
|
|
7492
7518
|
}, {
|
|
7493
7519
|
Method: "eth_supportedEntryPoints";
|
|
7494
7520
|
Parameters: [];
|
|
7495
|
-
ReturnType: Address[];
|
|
7521
|
+
ReturnType: Address$1[];
|
|
7496
7522
|
}, {
|
|
7497
7523
|
Method: "web3_clientVersion";
|
|
7498
7524
|
Parameters?: undefined;
|
|
@@ -7539,7 +7565,7 @@ declare class AcpContractClient {
|
|
|
7539
7565
|
}, {
|
|
7540
7566
|
Method: "eth_coinbase";
|
|
7541
7567
|
Parameters?: undefined;
|
|
7542
|
-
ReturnType: Address;
|
|
7568
|
+
ReturnType: Address$1;
|
|
7543
7569
|
}, {
|
|
7544
7570
|
Method: "eth_estimateGas";
|
|
7545
7571
|
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
@@ -7554,7 +7580,7 @@ declare class AcpContractClient {
|
|
|
7554
7580
|
ReturnType: viem.Quantity;
|
|
7555
7581
|
}, {
|
|
7556
7582
|
Method: "eth_getBalance";
|
|
7557
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7583
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7558
7584
|
ReturnType: viem.Quantity;
|
|
7559
7585
|
}, {
|
|
7560
7586
|
Method: "eth_getBlockByHash";
|
|
@@ -7574,7 +7600,7 @@ declare class AcpContractClient {
|
|
|
7574
7600
|
ReturnType: viem.Quantity;
|
|
7575
7601
|
}, {
|
|
7576
7602
|
Method: "eth_getCode";
|
|
7577
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7603
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7578
7604
|
ReturnType: viem.Hex;
|
|
7579
7605
|
}, {
|
|
7580
7606
|
Method: "eth_getFilterChanges";
|
|
@@ -7587,7 +7613,7 @@ declare class AcpContractClient {
|
|
|
7587
7613
|
}, {
|
|
7588
7614
|
Method: "eth_getLogs";
|
|
7589
7615
|
Parameters: [{
|
|
7590
|
-
address?: Address | Address[] | undefined;
|
|
7616
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
7591
7617
|
topics?: viem.LogTopic[] | undefined;
|
|
7592
7618
|
} & ({
|
|
7593
7619
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -7601,11 +7627,11 @@ declare class AcpContractClient {
|
|
|
7601
7627
|
ReturnType: viem.RpcLog[];
|
|
7602
7628
|
}, {
|
|
7603
7629
|
Method: "eth_getProof";
|
|
7604
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
7630
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
7605
7631
|
ReturnType: viem.RpcProof;
|
|
7606
7632
|
}, {
|
|
7607
7633
|
Method: "eth_getStorageAt";
|
|
7608
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7634
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7609
7635
|
ReturnType: viem.Hex;
|
|
7610
7636
|
}, {
|
|
7611
7637
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -7621,7 +7647,7 @@ declare class AcpContractClient {
|
|
|
7621
7647
|
ReturnType: viem.RpcTransaction | null;
|
|
7622
7648
|
}, {
|
|
7623
7649
|
Method: "eth_getTransactionCount";
|
|
7624
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7650
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7625
7651
|
ReturnType: viem.Quantity;
|
|
7626
7652
|
}, {
|
|
7627
7653
|
Method: "eth_getTransactionReceipt";
|
|
@@ -7656,7 +7682,7 @@ declare class AcpContractClient {
|
|
|
7656
7682
|
Parameters: [filter: {
|
|
7657
7683
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
7658
7684
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
7659
|
-
address?: Address | Address[] | undefined;
|
|
7685
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
7660
7686
|
topics?: viem.LogTopic[] | undefined;
|
|
7661
7687
|
}];
|
|
7662
7688
|
ReturnType: viem.Quantity;
|
|
@@ -7726,11 +7752,12 @@ declare class AcpContractClient {
|
|
|
7726
7752
|
[x: `bool[${string}]`]: undefined;
|
|
7727
7753
|
[x: `bytes4[${string}]`]: undefined;
|
|
7728
7754
|
[x: `bytes[${string}]`]: undefined;
|
|
7729
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
7730
7755
|
[x: `bytes1[${string}]`]: undefined;
|
|
7756
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
7757
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
7758
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
7731
7759
|
[x: `bytes3[${string}]`]: undefined;
|
|
7732
7760
|
[x: `bytes5[${string}]`]: undefined;
|
|
7733
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
7734
7761
|
[x: `bytes7[${string}]`]: undefined;
|
|
7735
7762
|
[x: `bytes8[${string}]`]: undefined;
|
|
7736
7763
|
[x: `bytes9[${string}]`]: undefined;
|
|
@@ -7742,7 +7769,6 @@ declare class AcpContractClient {
|
|
|
7742
7769
|
[x: `bytes15[${string}]`]: undefined;
|
|
7743
7770
|
[x: `bytes16[${string}]`]: undefined;
|
|
7744
7771
|
[x: `bytes17[${string}]`]: undefined;
|
|
7745
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
7746
7772
|
[x: `bytes19[${string}]`]: undefined;
|
|
7747
7773
|
[x: `bytes20[${string}]`]: undefined;
|
|
7748
7774
|
[x: `bytes21[${string}]`]: undefined;
|
|
@@ -7828,11 +7854,12 @@ declare class AcpContractClient {
|
|
|
7828
7854
|
bool?: undefined;
|
|
7829
7855
|
bytes4?: undefined;
|
|
7830
7856
|
bytes?: undefined;
|
|
7831
|
-
bytes2?: undefined;
|
|
7832
7857
|
bytes1?: undefined;
|
|
7858
|
+
bytes6?: undefined;
|
|
7859
|
+
bytes18?: undefined;
|
|
7860
|
+
bytes2?: undefined;
|
|
7833
7861
|
bytes3?: undefined;
|
|
7834
7862
|
bytes5?: undefined;
|
|
7835
|
-
bytes6?: undefined;
|
|
7836
7863
|
bytes7?: undefined;
|
|
7837
7864
|
bytes8?: undefined;
|
|
7838
7865
|
bytes9?: undefined;
|
|
@@ -7844,7 +7871,6 @@ declare class AcpContractClient {
|
|
|
7844
7871
|
bytes15?: undefined;
|
|
7845
7872
|
bytes16?: undefined;
|
|
7846
7873
|
bytes17?: undefined;
|
|
7847
|
-
bytes18?: undefined;
|
|
7848
7874
|
bytes19?: undefined;
|
|
7849
7875
|
bytes20?: undefined;
|
|
7850
7876
|
bytes21?: undefined;
|
|
@@ -7923,14 +7949,14 @@ declare class AcpContractClient {
|
|
|
7923
7949
|
[key: string]: unknown;
|
|
7924
7950
|
}, 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>;
|
|
7925
7951
|
} & {
|
|
7926
|
-
getAddress: () => Address;
|
|
7952
|
+
getAddress: () => Address$1;
|
|
7927
7953
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
7928
7954
|
Method: "eth_sendUserOperation";
|
|
7929
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
7955
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
7930
7956
|
ReturnType: viem.Hash;
|
|
7931
7957
|
}, {
|
|
7932
7958
|
Method: "eth_estimateUserOperationGas";
|
|
7933
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
7959
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
7934
7960
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7935
7961
|
}, {
|
|
7936
7962
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -7943,7 +7969,7 @@ declare class AcpContractClient {
|
|
|
7943
7969
|
}, {
|
|
7944
7970
|
Method: "eth_supportedEntryPoints";
|
|
7945
7971
|
Parameters: [];
|
|
7946
|
-
ReturnType: Address[];
|
|
7972
|
+
ReturnType: Address$1[];
|
|
7947
7973
|
}, {
|
|
7948
7974
|
Method: "web3_clientVersion";
|
|
7949
7975
|
Parameters?: undefined;
|
|
@@ -7990,7 +8016,7 @@ declare class AcpContractClient {
|
|
|
7990
8016
|
}, {
|
|
7991
8017
|
Method: "eth_coinbase";
|
|
7992
8018
|
Parameters?: undefined;
|
|
7993
|
-
ReturnType: Address;
|
|
8019
|
+
ReturnType: Address$1;
|
|
7994
8020
|
}, {
|
|
7995
8021
|
Method: "eth_estimateGas";
|
|
7996
8022
|
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
@@ -8005,7 +8031,7 @@ declare class AcpContractClient {
|
|
|
8005
8031
|
ReturnType: viem.Quantity;
|
|
8006
8032
|
}, {
|
|
8007
8033
|
Method: "eth_getBalance";
|
|
8008
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8034
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8009
8035
|
ReturnType: viem.Quantity;
|
|
8010
8036
|
}, {
|
|
8011
8037
|
Method: "eth_getBlockByHash";
|
|
@@ -8025,7 +8051,7 @@ declare class AcpContractClient {
|
|
|
8025
8051
|
ReturnType: viem.Quantity;
|
|
8026
8052
|
}, {
|
|
8027
8053
|
Method: "eth_getCode";
|
|
8028
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8054
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8029
8055
|
ReturnType: viem.Hex;
|
|
8030
8056
|
}, {
|
|
8031
8057
|
Method: "eth_getFilterChanges";
|
|
@@ -8038,7 +8064,7 @@ declare class AcpContractClient {
|
|
|
8038
8064
|
}, {
|
|
8039
8065
|
Method: "eth_getLogs";
|
|
8040
8066
|
Parameters: [{
|
|
8041
|
-
address?: Address | Address[] | undefined;
|
|
8067
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
8042
8068
|
topics?: viem.LogTopic[] | undefined;
|
|
8043
8069
|
} & ({
|
|
8044
8070
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -8052,11 +8078,11 @@ declare class AcpContractClient {
|
|
|
8052
8078
|
ReturnType: viem.RpcLog[];
|
|
8053
8079
|
}, {
|
|
8054
8080
|
Method: "eth_getProof";
|
|
8055
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
8081
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
8056
8082
|
ReturnType: viem.RpcProof;
|
|
8057
8083
|
}, {
|
|
8058
8084
|
Method: "eth_getStorageAt";
|
|
8059
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8085
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8060
8086
|
ReturnType: viem.Hex;
|
|
8061
8087
|
}, {
|
|
8062
8088
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -8072,7 +8098,7 @@ declare class AcpContractClient {
|
|
|
8072
8098
|
ReturnType: viem.RpcTransaction | null;
|
|
8073
8099
|
}, {
|
|
8074
8100
|
Method: "eth_getTransactionCount";
|
|
8075
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8101
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8076
8102
|
ReturnType: viem.Quantity;
|
|
8077
8103
|
}, {
|
|
8078
8104
|
Method: "eth_getTransactionReceipt";
|
|
@@ -8107,7 +8133,7 @@ declare class AcpContractClient {
|
|
|
8107
8133
|
Parameters: [filter: {
|
|
8108
8134
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
8109
8135
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
8110
|
-
address?: Address | Address[] | undefined;
|
|
8136
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
8111
8137
|
topics?: viem.LogTopic[] | undefined;
|
|
8112
8138
|
}];
|
|
8113
8139
|
ReturnType: viem.Quantity;
|
|
@@ -8177,11 +8203,12 @@ declare class AcpContractClient {
|
|
|
8177
8203
|
[x: `bool[${string}]`]: undefined;
|
|
8178
8204
|
[x: `bytes4[${string}]`]: undefined;
|
|
8179
8205
|
[x: `bytes[${string}]`]: undefined;
|
|
8180
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
8181
8206
|
[x: `bytes1[${string}]`]: undefined;
|
|
8207
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
8208
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
8209
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
8182
8210
|
[x: `bytes3[${string}]`]: undefined;
|
|
8183
8211
|
[x: `bytes5[${string}]`]: undefined;
|
|
8184
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
8185
8212
|
[x: `bytes7[${string}]`]: undefined;
|
|
8186
8213
|
[x: `bytes8[${string}]`]: undefined;
|
|
8187
8214
|
[x: `bytes9[${string}]`]: undefined;
|
|
@@ -8193,7 +8220,6 @@ declare class AcpContractClient {
|
|
|
8193
8220
|
[x: `bytes15[${string}]`]: undefined;
|
|
8194
8221
|
[x: `bytes16[${string}]`]: undefined;
|
|
8195
8222
|
[x: `bytes17[${string}]`]: undefined;
|
|
8196
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
8197
8223
|
[x: `bytes19[${string}]`]: undefined;
|
|
8198
8224
|
[x: `bytes20[${string}]`]: undefined;
|
|
8199
8225
|
[x: `bytes21[${string}]`]: undefined;
|
|
@@ -8279,11 +8305,12 @@ declare class AcpContractClient {
|
|
|
8279
8305
|
bool?: undefined;
|
|
8280
8306
|
bytes4?: undefined;
|
|
8281
8307
|
bytes?: undefined;
|
|
8282
|
-
bytes2?: undefined;
|
|
8283
8308
|
bytes1?: undefined;
|
|
8309
|
+
bytes6?: undefined;
|
|
8310
|
+
bytes18?: undefined;
|
|
8311
|
+
bytes2?: undefined;
|
|
8284
8312
|
bytes3?: undefined;
|
|
8285
8313
|
bytes5?: undefined;
|
|
8286
|
-
bytes6?: undefined;
|
|
8287
8314
|
bytes7?: undefined;
|
|
8288
8315
|
bytes8?: undefined;
|
|
8289
8316
|
bytes9?: undefined;
|
|
@@ -8295,7 +8322,6 @@ declare class AcpContractClient {
|
|
|
8295
8322
|
bytes15?: undefined;
|
|
8296
8323
|
bytes16?: undefined;
|
|
8297
8324
|
bytes17?: undefined;
|
|
8298
|
-
bytes18?: undefined;
|
|
8299
8325
|
bytes19?: undefined;
|
|
8300
8326
|
bytes20?: undefined;
|
|
8301
8327
|
bytes21?: undefined;
|
|
@@ -8374,10 +8400,10 @@ declare class AcpContractClient {
|
|
|
8374
8400
|
[key: string]: unknown;
|
|
8375
8401
|
}, 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>;
|
|
8376
8402
|
} & {
|
|
8377
|
-
getAddress: () => Address;
|
|
8403
|
+
getAddress: () => Address$1;
|
|
8378
8404
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
8379
8405
|
};
|
|
8380
|
-
get walletAddress(): Address;
|
|
8406
|
+
get walletAddress(): Address$1;
|
|
8381
8407
|
private calculateGasFees;
|
|
8382
8408
|
private handleSendUserOperation;
|
|
8383
8409
|
private getJobId;
|
|
@@ -8385,13 +8411,14 @@ declare class AcpContractClient {
|
|
|
8385
8411
|
txHash: string;
|
|
8386
8412
|
jobId: number;
|
|
8387
8413
|
}>;
|
|
8388
|
-
approveAllowance(
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
getMemoId(hash: Address): Promise<number>;
|
|
8414
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
|
|
8415
|
+
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}`>;
|
|
8416
|
+
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): Promise<Address$1>;
|
|
8417
|
+
getMemoId(hash: Address$1): Promise<number>;
|
|
8393
8418
|
signMemo(memoId: number, isApproved: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8394
|
-
setBudget(jobId: number,
|
|
8419
|
+
setBudget(jobId: number, budgetBaseUnit: bigint): Promise<`0x${string}`>;
|
|
8420
|
+
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
|
|
8421
|
+
wrapEth(amountBaseUnit: bigint): Promise<`0x${string}`>;
|
|
8395
8422
|
}
|
|
8396
8423
|
|
|
8397
8424
|
declare class AcpMemo {
|
|
@@ -8400,9 +8427,12 @@ declare class AcpMemo {
|
|
|
8400
8427
|
type: MemoType;
|
|
8401
8428
|
content: string;
|
|
8402
8429
|
nextPhase: AcpJobPhases;
|
|
8403
|
-
|
|
8430
|
+
status: AcpMemoStatus;
|
|
8431
|
+
signedReason?: string | undefined;
|
|
8432
|
+
expiry?: Date | undefined;
|
|
8433
|
+
payableDetails?: PayableDetails | undefined;
|
|
8404
8434
|
structuredContent: GenericPayload | undefined;
|
|
8405
|
-
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases,
|
|
8435
|
+
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined);
|
|
8406
8436
|
get payloadType(): PayloadType | undefined;
|
|
8407
8437
|
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
8408
8438
|
create(jobId: number, isSecured?: boolean): Promise<`0x${string}`>;
|
|
@@ -8413,6 +8443,17 @@ interface IDeliverable {
|
|
|
8413
8443
|
type: string;
|
|
8414
8444
|
value: string | object;
|
|
8415
8445
|
}
|
|
8446
|
+
declare enum AcpMemoStatus {
|
|
8447
|
+
PENDING = "PENDING",
|
|
8448
|
+
APPROVED = "APPROVED",
|
|
8449
|
+
REJECTED = "REJECTED"
|
|
8450
|
+
}
|
|
8451
|
+
interface PayableDetails {
|
|
8452
|
+
amount: bigint;
|
|
8453
|
+
token: Address;
|
|
8454
|
+
recipient: Address;
|
|
8455
|
+
feeAmount: bigint;
|
|
8456
|
+
}
|
|
8416
8457
|
declare enum AcpAgentSort {
|
|
8417
8458
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
8418
8459
|
SUCCESS_RATE = "successRate",
|
|
@@ -8440,7 +8481,7 @@ type AcpAgent = {
|
|
|
8440
8481
|
documentId: string;
|
|
8441
8482
|
name: string;
|
|
8442
8483
|
description: string;
|
|
8443
|
-
walletAddress: Address
|
|
8484
|
+
walletAddress: Address;
|
|
8444
8485
|
isVirtualAgent: boolean;
|
|
8445
8486
|
profilePic: string;
|
|
8446
8487
|
category: string;
|
|
@@ -8451,6 +8492,7 @@ type AcpAgent = {
|
|
|
8451
8492
|
offerings: {
|
|
8452
8493
|
name: string;
|
|
8453
8494
|
price: number;
|
|
8495
|
+
priceUsd: number;
|
|
8454
8496
|
requirementSchema?: Object;
|
|
8455
8497
|
deliverableSchema?: Object;
|
|
8456
8498
|
}[];
|
|
@@ -8467,6 +8509,8 @@ type AcpAgent = {
|
|
|
8467
8509
|
declare enum PayloadType {
|
|
8468
8510
|
FUND_RESPONSE = "fund_response",
|
|
8469
8511
|
OPEN_POSITION = "open_position",
|
|
8512
|
+
SWAP_TOKEN = "swap_token",
|
|
8513
|
+
RESPONSE_SWAP_TOKEN = "response_swap_token",
|
|
8470
8514
|
CLOSE_PARTIAL_POSITION = "close_partial_position",
|
|
8471
8515
|
CLOSE_POSITION = "close_position",
|
|
8472
8516
|
POSITION_FULFILLED = "position_fulfilled",
|
|
@@ -8479,13 +8523,18 @@ type GenericPayload<T = any> = {
|
|
|
8479
8523
|
};
|
|
8480
8524
|
type FundResponsePayload = {
|
|
8481
8525
|
reportingApiEndpoint: string;
|
|
8482
|
-
walletAddress?: Address
|
|
8526
|
+
walletAddress?: Address;
|
|
8483
8527
|
};
|
|
8528
|
+
declare enum PositionDirection {
|
|
8529
|
+
LONG = "long",
|
|
8530
|
+
SHORT = "short"
|
|
8531
|
+
}
|
|
8484
8532
|
type OpenPositionPayload = {
|
|
8485
8533
|
symbol: string;
|
|
8486
8534
|
amount: number;
|
|
8487
8535
|
chain?: string;
|
|
8488
8536
|
contractAddress?: string;
|
|
8537
|
+
direction?: PositionDirection;
|
|
8489
8538
|
tp: {
|
|
8490
8539
|
price?: number;
|
|
8491
8540
|
percentage?: number;
|
|
@@ -8495,6 +8544,17 @@ type OpenPositionPayload = {
|
|
|
8495
8544
|
percentage?: number;
|
|
8496
8545
|
};
|
|
8497
8546
|
};
|
|
8547
|
+
type SwapTokenPayload = {
|
|
8548
|
+
fromSymbol: string;
|
|
8549
|
+
fromContractAddress: Address;
|
|
8550
|
+
amount: number;
|
|
8551
|
+
toSymbol: string;
|
|
8552
|
+
toContractAddress?: Address;
|
|
8553
|
+
};
|
|
8554
|
+
type ResponseSwapTokenPayload = {
|
|
8555
|
+
txnHash?: Address;
|
|
8556
|
+
error?: string;
|
|
8557
|
+
};
|
|
8498
8558
|
type ClosePositionPayload = {
|
|
8499
8559
|
positionId: number;
|
|
8500
8560
|
amount: number;
|
|
@@ -8522,15 +8582,18 @@ type RequestClosePositionPayload = {
|
|
|
8522
8582
|
declare class AcpJob {
|
|
8523
8583
|
private acpClient;
|
|
8524
8584
|
id: number;
|
|
8525
|
-
clientAddress: Address
|
|
8526
|
-
providerAddress: Address
|
|
8527
|
-
evaluatorAddress: Address
|
|
8585
|
+
clientAddress: Address;
|
|
8586
|
+
providerAddress: Address;
|
|
8587
|
+
evaluatorAddress: Address;
|
|
8528
8588
|
price: number;
|
|
8589
|
+
priceTokenAddress: Address;
|
|
8529
8590
|
memos: AcpMemo[];
|
|
8530
8591
|
phase: AcpJobPhases;
|
|
8531
8592
|
context: Record<string, any>;
|
|
8532
|
-
|
|
8533
|
-
|
|
8593
|
+
private baseFare;
|
|
8594
|
+
constructor(acpClient: AcpClient, id: number, clientAddress: Address, providerAddress: Address, evaluatorAddress: Address, price: number, priceTokenAddress: Address, memos: AcpMemo[], phase: AcpJobPhases, context: Record<string, any>);
|
|
8595
|
+
get serviceRequirement(): Record<string, any> | string | undefined;
|
|
8596
|
+
get serviceName(): string | undefined;
|
|
8534
8597
|
get deliverable(): string | undefined;
|
|
8535
8598
|
get providerAgent(): Promise<AcpAgent | undefined>;
|
|
8536
8599
|
get clientAgent(): Promise<AcpAgent | undefined>;
|
|
@@ -8540,31 +8603,35 @@ declare class AcpJob {
|
|
|
8540
8603
|
respond<T>(accept: boolean, payload?: GenericPayload<T>, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8541
8604
|
deliver(deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8542
8605
|
evaluate(accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8543
|
-
openPosition(payload: OpenPositionPayload[], feeAmount: number, expiredAt?: Date,
|
|
8606
|
+
openPosition(payload: OpenPositionPayload[], feeAmount: number, expiredAt?: Date, // 3 minutes
|
|
8607
|
+
walletAddress?: Address): Promise<`0x${string}`>;
|
|
8608
|
+
swapToken(payload: SwapTokenPayload, decimals: number, feeAmount: number, walletAddress?: Address): Promise<`0x${string}`>;
|
|
8609
|
+
responseSwapToken(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8610
|
+
transferFunds<T>(payload: GenericPayload<T>, fareAmount: IFareAmount, walletAddress?: Address, expiredAt?: Date): Promise<`0x${string}`>;
|
|
8544
8611
|
responseOpenPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8545
|
-
closePartialPosition(payload: ClosePositionPayload): Promise<`0x${string}`>;
|
|
8612
|
+
closePartialPosition(payload: ClosePositionPayload, expireAt?: Date): Promise<`0x${string}`>;
|
|
8546
8613
|
responseClosePartialPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8547
8614
|
requestClosePosition(payload: RequestClosePositionPayload): Promise<`0x${string}`>;
|
|
8548
|
-
responseRequestClosePosition(memoId: number, accept: boolean, payload: ClosePositionPayload, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8615
|
+
responseRequestClosePosition(memoId: number, accept: boolean, payload: ClosePositionPayload, reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
|
|
8549
8616
|
confirmClosePosition(memoId: number, accept: boolean, reason?: string): Promise<void>;
|
|
8550
|
-
positionFulfilled(payload: PositionFulfilledPayload): Promise<`0x${string}`>;
|
|
8551
|
-
unfulfilledPosition(payload: UnfulfilledPositionPayload): Promise<`0x${string}`>;
|
|
8617
|
+
positionFulfilled(payload: PositionFulfilledPayload, expiredAt?: Date): Promise<`0x${string}`>;
|
|
8618
|
+
unfulfilledPosition(payload: UnfulfilledPositionPayload, expiredAt?: Date): Promise<`0x${string}`>;
|
|
8552
8619
|
responseUnfulfilledPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8553
8620
|
responsePositionFulfilled(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8554
8621
|
closeJob(message?: string): Promise<`0x${string}`>;
|
|
8555
|
-
responseCloseJob(memoId: number, accept: boolean, fulfilledPositions: PositionFulfilledPayload[], reason?: string): Promise<`0x${string}` | undefined>;
|
|
8622
|
+
responseCloseJob(memoId: number, accept: boolean, fulfilledPositions: PositionFulfilledPayload[], reason?: string, expiredAt?: Date): Promise<`0x${string}` | undefined>;
|
|
8556
8623
|
confirmJobClosure(memoId: number, accept: boolean, reason?: string): Promise<void>;
|
|
8557
8624
|
}
|
|
8558
8625
|
|
|
8559
8626
|
declare class AcpJobOffering {
|
|
8560
8627
|
private readonly acpClient;
|
|
8561
|
-
providerAddress: Address
|
|
8562
|
-
|
|
8628
|
+
providerAddress: Address;
|
|
8629
|
+
name: string;
|
|
8563
8630
|
price: number;
|
|
8564
8631
|
requirementSchema?: Object | undefined;
|
|
8565
8632
|
private ajv;
|
|
8566
|
-
constructor(acpClient: AcpClient, providerAddress: Address
|
|
8567
|
-
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address
|
|
8633
|
+
constructor(acpClient: AcpClient, providerAddress: Address, name: string, price: number, requirementSchema?: Object | undefined);
|
|
8634
|
+
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
8568
8635
|
}
|
|
8569
8636
|
|
|
8570
8637
|
interface IAcpBrowseAgentsOptions {
|
|
@@ -8597,12 +8664,12 @@ declare class AcpClient {
|
|
|
8597
8664
|
isOnline: boolean;
|
|
8598
8665
|
} | undefined;
|
|
8599
8666
|
}[]>;
|
|
8600
|
-
initiateJob(providerAddress: Address
|
|
8667
|
+
initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: IFareAmount, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
8601
8668
|
respondJob(jobId: number, memoId: number, accept: boolean, content?: string, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8602
|
-
payJob(jobId: number,
|
|
8603
|
-
requestFunds<T>(jobId: number,
|
|
8604
|
-
responseFundsRequest(memoId: number, accept: boolean,
|
|
8605
|
-
transferFunds<T>(jobId: number,
|
|
8669
|
+
payJob(jobId: number, amountBaseUnit: bigint, memoId: number, reason?: string): Promise<`0x${string}`>;
|
|
8670
|
+
requestFunds<T>(jobId: number, transferFareAmount: IFareAmount, recipient: Address, feeFareAmount: IFareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
8671
|
+
responseFundsRequest(memoId: number, accept: boolean, amountBaseUnit: bigint, reason?: string): Promise<`0x${string}`>;
|
|
8672
|
+
transferFunds<T>(jobId: number, transferFareAmount: IFareAmount, recipient: Address, feeFareAmount: IFareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
8606
8673
|
sendMessage<T>(jobId: number, message: GenericPayload<T>, nextPhase: AcpJobPhases): Promise<`0x${string}`>;
|
|
8607
8674
|
responseFundsTransfer(memoId: number, accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8608
8675
|
deliverJob(jobId: number, deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
@@ -8611,7 +8678,11 @@ declare class AcpClient {
|
|
|
8611
8678
|
getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8612
8679
|
getJobById(jobId: number): Promise<AcpJob | undefined>;
|
|
8613
8680
|
getMemoById(jobId: number, memoId: number): Promise<AcpMemo | undefined>;
|
|
8614
|
-
getAgent(walletAddress: Address
|
|
8681
|
+
getAgent(walletAddress: Address): Promise<AcpAgent | undefined>;
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8684
|
+
declare class AcpError extends Error {
|
|
8685
|
+
constructor(message: string, originalError?: unknown);
|
|
8615
8686
|
}
|
|
8616
8687
|
|
|
8617
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient,
|
|
8688
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractConfig, AcpError, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, type ClosePositionPayload, Fare, FareAmount, FareBigInt, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, PositionDirection, type RequestClosePositionPayload, type ResponseSwapTokenPayload, type SwapTokenPayload, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default, ethFare, wethFare };
|