starknet 11.4.1 → 11.4.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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [11.4.3](https://github.com/starknet-io/starknet.js/compare/v11.4.2...v11.4.3) (2026-10-27)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **contract:** refuse options after the arguments of a typed contract method ([cedd4c2](https://github.com/starknet-io/starknet.js/commit/cedd4c25d80da2b6c6c144f8730db14ecc58989e))
6
+
7
+ ## [11.4.2](https://github.com/starknet-io/starknet.js/compare/v11.4.1...v11.4.2) (2026-10-21)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **paymaster:** compile the calldata of the calls like execute(), in getOutsideCall and in Contract ([5a0e748](https://github.com/starknet-io/starknet.js/commit/5a0e7485af9d067e9b812c1ac8fc28b155c8ba4d))
12
+
1
13
  ## [11.4.1](https://github.com/starknet-io/starknet.js/compare/v11.4.0...v11.4.1) (2026-10-20)
2
14
 
3
15
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as RPCSPEC0104 from '@starknet-io/starknet-types-0104';
2
- import { PAYMASTER_API, CONTRACT, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionType, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, ETransactionVersion3 as ETransactionVersion3$1, SUBSCRIPTION_ID, NewHeadsEvent, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, TXN_STATUS_WITHOUT_L1, NewTransactionEvent, IsType, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, BLOCK_WITH_TX_HASHES, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, TransactionHash, BlockHash, FAILED_TO_RECEIVE_TXN, NO_TRACE_AVAILABLE, CONTRACT_NOT_FOUND, ENTRYPOINT_NOT_FOUND, BLOCK_NOT_FOUND, INVALID_TXN_INDEX, CLASS_HASH_NOT_FOUND, TXN_HASH_NOT_FOUND, PAGE_SIZE_TOO_BIG, NO_BLOCKS, INVALID_CONTINUATION_TOKEN, TOO_MANY_KEYS_IN_FILTER, CONTRACT_ERROR, TRANSACTION_EXECUTION_ERROR, STORAGE_PROOF_NOT_SUPPORTED, CLASS_ALREADY_DECLARED, INVALID_TRANSACTION_NONCE, INSUFFICIENT_RESOURCES_FOR_VALIDATE, INSUFFICIENT_ACCOUNT_BALANCE, VALIDATION_FAILURE, COMPILATION_FAILED, CONTRACT_CLASS_SIZE_IS_TOO_LARGE, NON_ACCOUNT, DUPLICATE_TX, COMPILED_CLASS_HASH_MISMATCH, UNSUPPORTED_TX_VERSION, UNSUPPORTED_CONTRACT_CLASS_VERSION, UNEXPECTED_ERROR, REPLACEMENT_TRANSACTION_UNDERPRICED, FEE_BELOW_MINIMUM, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, STORAGE_RESULT, INVOKE_TXN_V3, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, STRK20_DEPOSIT_ACTION, STRK20_WITHDRAW_ACTION, STRK20_TRANSFER_ACTION, STRK20_INVOKE_ACTION, STRK20_SHADOW_ACCOUNT_INVOKE_ACTION as STRK20_SHADOW_ACCOUNT_INVOKE_ACTION$1, STRK20_CALL_AND_PROOF as STRK20_CALL_AND_PROOF$1, STRK20_PROOF, Address, STRK20_BALANCE_ENTRY, STRK20_DAPP_NAME, FELT as FELT$1, EDAMode as EDAMode$1, StarknetType, StarknetMerkleType, TypedDataRevision, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Event as Event$2, Permission, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion, API_VERSION as API_VERSION$1, STRK20_ACTION as STRK20_ACTION$1 } from '@starknet-io/starknet-types-0104';
2
+ import { PAYMASTER_API, CONTRACT, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionType, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, IsType, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, BLOCK_WITH_TX_HASHES, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, ETransactionVersion3 as ETransactionVersion3$1, SUBSCRIPTION_ID, NewHeadsEvent, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, TXN_STATUS_WITHOUT_L1, NewTransactionEvent, TransactionHash, BlockHash, FAILED_TO_RECEIVE_TXN, NO_TRACE_AVAILABLE, CONTRACT_NOT_FOUND, ENTRYPOINT_NOT_FOUND, BLOCK_NOT_FOUND, INVALID_TXN_INDEX, CLASS_HASH_NOT_FOUND, TXN_HASH_NOT_FOUND, PAGE_SIZE_TOO_BIG, NO_BLOCKS, INVALID_CONTINUATION_TOKEN, TOO_MANY_KEYS_IN_FILTER, CONTRACT_ERROR, TRANSACTION_EXECUTION_ERROR, STORAGE_PROOF_NOT_SUPPORTED, CLASS_ALREADY_DECLARED, INVALID_TRANSACTION_NONCE, INSUFFICIENT_RESOURCES_FOR_VALIDATE, INSUFFICIENT_ACCOUNT_BALANCE, VALIDATION_FAILURE, COMPILATION_FAILED, CONTRACT_CLASS_SIZE_IS_TOO_LARGE, NON_ACCOUNT, DUPLICATE_TX, COMPILED_CLASS_HASH_MISMATCH, UNSUPPORTED_TX_VERSION, UNSUPPORTED_CONTRACT_CLASS_VERSION, UNEXPECTED_ERROR, REPLACEMENT_TRANSACTION_UNDERPRICED, FEE_BELOW_MINIMUM, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, STORAGE_RESULT, INVOKE_TXN_V3, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, STRK20_DEPOSIT_ACTION, STRK20_WITHDRAW_ACTION, STRK20_TRANSFER_ACTION, STRK20_INVOKE_ACTION, STRK20_SHADOW_ACCOUNT_INVOKE_ACTION as STRK20_SHADOW_ACCOUNT_INVOKE_ACTION$1, STRK20_CALL_AND_PROOF as STRK20_CALL_AND_PROOF$1, STRK20_PROOF, Address, STRK20_BALANCE_ENTRY, STRK20_DAPP_NAME, FELT as FELT$1, EDAMode as EDAMode$1, StarknetType, StarknetMerkleType, TypedDataRevision, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Event as Event$2, Permission, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion, API_VERSION as API_VERSION$1, STRK20_ACTION as STRK20_ACTION$1 } from '@starknet-io/starknet-types-0104';
3
3
  export { STRK20_BALANCE_ENTRY, STRK20_CALLDATA_ITEM, STRK20_CALLDATA_PLACEHOLDER, STRK20_COLLECT_POLICY, STRK20_DAPP_NAME, STRK20_DEPOSIT_ACTION, STRK20_INVOKE_ACTION, STRK20_PROOF, STRK20_TRANSFER_ACTION, STRK20_WITHDRAW_ACTION, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-0104';
4
4
  import * as RPC$1 from '@starknet-io/starknet-types-0101';
5
5
  import { WatchAssetParameters as WatchAssetParameters$1, AddStarknetChainParameters as AddStarknetChainParameters$1, Signature as Signature$2, Address as Address$1, Permission as Permission$1, ChainId as ChainId$1, AccountDeploymentData as AccountDeploymentData$1, AddInvokeTransactionParameters as AddInvokeTransactionParameters$1, AddInvokeTransactionResult as AddInvokeTransactionResult$1, AddDeclareTransactionParameters as AddDeclareTransactionParameters$1, AddDeclareTransactionResult as AddDeclareTransactionResult$1, TypedData as TypedData$1, SpecVersion as SpecVersion$1, API_VERSION as API_VERSION$2 } from '@starknet-io/starknet-types-0101';
@@ -1115,12 +1115,22 @@ declare abstract class ProviderInterface {
1115
1115
  */
1116
1116
  abstract getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<Nonce>;
1117
1117
  /**
1118
- * Get the value of the storage (contract's variable) at the given address and key
1118
+ * Get the value stored in one storage slot of a contract.
1119
1119
  *
1120
- * @param contractAddress
1121
- * @param key - from getStorageVarAddress('<STORAGE_VARIABLE_NAME>') (WIP)
1120
+ * @param contractAddress - contract address
1121
+ * @param key - address of the storage slot. For a variable that holds one felt, it is
1122
+ * `hash.starknetKeccak(name)`. For the other cases, see the
1123
+ * [Cairo book](https://www.starknet.io/cairo-book/ch101-01-00-contract-storage.html#addresses-of-storage-variables).
1122
1124
  * @param blockIdentifier - block identifier
1123
- * @returns the value of the storage variable
1125
+ * @param responseFlags - `['INCLUDE_LAST_UPDATE_BLOCK']` also gives the last block that
1126
+ * modified the slot. It needs a node that uses RPC spec 0.10. With RPC spec 0.9, the flag is
1127
+ * ignored and `last_update_block` is 0.
1128
+ * @returns `value` and `last_update_block`, which is 0 without `INCLUDE_LAST_UPDATE_BLOCK`
1129
+ * @example
1130
+ * ```typescript
1131
+ * const result = await provider.getStorageAt(contractAddress, hash.starknetKeccak('balance'));
1132
+ * // result = { value: '0x64', last_update_block: 0 }
1133
+ * ```
1124
1134
  */
1125
1135
  abstract getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?: RPCSPEC0104.STORAGE_RESPONSE_FLAG[]): Promise<StorageResponse>;
1126
1136
  /**
@@ -2338,6 +2348,11 @@ interface PaymasterTimeBounds {
2338
2348
  executeAfter?: number;
2339
2349
  executeBefore: number;
2340
2350
  }
2351
+ interface PaymasterDetails {
2352
+ feeMode: FeeMode;
2353
+ deploymentData?: PAYMASTER_API.AccountDeploymentData;
2354
+ timeBounds?: PaymasterTimeBounds;
2355
+ }
2341
2356
 
2342
2357
  declare abstract class PaymasterInterface {
2343
2358
  abstract nodeUrl: string;
@@ -2374,6 +2389,158 @@ declare abstract class PaymasterInterface {
2374
2389
  abstract getSupportedTokens(): Promise<TokenData[]>;
2375
2390
  }
2376
2391
 
2392
+ /**
2393
+ * Common interface response
2394
+ * Intersection (sequencer response ∩ (∪ rpc responses))
2395
+ */
2396
+
2397
+ type Block$1 = Simplify<BLOCK_WITH_TX_HASHES>;
2398
+ type PreConfirmedBlock = Simplify<PRE_CONFIRMED_BLOCK_WITH_TX_HASHES>;
2399
+ type GetBlockResponse = Simplify<BlockWithTxHashes>;
2400
+ type GetTxReceiptResponseWithoutHelper = TransactionReceipt$1;
2401
+ type SuccessfulTransactionReceiptResponse = IsSucceeded<TransactionReceipt$1>;
2402
+ type RevertedTransactionReceiptResponse = IsReverted<TransactionReceipt$1>;
2403
+ type InvokeTransactionReceiptResponse = IsType<TransactionReceipt$1, 'INVOKE'>;
2404
+ type DeployTransactionReceiptResponse = InvokeTransactionReceiptResponse;
2405
+ type DeclareTransactionReceiptResponse = IsType<TransactionReceipt$1, 'DECLARE'>;
2406
+ type DeployAccountTransactionReceiptResponse = IsType<TransactionReceipt$1, 'DEPLOY_ACCOUNT'>;
2407
+ type L1HandlerTransactionReceiptResponse = IsType<TransactionReceipt$1, 'L1_HANDLER'>;
2408
+ type GetTransactionResponse = TransactionWithHash;
2409
+ /**
2410
+ * Estimate fee response with overhead
2411
+ */
2412
+ type EstimateFeeResponseOverhead = {
2413
+ resourceBounds: ResourceBoundsBN;
2414
+ overall_fee: bigint;
2415
+ unit: PRICE_UNIT;
2416
+ };
2417
+ type EstimateFeeResponseBulkOverhead = Array<EstimateFeeResponseOverhead>;
2418
+ type InvokeFunctionResponse = InvokedTransaction;
2419
+ type DeclareContractResponse = DeclaredTransaction;
2420
+ type CallContractResponse = string[];
2421
+ type StorageResponse = RPCSPEC0104.STORAGE_RESULT;
2422
+ type Nonce = string;
2423
+ type SimulationFlags = Array<SIMULATION_FLAG>;
2424
+ type SimulateTransactionOverhead = {
2425
+ transaction_trace: TransactionTrace;
2426
+ } & EstimateFeeResponseOverhead;
2427
+ type SimulateTransactionOverheadResponse = {
2428
+ simulated_transactions: SimulateTransactionOverhead[];
2429
+ initial_reads?: INITIAL_READS;
2430
+ };
2431
+ type PreConfirmedStateUpdate = PRE_CONFIRMED_STATE_UPDATE;
2432
+ type StateUpdate = STATE_UPDATE;
2433
+ type StateUpdateResponse = StateUpdate | PreConfirmedStateUpdate;
2434
+ /**
2435
+ * Standardized type
2436
+ *
2437
+ * Cairo0 program compressed and Cairo1 sierra_program decompressed
2438
+ *
2439
+ * abi Abi
2440
+ *
2441
+ * CompiledSierra without '.sierra_program_debug_info'
2442
+ */
2443
+ type ContractClassResponse = LegacyContractClass | Omit<CompiledSierra, 'sierra_program_debug_info'>;
2444
+
2445
+ /**
2446
+ * The SNIP-29 paymaster members that the paymaster plugin adds to an Account.
2447
+ */
2448
+ interface PaymasterAccountMethods {
2449
+ /**
2450
+ * The paymaster service of the account. The paymaster methods read it at each call, so you can
2451
+ * replace it after the account is created.
2452
+ */
2453
+ paymaster: PaymasterInterface;
2454
+ /**
2455
+ * Build a transaction for paymaster execution
2456
+ *
2457
+ * @param calls - Array of calls to be sponsored
2458
+ * @param paymasterDetails - Paymaster configuration
2459
+ *
2460
+ * @returns Prepared transaction with typed data for signing
2461
+ * @example
2462
+ * ```typescript
2463
+ * const prepared = await account.buildPaymasterTransaction(
2464
+ * calls,
2465
+ * { feeMode: { mode: 'default', gasToken: ETH_ADDRESS } }
2466
+ * );
2467
+ * ```
2468
+ */
2469
+ buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
2470
+ /**
2471
+ * Estimate fees for a paymaster-sponsored transaction
2472
+ *
2473
+ * @param calls - Array of calls to be sponsored
2474
+ * - .contractAddress - Target contract address
2475
+ * - .entrypoint - Function to invoke
2476
+ * - .calldata - Function parameters
2477
+ *
2478
+ * @param paymasterDetails - Paymaster configuration
2479
+ * - .feeMode - Sponsorship mode: 'sponsored' or gas token
2480
+ * - .deploymentData - Account deployment data if needed
2481
+ * - .timeBounds - Valid execution time window
2482
+ *
2483
+ * @returns Fee estimates in both STRK and gas token
2484
+ * @example
2485
+ * ```typescript
2486
+ * const fees = await account.estimatePaymasterTransactionFee(
2487
+ * [{ contractAddress, entrypoint, calldata }],
2488
+ * { feeMode: { mode: 'sponsored' } }
2489
+ * );
2490
+ * ```
2491
+ */
2492
+ estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
2493
+ /**
2494
+ * Signs a transaction prepared by the paymaster, after checking it is safe to sign. The safety
2495
+ * check needs the calls and the fee details the user actually requested, so a caller that uses
2496
+ * this low-level method directly must pass them, the same way `executePaymasterTransaction`
2497
+ * does.
2498
+ * @param preparedTransaction the transaction returned by the paymaster.
2499
+ * @param calls the calls the user requested.
2500
+ * @param paymasterDetails the fee mode and related paymaster details.
2501
+ * @param maxFeeInGasToken optional user-approved ceiling on the gas-token fee.
2502
+ * @returns The transaction to send to the paymaster, with the signed typed data.
2503
+ * @example
2504
+ * ```typescript
2505
+ * const prepared = await account.buildPaymasterTransaction(calls, paymasterDetails);
2506
+ * const executable = await account.preparePaymasterTransaction(
2507
+ * prepared,
2508
+ * calls,
2509
+ * paymasterDetails
2510
+ * );
2511
+ * const { transaction_hash } = await account.paymaster.executeTransaction(
2512
+ * executable,
2513
+ * prepared.parameters
2514
+ * );
2515
+ * ```
2516
+ */
2517
+ preparePaymasterTransaction(preparedTransaction: PreparedTransaction, calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<ExecutableUserTransaction>;
2518
+ /**
2519
+ * Execute a paymaster-sponsored transaction
2520
+ *
2521
+ * @param calls - Array of calls to execute
2522
+ * @param paymasterDetails - Paymaster configuration
2523
+ * - .feeMode - 'sponsored' or gas token payment
2524
+ * - .deploymentData - Deploy account if needed
2525
+ * - .timeBounds - Execution validity window (UNIX timestamps)
2526
+ *
2527
+ * @param maxFeeInGasToken - Maximum acceptable fee in gas token
2528
+ *
2529
+ * @returns Transaction hash if successful
2530
+ * @throws {Error} If gas token price exceeds maxFeeInGasToken
2531
+ * @throws {Error} If transaction parameters are modified by paymaster
2532
+ * @example
2533
+ * ```typescript
2534
+ * const txHash = await account.executePaymasterTransaction(
2535
+ * calls,
2536
+ * { feeMode: { mode: 'sponsored' }, timeBounds: { executeBefore: Date.now()/1000 + 3600 } },
2537
+ * maxFeeETH
2538
+ * );
2539
+ * ```
2540
+ */
2541
+ executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
2542
+ }
2543
+
2377
2544
  declare class PaymasterRpc implements PaymasterInterface {
2378
2545
  nodeUrl: string;
2379
2546
  headers: object;
@@ -2389,6 +2556,30 @@ declare class PaymasterRpc implements PaymasterInterface {
2389
2556
  getSupportedTokens(): Promise<TokenData[]>;
2390
2557
  }
2391
2558
 
2559
+ /**
2560
+ * Paymaster plugin: adds the SNIP-29 paymaster members to an Account. They are `paymaster`,
2561
+ * `buildPaymasterTransaction`, `estimatePaymasterTransactionFee`, `preparePaymasterTransaction`
2562
+ * and `executePaymasterTransaction`. It is a default plugin. It adds nothing to a provider.
2563
+ *
2564
+ * The plugin does not add a method that the account already has: when a subclass of Account
2565
+ * redefines a paymaster method, its method is kept.
2566
+ * @param {PaymasterOptions | PaymasterInterface} [options] The paymaster to use: the options of a
2567
+ * `PaymasterRpc`, or a paymaster instance. Without them, the account uses a public paymaster
2568
+ * service, and no message is logged.
2569
+ * @returns {StarknetPlugin<Record<string, never>, PaymasterAccountMethods>} The plugin.
2570
+ * @example
2571
+ * ```typescript
2572
+ * const myAccount = new Account({
2573
+ * provider: myProvider,
2574
+ * address: accountAddress,
2575
+ * signer: privateKey,
2576
+ * plugins: [fastExecute(), paymasterPlugin({ nodeUrl: 'https://sepolia.paymaster.avnu.fi' })],
2577
+ * });
2578
+ * // myAccount.paymaster.nodeUrl = 'https://sepolia.paymaster.avnu.fi'
2579
+ * ```
2580
+ */
2581
+ declare function paymasterPlugin(options?: PaymasterOptions | PaymasterInterface): StarknetPlugin<Record<string, never>, PaymasterAccountMethods>;
2582
+
2392
2583
  /**
2393
2584
  * Configuration options for creating an Account instance
2394
2585
  */
@@ -2403,7 +2594,10 @@ type AccountOptions = {
2403
2594
  cairoVersion?: CairoVersion;
2404
2595
  /** Transaction version to use for sending transactions (optional) */
2405
2596
  transactionVersion?: SupportedTransactionVersion;
2406
- /** Paymaster configuration for sponsored transactions (optional) */
2597
+ /**
2598
+ * Paymaster configuration for sponsored transactions (optional).
2599
+ * It always installs the paymaster plugin, even with `plugins: false`.
2600
+ */
2407
2601
  paymaster?: PaymasterOptions | PaymasterInterface;
2408
2602
  /** Use of a custom account deployer contract (optional) */
2409
2603
  deployer?: DeployerInterface;
@@ -2436,11 +2630,6 @@ interface UniversalDetails {
2436
2630
  /** Proof for the transaction (RPC 0.10.1+) - base64 encoded string */
2437
2631
  proof?: string;
2438
2632
  }
2439
- interface PaymasterDetails {
2440
- feeMode: FeeMode;
2441
- deploymentData?: PAYMASTER_API.AccountDeploymentData;
2442
- timeBounds?: PaymasterTimeBounds;
2443
- }
2444
2633
  interface DeployContractResponse {
2445
2634
  contract_address: string;
2446
2635
  transaction_hash: string;
@@ -3006,9 +3195,12 @@ interface StarknetPlugin<TProviderMethods extends Record<string, any> = Record<s
3006
3195
  interface PluginConfig {
3007
3196
  /**
3008
3197
  * Plugins to install.
3009
- * - `undefined` (default): install defaultPlugins (starknetId, brotherId)
3198
+ * - `undefined` (default): install defaultPlugins (starknetId, brotherId, fastExecute, paymaster)
3010
3199
  * - explicit array: install exactly these plugins
3011
3200
  * - `false`: no plugins
3201
+ *
3202
+ * On an Account, the `paymaster` option always installs the paymaster plugin, even with `false`
3203
+ * or with a list without it.
3012
3204
  */
3013
3205
  plugins?: StarknetPlugin<any, any>[] | false;
3014
3206
  }
@@ -3901,59 +4093,6 @@ type RpcProviderOptions = {
3901
4093
  batch?: false | number;
3902
4094
  } & PluginConfig;
3903
4095
 
3904
- /**
3905
- * Common interface response
3906
- * Intersection (sequencer response ∩ (∪ rpc responses))
3907
- */
3908
-
3909
- type Block$1 = Simplify<BLOCK_WITH_TX_HASHES>;
3910
- type PreConfirmedBlock = Simplify<PRE_CONFIRMED_BLOCK_WITH_TX_HASHES>;
3911
- type GetBlockResponse = Simplify<BlockWithTxHashes>;
3912
- type GetTxReceiptResponseWithoutHelper = TransactionReceipt$1;
3913
- type SuccessfulTransactionReceiptResponse = IsSucceeded<TransactionReceipt$1>;
3914
- type RevertedTransactionReceiptResponse = IsReverted<TransactionReceipt$1>;
3915
- type InvokeTransactionReceiptResponse = IsType<TransactionReceipt$1, 'INVOKE'>;
3916
- type DeployTransactionReceiptResponse = InvokeTransactionReceiptResponse;
3917
- type DeclareTransactionReceiptResponse = IsType<TransactionReceipt$1, 'DECLARE'>;
3918
- type DeployAccountTransactionReceiptResponse = IsType<TransactionReceipt$1, 'DEPLOY_ACCOUNT'>;
3919
- type L1HandlerTransactionReceiptResponse = IsType<TransactionReceipt$1, 'L1_HANDLER'>;
3920
- type GetTransactionResponse = TransactionWithHash;
3921
- /**
3922
- * Estimate fee response with overhead
3923
- */
3924
- type EstimateFeeResponseOverhead = {
3925
- resourceBounds: ResourceBoundsBN;
3926
- overall_fee: bigint;
3927
- unit: PRICE_UNIT;
3928
- };
3929
- type EstimateFeeResponseBulkOverhead = Array<EstimateFeeResponseOverhead>;
3930
- type InvokeFunctionResponse = InvokedTransaction;
3931
- type DeclareContractResponse = DeclaredTransaction;
3932
- type CallContractResponse = string[];
3933
- type StorageResponse = RPCSPEC0104.STORAGE_RESULT;
3934
- type Nonce = string;
3935
- type SimulationFlags = Array<SIMULATION_FLAG>;
3936
- type SimulateTransactionOverhead = {
3937
- transaction_trace: TransactionTrace;
3938
- } & EstimateFeeResponseOverhead;
3939
- type SimulateTransactionOverheadResponse = {
3940
- simulated_transactions: SimulateTransactionOverhead[];
3941
- initial_reads?: INITIAL_READS;
3942
- };
3943
- type PreConfirmedStateUpdate = PRE_CONFIRMED_STATE_UPDATE;
3944
- type StateUpdate = STATE_UPDATE;
3945
- type StateUpdateResponse = StateUpdate | PreConfirmedStateUpdate;
3946
- /**
3947
- * Standardized type
3948
- *
3949
- * Cairo0 program compressed and Cairo1 sierra_program decompressed
3950
- *
3951
- * abi Abi
3952
- *
3953
- * CompiledSierra without '.sierra_program_debug_info'
3954
- */
3955
- type ContractClassResponse = LegacyContractClass | Omit<CompiledSierra, 'sierra_program_debug_info'>;
3956
-
3957
4096
  /**
3958
4097
  * Result of provider.getGasPrices().
3959
4098
  * @param {bigint} l1DataGasPrice - price in fri of the layer 1 data gas price.
@@ -7366,13 +7505,12 @@ declare function getAbiVersion(abi: Abi): 1 | 2 | 0;
7366
7505
  */
7367
7506
  declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
7368
7507
 
7369
- type AsyncContractFunction<T = any> = (...args: ArgsOrCalldataWithOptions) => Promise<T>;
7370
- type ContractFunction = (...args: ArgsOrCalldataWithOptions) => any;
7508
+ type AsyncContractFunction<T = any> = (...args: ArgsOrCalldata) => Promise<T>;
7509
+ type ContractFunction = (...args: ArgsOrCalldata) => any;
7371
7510
  type CallResult = {
7372
7511
  [key: string]: any;
7373
7512
  } | CallResult[] | bigint | string | boolean | CairoEnum;
7374
7513
  type ArgsOrCalldata = RawArgsArray | [Calldata] | Calldata;
7375
- type ArgsOrCalldataWithOptions = [...RawArgsArray] | [...RawArgsArray, ContractOptions] | [Calldata] | [Calldata, ContractOptions] | [...Calldata] | [...Calldata, ContractOptions];
7376
7514
  type CommonContractOptions = {
7377
7515
  /**
7378
7516
  * compile and validate arguments
@@ -8860,7 +8998,7 @@ declare class RpcChannel$2 {
8860
8998
  invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<RPC$1.InvokedTransaction>;
8861
8999
  invokeSignedTx(transaction: RPC$1.INVOKE_TXN_V3): Promise<RPC$1.InvokedTransaction>;
8862
9000
  declare(declareTransaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPC$1.TXN_RECEIPT | RPC$1.DeclaredTransaction>;
8863
- deployAccount(deployAccountTransaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPC$1.TXN_RECEIPT | RPC$1.DeployedAccountTransaction>;
9001
+ deployAccount(deployAccountTransaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPC$1.DeployedAccountTransaction | RPC$1.TXN_RECEIPT>;
8864
9002
  callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
8865
9003
  /**
8866
9004
  * NEW: Estimate the fee for a message from L1
@@ -9306,7 +9444,7 @@ declare class RpcProvider implements ProviderInterface {
9306
9444
  getBlockStateUpdate(blockIdentifier?: BlockIdentifier, contractAddresses?: BigNumberish[]): Promise<StateUpdateResponse>;
9307
9445
  getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier, options?: {
9308
9446
  returnInitialReads?: boolean;
9309
- }): Promise<RPC.BlockTransactionsTraces | RPC$1.BlockTransactionsTracesWithInitialReads>;
9447
+ }): Promise<RPC$1.BlockTransactionsTracesWithInitialReads | RPC.BlockTransactionsTraces>;
9310
9448
  getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
9311
9449
  getTransaction(txHash: BigNumberish, options?: {
9312
9450
  includeProofFacts?: boolean;
@@ -9580,7 +9718,7 @@ declare const Provider: typeof RpcProvider;
9580
9718
  */
9581
9719
  type Provider = RpcProvider;
9582
9720
 
9583
- interface Account extends StarknetIdAccountMethods, BrotherIdProviderMethods, FastExecuteAccountMethods {
9721
+ interface Account extends StarknetIdAccountMethods, BrotherIdProviderMethods, FastExecuteAccountMethods, PaymasterAccountMethods {
9584
9722
  }
9585
9723
  declare class Account implements AccountInterface {
9586
9724
  provider: RpcProvider;
@@ -9588,7 +9726,6 @@ declare class Account implements AccountInterface {
9588
9726
  address: string;
9589
9727
  cairoVersion: CairoVersion;
9590
9728
  readonly transactionVersion: typeof ETransactionVersion.V3;
9591
- paymaster: PaymasterInterface;
9592
9729
  deployer: Deployer;
9593
9730
  defaultTipType: TipType;
9594
9731
  /** @internal Account-level plugin management */
@@ -9788,20 +9925,6 @@ declare class Account implements AccountInterface {
9788
9925
  } & DeployAccountContractTransaction) & InvocationsDetailsWithNonce
9789
9926
  ]>;
9790
9927
  accountInvocationsFactory(invocations: Invocations, details: AccountInvocationsFactoryDetails): Promise<AccountInvocations>;
9791
- buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
9792
- estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
9793
- /**
9794
- * Signs a transaction prepared by the paymaster, after checking it is safe to sign. The safety
9795
- * check needs the calls and the fee details the user actually requested, so a caller that uses
9796
- * this low-level method directly must pass them, the same way `executePaymasterTransaction`
9797
- * does.
9798
- * @param preparedTransaction the transaction returned by the paymaster.
9799
- * @param calls the calls the user requested.
9800
- * @param paymasterDetails the fee mode and related paymaster details.
9801
- * @param maxFeeInGasToken optional user-approved ceiling on the gas-token fee.
9802
- */
9803
- preparePaymasterTransaction(preparedTransaction: PreparedTransaction, calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<ExecutableUserTransaction>;
9804
- executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
9805
9928
  }
9806
9929
 
9807
9930
  interface StarknetWalletProvider extends StarknetWindowObject {
@@ -10866,8 +10989,8 @@ declare module 'abi-wan-kanabi' {
10866
10989
  Result: CairoResult<ResultT, ErrorT>;
10867
10990
  Enum: CairoCustomEnum;
10868
10991
  Calldata: RawArgs | Calldata;
10869
- CallOptions: CallOptions;
10870
- InvokeOptions: ExecuteOptions;
10992
+ CallOptions: never;
10993
+ InvokeOptions: never;
10871
10994
  InvokeFunctionResponse: InvokeFunctionResponse;
10872
10995
  }
10873
10996
  }
@@ -13490,11 +13613,11 @@ declare function assertCallsAreStrictlyEqual(originalCalls: Call[], unsafeCalls:
13490
13613
  */
13491
13614
  declare const assertPaymasterTransactionSafety: (preparedTransaction: PreparedTransaction, calls: Call[], paymasterDetails: PaymasterDetails, chainId: _StarknetChainId, maxFeeInGasToken?: BigNumberish) => void;
13492
13615
 
13493
- declare const paymaster_assertCallsAreStrictlyEqual: typeof assertCallsAreStrictlyEqual;
13494
- declare const paymaster_assertPaymasterTransactionSafety: typeof assertPaymasterTransactionSafety;
13495
- declare const paymaster_getDefaultPaymasterNodeUrl: typeof getDefaultPaymasterNodeUrl;
13496
- declare namespace paymaster {
13497
- export { paymaster_assertCallsAreStrictlyEqual as assertCallsAreStrictlyEqual, paymaster_assertPaymasterTransactionSafety as assertPaymasterTransactionSafety, paymaster_getDefaultPaymasterNodeUrl as getDefaultPaymasterNodeUrl };
13616
+ declare const utils_assertCallsAreStrictlyEqual: typeof assertCallsAreStrictlyEqual;
13617
+ declare const utils_assertPaymasterTransactionSafety: typeof assertPaymasterTransactionSafety;
13618
+ declare const utils_getDefaultPaymasterNodeUrl: typeof getDefaultPaymasterNodeUrl;
13619
+ declare namespace utils {
13620
+ export { utils_assertCallsAreStrictlyEqual as assertCallsAreStrictlyEqual, utils_assertPaymasterTransactionSafety as assertPaymasterTransactionSafety, utils_getDefaultPaymasterNodeUrl as getDefaultPaymasterNodeUrl };
13498
13621
  }
13499
13622
 
13500
13623
  /**
@@ -13785,6 +13908,8 @@ declare namespace index {
13785
13908
  declare function toOutsideCallV2(call: OutsideCallV1 | OutsideCallV2): OutsideCallV2;
13786
13909
  /**
13787
13910
  * Converts a Call object to an OutsideCall object that can be used for an Outside Execution.
13911
+ * The calldata follows the rule of `account.execute()`: a calldata marked as compiled is kept as
13912
+ * it is, and any other calldata is a list or an object of parameters, which is flattened.
13788
13913
  * @param {Call} call transaction to proceed.
13789
13914
  * @returns {OutsideCall} transaction formatted in conformity to SNIP-9
13790
13915
  * @example
@@ -18396,4 +18521,4 @@ declare class Logger {
18396
18521
  */
18397
18522
  declare const logger: Logger;
18398
18523
 
18399
- export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser0, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, CairoArray, type CairoAssembly, CairoBool, CairoByteArray, CairoBytes31, CairoClassHash, type CairoContract, CairoContractAddress, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, CairoEthAddress, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoNonZero, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoSecp256k1Point, CairoStorageAddress, CairoStruct, CairoTuple, type CairoType, CairoTypeCustomEnum, CairoTypeOption, CairoTypeResult, type CairoTypeStrategy, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, HttpTransport, type HttpTransportOptions, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$8 as RPC, index$6 as RPC0102, index$5 as RPC0103, index$4 as RPC0104, index$7 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, type ReconnectOptions, ReconnectingWsTransport, type ReconnectingWsTransportOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, RpcChannel, RpcError, type RpcNotification, RpcProvider, type RpcProviderOptions, type RpcTransport, SECP256K1_POINT_MAX, SECP256K1_POINT_MIN, type SIMULATION_FLAG, type STATE_UPDATE, type STRK20_ACTION, type STRK20_CALL_AND_PROOF, type STRK20_SHADOW_ACCOUNT_INVOKE_ACTION, type Secp256k1PointStruct, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionOverhead, type SimulateTransactionOverheadResponse, type SimulateTransactionResponse, type SimulationFlags, type StarkProfile, type StarknetIdAccountMethods, StarknetIdImpl, type StarknetIdProviderMethods, type StarknetPlugin, type StateUpdate, type StateUpdateResponse, type StorageResponse, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, type SubscriptionOwner, type SubscriptionStarknetEventsEvent, type SubscriptionTransactionStatusEvent, type SuccessfulTransactionReceiptResponse, type SuccessfulTransactionReceiptResponseHelper, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, type TipType, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, type TransactionTrace, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UserInvoke, type UserTransaction, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, type VariantType, WalletAccount, WalletAccountV5, WalletAccountV6, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, WebSocketProvider, type WebSocketProviderOptions, type WeierstrassSignatureType, type WithOptions, WsTransport, type WsTransportOptions, type WsTransportState, addAddressPadding, brotherId, byteArray, cairo, cairoTypeStrategy, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, enumStrategy, eth, index as events, extractContractHashes, fastCairoTypeStrategy, fastExecute, fastParsingStrategy, getAbiVersion, type getBlockTransactionsTracesOptions, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isCairoType, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, starknetId$1 as starknetIdPlugin, structStrategy, toAnyPatchVersion, toApiVersion, toReleaseVersion, index$2 as transaction, typedData, uint256, units, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet, connectV5 as walletV5, connectV6 as walletV6 };
18524
+ export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser0, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, CairoArray, type CairoAssembly, CairoBool, CairoByteArray, CairoBytes31, CairoClassHash, type CairoContract, CairoContractAddress, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, CairoEthAddress, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoNonZero, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoSecp256k1Point, CairoStorageAddress, CairoStruct, CairoTuple, type CairoType, CairoTypeCustomEnum, CairoTypeOption, CairoTypeResult, type CairoTypeStrategy, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, HttpTransport, type HttpTransportOptions, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterAccountMethods, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$8 as RPC, index$6 as RPC0102, index$5 as RPC0103, index$4 as RPC0104, index$7 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, type ReconnectOptions, ReconnectingWsTransport, type ReconnectingWsTransportOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, RpcChannel, RpcError, type RpcNotification, RpcProvider, type RpcProviderOptions, type RpcTransport, SECP256K1_POINT_MAX, SECP256K1_POINT_MIN, type SIMULATION_FLAG, type STATE_UPDATE, type STRK20_ACTION, type STRK20_CALL_AND_PROOF, type STRK20_SHADOW_ACCOUNT_INVOKE_ACTION, type Secp256k1PointStruct, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionOverhead, type SimulateTransactionOverheadResponse, type SimulateTransactionResponse, type SimulationFlags, type StarkProfile, type StarknetIdAccountMethods, StarknetIdImpl, type StarknetIdProviderMethods, type StarknetPlugin, type StateUpdate, type StateUpdateResponse, type StorageResponse, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, type SubscriptionOwner, type SubscriptionStarknetEventsEvent, type SubscriptionTransactionStatusEvent, type SuccessfulTransactionReceiptResponse, type SuccessfulTransactionReceiptResponseHelper, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, type TipType, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, type TransactionTrace, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UserInvoke, type UserTransaction, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, type VariantType, WalletAccount, WalletAccountV5, WalletAccountV6, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, WebSocketProvider, type WebSocketProviderOptions, type WeierstrassSignatureType, type WithOptions, WsTransport, type WsTransportOptions, type WsTransportState, addAddressPadding, brotherId, byteArray, cairo, cairoTypeStrategy, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, enumStrategy, eth, index as events, extractContractHashes, fastCairoTypeStrategy, fastExecute, fastParsingStrategy, getAbiVersion, type getBlockTransactionsTracesOptions, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isCairoType, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, utils as paymaster, paymasterPlugin, provider, selector, shortString, src5, index$1 as stark, starknetId, starknetId$1 as starknetIdPlugin, structStrategy, toAnyPatchVersion, toApiVersion, toReleaseVersion, index$2 as transaction, typedData, uint256, units, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet, connectV5 as walletV5, connectV6 as walletV6 };