@virtuals-protocol/acp-node 0.2.0-beta-usdc.1 → 0.2.0-beta-fund.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/index.d.mts +230 -195
- package/dist/index.d.ts +230 -195
- package/dist/index.js +220 -107
- package/dist/index.mjs +207 -105
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
|
-
import { Address
|
|
2
|
+
import { Address } from 'viem';
|
|
3
3
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
4
4
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_signTypedData from '@aa-sdk/core/dist/types/actions/smartAccount/signTypedData';
|
|
5
5
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_signMessage from '@aa-sdk/core/dist/types/actions/smartAccount/signMessage';
|
|
6
6
|
import * as _aa_sdk_core_dist_types_actions_smartAccount_checkGasSponsorshipEligibility from '@aa-sdk/core/dist/types/actions/smartAccount/checkGasSponsorshipEligibility';
|
|
7
7
|
import * as _aa_sdk_core from '@aa-sdk/core';
|
|
8
|
-
import { Address, SmartAccountSigner } from '@aa-sdk/core';
|
|
8
|
+
import { Address as Address$1, SmartAccountSigner } from '@aa-sdk/core';
|
|
9
9
|
import * as viem__types_utils_ccip from 'viem/_types/utils/ccip';
|
|
10
10
|
import * as _account_kit_smart_contracts from '@account-kit/smart-contracts';
|
|
11
11
|
import { baseSepolia, base } from '@account-kit/infra';
|
|
@@ -92,17 +92,29 @@ 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
|
+
declare class FareAmount {
|
|
102
|
+
amount: number;
|
|
103
|
+
fare: Fare;
|
|
104
|
+
constructor(amount: number, fare: Fare);
|
|
105
|
+
format(): bigint;
|
|
106
|
+
add(other: FareAmount): FareAmount;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare class AcpContractConfig {
|
|
110
|
+
chain: typeof baseSepolia | typeof base;
|
|
111
|
+
contractAddress: Address$1;
|
|
112
|
+
baseFare: Fare;
|
|
101
113
|
alchemyRpcUrl: string;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
114
|
+
acpUrl: string;
|
|
115
|
+
rpcEndpoint?: string | undefined;
|
|
116
|
+
constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, rpcEndpoint?: string | undefined);
|
|
117
|
+
}
|
|
106
118
|
declare const baseSepoliaAcpConfig: AcpContractConfig;
|
|
107
119
|
declare const baseAcpConfig: AcpContractConfig;
|
|
108
120
|
|
|
@@ -136,15 +148,15 @@ declare class AcpContractClient {
|
|
|
136
148
|
private sessionEntityKeyId;
|
|
137
149
|
private agentWalletAddress;
|
|
138
150
|
config: AcpContractConfig;
|
|
139
|
-
customRpcUrl?: string | undefined;
|
|
140
151
|
private MAX_RETRIES;
|
|
152
|
+
private PRIORITY_FEE_MULTIPLIER;
|
|
153
|
+
private MAX_FEE_PER_GAS;
|
|
154
|
+
private MAX_PRIORITY_FEE_PER_GAS;
|
|
141
155
|
private _sessionKeyClient;
|
|
142
156
|
private chain;
|
|
143
157
|
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>;
|
|
158
|
+
constructor(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig);
|
|
159
|
+
static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClient>;
|
|
148
160
|
init(): Promise<void>;
|
|
149
161
|
get sessionKeyClient(): {
|
|
150
162
|
[x: string]: unknown;
|
|
@@ -162,11 +174,11 @@ declare class AcpContractClient {
|
|
|
162
174
|
pollingInterval: number;
|
|
163
175
|
request: viem.EIP1193RequestFn<[{
|
|
164
176
|
Method: "eth_sendUserOperation";
|
|
165
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
177
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
166
178
|
ReturnType: viem.Hash;
|
|
167
179
|
}, {
|
|
168
180
|
Method: "eth_estimateUserOperationGas";
|
|
169
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
181
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
170
182
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
171
183
|
}, {
|
|
172
184
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -179,7 +191,7 @@ declare class AcpContractClient {
|
|
|
179
191
|
}, {
|
|
180
192
|
Method: "eth_supportedEntryPoints";
|
|
181
193
|
Parameters: [];
|
|
182
|
-
ReturnType: Address[];
|
|
194
|
+
ReturnType: Address$1[];
|
|
183
195
|
}, {
|
|
184
196
|
Method: "web3_clientVersion";
|
|
185
197
|
Parameters?: undefined;
|
|
@@ -226,7 +238,7 @@ declare class AcpContractClient {
|
|
|
226
238
|
}, {
|
|
227
239
|
Method: "eth_coinbase";
|
|
228
240
|
Parameters?: undefined;
|
|
229
|
-
ReturnType: Address;
|
|
241
|
+
ReturnType: Address$1;
|
|
230
242
|
}, {
|
|
231
243
|
Method: "eth_estimateGas";
|
|
232
244
|
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 +253,7 @@ declare class AcpContractClient {
|
|
|
241
253
|
ReturnType: viem.Quantity;
|
|
242
254
|
}, {
|
|
243
255
|
Method: "eth_getBalance";
|
|
244
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
256
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
245
257
|
ReturnType: viem.Quantity;
|
|
246
258
|
}, {
|
|
247
259
|
Method: "eth_getBlockByHash";
|
|
@@ -261,7 +273,7 @@ declare class AcpContractClient {
|
|
|
261
273
|
ReturnType: viem.Quantity;
|
|
262
274
|
}, {
|
|
263
275
|
Method: "eth_getCode";
|
|
264
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
276
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
265
277
|
ReturnType: viem.Hex;
|
|
266
278
|
}, {
|
|
267
279
|
Method: "eth_getFilterChanges";
|
|
@@ -274,7 +286,7 @@ declare class AcpContractClient {
|
|
|
274
286
|
}, {
|
|
275
287
|
Method: "eth_getLogs";
|
|
276
288
|
Parameters: [{
|
|
277
|
-
address?: Address | Address[] | undefined;
|
|
289
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
278
290
|
topics?: viem.LogTopic[] | undefined;
|
|
279
291
|
} & ({
|
|
280
292
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -288,11 +300,11 @@ declare class AcpContractClient {
|
|
|
288
300
|
ReturnType: viem.RpcLog[];
|
|
289
301
|
}, {
|
|
290
302
|
Method: "eth_getProof";
|
|
291
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
303
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
292
304
|
ReturnType: viem.RpcProof;
|
|
293
305
|
}, {
|
|
294
306
|
Method: "eth_getStorageAt";
|
|
295
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
307
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
296
308
|
ReturnType: viem.Hex;
|
|
297
309
|
}, {
|
|
298
310
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -308,7 +320,7 @@ declare class AcpContractClient {
|
|
|
308
320
|
ReturnType: viem.RpcTransaction | null;
|
|
309
321
|
}, {
|
|
310
322
|
Method: "eth_getTransactionCount";
|
|
311
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
323
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
312
324
|
ReturnType: viem.Quantity;
|
|
313
325
|
}, {
|
|
314
326
|
Method: "eth_getTransactionReceipt";
|
|
@@ -343,7 +355,7 @@ declare class AcpContractClient {
|
|
|
343
355
|
Parameters: [filter: {
|
|
344
356
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
345
357
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
346
|
-
address?: Address | Address[] | undefined;
|
|
358
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
347
359
|
topics?: viem.LogTopic[] | undefined;
|
|
348
360
|
}];
|
|
349
361
|
ReturnType: viem.Quantity;
|
|
@@ -417,8 +429,8 @@ declare class AcpContractClient {
|
|
|
417
429
|
[x: `bytes4[${string}]`]: undefined;
|
|
418
430
|
[x: `bytes[${string}]`]: undefined;
|
|
419
431
|
[x: `bytes6[${string}]`]: undefined;
|
|
420
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
421
432
|
[x: `bytes1[${string}]`]: undefined;
|
|
433
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
422
434
|
[x: `bytes3[${string}]`]: undefined;
|
|
423
435
|
[x: `bytes5[${string}]`]: undefined;
|
|
424
436
|
[x: `bytes7[${string}]`]: undefined;
|
|
@@ -519,8 +531,8 @@ declare class AcpContractClient {
|
|
|
519
531
|
bytes4?: undefined;
|
|
520
532
|
bytes?: undefined;
|
|
521
533
|
bytes6?: undefined;
|
|
522
|
-
bytes2?: undefined;
|
|
523
534
|
bytes1?: undefined;
|
|
535
|
+
bytes2?: undefined;
|
|
524
536
|
bytes3?: undefined;
|
|
525
537
|
bytes5?: undefined;
|
|
526
538
|
bytes7?: undefined;
|
|
@@ -612,12 +624,12 @@ declare class AcpContractClient {
|
|
|
612
624
|
} | {
|
|
613
625
|
[key: string]: unknown;
|
|
614
626
|
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
|
|
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>;
|
|
627
|
+
getAddress: () => Address$1;
|
|
628
|
+
estimateUserOperationGas: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address$1, stateOverride?: viem.StateOverride) => Promise<_aa_sdk_core.UserOperationEstimateGasResponse<TEntryPointVersion>>;
|
|
629
|
+
sendRawUserOperation: <TEntryPointVersion extends _aa_sdk_core.EntryPointVersion = keyof _aa_sdk_core.EntryPointRegistryBase<unknown>>(request: _aa_sdk_core.UserOperationRequest<TEntryPointVersion>, entryPoint: Address$1) => Promise<viem.Hash>;
|
|
618
630
|
getUserOperationByHash: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationResponse | null>;
|
|
619
631
|
getUserOperationReceipt: (hash: viem.Hash) => Promise<_aa_sdk_core.UserOperationReceipt | null>;
|
|
620
|
-
getSupportedEntryPoints: () => Promise<Address[]>;
|
|
632
|
+
getSupportedEntryPoints: () => Promise<Address$1[]>;
|
|
621
633
|
call: (parameters: viem.CallParameters<viem.Chain | undefined>) => Promise<viem.CallReturnType>;
|
|
622
634
|
createAccessList: (parameters: viem.CreateAccessListParameters<viem.Chain | undefined>) => Promise<{
|
|
623
635
|
accessList: viem.AccessList;
|
|
@@ -643,7 +655,7 @@ declare class AcpContractClient {
|
|
|
643
655
|
extraData: viem.Hex;
|
|
644
656
|
gasLimit: bigint;
|
|
645
657
|
gasUsed: bigint;
|
|
646
|
-
miner: Address;
|
|
658
|
+
miner: Address$1;
|
|
647
659
|
mixHash: viem.Hash;
|
|
648
660
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
649
661
|
parentHash: viem.Hash;
|
|
@@ -659,129 +671,129 @@ declare class AcpContractClient {
|
|
|
659
671
|
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
660
672
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
661
673
|
transactions: includeTransactions extends true ? ({
|
|
662
|
-
from: Address;
|
|
663
|
-
to: Address | null;
|
|
674
|
+
from: Address$1;
|
|
675
|
+
to: Address$1 | null;
|
|
664
676
|
type: "legacy";
|
|
677
|
+
r: viem.Hex;
|
|
678
|
+
s: viem.Hex;
|
|
679
|
+
v: bigint;
|
|
680
|
+
yParity?: undefined | undefined;
|
|
681
|
+
value: bigint;
|
|
665
682
|
gas: bigint;
|
|
666
683
|
nonce: number;
|
|
667
|
-
value: bigint;
|
|
668
684
|
maxFeePerBlobGas?: undefined | undefined;
|
|
669
685
|
gasPrice: bigint;
|
|
670
686
|
maxFeePerGas?: undefined | undefined;
|
|
671
687
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
688
|
+
authorizationList?: undefined | undefined;
|
|
672
689
|
accessList?: undefined | undefined;
|
|
673
690
|
blobVersionedHashes?: undefined | undefined;
|
|
674
|
-
authorizationList?: undefined | undefined;
|
|
675
691
|
hash: viem.Hash;
|
|
676
|
-
r: viem.Hex;
|
|
677
|
-
s: viem.Hex;
|
|
678
|
-
v: bigint;
|
|
679
|
-
yParity?: undefined | undefined;
|
|
680
692
|
input: viem.Hex;
|
|
681
693
|
typeHex: viem.Hex | null;
|
|
682
694
|
chainId?: number | undefined;
|
|
683
|
-
|
|
684
|
-
|
|
695
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
696
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
685
697
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
686
698
|
} | {
|
|
687
|
-
from: Address;
|
|
688
|
-
to: Address | null;
|
|
699
|
+
from: Address$1;
|
|
700
|
+
to: Address$1 | null;
|
|
689
701
|
type: "eip2930";
|
|
702
|
+
r: viem.Hex;
|
|
703
|
+
s: viem.Hex;
|
|
704
|
+
v: bigint;
|
|
705
|
+
yParity: number;
|
|
706
|
+
value: bigint;
|
|
690
707
|
gas: bigint;
|
|
691
708
|
nonce: number;
|
|
692
|
-
value: bigint;
|
|
693
709
|
maxFeePerBlobGas?: undefined | undefined;
|
|
694
710
|
gasPrice: bigint;
|
|
695
711
|
maxFeePerGas?: undefined | undefined;
|
|
696
712
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
713
|
+
authorizationList?: undefined | undefined;
|
|
697
714
|
accessList: viem.AccessList;
|
|
698
715
|
blobVersionedHashes?: undefined | undefined;
|
|
699
|
-
authorizationList?: undefined | undefined;
|
|
700
716
|
hash: viem.Hash;
|
|
701
|
-
r: viem.Hex;
|
|
702
|
-
s: viem.Hex;
|
|
703
|
-
v: bigint;
|
|
704
|
-
yParity: number;
|
|
705
717
|
input: viem.Hex;
|
|
706
718
|
typeHex: viem.Hex | null;
|
|
707
719
|
chainId: number;
|
|
708
|
-
|
|
709
|
-
|
|
720
|
+
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;
|
|
721
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
710
722
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
711
723
|
} | {
|
|
712
|
-
from: Address;
|
|
713
|
-
to: Address | null;
|
|
724
|
+
from: Address$1;
|
|
725
|
+
to: Address$1 | null;
|
|
714
726
|
type: "eip1559";
|
|
727
|
+
r: viem.Hex;
|
|
728
|
+
s: viem.Hex;
|
|
729
|
+
v: bigint;
|
|
730
|
+
yParity: number;
|
|
731
|
+
value: bigint;
|
|
715
732
|
gas: bigint;
|
|
716
733
|
nonce: number;
|
|
717
|
-
value: bigint;
|
|
718
734
|
maxFeePerBlobGas?: undefined | undefined;
|
|
719
735
|
gasPrice?: undefined | undefined;
|
|
720
736
|
maxFeePerGas: bigint;
|
|
721
737
|
maxPriorityFeePerGas: bigint;
|
|
738
|
+
authorizationList?: undefined | undefined;
|
|
722
739
|
accessList: viem.AccessList;
|
|
723
740
|
blobVersionedHashes?: undefined | undefined;
|
|
724
|
-
authorizationList?: undefined | undefined;
|
|
725
741
|
hash: viem.Hash;
|
|
726
|
-
r: viem.Hex;
|
|
727
|
-
s: viem.Hex;
|
|
728
|
-
v: bigint;
|
|
729
|
-
yParity: number;
|
|
730
742
|
input: viem.Hex;
|
|
731
743
|
typeHex: viem.Hex | null;
|
|
732
744
|
chainId: number;
|
|
733
|
-
|
|
734
|
-
|
|
745
|
+
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;
|
|
746
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
735
747
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
736
748
|
} | {
|
|
737
|
-
from: Address;
|
|
738
|
-
to: Address | null;
|
|
749
|
+
from: Address$1;
|
|
750
|
+
to: Address$1 | null;
|
|
739
751
|
type: "eip4844";
|
|
752
|
+
r: viem.Hex;
|
|
753
|
+
s: viem.Hex;
|
|
754
|
+
v: bigint;
|
|
755
|
+
yParity: number;
|
|
756
|
+
value: bigint;
|
|
740
757
|
gas: bigint;
|
|
741
758
|
nonce: number;
|
|
742
|
-
value: bigint;
|
|
743
759
|
maxFeePerBlobGas: bigint;
|
|
744
760
|
gasPrice?: undefined | undefined;
|
|
745
761
|
maxFeePerGas: bigint;
|
|
746
762
|
maxPriorityFeePerGas: bigint;
|
|
763
|
+
authorizationList?: undefined | undefined;
|
|
747
764
|
accessList: viem.AccessList;
|
|
748
765
|
blobVersionedHashes: readonly viem.Hex[];
|
|
749
|
-
authorizationList?: undefined | undefined;
|
|
750
766
|
hash: viem.Hash;
|
|
751
|
-
r: viem.Hex;
|
|
752
|
-
s: viem.Hex;
|
|
753
|
-
v: bigint;
|
|
754
|
-
yParity: number;
|
|
755
767
|
input: viem.Hex;
|
|
756
768
|
typeHex: viem.Hex | null;
|
|
757
769
|
chainId: number;
|
|
758
|
-
|
|
759
|
-
|
|
770
|
+
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;
|
|
771
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
760
772
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
761
773
|
} | {
|
|
762
|
-
from: Address;
|
|
763
|
-
to: Address | null;
|
|
774
|
+
from: Address$1;
|
|
775
|
+
to: Address$1 | null;
|
|
764
776
|
type: "eip7702";
|
|
777
|
+
r: viem.Hex;
|
|
778
|
+
s: viem.Hex;
|
|
779
|
+
v: bigint;
|
|
780
|
+
yParity: number;
|
|
781
|
+
value: bigint;
|
|
765
782
|
gas: bigint;
|
|
766
783
|
nonce: number;
|
|
767
|
-
value: bigint;
|
|
768
784
|
maxFeePerBlobGas?: undefined | undefined;
|
|
769
785
|
gasPrice?: undefined | undefined;
|
|
770
786
|
maxFeePerGas: bigint;
|
|
771
787
|
maxPriorityFeePerGas: bigint;
|
|
788
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
772
789
|
accessList: viem.AccessList;
|
|
773
790
|
blobVersionedHashes?: undefined | undefined;
|
|
774
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
775
791
|
hash: viem.Hash;
|
|
776
|
-
r: viem.Hex;
|
|
777
|
-
s: viem.Hex;
|
|
778
|
-
v: bigint;
|
|
779
|
-
yParity: number;
|
|
780
792
|
input: viem.Hex;
|
|
781
793
|
typeHex: viem.Hex | null;
|
|
782
794
|
chainId: number;
|
|
783
|
-
|
|
784
|
-
|
|
795
|
+
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;
|
|
796
|
+
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
797
|
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
798
|
})[] : `0x${string}`[];
|
|
787
799
|
}>;
|
|
@@ -809,142 +821,142 @@ declare class AcpContractClient {
|
|
|
809
821
|
} | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
|
|
810
822
|
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
811
823
|
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
|
|
812
|
-
from: Address;
|
|
813
|
-
to: Address | null;
|
|
824
|
+
from: Address$1;
|
|
825
|
+
to: Address$1 | null;
|
|
814
826
|
type: "legacy";
|
|
827
|
+
r: viem.Hex;
|
|
828
|
+
s: viem.Hex;
|
|
829
|
+
v: bigint;
|
|
830
|
+
yParity?: undefined | undefined;
|
|
831
|
+
value: bigint;
|
|
815
832
|
gas: bigint;
|
|
816
833
|
nonce: number;
|
|
817
|
-
value: bigint;
|
|
818
834
|
maxFeePerBlobGas?: undefined | undefined;
|
|
819
835
|
gasPrice: bigint;
|
|
820
836
|
maxFeePerGas?: undefined | undefined;
|
|
821
837
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
838
|
+
authorizationList?: undefined | undefined;
|
|
822
839
|
accessList?: undefined | undefined;
|
|
823
840
|
blobVersionedHashes?: undefined | undefined;
|
|
824
|
-
authorizationList?: undefined | undefined;
|
|
825
841
|
hash: viem.Hash;
|
|
826
|
-
r: viem.Hex;
|
|
827
|
-
s: viem.Hex;
|
|
828
|
-
v: bigint;
|
|
829
|
-
yParity?: undefined | undefined;
|
|
830
842
|
input: viem.Hex;
|
|
831
843
|
typeHex: viem.Hex | null;
|
|
832
844
|
chainId?: number | undefined;
|
|
833
|
-
|
|
834
|
-
|
|
845
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
846
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
835
847
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
836
848
|
} | {
|
|
837
|
-
from: Address;
|
|
838
|
-
to: Address | null;
|
|
849
|
+
from: Address$1;
|
|
850
|
+
to: Address$1 | null;
|
|
839
851
|
type: "eip2930";
|
|
852
|
+
r: viem.Hex;
|
|
853
|
+
s: viem.Hex;
|
|
854
|
+
v: bigint;
|
|
855
|
+
yParity: number;
|
|
856
|
+
value: bigint;
|
|
840
857
|
gas: bigint;
|
|
841
858
|
nonce: number;
|
|
842
|
-
value: bigint;
|
|
843
859
|
maxFeePerBlobGas?: undefined | undefined;
|
|
844
860
|
gasPrice: bigint;
|
|
845
861
|
maxFeePerGas?: undefined | undefined;
|
|
846
862
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
863
|
+
authorizationList?: undefined | undefined;
|
|
847
864
|
accessList: viem.AccessList;
|
|
848
865
|
blobVersionedHashes?: undefined | undefined;
|
|
849
|
-
authorizationList?: undefined | undefined;
|
|
850
866
|
hash: viem.Hash;
|
|
851
|
-
r: viem.Hex;
|
|
852
|
-
s: viem.Hex;
|
|
853
|
-
v: bigint;
|
|
854
|
-
yParity: number;
|
|
855
867
|
input: viem.Hex;
|
|
856
868
|
typeHex: viem.Hex | null;
|
|
857
869
|
chainId: number;
|
|
858
|
-
|
|
859
|
-
|
|
870
|
+
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;
|
|
871
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
860
872
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
861
873
|
} | {
|
|
862
|
-
from: Address;
|
|
863
|
-
to: Address | null;
|
|
874
|
+
from: Address$1;
|
|
875
|
+
to: Address$1 | null;
|
|
864
876
|
type: "eip1559";
|
|
877
|
+
r: viem.Hex;
|
|
878
|
+
s: viem.Hex;
|
|
879
|
+
v: bigint;
|
|
880
|
+
yParity: number;
|
|
881
|
+
value: bigint;
|
|
865
882
|
gas: bigint;
|
|
866
883
|
nonce: number;
|
|
867
|
-
value: bigint;
|
|
868
884
|
maxFeePerBlobGas?: undefined | undefined;
|
|
869
885
|
gasPrice?: undefined | undefined;
|
|
870
886
|
maxFeePerGas: bigint;
|
|
871
887
|
maxPriorityFeePerGas: bigint;
|
|
888
|
+
authorizationList?: undefined | undefined;
|
|
872
889
|
accessList: viem.AccessList;
|
|
873
890
|
blobVersionedHashes?: undefined | undefined;
|
|
874
|
-
authorizationList?: undefined | undefined;
|
|
875
891
|
hash: viem.Hash;
|
|
876
|
-
r: viem.Hex;
|
|
877
|
-
s: viem.Hex;
|
|
878
|
-
v: bigint;
|
|
879
|
-
yParity: number;
|
|
880
892
|
input: viem.Hex;
|
|
881
893
|
typeHex: viem.Hex | null;
|
|
882
894
|
chainId: number;
|
|
883
|
-
|
|
884
|
-
|
|
895
|
+
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;
|
|
896
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
885
897
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
886
898
|
} | {
|
|
887
|
-
from: Address;
|
|
888
|
-
to: Address | null;
|
|
899
|
+
from: Address$1;
|
|
900
|
+
to: Address$1 | null;
|
|
889
901
|
type: "eip4844";
|
|
902
|
+
r: viem.Hex;
|
|
903
|
+
s: viem.Hex;
|
|
904
|
+
v: bigint;
|
|
905
|
+
yParity: number;
|
|
906
|
+
value: bigint;
|
|
890
907
|
gas: bigint;
|
|
891
908
|
nonce: number;
|
|
892
|
-
value: bigint;
|
|
893
909
|
maxFeePerBlobGas: bigint;
|
|
894
910
|
gasPrice?: undefined | undefined;
|
|
895
911
|
maxFeePerGas: bigint;
|
|
896
912
|
maxPriorityFeePerGas: bigint;
|
|
913
|
+
authorizationList?: undefined | undefined;
|
|
897
914
|
accessList: viem.AccessList;
|
|
898
915
|
blobVersionedHashes: readonly viem.Hex[];
|
|
899
|
-
authorizationList?: undefined | undefined;
|
|
900
916
|
hash: viem.Hash;
|
|
901
|
-
r: viem.Hex;
|
|
902
|
-
s: viem.Hex;
|
|
903
|
-
v: bigint;
|
|
904
|
-
yParity: number;
|
|
905
917
|
input: viem.Hex;
|
|
906
918
|
typeHex: viem.Hex | null;
|
|
907
919
|
chainId: number;
|
|
908
|
-
|
|
909
|
-
|
|
920
|
+
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;
|
|
921
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
910
922
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
911
923
|
} | {
|
|
912
|
-
from: Address;
|
|
913
|
-
to: Address | null;
|
|
924
|
+
from: Address$1;
|
|
925
|
+
to: Address$1 | null;
|
|
914
926
|
type: "eip7702";
|
|
927
|
+
r: viem.Hex;
|
|
928
|
+
s: viem.Hex;
|
|
929
|
+
v: bigint;
|
|
930
|
+
yParity: number;
|
|
931
|
+
value: bigint;
|
|
915
932
|
gas: bigint;
|
|
916
933
|
nonce: number;
|
|
917
|
-
value: bigint;
|
|
918
934
|
maxFeePerBlobGas?: undefined | undefined;
|
|
919
935
|
gasPrice?: undefined | undefined;
|
|
920
936
|
maxFeePerGas: bigint;
|
|
921
937
|
maxPriorityFeePerGas: bigint;
|
|
938
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
922
939
|
accessList: viem.AccessList;
|
|
923
940
|
blobVersionedHashes?: undefined | undefined;
|
|
924
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
925
941
|
hash: viem.Hash;
|
|
926
|
-
r: viem.Hex;
|
|
927
|
-
s: viem.Hex;
|
|
928
|
-
v: bigint;
|
|
929
|
-
yParity: number;
|
|
930
942
|
input: viem.Hex;
|
|
931
943
|
typeHex: viem.Hex | null;
|
|
932
944
|
chainId: number;
|
|
933
|
-
|
|
934
|
-
|
|
945
|
+
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;
|
|
946
|
+
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
947
|
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
948
|
}>;
|
|
937
949
|
getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<viem.Chain | undefined>) => Promise<viem.GetTransactionConfirmationsReturnType>;
|
|
938
950
|
getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
|
|
939
951
|
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.TransactionReceipt>;
|
|
940
952
|
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 ? {
|
|
953
|
+
prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain | undefined, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_14 ? T_14 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_14 extends viem.Chain ? {
|
|
942
954
|
chain: T_14;
|
|
943
955
|
} : {
|
|
944
956
|
chain?: undefined;
|
|
945
957
|
} : never : never) & (viem.DeriveAccount<viem.Account | undefined, accountOverride> extends infer T_15 ? T_15 extends viem.DeriveAccount<viem.Account | undefined, accountOverride> ? T_15 extends viem.Account ? {
|
|
946
958
|
account: T_15;
|
|
947
|
-
from: Address;
|
|
959
|
+
from: Address$1;
|
|
948
960
|
} : {
|
|
949
961
|
account?: undefined;
|
|
950
962
|
from?: undefined;
|
|
@@ -4190,13 +4202,13 @@ declare class AcpContractClient {
|
|
|
4190
4202
|
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
4191
4203
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
4192
4204
|
chainId?: number | undefined;
|
|
4193
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "
|
|
4205
|
+
}, (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
4206
|
chain: T_1;
|
|
4195
4207
|
} : {
|
|
4196
4208
|
chain?: undefined;
|
|
4197
4209
|
} : never : never) & (viem.DeriveAccount<viem.Account | undefined, accountOverride> extends infer T_2 ? T_2 extends viem.DeriveAccount<viem.Account | undefined, accountOverride> ? T_2 extends viem.Account ? {
|
|
4198
4210
|
account: T_2;
|
|
4199
|
-
from: Address;
|
|
4211
|
+
from: Address$1;
|
|
4200
4212
|
} : {
|
|
4201
4213
|
account?: undefined;
|
|
4202
4214
|
from?: undefined;
|
|
@@ -7442,13 +7454,13 @@ declare class AcpContractClient {
|
|
|
7442
7454
|
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
7443
7455
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
7444
7456
|
chainId?: number | undefined;
|
|
7445
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "
|
|
7457
|
+
}, (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
7458
|
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
7459
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
7448
7460
|
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7449
7461
|
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
7450
7462
|
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>>;
|
|
7463
|
+
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | Address$1 | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain | undefined, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
7452
7464
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
7453
7465
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
7454
7466
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -7475,11 +7487,11 @@ declare class AcpContractClient {
|
|
|
7475
7487
|
uid?: undefined;
|
|
7476
7488
|
} & viem.ExactPartial<Pick<viem.PublicActions<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
7477
7489
|
Method: "eth_sendUserOperation";
|
|
7478
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
7490
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
7479
7491
|
ReturnType: viem.Hash;
|
|
7480
7492
|
}, {
|
|
7481
7493
|
Method: "eth_estimateUserOperationGas";
|
|
7482
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
7494
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
7483
7495
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7484
7496
|
}, {
|
|
7485
7497
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -7492,7 +7504,7 @@ declare class AcpContractClient {
|
|
|
7492
7504
|
}, {
|
|
7493
7505
|
Method: "eth_supportedEntryPoints";
|
|
7494
7506
|
Parameters: [];
|
|
7495
|
-
ReturnType: Address[];
|
|
7507
|
+
ReturnType: Address$1[];
|
|
7496
7508
|
}, {
|
|
7497
7509
|
Method: "web3_clientVersion";
|
|
7498
7510
|
Parameters?: undefined;
|
|
@@ -7539,7 +7551,7 @@ declare class AcpContractClient {
|
|
|
7539
7551
|
}, {
|
|
7540
7552
|
Method: "eth_coinbase";
|
|
7541
7553
|
Parameters?: undefined;
|
|
7542
|
-
ReturnType: Address;
|
|
7554
|
+
ReturnType: Address$1;
|
|
7543
7555
|
}, {
|
|
7544
7556
|
Method: "eth_estimateGas";
|
|
7545
7557
|
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 +7566,7 @@ declare class AcpContractClient {
|
|
|
7554
7566
|
ReturnType: viem.Quantity;
|
|
7555
7567
|
}, {
|
|
7556
7568
|
Method: "eth_getBalance";
|
|
7557
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7569
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7558
7570
|
ReturnType: viem.Quantity;
|
|
7559
7571
|
}, {
|
|
7560
7572
|
Method: "eth_getBlockByHash";
|
|
@@ -7574,7 +7586,7 @@ declare class AcpContractClient {
|
|
|
7574
7586
|
ReturnType: viem.Quantity;
|
|
7575
7587
|
}, {
|
|
7576
7588
|
Method: "eth_getCode";
|
|
7577
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7589
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7578
7590
|
ReturnType: viem.Hex;
|
|
7579
7591
|
}, {
|
|
7580
7592
|
Method: "eth_getFilterChanges";
|
|
@@ -7587,7 +7599,7 @@ declare class AcpContractClient {
|
|
|
7587
7599
|
}, {
|
|
7588
7600
|
Method: "eth_getLogs";
|
|
7589
7601
|
Parameters: [{
|
|
7590
|
-
address?: Address | Address[] | undefined;
|
|
7602
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
7591
7603
|
topics?: viem.LogTopic[] | undefined;
|
|
7592
7604
|
} & ({
|
|
7593
7605
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -7601,11 +7613,11 @@ declare class AcpContractClient {
|
|
|
7601
7613
|
ReturnType: viem.RpcLog[];
|
|
7602
7614
|
}, {
|
|
7603
7615
|
Method: "eth_getProof";
|
|
7604
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
7616
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
7605
7617
|
ReturnType: viem.RpcProof;
|
|
7606
7618
|
}, {
|
|
7607
7619
|
Method: "eth_getStorageAt";
|
|
7608
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7620
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7609
7621
|
ReturnType: viem.Hex;
|
|
7610
7622
|
}, {
|
|
7611
7623
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -7621,7 +7633,7 @@ declare class AcpContractClient {
|
|
|
7621
7633
|
ReturnType: viem.RpcTransaction | null;
|
|
7622
7634
|
}, {
|
|
7623
7635
|
Method: "eth_getTransactionCount";
|
|
7624
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7636
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
7625
7637
|
ReturnType: viem.Quantity;
|
|
7626
7638
|
}, {
|
|
7627
7639
|
Method: "eth_getTransactionReceipt";
|
|
@@ -7656,7 +7668,7 @@ declare class AcpContractClient {
|
|
|
7656
7668
|
Parameters: [filter: {
|
|
7657
7669
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
7658
7670
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
7659
|
-
address?: Address | Address[] | undefined;
|
|
7671
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
7660
7672
|
topics?: viem.LogTopic[] | undefined;
|
|
7661
7673
|
}];
|
|
7662
7674
|
ReturnType: viem.Quantity;
|
|
@@ -7727,8 +7739,8 @@ declare class AcpContractClient {
|
|
|
7727
7739
|
[x: `bytes4[${string}]`]: undefined;
|
|
7728
7740
|
[x: `bytes[${string}]`]: undefined;
|
|
7729
7741
|
[x: `bytes6[${string}]`]: undefined;
|
|
7730
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
7731
7742
|
[x: `bytes1[${string}]`]: undefined;
|
|
7743
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
7732
7744
|
[x: `bytes3[${string}]`]: undefined;
|
|
7733
7745
|
[x: `bytes5[${string}]`]: undefined;
|
|
7734
7746
|
[x: `bytes7[${string}]`]: undefined;
|
|
@@ -7829,8 +7841,8 @@ declare class AcpContractClient {
|
|
|
7829
7841
|
bytes4?: undefined;
|
|
7830
7842
|
bytes?: undefined;
|
|
7831
7843
|
bytes6?: undefined;
|
|
7832
|
-
bytes2?: undefined;
|
|
7833
7844
|
bytes1?: undefined;
|
|
7845
|
+
bytes2?: undefined;
|
|
7834
7846
|
bytes3?: undefined;
|
|
7835
7847
|
bytes5?: undefined;
|
|
7836
7848
|
bytes7?: undefined;
|
|
@@ -7923,14 +7935,14 @@ declare class AcpContractClient {
|
|
|
7923
7935
|
[key: string]: unknown;
|
|
7924
7936
|
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
|
|
7925
7937
|
} & {
|
|
7926
|
-
getAddress: () => Address;
|
|
7938
|
+
getAddress: () => Address$1;
|
|
7927
7939
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>) => client) => viem.Client<viem.Transport, viem.Chain, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>, [{
|
|
7928
7940
|
Method: "eth_sendUserOperation";
|
|
7929
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address];
|
|
7941
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1];
|
|
7930
7942
|
ReturnType: viem.Hash;
|
|
7931
7943
|
}, {
|
|
7932
7944
|
Method: "eth_estimateUserOperationGas";
|
|
7933
|
-
Parameters: [_aa_sdk_core.UserOperationRequest, Address, viem.RpcStateOverride?];
|
|
7945
|
+
Parameters: [_aa_sdk_core.UserOperationRequest, Address$1, viem.RpcStateOverride?];
|
|
7934
7946
|
ReturnType: _aa_sdk_core.UserOperationEstimateGasResponse;
|
|
7935
7947
|
}, {
|
|
7936
7948
|
Method: "eth_getUserOperationReceipt";
|
|
@@ -7943,7 +7955,7 @@ declare class AcpContractClient {
|
|
|
7943
7955
|
}, {
|
|
7944
7956
|
Method: "eth_supportedEntryPoints";
|
|
7945
7957
|
Parameters: [];
|
|
7946
|
-
ReturnType: Address[];
|
|
7958
|
+
ReturnType: Address$1[];
|
|
7947
7959
|
}, {
|
|
7948
7960
|
Method: "web3_clientVersion";
|
|
7949
7961
|
Parameters?: undefined;
|
|
@@ -7990,7 +8002,7 @@ declare class AcpContractClient {
|
|
|
7990
8002
|
}, {
|
|
7991
8003
|
Method: "eth_coinbase";
|
|
7992
8004
|
Parameters?: undefined;
|
|
7993
|
-
ReturnType: Address;
|
|
8005
|
+
ReturnType: Address$1;
|
|
7994
8006
|
}, {
|
|
7995
8007
|
Method: "eth_estimateGas";
|
|
7996
8008
|
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 +8017,7 @@ declare class AcpContractClient {
|
|
|
8005
8017
|
ReturnType: viem.Quantity;
|
|
8006
8018
|
}, {
|
|
8007
8019
|
Method: "eth_getBalance";
|
|
8008
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8020
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8009
8021
|
ReturnType: viem.Quantity;
|
|
8010
8022
|
}, {
|
|
8011
8023
|
Method: "eth_getBlockByHash";
|
|
@@ -8025,7 +8037,7 @@ declare class AcpContractClient {
|
|
|
8025
8037
|
ReturnType: viem.Quantity;
|
|
8026
8038
|
}, {
|
|
8027
8039
|
Method: "eth_getCode";
|
|
8028
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8040
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8029
8041
|
ReturnType: viem.Hex;
|
|
8030
8042
|
}, {
|
|
8031
8043
|
Method: "eth_getFilterChanges";
|
|
@@ -8038,7 +8050,7 @@ declare class AcpContractClient {
|
|
|
8038
8050
|
}, {
|
|
8039
8051
|
Method: "eth_getLogs";
|
|
8040
8052
|
Parameters: [{
|
|
8041
|
-
address?: Address | Address[] | undefined;
|
|
8053
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
8042
8054
|
topics?: viem.LogTopic[] | undefined;
|
|
8043
8055
|
} & ({
|
|
8044
8056
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
@@ -8052,11 +8064,11 @@ declare class AcpContractClient {
|
|
|
8052
8064
|
ReturnType: viem.RpcLog[];
|
|
8053
8065
|
}, {
|
|
8054
8066
|
Method: "eth_getProof";
|
|
8055
|
-
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
8067
|
+
Parameters: [address: Address$1, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
8056
8068
|
ReturnType: viem.RpcProof;
|
|
8057
8069
|
}, {
|
|
8058
8070
|
Method: "eth_getStorageAt";
|
|
8059
|
-
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8071
|
+
Parameters: [address: Address$1, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8060
8072
|
ReturnType: viem.Hex;
|
|
8061
8073
|
}, {
|
|
8062
8074
|
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
@@ -8072,7 +8084,7 @@ declare class AcpContractClient {
|
|
|
8072
8084
|
ReturnType: viem.RpcTransaction | null;
|
|
8073
8085
|
}, {
|
|
8074
8086
|
Method: "eth_getTransactionCount";
|
|
8075
|
-
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8087
|
+
Parameters: [address: Address$1, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
8076
8088
|
ReturnType: viem.Quantity;
|
|
8077
8089
|
}, {
|
|
8078
8090
|
Method: "eth_getTransactionReceipt";
|
|
@@ -8107,7 +8119,7 @@ declare class AcpContractClient {
|
|
|
8107
8119
|
Parameters: [filter: {
|
|
8108
8120
|
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
8109
8121
|
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
8110
|
-
address?: Address | Address[] | undefined;
|
|
8122
|
+
address?: Address$1 | Address$1[] | undefined;
|
|
8111
8123
|
topics?: viem.LogTopic[] | undefined;
|
|
8112
8124
|
}];
|
|
8113
8125
|
ReturnType: viem.Quantity;
|
|
@@ -8178,8 +8190,8 @@ declare class AcpContractClient {
|
|
|
8178
8190
|
[x: `bytes4[${string}]`]: undefined;
|
|
8179
8191
|
[x: `bytes[${string}]`]: undefined;
|
|
8180
8192
|
[x: `bytes6[${string}]`]: undefined;
|
|
8181
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
8182
8193
|
[x: `bytes1[${string}]`]: undefined;
|
|
8194
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
8183
8195
|
[x: `bytes3[${string}]`]: undefined;
|
|
8184
8196
|
[x: `bytes5[${string}]`]: undefined;
|
|
8185
8197
|
[x: `bytes7[${string}]`]: undefined;
|
|
@@ -8280,8 +8292,8 @@ declare class AcpContractClient {
|
|
|
8280
8292
|
bytes4?: undefined;
|
|
8281
8293
|
bytes?: undefined;
|
|
8282
8294
|
bytes6?: undefined;
|
|
8283
|
-
bytes2?: undefined;
|
|
8284
8295
|
bytes1?: undefined;
|
|
8296
|
+
bytes2?: undefined;
|
|
8285
8297
|
bytes3?: undefined;
|
|
8286
8298
|
bytes5?: undefined;
|
|
8287
8299
|
bytes7?: undefined;
|
|
@@ -8374,25 +8386,24 @@ declare class AcpContractClient {
|
|
|
8374
8386
|
[key: string]: unknown;
|
|
8375
8387
|
}, TPrimaryType extends string = string>(args: _aa_sdk_core_dist_types_actions_smartAccount_signTypedData.SignTypedDataParameters<TTypedData, TPrimaryType, _account_kit_smart_contracts.ModularAccountV2<SmartAccountSigner<any>>>) => Promise<viem.Hex>;
|
|
8376
8388
|
} & {
|
|
8377
|
-
getAddress: () => Address;
|
|
8389
|
+
getAddress: () => Address$1;
|
|
8378
8390
|
} & _aa_sdk_core.BundlerActions & viem.PublicActions>;
|
|
8379
8391
|
};
|
|
8380
|
-
get walletAddress(): Address;
|
|
8392
|
+
get walletAddress(): Address$1;
|
|
8381
8393
|
private calculateGasFees;
|
|
8382
8394
|
private handleSendUserOperation;
|
|
8383
8395
|
private getJobId;
|
|
8384
|
-
private formatAmount;
|
|
8385
8396
|
createJob(providerAddress: string, evaluatorAddress: string, expireAt: Date): Promise<{
|
|
8386
8397
|
txHash: string;
|
|
8387
8398
|
jobId: number;
|
|
8388
8399
|
}>;
|
|
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>;
|
|
8400
|
+
approveAllowance(amountBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
|
|
8401
|
+
createPayableMemo(jobId: number, content: string, amountBaseUnit: bigint, recipient: Address$1, feeAmountBaseUnit: bigint, feeType: FeeType, nextPhase: AcpJobPhases, type: MemoType.PAYABLE_REQUEST | MemoType.PAYABLE_TRANSFER_ESCROW, expiredAt: Date, token?: Address$1): Promise<`0x${string}`>;
|
|
8402
|
+
createMemo(jobId: number, content: string, type: MemoType, isSecured: boolean, nextPhase: AcpJobPhases): Promise<Address$1>;
|
|
8403
|
+
getMemoId(hash: Address$1): Promise<number>;
|
|
8393
8404
|
signMemo(memoId: number, isApproved: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8394
|
-
setBudget(jobId: number,
|
|
8395
|
-
setBudgetWithPaymentToken(jobId: number,
|
|
8405
|
+
setBudget(jobId: number, budgetBaseUnit: bigint): Promise<`0x${string}`>;
|
|
8406
|
+
setBudgetWithPaymentToken(jobId: number, budgetBaseUnit: bigint, paymentTokenAddress?: Address$1): Promise<`0x${string}`>;
|
|
8396
8407
|
}
|
|
8397
8408
|
|
|
8398
8409
|
declare class AcpMemo {
|
|
@@ -8404,8 +8415,9 @@ declare class AcpMemo {
|
|
|
8404
8415
|
status: AcpMemoStatus;
|
|
8405
8416
|
signedReason?: string | undefined;
|
|
8406
8417
|
expiry?: Date | undefined;
|
|
8418
|
+
payableDetails?: PayableDetails | undefined;
|
|
8407
8419
|
structuredContent: GenericPayload | undefined;
|
|
8408
|
-
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, signedReason?: string | undefined, expiry?: Date | undefined);
|
|
8420
|
+
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined);
|
|
8409
8421
|
get payloadType(): PayloadType | undefined;
|
|
8410
8422
|
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
8411
8423
|
create(jobId: number, isSecured?: boolean): Promise<`0x${string}`>;
|
|
@@ -8421,6 +8433,12 @@ declare enum AcpMemoStatus {
|
|
|
8421
8433
|
APPROVED = "APPROVED",
|
|
8422
8434
|
REJECTED = "REJECTED"
|
|
8423
8435
|
}
|
|
8436
|
+
interface PayableDetails {
|
|
8437
|
+
amount: bigint;
|
|
8438
|
+
token: Address;
|
|
8439
|
+
recipient: Address;
|
|
8440
|
+
feeAmount: bigint;
|
|
8441
|
+
}
|
|
8424
8442
|
declare enum AcpAgentSort {
|
|
8425
8443
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
8426
8444
|
SUCCESS_RATE = "successRate",
|
|
@@ -8448,7 +8466,7 @@ type AcpAgent = {
|
|
|
8448
8466
|
documentId: string;
|
|
8449
8467
|
name: string;
|
|
8450
8468
|
description: string;
|
|
8451
|
-
walletAddress: Address
|
|
8469
|
+
walletAddress: Address;
|
|
8452
8470
|
isVirtualAgent: boolean;
|
|
8453
8471
|
profilePic: string;
|
|
8454
8472
|
category: string;
|
|
@@ -8476,6 +8494,8 @@ type AcpAgent = {
|
|
|
8476
8494
|
declare enum PayloadType {
|
|
8477
8495
|
FUND_RESPONSE = "fund_response",
|
|
8478
8496
|
OPEN_POSITION = "open_position",
|
|
8497
|
+
SWAP_TOKEN = "swap_token",
|
|
8498
|
+
RESPONSE_SWAP_TOKEN = "response_swap_token",
|
|
8479
8499
|
CLOSE_PARTIAL_POSITION = "close_partial_position",
|
|
8480
8500
|
CLOSE_POSITION = "close_position",
|
|
8481
8501
|
POSITION_FULFILLED = "position_fulfilled",
|
|
@@ -8488,7 +8508,7 @@ type GenericPayload<T = any> = {
|
|
|
8488
8508
|
};
|
|
8489
8509
|
type FundResponsePayload = {
|
|
8490
8510
|
reportingApiEndpoint: string;
|
|
8491
|
-
walletAddress?: Address
|
|
8511
|
+
walletAddress?: Address;
|
|
8492
8512
|
};
|
|
8493
8513
|
type OpenPositionPayload = {
|
|
8494
8514
|
symbol: string;
|
|
@@ -8504,6 +8524,17 @@ type OpenPositionPayload = {
|
|
|
8504
8524
|
percentage?: number;
|
|
8505
8525
|
};
|
|
8506
8526
|
};
|
|
8527
|
+
type SwapTokenPayload = {
|
|
8528
|
+
fromSymbol: string;
|
|
8529
|
+
fromContractAddress: Address;
|
|
8530
|
+
amount: number;
|
|
8531
|
+
toSymbol: string;
|
|
8532
|
+
toContractAddress?: Address;
|
|
8533
|
+
};
|
|
8534
|
+
type ResponseSwapTokenPayload = {
|
|
8535
|
+
txnHash?: Address;
|
|
8536
|
+
error?: string;
|
|
8537
|
+
};
|
|
8507
8538
|
type ClosePositionPayload = {
|
|
8508
8539
|
positionId: number;
|
|
8509
8540
|
amount: number;
|
|
@@ -8531,15 +8562,16 @@ type RequestClosePositionPayload = {
|
|
|
8531
8562
|
declare class AcpJob {
|
|
8532
8563
|
private acpClient;
|
|
8533
8564
|
id: number;
|
|
8534
|
-
clientAddress: Address
|
|
8535
|
-
providerAddress: Address
|
|
8536
|
-
evaluatorAddress: Address
|
|
8565
|
+
clientAddress: Address;
|
|
8566
|
+
providerAddress: Address;
|
|
8567
|
+
evaluatorAddress: Address;
|
|
8537
8568
|
price: number;
|
|
8538
|
-
priceTokenAddress: Address
|
|
8569
|
+
priceTokenAddress: Address;
|
|
8539
8570
|
memos: AcpMemo[];
|
|
8540
8571
|
phase: AcpJobPhases;
|
|
8541
8572
|
context: Record<string, any>;
|
|
8542
|
-
|
|
8573
|
+
private baseFare;
|
|
8574
|
+
constructor(acpClient: AcpClient, id: number, clientAddress: Address, providerAddress: Address, evaluatorAddress: Address, price: number, priceTokenAddress: Address, memos: AcpMemo[], phase: AcpJobPhases, context: Record<string, any>);
|
|
8543
8575
|
get serviceRequirement(): Record<string, any> | string | undefined;
|
|
8544
8576
|
get serviceName(): string | undefined;
|
|
8545
8577
|
get deliverable(): string | undefined;
|
|
@@ -8552,7 +8584,10 @@ declare class AcpJob {
|
|
|
8552
8584
|
deliver(deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8553
8585
|
evaluate(accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8554
8586
|
openPosition(payload: OpenPositionPayload[], feeAmount: number, expiredAt?: Date, // 3 minutes
|
|
8555
|
-
walletAddress?: Address
|
|
8587
|
+
walletAddress?: Address): Promise<`0x${string}`>;
|
|
8588
|
+
swapToken(payload: SwapTokenPayload, decimals: number, feeAmount: number, walletAddress?: Address): Promise<`0x${string}`>;
|
|
8589
|
+
responseSwapToken(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8590
|
+
transferFunds<T>(payload: GenericPayload<T>, fareAmount: FareAmount, walletAddress?: Address, expiredAt?: Date): Promise<`0x${string}`>;
|
|
8556
8591
|
responseOpenPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
8557
8592
|
closePartialPosition(payload: ClosePositionPayload, expireAt?: Date): Promise<`0x${string}`>;
|
|
8558
8593
|
responseClosePartialPosition(memoId: number, accept: boolean, reason: string): Promise<`0x${string}`>;
|
|
@@ -8570,13 +8605,13 @@ declare class AcpJob {
|
|
|
8570
8605
|
|
|
8571
8606
|
declare class AcpJobOffering {
|
|
8572
8607
|
private readonly acpClient;
|
|
8573
|
-
providerAddress: Address
|
|
8608
|
+
providerAddress: Address;
|
|
8574
8609
|
name: string;
|
|
8575
8610
|
price: number;
|
|
8576
8611
|
requirementSchema?: Object | undefined;
|
|
8577
8612
|
private ajv;
|
|
8578
|
-
constructor(acpClient: AcpClient, providerAddress: Address
|
|
8579
|
-
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address
|
|
8613
|
+
constructor(acpClient: AcpClient, providerAddress: Address, name: string, price: number, requirementSchema?: Object | undefined);
|
|
8614
|
+
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
8580
8615
|
}
|
|
8581
8616
|
|
|
8582
8617
|
interface IAcpBrowseAgentsOptions {
|
|
@@ -8609,12 +8644,12 @@ declare class AcpClient {
|
|
|
8609
8644
|
isOnline: boolean;
|
|
8610
8645
|
} | undefined;
|
|
8611
8646
|
}[]>;
|
|
8612
|
-
initiateJob(providerAddress: Address
|
|
8647
|
+
initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: FareAmount, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
|
|
8613
8648
|
respondJob(jobId: number, memoId: number, accept: boolean, content?: string, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8614
|
-
payJob(jobId: number,
|
|
8615
|
-
requestFunds<T>(jobId: number,
|
|
8616
|
-
responseFundsRequest(memoId: number, accept: boolean,
|
|
8617
|
-
transferFunds<T>(jobId: number,
|
|
8649
|
+
payJob(jobId: number, amountBaseUnit: bigint, memoId: number, reason?: string): Promise<`0x${string}`>;
|
|
8650
|
+
requestFunds<T>(jobId: number, transferFareAmount: FareAmount, recipient: Address, feeFareAmount: FareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
8651
|
+
responseFundsRequest(memoId: number, accept: boolean, amountBaseUnit: bigint, reason?: string): Promise<`0x${string}`>;
|
|
8652
|
+
transferFunds<T>(jobId: number, transferFareAmount: FareAmount, recipient: Address, feeFareAmount: FareAmount, feeType: FeeType, reason: GenericPayload<T>, nextPhase: AcpJobPhases, expiredAt: Date): Promise<`0x${string}`>;
|
|
8618
8653
|
sendMessage<T>(jobId: number, message: GenericPayload<T>, nextPhase: AcpJobPhases): Promise<`0x${string}`>;
|
|
8619
8654
|
responseFundsTransfer(memoId: number, accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8620
8655
|
deliverJob(jobId: number, deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
@@ -8623,7 +8658,7 @@ declare class AcpClient {
|
|
|
8623
8658
|
getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8624
8659
|
getJobById(jobId: number): Promise<AcpJob | undefined>;
|
|
8625
8660
|
getMemoById(jobId: number, memoId: number): Promise<AcpMemo | undefined>;
|
|
8626
|
-
getAgent(walletAddress: Address
|
|
8661
|
+
getAgent(walletAddress: Address): Promise<AcpAgent | undefined>;
|
|
8627
8662
|
}
|
|
8628
8663
|
|
|
8629
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient,
|
|
8664
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, AcpContractConfig, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, type ClosePositionPayload, Fare, FareAmount, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, type RequestClosePositionPayload, type ResponseSwapTokenPayload, type SwapTokenPayload, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|