starknet 8.0.0-beta.2 → 8.0.0-beta.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,20 @@
1
+ # [8.0.0-beta.3](https://github.com/starknet-io/starknet.js/compare/v8.0.0-beta.2...v8.0.0-beta.3) (2025-07-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ - change DeclareDeployDCResponse name to DeclareDeployUDCResponse ([6498b8b](https://github.com/starknet-io/starknet.js/commit/6498b8b0bbd137658862422031132073f1c42ac3))
6
+ - devenet ([3b2be9d](https://github.com/starknet-io/starknet.js/commit/3b2be9d46beec4931eb96183c0985e0f607e5713))
7
+ - export Deployer, remove old helper parseUDCEvent, fix some tests imports ([c2d0d55](https://github.com/starknet-io/starknet.js/commit/c2d0d5508239f164ec538707bd19625c70dcb604))
8
+ - remove helper buildUDCCall ([d299f7b](https://github.com/starknet-io/starknet.js/commit/d299f7b3b175c265b218c2d182762ee38f3aa27a))
9
+ - removed duplicated buildDeployerContractPayload ([e7b728d](https://github.com/starknet-io/starknet.js/commit/e7b728ddc6e5e9e3cffea941f4dcc6e20d8df1ff))
10
+ - type problem in tests, due to merge in v8 ([fd49e8a](https://github.com/starknet-io/starknet.js/commit/fd49e8af3051b31f105cc82767248b7832df8130))
11
+ - use new entrypoint on the new UDC ([992ee09](https://github.com/starknet-io/starknet.js/commit/992ee09e08533efb3a12ff91abc0fca2acb552f2))
12
+
13
+ ### Features
14
+
15
+ - add custom Deployer in Account constructor ([7d62e20](https://github.com/starknet-io/starknet.js/commit/7d62e202c3bab698e383a2128f117675f30f38f7))
16
+ - update packages ([a52db43](https://github.com/starknet-io/starknet.js/commit/a52db430f10dd00e04844933c46e400abb8a2833))
17
+
1
18
  # [8.0.0-beta.2](https://github.com/starknet-io/starknet.js/compare/v8.0.0-beta.1...v8.0.0-beta.2) (2025-07-21)
2
19
 
3
20
  ### Features
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as RPC from '@starknet-io/starknet-types-09';
2
- import { CONTRACT, ETransactionType, EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_TAG, IsType, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, BLOCK_WITH_TX_HASHES, OutsideExecutionTypedData, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, ETransactionVersion3 as ETransactionVersion3$1, BlockHash, TransactionHash, 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, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, SUBSCRIPTION_ID as SUBSCRIPTION_ID$1, BLOCK_STATUS, BLOCK_HEADER as BLOCK_HEADER$1, BLOCK_BODY_WITH_TX_HASHES, PRE_CONFIRMED_BLOCK_HEADER, BLOCK_BODY_WITH_TXS, BLOCK_BODY_WITH_RECEIPTS, BlockTransactionsTraces, TXN_STATUS_RESULT, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, StarknetType, StarknetMerkleType, TypedDataRevision, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Address, Permission, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion } from '@starknet-io/starknet-types-09';
2
+ import { CONTRACT, ETransactionType, EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_TAG, IsSucceeded, TransactionReceipt as TransactionReceipt$1, IsReverted, BLOCK_WITH_TX_HASHES, IsType, OutsideExecutionTypedData, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, ETransactionVersion3 as ETransactionVersion3$1, BlockHash, TransactionHash, 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, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, SUBSCRIPTION_ID as SUBSCRIPTION_ID$1, BLOCK_STATUS, BLOCK_HEADER as BLOCK_HEADER$1, BLOCK_BODY_WITH_TX_HASHES, PRE_CONFIRMED_BLOCK_HEADER, BLOCK_BODY_WITH_TXS, BLOCK_BODY_WITH_RECEIPTS, BlockTransactionsTraces, TXN_STATUS_RESULT, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, StarknetType, StarknetMerkleType, TypedDataRevision, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Address, Permission, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion } from '@starknet-io/starknet-types-09';
3
3
  export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-09';
4
4
  import * as RPCSPEC08 from '@starknet-io/starknet-types-08';
5
5
  import { PAYMASTER_API } from '@starknet-io/starknet-types-08';
@@ -56,18 +56,18 @@ type WebSocketEvent = Omit<RequestBody, 'id'> & {
56
56
  params: {};
57
57
  };
58
58
 
59
- type index$4_ErrorResponseBody = ErrorResponseBody;
60
- type index$4_RequestBody = RequestBody;
61
- type index$4_ResponseBody = ResponseBody;
62
- type index$4_SuccessResponseBody = SuccessResponseBody;
63
- type index$4_WebSocketEvent = WebSocketEvent;
64
- declare namespace index$4 {
65
- export type { Error$1 as Error, index$4_ErrorResponseBody as ErrorResponseBody, index$4_RequestBody as RequestBody, index$4_ResponseBody as ResponseBody, index$4_SuccessResponseBody as SuccessResponseBody, index$4_WebSocketEvent as WebSocketEvent };
59
+ type index$5_ErrorResponseBody = ErrorResponseBody;
60
+ type index$5_RequestBody = RequestBody;
61
+ type index$5_ResponseBody = ResponseBody;
62
+ type index$5_SuccessResponseBody = SuccessResponseBody;
63
+ type index$5_WebSocketEvent = WebSocketEvent;
64
+ declare namespace index$5 {
65
+ export type { Error$1 as Error, index$5_ErrorResponseBody as ErrorResponseBody, index$5_RequestBody as RequestBody, index$5_ResponseBody as ResponseBody, index$5_SuccessResponseBody as SuccessResponseBody, index$5_WebSocketEvent as WebSocketEvent };
66
66
  }
67
67
 
68
- var index$3 = /*#__PURE__*/_mergeNamespaces({
68
+ var index$4 = /*#__PURE__*/_mergeNamespaces({
69
69
  __proto__: null,
70
- JRPC: index$4,
70
+ JRPC: index$5,
71
71
  PAYMASTER_API: PAYMASTER_API,
72
72
  RPCSPEC08: RPCSPEC08,
73
73
  RPCSPEC09: RPC
@@ -600,7 +600,6 @@ declare const BlockStatus: {
600
600
  readonly PRE_CONFIRMED: "PRE_CONFIRMED";
601
601
  readonly ACCEPTED_ON_L2: "ACCEPTED_ON_L2";
602
602
  readonly ACCEPTED_ON_L1: "ACCEPTED_ON_L1";
603
- readonly REJECTED: "REJECTED";
604
603
  };
605
604
  type TransactionFinalityStatus = RPC.ETransactionFinalityStatus;
606
605
  declare const TransactionFinalityStatus: {
@@ -617,6 +616,7 @@ type BlockTag = RPC.EBlockTag;
617
616
  declare const BlockTag: {
618
617
  readonly LATEST: "latest";
619
618
  readonly PRE_CONFIRMED: "pre_confirmed";
619
+ readonly L1_ACCEPTED: "l1_accepted";
620
620
  };
621
621
 
622
622
  type WeierstrassSignatureType = weierstrass.SignatureType;
@@ -904,6 +904,10 @@ type EstimateFeeResponseOverhead = {
904
904
  overall_fee: bigint;
905
905
  unit: PRICE_UNIT;
906
906
  };
907
+ /**
908
+ * same type as EstimateFeeResponseOverhead but without overhead
909
+ */
910
+ type EstimateFeeResponse = EstimateFeeResponseOverhead;
907
911
  type EstimateFeeResponseBulkOverhead = Array<EstimateFeeResponseOverhead>;
908
912
  type InvokeFunctionResponse = InvokedTransaction;
909
913
  type DeclareContractResponse = DeclaredTransaction;
@@ -2330,6 +2334,61 @@ declare abstract class ProviderInterface {
2330
2334
  abstract getEstimateTip(blockIdentifier?: BlockIdentifier, options?: TipAnalysisOptions): Promise<TipEstimate>;
2331
2335
  }
2332
2336
 
2337
+ /**
2338
+ * Interface for Deployer contract payload
2339
+ */
2340
+ type DeployerCall = {
2341
+ /** an array of Call */
2342
+ calls: Call[];
2343
+ /** an array of addresses made of hex string */
2344
+ addresses: string[];
2345
+ };
2346
+ type DeployContractUDCResponse = {
2347
+ contract_address: string;
2348
+ transaction_hash: string;
2349
+ address: string;
2350
+ deployer: string;
2351
+ unique: string;
2352
+ classHash: string;
2353
+ calldata_len: string;
2354
+ calldata: Array<string>;
2355
+ salt: string;
2356
+ };
2357
+
2358
+ declare abstract class DeployerInterface {
2359
+ /** address of the deployer contract */
2360
+ abstract readonly address: BigNumberish;
2361
+ /** ascii name of the function that deploy a contract */
2362
+ abstract readonly entryPoint: string;
2363
+ /**
2364
+ * Build a Deployer Call with payload and address
2365
+ * @param {UniversalDeployerContractPayload | UniversalDeployerContractPayload[]} payload the payload data for the deployer Call. Can be a single payload object or an array of payload objects.
2366
+ * @param {string} address the address to be used in the deployer Call
2367
+ * @returns {DeployerCall} an object with Calls & addresses
2368
+ */
2369
+ abstract buildDeployerCall(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], address: string): DeployerCall;
2370
+ /**
2371
+ * Parse Transaction Receipt Event from a Deployer contract transaction and
2372
+ * create DeployContractResponse compatible response with addition of the Deployer Event data
2373
+ * @param {InvokeTransactionReceiptResponse} txReceipt Transaction receipt
2374
+ * @param {DeployerDefinition} deployer Deployer contract definition
2375
+ *
2376
+ * @returns {DeployContractUDCResponse} parsed Deployer event data
2377
+ */
2378
+ abstract parseDeployerEvent(txReceipt: InvokeTransactionReceiptResponse): DeployContractUDCResponse;
2379
+ }
2380
+
2381
+ declare class Deployer implements DeployerInterface {
2382
+ readonly address: BigNumberish;
2383
+ readonly entryPoint: string;
2384
+ constructor(address?: BigNumberish, entryPoint?: string);
2385
+ buildDeployerCall(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], address: string): DeployerCall;
2386
+ parseDeployerEvent(txReceipt: InvokeTransactionReceiptResponse): DeployContractUDCResponse;
2387
+ }
2388
+
2389
+ declare const defaultDeployer: Deployer;
2390
+ declare const legacyDeployer: Deployer;
2391
+
2333
2392
  /**
2334
2393
  * Verify in Starknet a signature of a TypedData object or of a given hash.
2335
2394
  * @param {ProviderInterface} provider - The provider to use for the verification.
@@ -2371,6 +2430,8 @@ type AccountOptions = {
2371
2430
  transactionVersion?: SupportedTransactionVersion;
2372
2431
  /** Paymaster configuration for sponsored transactions (optional) */
2373
2432
  paymaster?: PaymasterOptions | PaymasterInterface;
2433
+ /** Use of a custom account deployer contract (optional) */
2434
+ deployer?: DeployerInterface;
2374
2435
  /**
2375
2436
  * Default tip type to use for sending transactions (optional)
2376
2437
  * @default 'recommendedTip'
@@ -2411,17 +2472,6 @@ type MultiDeployContractResponse = {
2411
2472
  contract_address: Array<string>;
2412
2473
  transaction_hash: string;
2413
2474
  };
2414
- type DeployContractUDCResponse = {
2415
- contract_address: string;
2416
- transaction_hash: string;
2417
- address: string;
2418
- deployer: string;
2419
- unique: string;
2420
- classHash: string;
2421
- calldata_len: string;
2422
- calldata: Array<string>;
2423
- salt: string;
2424
- };
2425
2475
  type DeclareDeployUDCResponse = {
2426
2476
  declare: {
2427
2477
  class_hash: BigNumberish;
@@ -2541,8 +2591,8 @@ declare abstract class AccountInterface extends ProviderInterface {
2541
2591
  */
2542
2592
  abstract estimateAccountDeployFee(contractPayload: DeployAccountContractPayload, estimateFeeDetails?: EstimateFeeDetails): Promise<EstimateFeeResponseOverhead>;
2543
2593
  /**
2544
- * Estimate Fee for executing a UDC DEPLOY transaction on starknet
2545
- * This is different from the normal DEPLOY transaction as it goes through the Universal Deployer Contract (UDC)
2594
+ * Estimate Fee for executing a Deployer DEPLOY transaction on starknet
2595
+ * This is different from the normal DEPLOY transaction as it goes through a Deployer Contract
2546
2596
 
2547
2597
  * @param deployContractPayload array or singular
2548
2598
  * - classHash: computed class hash of compiled contract
@@ -2676,7 +2726,7 @@ declare abstract class AccountInterface extends ProviderInterface {
2676
2726
  */
2677
2727
  abstract declare(contractPayload: DeclareContractPayload, transactionsDetail?: InvocationsDetails): Promise<DeclareContractResponse>;
2678
2728
  /**
2679
- * Deploys a declared contract to starknet - using Universal Deployer Contract (UDC)
2729
+ * Deploys a declared contract to starknet - using a Deployer Contract
2680
2730
  * support multicall
2681
2731
  *
2682
2732
  * @param payload -
@@ -2692,7 +2742,7 @@ declare abstract class AccountInterface extends ProviderInterface {
2692
2742
  */
2693
2743
  abstract deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], details?: InvocationsDetails): Promise<MultiDeployContractResponse>;
2694
2744
  /**
2695
- * Simplify deploy simulating old DeployContract with same response + UDC specific response
2745
+ * Simplify deploy simulating old DeployContract with same response + Deployer specific response
2696
2746
  * Internal wait for L2 transaction, support multicall
2697
2747
  *
2698
2748
  * @param payload -
@@ -2715,7 +2765,7 @@ declare abstract class AccountInterface extends ProviderInterface {
2715
2765
  */
2716
2766
  abstract deployContract(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], details?: InvocationsDetails): Promise<DeployContractUDCResponse>;
2717
2767
  /**
2718
- * Declares and Deploy a given compiled contract (json) to starknet using UDC
2768
+ * Declares and Deploy a given compiled contract (json) to starknet using a Deployer.
2719
2769
  * Internal wait for L2 transaction, do not support multicall
2720
2770
  * Method will pass even if contract is already declared (internal using DeclareIfNot)
2721
2771
  *
@@ -2824,7 +2874,7 @@ type ExecuteOptions = Pick<CommonContractOptions, 'parseRequest'> & {
2824
2874
  */
2825
2875
  signature?: Signature;
2826
2876
  /**
2827
- * UDC salt
2877
+ * Deployer contract salt
2828
2878
  */
2829
2879
  salt?: string;
2830
2880
  } & Partial<UniversalDetails>;
@@ -3277,10 +3327,14 @@ declare const RANGE_U128: {
3277
3327
  readonly min: bigint;
3278
3328
  readonly max: bigint;
3279
3329
  };
3280
- declare const UDC: {
3330
+ declare const LegacyUDC: {
3281
3331
  readonly ADDRESS: "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf";
3282
3332
  readonly ENTRYPOINT: "deployContract";
3283
3333
  };
3334
+ declare const UDC: {
3335
+ readonly ADDRESS: "0x02ceed65a4bd731034c01113685c831b01c15d7d432f71afb1cf1634b53a2125";
3336
+ readonly ENTRYPOINT: "deploy_contract";
3337
+ };
3284
3338
  declare const OutsideExecutionCallerAny = "0x414e595f43414c4c4552";
3285
3339
  declare const SNIP9_V1_INTERFACE_ID = "0x68cfd18b92d1907b8ba3cc324900277f5a3622099431ea85dd8089255e4181";
3286
3340
  declare const SNIP9_V2_INTERFACE_ID = "0x1d1144bb2138366ff28d8e9ab57456b1d332ac42196230c3a602003c89872";
@@ -3360,6 +3414,7 @@ declare const constants_DEFAULT_GLOBAL_CONFIG: typeof DEFAULT_GLOBAL_CONFIG;
3360
3414
  declare const constants_HARDENING_4BYTES: typeof HARDENING_4BYTES;
3361
3415
  declare const constants_HARDENING_BYTE: typeof HARDENING_BYTE;
3362
3416
  declare const constants_IS_BROWSER: typeof IS_BROWSER;
3417
+ declare const constants_LegacyUDC: typeof LegacyUDC;
3363
3418
  declare const constants_MASK_250: typeof MASK_250;
3364
3419
  declare const constants_MASK_31: typeof MASK_31;
3365
3420
  declare const constants_MAX_STORAGE_ITEM_SIZE: typeof MAX_STORAGE_ITEM_SIZE;
@@ -3379,7 +3434,7 @@ declare const constants_TEXT_TO_FELT_MAX_LEN: typeof TEXT_TO_FELT_MAX_LEN;
3379
3434
  declare const constants_UDC: typeof UDC;
3380
3435
  declare const constants_ZERO: typeof ZERO;
3381
3436
  declare namespace constants {
3382
- export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, _BaseUrl as BaseUrl, constants_DEFAULT_GLOBAL_CONFIG as DEFAULT_GLOBAL_CONFIG, constants_HARDENING_4BYTES as HARDENING_4BYTES, constants_HARDENING_BYTE as HARDENING_BYTE, constants_IS_BROWSER as IS_BROWSER, constants_MASK_250 as MASK_250, constants_MASK_31 as MASK_31, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, _NetworkName as NetworkName, constants_OutsideExecutionCallerAny as OutsideExecutionCallerAny, constants_PAYMASTER_RPC_NODES as PAYMASTER_RPC_NODES, constants_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_U128 as RANGE_U128, constants_RPC_DEFAULT_NODES as RPC_DEFAULT_NODES, constants_SNIP9_V1_INTERFACE_ID as SNIP9_V1_INTERFACE_ID, constants_SNIP9_V2_INTERFACE_ID as SNIP9_V2_INTERFACE_ID, constants_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, type constants_SupportedCairoVersion as SupportedCairoVersion, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedTransactionVersion as SupportedTransactionVersion, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, _TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
3437
+ export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, _BaseUrl as BaseUrl, constants_DEFAULT_GLOBAL_CONFIG as DEFAULT_GLOBAL_CONFIG, constants_HARDENING_4BYTES as HARDENING_4BYTES, constants_HARDENING_BYTE as HARDENING_BYTE, constants_IS_BROWSER as IS_BROWSER, constants_LegacyUDC as LegacyUDC, constants_MASK_250 as MASK_250, constants_MASK_31 as MASK_31, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, _NetworkName as NetworkName, constants_OutsideExecutionCallerAny as OutsideExecutionCallerAny, constants_PAYMASTER_RPC_NODES as PAYMASTER_RPC_NODES, constants_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_U128 as RANGE_U128, constants_RPC_DEFAULT_NODES as RPC_DEFAULT_NODES, constants_SNIP9_V1_INTERFACE_ID as SNIP9_V1_INTERFACE_ID, constants_SNIP9_V2_INTERFACE_ID as SNIP9_V2_INTERFACE_ID, constants_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, type constants_SupportedCairoVersion as SupportedCairoVersion, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedTransactionVersion as SupportedTransactionVersion, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, _TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
3383
3438
  }
3384
3439
 
3385
3440
  declare class RpcChannel$1 {
@@ -4226,6 +4281,7 @@ declare class Account extends RpcProvider implements AccountInterface {
4226
4281
  cairoVersion: CairoVersion;
4227
4282
  readonly transactionVersion: typeof ETransactionVersion.V3;
4228
4283
  paymaster: PaymasterInterface;
4284
+ deployer: Deployer;
4229
4285
  defaultTipType: string;
4230
4286
  constructor(options: AccountOptions);
4231
4287
  /** @deprecated @hidden */
@@ -4244,10 +4300,6 @@ declare class Account extends RpcProvider implements AccountInterface {
4244
4300
  estimateFeeBulk(invocations: Invocations, details?: UniversalDetails): Promise<EstimateFeeBulk>;
4245
4301
  simulateTransaction(invocations: Invocations, details?: SimulateTransactionDetails): Promise<SimulateTransactionOverheadResponse>;
4246
4302
  execute(transactions: AllowArray<Call>, transactionsDetail?: UniversalDetails): Promise<InvokeFunctionResponse>;
4247
- buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
4248
- estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
4249
- preparePaymasterTransaction(preparedTransaction: PreparedTransaction): Promise<ExecutableUserTransaction>;
4250
- executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
4251
4303
  /**
4252
4304
  * First check if contract is already declared, if not declare it
4253
4305
  * If contract already declared returned transaction_hash is ''.
@@ -4342,11 +4394,30 @@ declare class Account extends RpcProvider implements AccountInterface {
4342
4394
  * ```
4343
4395
  */
4344
4396
  executeFromOutside(outsideTransaction: AllowArray<OutsideTransaction>, opts?: UniversalDetails): Promise<InvokeFunctionResponse>;
4397
+ /**
4398
+ * Helper method to resolve details with tip estimation
4399
+ * @private
4400
+ */
4401
+ private resolveDetailsWithTip;
4402
+ /**
4403
+ * Helper method to resolve transaction version
4404
+ * @private
4405
+ */
4406
+ private resolveTransactionVersion;
4345
4407
  buildInvocation(call: Array<Call>, details: InvocationsSignerDetails): Promise<Invocation>;
4346
4408
  buildDeclarePayload(payload: DeclareContractPayload, details: InvocationsSignerDetails): Promise<DeclareContractTransaction>;
4347
4409
  buildAccountDeployPayload({ classHash, addressSalt, constructorCalldata, contractAddress: providedContractAddress, }: DeployAccountContractPayload, details: InvocationsSignerDetails): Promise<DeployAccountContractTransaction>;
4348
- buildUDCContractPayload(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Call[];
4349
4410
  accountInvocationsFactory(invocations: Invocations, details: AccountInvocationsFactoryDetails): Promise<AccountInvocations>;
4411
+ buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
4412
+ estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
4413
+ preparePaymasterTransaction(preparedTransaction: PreparedTransaction): Promise<ExecutableUserTransaction>;
4414
+ executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
4415
+ /**
4416
+ * Get the Starknet ID for an address
4417
+ * @param address - The address to get the Starknet ID for
4418
+ * @param StarknetIdContract - The Starknet ID contract address (optional)
4419
+ * @returns The Starknet ID for the address
4420
+ */
4350
4421
  getStarkName(address?: BigNumberish, // default to the wallet address
4351
4422
  StarknetIdContract?: string): Promise<string>;
4352
4423
  }
@@ -4951,30 +5022,30 @@ declare function computeContractClassHash(contract: CompiledContract | string):
4951
5022
  * Hashes Exports
4952
5023
  */
4953
5024
 
4954
- declare const index$2_calculateContractAddressFromHash: typeof calculateContractAddressFromHash;
4955
- declare const index$2_calculateL2MessageTxHash: typeof calculateL2MessageTxHash;
4956
- declare const index$2_computeCompiledClassHash: typeof computeCompiledClassHash;
4957
- declare const index$2_computeContractClassHash: typeof computeContractClassHash;
4958
- declare const index$2_computeHashOnElements: typeof computeHashOnElements;
4959
- declare const index$2_computeHintedClassHash: typeof computeHintedClassHash;
4960
- declare const index$2_computeLegacyContractClassHash: typeof computeLegacyContractClassHash;
4961
- declare const index$2_computePedersenHash: typeof computePedersenHash;
4962
- declare const index$2_computePedersenHashOnElements: typeof computePedersenHashOnElements;
4963
- declare const index$2_computePoseidonHash: typeof computePoseidonHash;
4964
- declare const index$2_computePoseidonHashOnElements: typeof computePoseidonHashOnElements;
4965
- declare const index$2_computeSierraContractClassHash: typeof computeSierraContractClassHash;
4966
- declare const index$2_formatSpaces: typeof formatSpaces;
4967
- declare const index$2_getL1MessageHash: typeof getL1MessageHash;
4968
- declare const index$2_getL2MessageHash: typeof getL2MessageHash;
4969
- declare const index$2_getSelector: typeof getSelector;
4970
- declare const index$2_getSelectorFromName: typeof getSelectorFromName;
4971
- declare const index$2_hashByteCodeSegments: typeof hashByteCodeSegments;
4972
- declare const index$2_keccakBn: typeof keccakBn;
4973
- declare const index$2_poseidon: typeof poseidon;
4974
- declare const index$2_solidityUint256PackedKeccak256: typeof solidityUint256PackedKeccak256;
4975
- declare const index$2_starknetKeccak: typeof starknetKeccak;
4976
- declare namespace index$2 {
4977
- export { index$2_calculateContractAddressFromHash as calculateContractAddressFromHash, calculateDeclareTransactionHash$1 as calculateDeclareTransactionHash, calculateDeployAccountTransactionHash$1 as calculateDeployAccountTransactionHash, calculateInvokeTransactionHash$1 as calculateInvokeTransactionHash, index$2_calculateL2MessageTxHash as calculateL2MessageTxHash, index$2_computeCompiledClassHash as computeCompiledClassHash, index$2_computeContractClassHash as computeContractClassHash, index$2_computeHashOnElements as computeHashOnElements, index$2_computeHintedClassHash as computeHintedClassHash, index$2_computeLegacyContractClassHash as computeLegacyContractClassHash, index$2_computePedersenHash as computePedersenHash, index$2_computePedersenHashOnElements as computePedersenHashOnElements, index$2_computePoseidonHash as computePoseidonHash, index$2_computePoseidonHashOnElements as computePoseidonHashOnElements, index$2_computeSierraContractClassHash as computeSierraContractClassHash, index$2_formatSpaces as formatSpaces, index$2_getL1MessageHash as getL1MessageHash, index$2_getL2MessageHash as getL2MessageHash, index$2_getSelector as getSelector, index$2_getSelectorFromName as getSelectorFromName, index$2_hashByteCodeSegments as hashByteCodeSegments, index$2_keccakBn as keccakBn, index$2_poseidon as poseidon, index$2_solidityUint256PackedKeccak256 as solidityUint256PackedKeccak256, index$2_starknetKeccak as starknetKeccak };
5025
+ declare const index$3_calculateContractAddressFromHash: typeof calculateContractAddressFromHash;
5026
+ declare const index$3_calculateL2MessageTxHash: typeof calculateL2MessageTxHash;
5027
+ declare const index$3_computeCompiledClassHash: typeof computeCompiledClassHash;
5028
+ declare const index$3_computeContractClassHash: typeof computeContractClassHash;
5029
+ declare const index$3_computeHashOnElements: typeof computeHashOnElements;
5030
+ declare const index$3_computeHintedClassHash: typeof computeHintedClassHash;
5031
+ declare const index$3_computeLegacyContractClassHash: typeof computeLegacyContractClassHash;
5032
+ declare const index$3_computePedersenHash: typeof computePedersenHash;
5033
+ declare const index$3_computePedersenHashOnElements: typeof computePedersenHashOnElements;
5034
+ declare const index$3_computePoseidonHash: typeof computePoseidonHash;
5035
+ declare const index$3_computePoseidonHashOnElements: typeof computePoseidonHashOnElements;
5036
+ declare const index$3_computeSierraContractClassHash: typeof computeSierraContractClassHash;
5037
+ declare const index$3_formatSpaces: typeof formatSpaces;
5038
+ declare const index$3_getL1MessageHash: typeof getL1MessageHash;
5039
+ declare const index$3_getL2MessageHash: typeof getL2MessageHash;
5040
+ declare const index$3_getSelector: typeof getSelector;
5041
+ declare const index$3_getSelectorFromName: typeof getSelectorFromName;
5042
+ declare const index$3_hashByteCodeSegments: typeof hashByteCodeSegments;
5043
+ declare const index$3_keccakBn: typeof keccakBn;
5044
+ declare const index$3_poseidon: typeof poseidon;
5045
+ declare const index$3_solidityUint256PackedKeccak256: typeof solidityUint256PackedKeccak256;
5046
+ declare const index$3_starknetKeccak: typeof starknetKeccak;
5047
+ declare namespace index$3 {
5048
+ export { index$3_calculateContractAddressFromHash as calculateContractAddressFromHash, calculateDeclareTransactionHash$1 as calculateDeclareTransactionHash, calculateDeployAccountTransactionHash$1 as calculateDeployAccountTransactionHash, calculateInvokeTransactionHash$1 as calculateInvokeTransactionHash, index$3_calculateL2MessageTxHash as calculateL2MessageTxHash, index$3_computeCompiledClassHash as computeCompiledClassHash, index$3_computeContractClassHash as computeContractClassHash, index$3_computeHashOnElements as computeHashOnElements, index$3_computeHintedClassHash as computeHintedClassHash, index$3_computeLegacyContractClassHash as computeLegacyContractClassHash, index$3_computePedersenHash as computePedersenHash, index$3_computePedersenHashOnElements as computePedersenHashOnElements, index$3_computePoseidonHash as computePoseidonHash, index$3_computePoseidonHashOnElements as computePoseidonHashOnElements, index$3_computeSierraContractClassHash as computeSierraContractClassHash, index$3_formatSpaces as formatSpaces, index$3_getL1MessageHash as getL1MessageHash, index$3_getL2MessageHash as getL2MessageHash, index$3_getSelector as getSelector, index$3_getSelectorFromName as getSelectorFromName, index$3_hashByteCodeSegments as hashByteCodeSegments, index$3_keccakBn as keccakBn, index$3_poseidon as poseidon, index$3_solidityUint256PackedKeccak256 as solidityUint256PackedKeccak256, index$3_starknetKeccak as starknetKeccak };
4978
5049
  }
4979
5050
 
4980
5051
  /**
@@ -5397,6 +5468,11 @@ declare namespace num {
5397
5468
  export { num_addPercent as addPercent, num_assertInRange as assertInRange, num_bigNumberishArrayToDecimalStringArray as bigNumberishArrayToDecimalStringArray, num_bigNumberishArrayToHexadecimalStringArray as bigNumberishArrayToHexadecimalStringArray, num_cleanHex as cleanHex, num_getDecimalString as getDecimalString, num_getHexString as getHexString, num_getHexStringArray as getHexStringArray, num_hexToBytes as hexToBytes, num_hexToDecimalString as hexToDecimalString, num_isBigNumberish as isBigNumberish, num_isHex as isHex, num_isStringWholeNumber as isStringWholeNumber, num_stringToSha256ToArrayBuff4 as stringToSha256ToArrayBuff4, num_toBigInt as toBigInt, num_toCairoBool as toCairoBool, num_toHex as toHex, num_toHex64 as toHex64, num_toHexString as toHexString, num_toStorageKey as toStorageKey, num_tryToBigInt as tryToBigInt };
5398
5469
  }
5399
5470
 
5471
+ /**
5472
+ * Extract compiled calldata from args or execute callback
5473
+ */
5474
+ declare function getCompiledCalldata(constructorArguments: RawArgs, callback: Function): Calldata;
5475
+
5400
5476
  /**
5401
5477
  * Transforms a list of Calls, each with their own calldata, into
5402
5478
  * two arrays: one with the entry points, and one with the concatenated calldata
@@ -5513,45 +5589,6 @@ declare const fromCallsToExecuteCalldata_cairo1: (calls: Call[]) => Calldata;
5513
5589
  * ```
5514
5590
  */
5515
5591
  declare const getExecuteCalldata: (calls: Call[], cairoVersion?: CairoVersion) => Calldata;
5516
- /**
5517
- * Extract compiled calldata from args or execute callback
5518
- */
5519
- declare function getCompiledCalldata(constructorArguments: RawArgs, callback: Function): Calldata;
5520
- /**
5521
- * Builds a UDCCall object.
5522
- *
5523
- * @param {UniversalDeployerContractPayload | UniversalDeployerContractPayload[]} payload the payload data for the UDCCall. Can be a single payload object or an array of payload objects.
5524
- * @param {string} address the address to be used in the UDCCall
5525
- * @returns { calls: Call[], addresses: string[] } the UDCCall object containing an array of calls and an array of addresses.
5526
- * @example
5527
- * ```typescript
5528
- * const payload: UniversalDeployerContractPayload = {
5529
- * classHash: "0x1234567890123456789012345678901234567890",
5530
- * salt: "0x0987654321098765432109876543210987654321",
5531
- * unique:true,
5532
- * constructorCalldata: [1, 2, 3]
5533
- * };
5534
- * const address = "0xABCDEF1234567890ABCDEF1234567890ABCDEF12";
5535
- * const result = transaction.buildUDCCall(payload, address);
5536
- * // result = {
5537
- * // calls: [
5538
- * // {
5539
- * // contractAddress: "0xABCDEF1234567890ABCDEF1234567890ABCDEF12",
5540
- * // entrypoint: "functionName",
5541
- * // calldata: [classHash, salt, true, 3, 1, 2, 3]
5542
- * // }],
5543
- * // addresses: ["0x6fD084B56a7EDc5C06B3eB40f97Ae5A0C707A865"]
5544
- * // }
5545
- * ```
5546
- */
5547
- declare function buildUDCCall(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], address: string): {
5548
- calls: {
5549
- contractAddress: "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf";
5550
- entrypoint: "deployContract";
5551
- calldata: BigNumberish[];
5552
- }[];
5553
- addresses: string[];
5554
- };
5555
5592
  /**
5556
5593
  * Return transaction versions based on version type, default version type is 'transaction'.
5557
5594
  * @param {'fee' | 'transaction'} [versionType] the type of version ("fee" or "transaction")
@@ -5572,15 +5609,14 @@ declare function getVersionsByType(versionType?: 'fee' | 'transaction'): {
5572
5609
  v3: "0x3";
5573
5610
  };
5574
5611
 
5575
- declare const transaction_buildUDCCall: typeof buildUDCCall;
5576
- declare const transaction_fromCallsToExecuteCalldata: typeof fromCallsToExecuteCalldata;
5577
- declare const transaction_fromCallsToExecuteCalldata_cairo1: typeof fromCallsToExecuteCalldata_cairo1;
5578
- declare const transaction_getCompiledCalldata: typeof getCompiledCalldata;
5579
- declare const transaction_getExecuteCalldata: typeof getExecuteCalldata;
5580
- declare const transaction_getVersionsByType: typeof getVersionsByType;
5581
- declare const transaction_transformCallsToMulticallArrays: typeof transformCallsToMulticallArrays;
5582
- declare namespace transaction {
5583
- export { transaction_buildUDCCall as buildUDCCall, transaction_fromCallsToExecuteCalldata as fromCallsToExecuteCalldata, transaction_fromCallsToExecuteCalldata_cairo1 as fromCallsToExecuteCalldata_cairo1, transaction_getCompiledCalldata as getCompiledCalldata, transaction_getExecuteCalldata as getExecuteCalldata, transaction_getVersionsByType as getVersionsByType, transaction_transformCallsToMulticallArrays as transformCallsToMulticallArrays };
5612
+ declare const index$2_fromCallsToExecuteCalldata: typeof fromCallsToExecuteCalldata;
5613
+ declare const index$2_fromCallsToExecuteCalldata_cairo1: typeof fromCallsToExecuteCalldata_cairo1;
5614
+ declare const index$2_getCompiledCalldata: typeof getCompiledCalldata;
5615
+ declare const index$2_getExecuteCalldata: typeof getExecuteCalldata;
5616
+ declare const index$2_getVersionsByType: typeof getVersionsByType;
5617
+ declare const index$2_transformCallsToMulticallArrays: typeof transformCallsToMulticallArrays;
5618
+ declare namespace index$2 {
5619
+ export { index$2_fromCallsToExecuteCalldata as fromCallsToExecuteCalldata, index$2_fromCallsToExecuteCalldata_cairo1 as fromCallsToExecuteCalldata_cairo1, index$2_getCompiledCalldata as getCompiledCalldata, index$2_getExecuteCalldata as getExecuteCalldata, index$2_getVersionsByType as getVersionsByType, index$2_transformCallsToMulticallArrays as transformCallsToMulticallArrays };
5584
5620
  }
5585
5621
 
5586
5622
  type V3Details = Required<Pick<UniversalDetails, 'tip' | 'paymasterData' | 'accountDeploymentData' | 'nonceDataAvailabilityMode' | 'feeDataAvailabilityMode' | 'resourceBounds'>>;
@@ -5688,6 +5724,7 @@ declare function signatureToHexArray(sig?: Signature): ArraySignatureType;
5688
5724
  * @throws {Error} If the estimate object is undefined or does not have the required properties.
5689
5725
  */
5690
5726
  declare function toOverheadResourceBounds(estimate: FeeEstimate, overhead?: ResourceBoundsOverhead): ResourceBoundsBN;
5727
+ declare function resourceBoundsToEstimateFee(resourceBounds: ResourceBoundsBN): EstimateFeeResponse;
5691
5728
  /**
5692
5729
  * Calculates the overall fee for a transaction based on resource consumption and prices.
5693
5730
  *
@@ -5839,6 +5876,7 @@ declare const index$1_getFullPublicKey: typeof getFullPublicKey;
5839
5876
  declare const index$1_intDAM: typeof intDAM;
5840
5877
  declare const index$1_randomAddress: typeof randomAddress;
5841
5878
  declare const index$1_resourceBoundsToBigInt: typeof resourceBoundsToBigInt;
5879
+ declare const index$1_resourceBoundsToEstimateFee: typeof resourceBoundsToEstimateFee;
5842
5880
  declare const index$1_resourceBoundsToHexString: typeof resourceBoundsToHexString;
5843
5881
  declare const index$1_signatureToDecimalArray: typeof signatureToDecimalArray;
5844
5882
  declare const index$1_signatureToHexArray: typeof signatureToHexArray;
@@ -5848,7 +5886,7 @@ declare const index$1_toOverheadResourceBounds: typeof toOverheadResourceBounds;
5848
5886
  declare const index$1_toTransactionVersion: typeof toTransactionVersion;
5849
5887
  declare const index$1_v3Details: typeof v3Details;
5850
5888
  declare namespace index$1 {
5851
- export { index$1_ZeroFeeEstimate as ZeroFeeEstimate, index$1_compressProgram as compressProgram, index$1_decompressProgram as decompressProgram, index$1_formatSignature as formatSignature, index$1_getFullPublicKey as getFullPublicKey, index$1_intDAM as intDAM, index$1_randomAddress as randomAddress, index$1_resourceBoundsToBigInt as resourceBoundsToBigInt, index$1_resourceBoundsToHexString as resourceBoundsToHexString, index$1_signatureToDecimalArray as signatureToDecimalArray, index$1_signatureToHexArray as signatureToHexArray, index$1_toFeeVersion as toFeeVersion, index$1_toOverheadOverallFee as toOverheadOverallFee, index$1_toOverheadResourceBounds as toOverheadResourceBounds, index$1_toTransactionVersion as toTransactionVersion, index$1_v3Details as v3Details };
5889
+ export { index$1_ZeroFeeEstimate as ZeroFeeEstimate, index$1_compressProgram as compressProgram, index$1_decompressProgram as decompressProgram, index$1_formatSignature as formatSignature, index$1_getFullPublicKey as getFullPublicKey, index$1_intDAM as intDAM, index$1_randomAddress as randomAddress, index$1_resourceBoundsToBigInt as resourceBoundsToBigInt, index$1_resourceBoundsToEstimateFee as resourceBoundsToEstimateFee, index$1_resourceBoundsToHexString as resourceBoundsToHexString, index$1_signatureToDecimalArray as signatureToDecimalArray, index$1_signatureToHexArray as signatureToHexArray, index$1_toFeeVersion as toFeeVersion, index$1_toOverheadOverallFee as toOverheadOverallFee, index$1_toOverheadResourceBounds as toOverheadResourceBounds, index$1_toTransactionVersion as toTransactionVersion, index$1_v3Details as v3Details };
5852
5890
  }
5853
5891
 
5854
5892
  /**
@@ -6716,7 +6754,7 @@ declare function getDefaultNodes(rpcVersion: _SupportedRpcVersion): any;
6716
6754
  * @returns {SupportedRpcVersion[]} available RPC versions
6717
6755
  */
6718
6756
  declare function getSupportedRpcVersions(): _SupportedRpcVersion[];
6719
- declare const validBlockTags: ("pre_confirmed" | "latest")[];
6757
+ declare const validBlockTags: ("pre_confirmed" | "latest" | "l1_accepted")[];
6720
6758
  /**
6721
6759
  * This class is formatting the identifier of a block.
6722
6760
  *
@@ -6856,21 +6894,12 @@ declare function getAbiEvents(abi: Abi): AbiEvents;
6856
6894
  * ```
6857
6895
  */
6858
6896
  declare function parseEvents(providerReceivedEvents: EmittedEvent$1[], abiEvents: AbiEvents, abiStructs: AbiStructs, abiEnums: AbiEnums): ParsedEvents;
6859
- /**
6860
- * Parse Transaction Receipt Event from UDC invoke transaction and
6861
- * create DeployContractResponse compatible response with addition of the UDC Event data
6862
- * @param {InvokeTransactionReceiptResponse} txReceipt
6863
- *
6864
- * @returns {DeployContractUDCResponse} parsed UDC event data
6865
- */
6866
- declare function parseUDCEvent(txReceipt: InvokeTransactionReceiptResponse): DeployContractUDCResponse;
6867
6897
 
6868
6898
  declare const index_getAbiEvents: typeof getAbiEvents;
6869
6899
  declare const index_isAbiEvent: typeof isAbiEvent;
6870
6900
  declare const index_parseEvents: typeof parseEvents;
6871
- declare const index_parseUDCEvent: typeof parseUDCEvent;
6872
6901
  declare namespace index {
6873
- export { index_getAbiEvents as getAbiEvents, index_isAbiEvent as isAbiEvent, index_parseEvents as parseEvents, index_parseUDCEvent as parseUDCEvent };
6902
+ export { index_getAbiEvents as getAbiEvents, index_isAbiEvent as isAbiEvent, index_parseEvents as parseEvents };
6874
6903
  }
6875
6904
 
6876
6905
  declare function toOutsideCallV2(call: OutsideCallV1 | OutsideCallV2): OutsideCallV2;
@@ -8234,4 +8263,4 @@ declare function createAccount(provider: AccountOptions['provider'], address: st
8234
8263
  */
8235
8264
  declare function createWalletAccount(provider: WalletAccountOptions['provider'], walletProvider: StarknetWalletProvider, address: string, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface): WalletAccount;
8236
8265
 
8237
- export { type Abi, type AbiEntry, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, type AbiStruct, type AbiStructs, Account, 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 BlockWithTxHashes, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFixedArray, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, 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, type Details, EDAMode, EDataAvailabilityMode, ETH_ADDRESS, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, 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 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 PENDING_DECLARE_TXN_RECEIPT, type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type PENDING_INVOKE_TXN_RECEIPT, type PENDING_L1_HANDLER_TXN_RECEIPT, type PENDING_STATE_UPDATE, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PendingBlock, type PendingReceipt, type PendingStateUpdate, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$3 as RPC, rpc_0_8_1 as RPC08, rpc_0_9_0 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, 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 StateUpdate, type StateUpdateResponse, type Storage, Subscription, type SubscriptionBlockIdentifier, type SuccessfulTransactionReceiptResponse, type TXN_EXECUTION_STATUS, type TXN_HASH$1 as TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, 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, WalletAccount, WebSocketChannel, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, byteArray, cairo, config, constants, contractClassResponseToLegacyCompiledContract, createAccount, createContract, createWalletAccount, defaultPaymaster, defaultProvider, ec, encode, eth, index as events, extractContractHashes, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$2 as hash, isAccount, isPendingBlock, isPendingStateUpdate, isPendingTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, toApiVersion, transaction, typedData, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet };
8266
+ export { type Abi, type AbiEntry, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, type AbiStruct, type AbiStructs, Account, 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 BlockWithTxHashes, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFixedArray, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, 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, type Details, EDAMode, EDataAvailabilityMode, ETH_ADDRESS, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, 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 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 PENDING_DECLARE_TXN_RECEIPT, type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type PENDING_INVOKE_TXN_RECEIPT, type PENDING_L1_HANDLER_TXN_RECEIPT, type PENDING_STATE_UPDATE, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PendingBlock, type PendingReceipt, type PendingStateUpdate, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_8_1 as RPC08, rpc_0_9_0 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, 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 StateUpdate, type StateUpdateResponse, type Storage, Subscription, type SubscriptionBlockIdentifier, type SuccessfulTransactionReceiptResponse, type TXN_EXECUTION_STATUS, type TXN_HASH$1 as TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, 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, WalletAccount, WebSocketChannel, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, byteArray, cairo, config, constants, contractClassResponseToLegacyCompiledContract, createAccount, createContract, createWalletAccount, defaultDeployer, defaultPaymaster, defaultProvider, ec, encode, eth, index as events, extractContractHashes, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, isAccount, isPendingBlock, isPendingStateUpdate, isPendingTransaction, 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, toAnyPatchVersion, toApiVersion, index$2 as transaction, typedData, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet };