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