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