starknet 11.4.0 → 11.4.2

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.2](https://github.com/starknet-io/starknet.js/compare/v11.4.1...v11.4.2) (2026-10-21)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **paymaster:** compile the calldata of the calls like execute(), in getOutsideCall and in Contract ([5a0e748](https://github.com/starknet-io/starknet.js/commit/5a0e7485af9d067e9b812c1ac8fc28b155c8ba4d))
6
+
7
+ ## [11.4.1](https://github.com/starknet-io/starknet.js/compare/v11.4.0...v11.4.1) (2026-10-20)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **paymaster:** verify the signed hash is the expected outside execution ([a049bc1](https://github.com/starknet-io/starknet.js/commit/a049bc13f63aa209d6378351954fc0219ee122df))
12
+
1
13
  # [11.4.0](https://github.com/starknet-io/starknet.js/compare/v11.3.0...v11.4.0) (2026-10-16)
2
14
 
3
15
  ### Features
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';
@@ -2338,6 +2338,11 @@ interface PaymasterTimeBounds {
2338
2338
  executeAfter?: number;
2339
2339
  executeBefore: number;
2340
2340
  }
2341
+ interface PaymasterDetails {
2342
+ feeMode: FeeMode;
2343
+ deploymentData?: PAYMASTER_API.AccountDeploymentData;
2344
+ timeBounds?: PaymasterTimeBounds;
2345
+ }
2341
2346
 
2342
2347
  declare abstract class PaymasterInterface {
2343
2348
  abstract nodeUrl: string;
@@ -2374,6 +2379,158 @@ declare abstract class PaymasterInterface {
2374
2379
  abstract getSupportedTokens(): Promise<TokenData[]>;
2375
2380
  }
2376
2381
 
2382
+ /**
2383
+ * Common interface response
2384
+ * Intersection (sequencer response ∩ (∪ rpc responses))
2385
+ */
2386
+
2387
+ type Block$1 = Simplify<BLOCK_WITH_TX_HASHES>;
2388
+ type PreConfirmedBlock = Simplify<PRE_CONFIRMED_BLOCK_WITH_TX_HASHES>;
2389
+ type GetBlockResponse = Simplify<BlockWithTxHashes>;
2390
+ type GetTxReceiptResponseWithoutHelper = TransactionReceipt$1;
2391
+ type SuccessfulTransactionReceiptResponse = IsSucceeded<TransactionReceipt$1>;
2392
+ type RevertedTransactionReceiptResponse = IsReverted<TransactionReceipt$1>;
2393
+ type InvokeTransactionReceiptResponse = IsType<TransactionReceipt$1, 'INVOKE'>;
2394
+ type DeployTransactionReceiptResponse = InvokeTransactionReceiptResponse;
2395
+ type DeclareTransactionReceiptResponse = IsType<TransactionReceipt$1, 'DECLARE'>;
2396
+ type DeployAccountTransactionReceiptResponse = IsType<TransactionReceipt$1, 'DEPLOY_ACCOUNT'>;
2397
+ type L1HandlerTransactionReceiptResponse = IsType<TransactionReceipt$1, 'L1_HANDLER'>;
2398
+ type GetTransactionResponse = TransactionWithHash;
2399
+ /**
2400
+ * Estimate fee response with overhead
2401
+ */
2402
+ type EstimateFeeResponseOverhead = {
2403
+ resourceBounds: ResourceBoundsBN;
2404
+ overall_fee: bigint;
2405
+ unit: PRICE_UNIT;
2406
+ };
2407
+ type EstimateFeeResponseBulkOverhead = Array<EstimateFeeResponseOverhead>;
2408
+ type InvokeFunctionResponse = InvokedTransaction;
2409
+ type DeclareContractResponse = DeclaredTransaction;
2410
+ type CallContractResponse = string[];
2411
+ type StorageResponse = RPCSPEC0104.STORAGE_RESULT;
2412
+ type Nonce = string;
2413
+ type SimulationFlags = Array<SIMULATION_FLAG>;
2414
+ type SimulateTransactionOverhead = {
2415
+ transaction_trace: TransactionTrace;
2416
+ } & EstimateFeeResponseOverhead;
2417
+ type SimulateTransactionOverheadResponse = {
2418
+ simulated_transactions: SimulateTransactionOverhead[];
2419
+ initial_reads?: INITIAL_READS;
2420
+ };
2421
+ type PreConfirmedStateUpdate = PRE_CONFIRMED_STATE_UPDATE;
2422
+ type StateUpdate = STATE_UPDATE;
2423
+ type StateUpdateResponse = StateUpdate | PreConfirmedStateUpdate;
2424
+ /**
2425
+ * Standardized type
2426
+ *
2427
+ * Cairo0 program compressed and Cairo1 sierra_program decompressed
2428
+ *
2429
+ * abi Abi
2430
+ *
2431
+ * CompiledSierra without '.sierra_program_debug_info'
2432
+ */
2433
+ type ContractClassResponse = LegacyContractClass | Omit<CompiledSierra, 'sierra_program_debug_info'>;
2434
+
2435
+ /**
2436
+ * The SNIP-29 paymaster members that the paymaster plugin adds to an Account.
2437
+ */
2438
+ interface PaymasterAccountMethods {
2439
+ /**
2440
+ * The paymaster service of the account. The paymaster methods read it at each call, so you can
2441
+ * replace it after the account is created.
2442
+ */
2443
+ paymaster: PaymasterInterface;
2444
+ /**
2445
+ * Build a transaction for paymaster execution
2446
+ *
2447
+ * @param calls - Array of calls to be sponsored
2448
+ * @param paymasterDetails - Paymaster configuration
2449
+ *
2450
+ * @returns Prepared transaction with typed data for signing
2451
+ * @example
2452
+ * ```typescript
2453
+ * const prepared = await account.buildPaymasterTransaction(
2454
+ * calls,
2455
+ * { feeMode: { mode: 'default', gasToken: ETH_ADDRESS } }
2456
+ * );
2457
+ * ```
2458
+ */
2459
+ buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
2460
+ /**
2461
+ * Estimate fees for a paymaster-sponsored transaction
2462
+ *
2463
+ * @param calls - Array of calls to be sponsored
2464
+ * - .contractAddress - Target contract address
2465
+ * - .entrypoint - Function to invoke
2466
+ * - .calldata - Function parameters
2467
+ *
2468
+ * @param paymasterDetails - Paymaster configuration
2469
+ * - .feeMode - Sponsorship mode: 'sponsored' or gas token
2470
+ * - .deploymentData - Account deployment data if needed
2471
+ * - .timeBounds - Valid execution time window
2472
+ *
2473
+ * @returns Fee estimates in both STRK and gas token
2474
+ * @example
2475
+ * ```typescript
2476
+ * const fees = await account.estimatePaymasterTransactionFee(
2477
+ * [{ contractAddress, entrypoint, calldata }],
2478
+ * { feeMode: { mode: 'sponsored' } }
2479
+ * );
2480
+ * ```
2481
+ */
2482
+ estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
2483
+ /**
2484
+ * Signs a transaction prepared by the paymaster, after checking it is safe to sign. The safety
2485
+ * check needs the calls and the fee details the user actually requested, so a caller that uses
2486
+ * this low-level method directly must pass them, the same way `executePaymasterTransaction`
2487
+ * does.
2488
+ * @param preparedTransaction the transaction returned by the paymaster.
2489
+ * @param calls the calls the user requested.
2490
+ * @param paymasterDetails the fee mode and related paymaster details.
2491
+ * @param maxFeeInGasToken optional user-approved ceiling on the gas-token fee.
2492
+ * @returns The transaction to send to the paymaster, with the signed typed data.
2493
+ * @example
2494
+ * ```typescript
2495
+ * const prepared = await account.buildPaymasterTransaction(calls, paymasterDetails);
2496
+ * const executable = await account.preparePaymasterTransaction(
2497
+ * prepared,
2498
+ * calls,
2499
+ * paymasterDetails
2500
+ * );
2501
+ * const { transaction_hash } = await account.paymaster.executeTransaction(
2502
+ * executable,
2503
+ * prepared.parameters
2504
+ * );
2505
+ * ```
2506
+ */
2507
+ preparePaymasterTransaction(preparedTransaction: PreparedTransaction, calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<ExecutableUserTransaction>;
2508
+ /**
2509
+ * Execute a paymaster-sponsored transaction
2510
+ *
2511
+ * @param calls - Array of calls to execute
2512
+ * @param paymasterDetails - Paymaster configuration
2513
+ * - .feeMode - 'sponsored' or gas token payment
2514
+ * - .deploymentData - Deploy account if needed
2515
+ * - .timeBounds - Execution validity window (UNIX timestamps)
2516
+ *
2517
+ * @param maxFeeInGasToken - Maximum acceptable fee in gas token
2518
+ *
2519
+ * @returns Transaction hash if successful
2520
+ * @throws {Error} If gas token price exceeds maxFeeInGasToken
2521
+ * @throws {Error} If transaction parameters are modified by paymaster
2522
+ * @example
2523
+ * ```typescript
2524
+ * const txHash = await account.executePaymasterTransaction(
2525
+ * calls,
2526
+ * { feeMode: { mode: 'sponsored' }, timeBounds: { executeBefore: Date.now()/1000 + 3600 } },
2527
+ * maxFeeETH
2528
+ * );
2529
+ * ```
2530
+ */
2531
+ executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
2532
+ }
2533
+
2377
2534
  declare class PaymasterRpc implements PaymasterInterface {
2378
2535
  nodeUrl: string;
2379
2536
  headers: object;
@@ -2389,6 +2546,30 @@ declare class PaymasterRpc implements PaymasterInterface {
2389
2546
  getSupportedTokens(): Promise<TokenData[]>;
2390
2547
  }
2391
2548
 
2549
+ /**
2550
+ * Paymaster plugin: adds the SNIP-29 paymaster members to an Account. They are `paymaster`,
2551
+ * `buildPaymasterTransaction`, `estimatePaymasterTransactionFee`, `preparePaymasterTransaction`
2552
+ * and `executePaymasterTransaction`. It is a default plugin. It adds nothing to a provider.
2553
+ *
2554
+ * The plugin does not add a method that the account already has: when a subclass of Account
2555
+ * redefines a paymaster method, its method is kept.
2556
+ * @param {PaymasterOptions | PaymasterInterface} [options] The paymaster to use: the options of a
2557
+ * `PaymasterRpc`, or a paymaster instance. Without them, the account uses a public paymaster
2558
+ * service, and no message is logged.
2559
+ * @returns {StarknetPlugin<Record<string, never>, PaymasterAccountMethods>} The plugin.
2560
+ * @example
2561
+ * ```typescript
2562
+ * const myAccount = new Account({
2563
+ * provider: myProvider,
2564
+ * address: accountAddress,
2565
+ * signer: privateKey,
2566
+ * plugins: [fastExecute(), paymasterPlugin({ nodeUrl: 'https://sepolia.paymaster.avnu.fi' })],
2567
+ * });
2568
+ * // myAccount.paymaster.nodeUrl = 'https://sepolia.paymaster.avnu.fi'
2569
+ * ```
2570
+ */
2571
+ declare function paymasterPlugin(options?: PaymasterOptions | PaymasterInterface): StarknetPlugin<Record<string, never>, PaymasterAccountMethods>;
2572
+
2392
2573
  /**
2393
2574
  * Configuration options for creating an Account instance
2394
2575
  */
@@ -2403,7 +2584,10 @@ type AccountOptions = {
2403
2584
  cairoVersion?: CairoVersion;
2404
2585
  /** Transaction version to use for sending transactions (optional) */
2405
2586
  transactionVersion?: SupportedTransactionVersion;
2406
- /** Paymaster configuration for sponsored transactions (optional) */
2587
+ /**
2588
+ * Paymaster configuration for sponsored transactions (optional).
2589
+ * It always installs the paymaster plugin, even with `plugins: false`.
2590
+ */
2407
2591
  paymaster?: PaymasterOptions | PaymasterInterface;
2408
2592
  /** Use of a custom account deployer contract (optional) */
2409
2593
  deployer?: DeployerInterface;
@@ -2436,11 +2620,6 @@ interface UniversalDetails {
2436
2620
  /** Proof for the transaction (RPC 0.10.1+) - base64 encoded string */
2437
2621
  proof?: string;
2438
2622
  }
2439
- interface PaymasterDetails {
2440
- feeMode: FeeMode;
2441
- deploymentData?: PAYMASTER_API.AccountDeploymentData;
2442
- timeBounds?: PaymasterTimeBounds;
2443
- }
2444
2623
  interface DeployContractResponse {
2445
2624
  contract_address: string;
2446
2625
  transaction_hash: string;
@@ -3006,9 +3185,12 @@ interface StarknetPlugin<TProviderMethods extends Record<string, any> = Record<s
3006
3185
  interface PluginConfig {
3007
3186
  /**
3008
3187
  * Plugins to install.
3009
- * - `undefined` (default): install defaultPlugins (starknetId, brotherId)
3188
+ * - `undefined` (default): install defaultPlugins (starknetId, brotherId, fastExecute, paymaster)
3010
3189
  * - explicit array: install exactly these plugins
3011
3190
  * - `false`: no plugins
3191
+ *
3192
+ * On an Account, the `paymaster` option always installs the paymaster plugin, even with `false`
3193
+ * or with a list without it.
3012
3194
  */
3013
3195
  plugins?: StarknetPlugin<any, any>[] | false;
3014
3196
  }
@@ -3901,59 +4083,6 @@ type RpcProviderOptions = {
3901
4083
  batch?: false | number;
3902
4084
  } & PluginConfig;
3903
4085
 
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
4086
  /**
3958
4087
  * Result of provider.getGasPrices().
3959
4088
  * @param {bigint} l1DataGasPrice - price in fri of the layer 1 data gas price.
@@ -8860,7 +8989,7 @@ declare class RpcChannel$2 {
8860
8989
  invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<RPC$1.InvokedTransaction>;
8861
8990
  invokeSignedTx(transaction: RPC$1.INVOKE_TXN_V3): Promise<RPC$1.InvokedTransaction>;
8862
8991
  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>;
8992
+ deployAccount(deployAccountTransaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPC$1.DeployedAccountTransaction | RPC$1.TXN_RECEIPT>;
8864
8993
  callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
8865
8994
  /**
8866
8995
  * NEW: Estimate the fee for a message from L1
@@ -9306,7 +9435,7 @@ declare class RpcProvider implements ProviderInterface {
9306
9435
  getBlockStateUpdate(blockIdentifier?: BlockIdentifier, contractAddresses?: BigNumberish[]): Promise<StateUpdateResponse>;
9307
9436
  getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier, options?: {
9308
9437
  returnInitialReads?: boolean;
9309
- }): Promise<RPC.BlockTransactionsTraces | RPC$1.BlockTransactionsTracesWithInitialReads>;
9438
+ }): Promise<RPC$1.BlockTransactionsTracesWithInitialReads | RPC.BlockTransactionsTraces>;
9310
9439
  getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
9311
9440
  getTransaction(txHash: BigNumberish, options?: {
9312
9441
  includeProofFacts?: boolean;
@@ -9580,7 +9709,7 @@ declare const Provider: typeof RpcProvider;
9580
9709
  */
9581
9710
  type Provider = RpcProvider;
9582
9711
 
9583
- interface Account extends StarknetIdAccountMethods, BrotherIdProviderMethods, FastExecuteAccountMethods {
9712
+ interface Account extends StarknetIdAccountMethods, BrotherIdProviderMethods, FastExecuteAccountMethods, PaymasterAccountMethods {
9584
9713
  }
9585
9714
  declare class Account implements AccountInterface {
9586
9715
  provider: RpcProvider;
@@ -9588,7 +9717,6 @@ declare class Account implements AccountInterface {
9588
9717
  address: string;
9589
9718
  cairoVersion: CairoVersion;
9590
9719
  readonly transactionVersion: typeof ETransactionVersion.V3;
9591
- paymaster: PaymasterInterface;
9592
9720
  deployer: Deployer;
9593
9721
  defaultTipType: TipType;
9594
9722
  /** @internal Account-level plugin management */
@@ -9788,10 +9916,6 @@ declare class Account implements AccountInterface {
9788
9916
  } & DeployAccountContractTransaction) & InvocationsDetailsWithNonce
9789
9917
  ]>;
9790
9918
  accountInvocationsFactory(invocations: Invocations, details: AccountInvocationsFactoryDetails): Promise<AccountInvocations>;
9791
- buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
9792
- estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
9793
- preparePaymasterTransaction(preparedTransaction: PreparedTransaction): Promise<ExecutableUserTransaction>;
9794
- executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
9795
9919
  }
9796
9920
 
9797
9921
  interface StarknetWalletProvider extends StarknetWindowObject {
@@ -13455,9 +13579,12 @@ declare const getDefaultPaymasterNodeUrl: (networkName?: _NetworkName, mute?: bo
13455
13579
  */
13456
13580
  declare function assertCallsAreStrictlyEqual(originalCalls: Call[], unsafeCalls: (OutsideCallV1 | OutsideCallV2)[], isSponsored?: boolean): void;
13457
13581
  /**
13458
- * Asserts that a paymaster-prepared transaction is safe to sign: the typed-data domain is
13459
- * bound to the account's own chain, and — for non-sponsored transactions — the calls and the
13460
- * appended gas-token transfer match what the user actually requested.
13582
+ * Asserts that a paymaster-prepared transaction is safe to sign. It checks that the typed-data
13583
+ * domain is bound to the account's own chain, and — for non-sponsored transactions — that the
13584
+ * calls and the appended gas-token transfer match what the user asked for. It then rebuilds the
13585
+ * outside execution it expects, from its own SNIP-9 shape and the user's own calls, and checks
13586
+ * that the hash the account would sign is that outside execution and nothing else. When the user
13587
+ * gave time bounds, the signed window must stay inside them.
13461
13588
  * @param {PreparedTransaction} preparedTransaction - The transaction returned by the paymaster.
13462
13589
  * @param {Call[]} calls - The calls originally requested by the user.
13463
13590
  * @param {PaymasterDetails} paymasterDetails - The fee mode and related paymaster details.
@@ -13477,11 +13604,11 @@ declare function assertCallsAreStrictlyEqual(originalCalls: Call[], unsafeCalls:
13477
13604
  */
13478
13605
  declare const assertPaymasterTransactionSafety: (preparedTransaction: PreparedTransaction, calls: Call[], paymasterDetails: PaymasterDetails, chainId: _StarknetChainId, maxFeeInGasToken?: BigNumberish) => void;
13479
13606
 
13480
- declare const paymaster_assertCallsAreStrictlyEqual: typeof assertCallsAreStrictlyEqual;
13481
- declare const paymaster_assertPaymasterTransactionSafety: typeof assertPaymasterTransactionSafety;
13482
- declare const paymaster_getDefaultPaymasterNodeUrl: typeof getDefaultPaymasterNodeUrl;
13483
- declare namespace paymaster {
13484
- export { paymaster_assertCallsAreStrictlyEqual as assertCallsAreStrictlyEqual, paymaster_assertPaymasterTransactionSafety as assertPaymasterTransactionSafety, paymaster_getDefaultPaymasterNodeUrl as getDefaultPaymasterNodeUrl };
13607
+ declare const utils_assertCallsAreStrictlyEqual: typeof assertCallsAreStrictlyEqual;
13608
+ declare const utils_assertPaymasterTransactionSafety: typeof assertPaymasterTransactionSafety;
13609
+ declare const utils_getDefaultPaymasterNodeUrl: typeof getDefaultPaymasterNodeUrl;
13610
+ declare namespace utils {
13611
+ export { utils_assertCallsAreStrictlyEqual as assertCallsAreStrictlyEqual, utils_assertPaymasterTransactionSafety as assertPaymasterTransactionSafety, utils_getDefaultPaymasterNodeUrl as getDefaultPaymasterNodeUrl };
13485
13612
  }
13486
13613
 
13487
13614
  /**
@@ -13772,6 +13899,8 @@ declare namespace index {
13772
13899
  declare function toOutsideCallV2(call: OutsideCallV1 | OutsideCallV2): OutsideCallV2;
13773
13900
  /**
13774
13901
  * Converts a Call object to an OutsideCall object that can be used for an Outside Execution.
13902
+ * The calldata follows the rule of `account.execute()`: a calldata marked as compiled is kept as
13903
+ * it is, and any other calldata is a list or an object of parameters, which is flattened.
13775
13904
  * @param {Call} call transaction to proceed.
13776
13905
  * @returns {OutsideCall} transaction formatted in conformity to SNIP-9
13777
13906
  * @example
@@ -18383,4 +18512,4 @@ declare class Logger {
18383
18512
  */
18384
18513
  declare const logger: Logger;
18385
18514
 
18386
- 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 };
18515
+ 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 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 };