starknet 11.1.0 → 11.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -695,6 +695,13 @@ type UniversalDeployerContractPayload = {
695
695
  salt?: string;
696
696
  unique?: boolean;
697
697
  constructorCalldata?: RawArgs;
698
+ /**
699
+ * Abi of the contract to deploy. When given, the constructor calldata is checked against it:
700
+ * parameters are compiled with it, felts already compiled are read back and written again
701
+ * with it. Without it, the calldata is not checked: it is flattened as given, an object in the
702
+ * order of its keys, and plain JS values of compound types (a text for a `ByteArray`, a number
703
+ * for a `u256`) are not written the way the constructor reads them.
704
+ */
698
705
  abi?: Abi;
699
706
  };
700
707
  type DeployAccountContractPayload = {
@@ -714,7 +721,11 @@ type BaseDeclareContractPayload = {
714
721
  contract: CompiledContract | string;
715
722
  /**
716
723
  * Class hash of the contract. Optional optimization - if not provided,
717
- * it will be computed from the contract
724
+ * it will be computed from the contract.
725
+ *
726
+ * `declare` and `declareIfNot` use a given value as is, without checking it against
727
+ * `contract`, to save time: a wrong value makes the declaration fail, or makes `declareIfNot`
728
+ * take another class for this one. `declareAndDeploy` checks it, and refuses a wrong value.
718
729
  */
719
730
  classHash?: string;
720
731
  };
@@ -753,7 +764,10 @@ type CompleteDeclareContractPayload = {
753
764
  casm?: CompiledSierraCasm;
754
765
  compiledClassHash: string;
755
766
  };
756
- type DeclareAndDeployContractPayload = Omit<UniversalDeployerContractPayload, 'classHash'> & DeclareContractPayload;
767
+ type DeclareAndDeployContractPayload = Omit<UniversalDeployerContractPayload, 'classHash' | 'abi'> & DeclareContractPayload & {
768
+ /** @deprecated Ignored: the ABI is taken from `contract`. Will be removed in v12. */
769
+ abi?: Abi;
770
+ };
757
771
  type DeclareContractTransaction = {
758
772
  contract: ContractClass;
759
773
  senderAddress: string;
@@ -1712,6 +1726,9 @@ type _Transport = any;
1712
1726
  * Signer for accounts using a Ledger Nano S+/X signature (Starknet Ledger APP version 1.1.1)
1713
1727
  *
1714
1728
  * The Ledger has to be connected, unlocked and the Starknet APP has to be selected prior of use of this class.
1729
+ * @deprecated Import it from `starknet/ledger` instead: it is the same class, with the transport typed as a
1730
+ * Ledger `Transport`. Importing it from `starknet` is kept only for backward compatibility, and will be
1731
+ * removed in v12.
1715
1732
  */
1716
1733
  declare class LedgerSigner111<Transport extends Record<any, any> = any> implements SignerInterface {
1717
1734
  readonly transporter: Transport;
@@ -1859,6 +1876,8 @@ declare class LedgerSigner111<Transport extends Record<any, any> = any> implemen
1859
1876
  * for a Ledger Starknet DAPP v1.1.1.
1860
1877
  *
1861
1878
  * EIP2645 path = 2645'/starknet/application/0/accountId/0
1879
+ * @deprecated Import it from `starknet/ledger` instead: it is the same function. Importing it from
1880
+ * `starknet` is kept only for backward compatibility, and will be removed in v12.
1862
1881
  * @param {number} accountId Id of account. < 2**31.
1863
1882
  * @param {string} [applicationName='LedgerW'] utf8 string of application name.
1864
1883
  * @returns an Uint8array of 24 bytes.
@@ -1878,6 +1897,9 @@ declare function getLedgerPathBuffer111(accountId: number, applicationName?: str
1878
1897
  * Signer for accounts using a Ledger Nano S+/X signature (Starknet Ledger APP version 2.2.1).
1879
1898
  *
1880
1899
  * The Ledger has to be connected, unlocked and the Starknet APP has to be selected prior of use of this class.
1900
+ * @deprecated Import it from `starknet/ledger` instead: it is the same class, with the transport typed as a
1901
+ * Ledger `Transport`. Importing it from `starknet` is kept only for backward compatibility, and will be
1902
+ * removed in v12.
1881
1903
  */
1882
1904
  declare class LedgerSigner221<Transport extends Record<any, any> = any> extends LedgerSigner111 implements SignerInterface {
1883
1905
  /**
@@ -1893,13 +1915,13 @@ declare class LedgerSigner221<Transport extends Record<any, any> = any> extends
1893
1915
  *
1894
1916
  * If you are using APP v2.2.1 with an account created with the v1.1.1, you need to use :
1895
1917
  * ```typescript
1896
- * const myLedgerSigner = new LedgerSigner211(myNodeTransport, 0, undefined, getLedgerPathBuffer111);
1918
+ * const myLedgerSigner = new LedgerSigner221(myNodeTransport, 0, undefined, getLedgerPathBuffer111);
1897
1919
  * ```
1898
1920
  * @example
1899
1921
  * ```typescript
1900
1922
  * import TransportNodeHid from "@ledgerhq/hw-transport-node-hid";
1901
1923
  * const myNodeTransport = await TransportNodeHid.create();
1902
- * const myLedgerSigner = new LedgerSigner211(myNodeTransport, 0);
1924
+ * const myLedgerSigner = new LedgerSigner221(myNodeTransport, 0);
1903
1925
  * ```
1904
1926
  */
1905
1927
  constructor(transport: Transport, accountID: number, eip2645application?: string, pathFunction?: LedgerPathCalculation);
@@ -2042,12 +2064,14 @@ declare class LedgerSigner221<Transport extends Record<any, any> = any> extends
2042
2064
  * Format the Ledger wallet path to an Uint8Array.
2043
2065
  * for a Ledger Starknet DAPP v2.2.0
2044
2066
  * EIP2645 path = 2645'/starknet'/application'/0'/accountId'/0
2067
+ * @deprecated Import it from `starknet/ledger` instead: it is the same function. Importing it from
2068
+ * `starknet` is kept only for backward compatibility, and will be removed in v12.
2045
2069
  * @param {number} accountId Id of account. < 2**31.
2046
2070
  * @param {string} [applicationName='LedgerW'] utf8 string of application name.
2047
2071
  * @returns an Uint8array of 24 bytes.
2048
2072
  * @example
2049
2073
  * ```typescript
2050
- * const result = getLedgerPathBuffer211(0);
2074
+ * const result = getLedgerPathBuffer221(0);
2051
2075
  * // result = Uint8Array(24) [
2052
2076
  * 128, 0, 10, 85, 199, 65, 233, 201,
2053
2077
  * 171, 206, 231, 219, 128, 0, 0, 0,
@@ -2058,9 +2082,13 @@ declare class LedgerSigner221<Transport extends Record<any, any> = any> extends
2058
2082
  declare function getLedgerPathBuffer221(accountId: number, applicationName?: string): Uint8Array;
2059
2083
 
2060
2084
  /**
2061
- * Signer for accounts using a Ledger Nano S+/X signature (Starknet Ledger APP version 2.3.1).
2085
+ * Signer for accounts using a Ledger Nano S+/X signature (Starknet Ledger APP from version 2.3.1
2086
+ * to 2.4.3).
2062
2087
  *
2063
2088
  * The Ledger has to be connected, unlocked and the Starknet APP has to be selected prior of use of this class.
2089
+ * @deprecated Import it from `starknet/ledger` instead: it is the same class, with the transport typed as a
2090
+ * Ledger `Transport`. Importing it from `starknet` is kept only for backward compatibility, and will be
2091
+ * removed in v12.
2064
2092
  */
2065
2093
  declare class LedgerSigner231<Transport extends Record<any, any> = any> extends LedgerSigner221 implements SignerInterface {
2066
2094
  /**
@@ -2548,9 +2576,9 @@ declare abstract class AccountInterface {
2548
2576
  * - .constructorCalldata - Constructor parameters
2549
2577
  * - .contractAddress - Pre-computed account address
2550
2578
  * - .addressSalt - Salt for address generation
2579
+ * - .abi - Abi of the account contract (optional): the constructor calldata is checked against it
2551
2580
  *
2552
2581
  * @param estimateFeeDetails - Optional details for fee estimation
2553
- * @inheritdoc estimateInvokeFee
2554
2582
  *
2555
2583
  * @returns Fee estimation including overall_fee and resourceBounds
2556
2584
  * @example
@@ -2562,7 +2590,9 @@ declare abstract class AccountInterface {
2562
2590
  * });
2563
2591
  * ```
2564
2592
  */
2565
- abstract estimateAccountDeployFee(contractPayload: DeployAccountContractPayload, estimateFeeDetails?: UniversalDetails): Promise<EstimateFeeResponseOverhead>;
2593
+ abstract estimateAccountDeployFee(contractPayload: DeployAccountContractPayload & {
2594
+ abi?: Abi;
2595
+ }, estimateFeeDetails?: UniversalDetails): Promise<EstimateFeeResponseOverhead>;
2566
2596
  /**
2567
2597
  * Estimate fee for deploying contract(s) through the Universal Deployer Contract (UDC)
2568
2598
  *
@@ -2573,7 +2603,6 @@ declare abstract class AccountInterface {
2573
2603
  * - .constructorCalldata - Constructor parameters
2574
2604
  *
2575
2605
  * @param estimateFeeDetails - Optional details for fee estimation
2576
- * @inheritdoc estimateInvokeFee
2577
2606
  *
2578
2607
  * @returns Fee estimation for the deployment transaction
2579
2608
  * @example
@@ -2594,7 +2623,6 @@ declare abstract class AccountInterface {
2594
2623
  * - .payload - Transaction-specific payload
2595
2624
  *
2596
2625
  * @param details - Optional details for fee estimation
2597
- * @inheritdoc estimateInvokeFee
2598
2626
  *
2599
2627
  * @returns Array of fee estimations for each transaction
2600
2628
  * @example
@@ -2658,7 +2686,6 @@ declare abstract class AccountInterface {
2658
2686
  *
2659
2687
  * @param calls - Array of calls to be sponsored
2660
2688
  * @param paymasterDetails - Paymaster configuration
2661
- * @inheritdoc estimatePaymasterTransactionFee
2662
2689
  *
2663
2690
  * @returns Prepared transaction with typed data for signing
2664
2691
  * @example
@@ -2699,12 +2726,11 @@ declare abstract class AccountInterface {
2699
2726
  *
2700
2727
  * @param contractPayload - Contract declaration payload
2701
2728
  * - .contract - Compiled Sierra contract
2702
- * - .classHash - Pre-computed class hash (optional)
2729
+ * - .classHash - Pre-computed class hash (optional), used as is: it is not checked against .contract
2703
2730
  * - .casm - Compiled CASM (required for Cairo 1)
2704
2731
  * - .compiledClassHash - Pre-computed CASM hash
2705
2732
  *
2706
2733
  * @param transactionsDetail - Transaction execution options
2707
- * @inheritdoc execute
2708
2734
  *
2709
2735
  * @returns Declaration transaction hash and class hash
2710
2736
  * @example
@@ -2724,9 +2750,10 @@ declare abstract class AccountInterface {
2724
2750
  * - .constructorCalldata - Constructor parameters.
2725
2751
  * - .salt - Deployment salt (random if not specified).
2726
2752
  * - .unique - Modify salt for unique address (default: true).
2753
+ * - .abi - Abi of the contract (optional): the constructor calldata is checked against it.
2754
+ * Without it, the calldata is flattened as given, with no check.
2727
2755
  *
2728
2756
  * @param details - Transaction execution options
2729
- * @inheritdoc execute
2730
2757
  *
2731
2758
  * @returns Deployed contract addresses and transaction hash
2732
2759
  * @example
@@ -2742,10 +2769,8 @@ declare abstract class AccountInterface {
2742
2769
  * Deploy and wait for a contract deployment to complete
2743
2770
  *
2744
2771
  * @param payload - Deployment configuration(s)
2745
- * @inheritdoc deploy
2746
2772
  *
2747
2773
  * @param details - Transaction execution options
2748
- * @inheritdoc execute
2749
2774
  *
2750
2775
  * @returns Deployment result with contract address and UDC event details
2751
2776
  * @remarks
@@ -2767,17 +2792,20 @@ declare abstract class AccountInterface {
2767
2792
  * - .contract - Compiled Sierra contract
2768
2793
  * - .casm - Compiled CASM (required for Cairo 1)
2769
2794
  * - .compiledClassHash - Pre-computed CASM hash
2770
- * - .classHash - Pre-computed class hash
2771
- * - .constructorCalldata - Constructor parameters
2795
+ * - .classHash - Pre-computed class hash, checked against .contract: a wrong one is refused
2796
+ * - .constructorCalldata - Constructor parameters, or felts already compiled
2772
2797
  * - .salt - Deployment salt
2773
2798
  * - .unique - Ensure unique deployment address
2774
2799
  *
2775
2800
  * @param details - Transaction execution options
2776
- * @inheritdoc execute
2777
2801
  *
2778
2802
  * @returns Declaration and deployment results
2779
2803
  * @remarks
2804
+ * - Before declaring, checks the constructor calldata against the abi of `contract` (felts
2805
+ * already compiled are read back with it), and a given `classHash` against `contract`:
2806
+ * a mismatch fails before any transaction is sent
2780
2807
  * - Automatically skips declaration if contract is already declared
2808
+ * - With a given `nonce`, the deployment uses the next one when a declaration is sent
2781
2809
  * - Waits for both transactions to complete
2782
2810
  * - Does not support batch operations
2783
2811
  * @example
@@ -2798,9 +2826,9 @@ declare abstract class AccountInterface {
2798
2826
  * - .constructorCalldata - Constructor parameters
2799
2827
  * - .addressSalt - Salt for address generation
2800
2828
  * - .contractAddress - Pre-computed address
2829
+ * - .abi - Abi of the account contract (optional): the constructor calldata is checked against it
2801
2830
  *
2802
2831
  * @param transactionsDetail - Transaction execution options
2803
- * @inheritdoc execute
2804
2832
  *
2805
2833
  * @returns Deployment transaction hash and contract address
2806
2834
  * @remarks
@@ -2814,7 +2842,9 @@ declare abstract class AccountInterface {
2814
2842
  * });
2815
2843
  * ```
2816
2844
  */
2817
- abstract deployAccount(contractPayload: DeployAccountContractPayload, transactionsDetail?: InvocationsDetails): Promise<DeployContractResponse>;
2845
+ abstract deployAccount(contractPayload: DeployAccountContractPayload & {
2846
+ abi?: Abi;
2847
+ }, transactionsDetail?: InvocationsDetails): Promise<DeployContractResponse>;
2818
2848
  /**
2819
2849
  * Sign a typed data message for off-chain verification
2820
2850
  *
@@ -2865,6 +2895,9 @@ declare abstract class AccountInterface {
2865
2895
  /**
2866
2896
  * Declare a contract class if not already declared
2867
2897
  *
2898
+ * A given `classHash` is used as is to look for the class on the node, without being checked
2899
+ * against `contract`, to save time.
2900
+ *
2868
2901
  * @param contractPayload - Contract declaration payload
2869
2902
  * @param transactionsDetail - Transaction execution options
2870
2903
  * @returns Declaration result (with empty transaction_hash if already declared)
@@ -3027,7 +3060,7 @@ interface RpcTransport {
3027
3060
  type HttpTransportOptions = {
3028
3061
  /**
3029
3062
  * The HTTP endpoint of the Starknet node.
3030
- * @example 'https://starknet-sepolia.public.blastapi.io/rpc/v0_10'
3063
+ * @example 'https://api.zan.top/public/starknet-sepolia/rpc/v0_10'
3031
3064
  */
3032
3065
  nodeUrl: string;
3033
3066
  /** Extra headers sent with every request, an API key for instance. */
@@ -3046,7 +3079,7 @@ type HttpTransportOptions = {
3046
3079
  * @example
3047
3080
  * ```typescript
3048
3081
  * const transport = new HttpTransport({
3049
- * nodeUrl: 'https://starknet-sepolia.public.blastapi.io/rpc/v0_10',
3082
+ * nodeUrl: 'https://api.zan.top/public/starknet-sepolia/rpc/v0_10',
3050
3083
  * baseFetch: fetch,
3051
3084
  * });
3052
3085
  * const myProvider = new RpcProvider({ transport });
@@ -3350,7 +3383,7 @@ type WebSocketChannelEvents = {
3350
3383
  declare class WebSocketChannel {
3351
3384
  /**
3352
3385
  * The URL of the WebSocket RPC Node.
3353
- * @example 'wss://starknet-sepolia.public.blastapi.io/rpc/v0_8'
3386
+ * @example 'wss://your-starknet-node/rpc/v0_10'
3354
3387
  */
3355
3388
  nodeUrl: string;
3356
3389
  /** Carries the frames and owns the socket lifecycle. */
@@ -3547,7 +3580,7 @@ type WsTransportEvents = {
3547
3580
  };
3548
3581
  /** What {@link WsTransport} needs to open its socket. */
3549
3582
  type WsTransportOptions = {
3550
- /** @example 'wss://starknet-sepolia.public.blastapi.io/rpc/v0_10' */
3583
+ /** @example 'wss://your-starknet-node/rpc/v0_10' */
3551
3584
  nodeUrl: string;
3552
3585
  /** Custom WebSocket implementation. Falls back to `config.get('websocket')`, then the global. */
3553
3586
  websocket?: WebSocketModule;
@@ -3962,6 +3995,7 @@ declare const Literal: {
3962
3995
  readonly ClassHash: "core::starknet::class_hash::ClassHash";
3963
3996
  readonly ContractAddress: "core::starknet::contract_address::ContractAddress";
3964
3997
  readonly Secp256k1Point: "core::starknet::secp256k1::Secp256k1Point";
3998
+ readonly StorageAddress: "core::starknet::storage_access::StorageAddress";
3965
3999
  readonly U96: "core::internal::bounded_int::BoundedInt::<0, 79228162514264337593543950335>";
3966
4000
  };
3967
4001
  type Literal = ValuesType<typeof Literal>;
@@ -6741,7 +6775,7 @@ declare const fastParsingStrategy: ParsingStrategy;
6741
6775
  * `validate.ts` — and the day support for it is dropped, that is what gets deleted.
6742
6776
  *
6743
6777
  * A Cairo 0 abi is recognized by `getAbiVersion` returning 0, which happens when the first
6744
- * function that has any input or output declares it with a type carrying no `::`.
6778
+ * function or constructor that has any input or output declares it with a type carrying no `::`.
6745
6779
  * @example
6746
6780
  * ```typescript
6747
6781
  * const abi = [
@@ -6956,15 +6990,20 @@ declare class AbiParser0 implements AbiParserInterface {
6956
6990
  * The abi parser for a flat abi written in Cairo 1 vocabulary.
6957
6991
  *
6958
6992
  * It is chosen when `getAbiVersion` answers 1 : the abi has no `interface` entry, and the first
6959
- * function carrying any input or output declares it with a type containing `::`. Two very
6960
- * different things land here.
6993
+ * function or constructor carrying any input or output declares it with a type containing `::`.
6994
+ * Three different things land here.
6995
+ *
6996
+ * The first is a genuine **Cairo V1 contract** (compiler 1.0 / 1.1), compiled before the abi
6997
+ * format grew its `interface` entry — roughly 2023. Those contracts are still on chain and still
6998
+ * callable.
6961
6999
  *
6962
- * The first is a genuine **Cairo 1.0 / 1.1 contract**, compiled before the abi format grew its
6963
- * `interface` entry — roughly 2023. Those contracts are still on chain and still callable.
7000
+ * The second is a **Cairo V2 contract with no `interface` entry** : one with no external function
7001
+ * (see `__mocks__/cairo/onlyConstructor`), or one that declares its functions one by one with
7002
+ * `#[external(v0)]`. Compiled by Cairo V2, its abi is flat all the same.
6964
7003
  *
6965
- * The second, and by far the most frequent, is an abi someone **wrote or trimmed by hand** : a
7004
+ * The third, and by far the most frequent, is an abi someone **wrote or trimmed by hand** : a
6966
7005
  * couple of functions kept for a `decodeParameters` call, a fixture in a test suite. Such an abi
6967
- * is flat whatever the Cairo version of the contract it came from — so a Cairo 2 contract whose
7006
+ * is flat whatever the Cairo version of the contract it came from — so a Cairo V2 contract whose
6968
7007
  * abi has been stripped of its `interface` entry is parsed here, not by {@link AbiParser2}. The
6969
7008
  * class is picked on the **shape of the abi**, never on the contract behind it, which is why this
6970
7009
  * one stays busy rather than being a legacy path.
@@ -7102,8 +7141,10 @@ declare class AbiParser1 implements AbiParserInterface {
7102
7141
  * The abi parser for an abi that groups its functions under an `interface` entry.
7103
7142
  *
7104
7143
  * It is chosen when `getAbiVersion` answers 2, which is decided by the mere presence of that
7105
- * entry — the format Cairo has emitted since compiler 2, mid-2023, and so what every contract
7106
- * declared on Starknet today looks like.
7144
+ * entry — the abi of a Cairo V2 contract that declares its functions through a
7145
+ * `#[starknet::interface]`, the usual way since compiler 2, mid-2023. A Cairo V2 contract with no
7146
+ * external function, or that declares its functions one by one with `#[external(v0)]`, has no
7147
+ * such entry, and goes to {@link AbiParser1}.
7107
7148
  *
7108
7149
  * Everything it does differently from {@link AbiParser1} follows from that one nesting : a method
7109
7150
  * is looked up among the interface's `items` rather than at the top level, and `getLegacyFormat`
@@ -7260,7 +7301,8 @@ declare function enumStrategy(enums: AbiEnum[]): CairoTypeStrategy;
7260
7301
  declare function structStrategy(structs: AbiStruct[]): CairoTypeStrategy;
7261
7302
 
7262
7303
  /**
7263
- * Creates ABI parser
7304
+ * Create the parser of an abi. It is chosen from the format of the abi ({@link getAbiVersion}),
7305
+ * not from the version of Cairo.
7264
7306
  *
7265
7307
  * A Cairo 0 abi gets its own parser, kept apart from the Cairo 1 ones so that those can move to
7266
7308
  * the Cairo type classes without dragging along types — `felt`, `felt*` — that no class registers.
@@ -7280,10 +7322,16 @@ declare function structStrategy(structs: AbiStruct[]): CairoTypeStrategy;
7280
7322
  */
7281
7323
  declare function createAbiParser(abi: Abi, parsingStrategy?: ParsingStrategy | CairoTypeStrategy): AbiParserInterface;
7282
7324
  /**
7283
- * Retrieves ABI version
7325
+ * Get the format of an abi, which tells which parser reads it: {@link AbiParser0},
7326
+ * {@link AbiParser1} or {@link AbiParser2}. It is the shape of the abi, not the version of Cairo.
7327
+ * - 0: a Cairo 0 abi.
7328
+ * - 1: a Cairo 1 abi with its functions at the top level. It comes from a Cairo V1 contract, or
7329
+ * from a Cairo V2 contract with no `interface` entry: one with no external function, or one
7330
+ * that declares its functions one by one with `#[external(v0)]`.
7331
+ * - 2: a Cairo 1 abi with `interface` entries, from a Cairo V2 contract written with interfaces.
7284
7332
  *
7285
7333
  * @param {Abi} abi
7286
- * @returns {1 | 2 | 0} abi 1, 2 or 0 version
7334
+ * @returns {1 | 2 | 0} the format of the abi
7287
7335
  *
7288
7336
  * @example
7289
7337
  * // Example 1: Return ABI version 2
@@ -7300,7 +7348,8 @@ declare function createAbiParser(abi: Abi, parsingStrategy?: ParsingStrategy | C
7300
7348
  */
7301
7349
  declare function getAbiVersion(abi: Abi): 1 | 2 | 0;
7302
7350
  /**
7303
- * Checks if no constructor valid
7351
+ * Checks a constructor call to a contract that has no constructor in its abi:
7352
+ * it is valid only with an empty calldata, an empty array or an empty object.
7304
7353
  *
7305
7354
  * @param {string} method
7306
7355
  * @param {RawArgs} argsCalldata
@@ -7312,6 +7361,8 @@ declare function getAbiVersion(abi: Abi): 1 | 2 | 0;
7312
7361
  * // result1 === true
7313
7362
  * const result2 = isNoConstructorValid('test', ['test'])
7314
7363
  * // result2 === false
7364
+ * const result3 = isNoConstructorValid('constructor', { a: 1 })
7365
+ * // result3 === false
7315
7366
  */
7316
7367
  declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
7317
7368
 
@@ -7392,7 +7443,6 @@ type ParsedEvents = Array<ParsedEvent> & {
7392
7443
  };
7393
7444
  /**
7394
7445
  * Advance formatting used to get js types data as result
7395
- * @see https://starknet-io.github.io/starknet.js/docs/guides/define_call_message/#formatresponse
7396
7446
  * @example
7397
7447
  * ```typescript
7398
7448
  * // assign custom or existing method to resulting data
@@ -8081,6 +8131,10 @@ declare const RANGE_CLASS_HASH: {
8081
8131
  readonly min: bigint;
8082
8132
  readonly max: bigint;
8083
8133
  };
8134
+ declare const RANGE_STORAGE_ADDRESS: {
8135
+ readonly min: bigint;
8136
+ readonly max: bigint;
8137
+ };
8084
8138
  declare const LegacyUDC: {
8085
8139
  readonly ADDRESS: "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf";
8086
8140
  readonly ENTRYPOINT: "deployContract";
@@ -8230,6 +8284,7 @@ declare const constants_RANGE_I16: typeof RANGE_I16;
8230
8284
  declare const constants_RANGE_I32: typeof RANGE_I32;
8231
8285
  declare const constants_RANGE_I64: typeof RANGE_I64;
8232
8286
  declare const constants_RANGE_I8: typeof RANGE_I8;
8287
+ declare const constants_RANGE_STORAGE_ADDRESS: typeof RANGE_STORAGE_ADDRESS;
8233
8288
  declare const constants_RANGE_U128: typeof RANGE_U128;
8234
8289
  declare const constants_RANGE_U16: typeof RANGE_U16;
8235
8290
  declare const constants_RANGE_U32: typeof RANGE_U32;
@@ -8248,7 +8303,7 @@ declare const constants_TEXT_TO_FELT_MAX_LEN: typeof TEXT_TO_FELT_MAX_LEN;
8248
8303
  declare const constants_UDC: typeof UDC;
8249
8304
  declare const constants_ZERO: typeof ZERO;
8250
8305
  declare namespace constants {
8251
- export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, type constants_ChannelDefaultOptions as ChannelDefaultOptions, type constants_ChannelDefaults as ChannelDefaults, type constants_ChannelMethodOptions as ChannelMethodOptions, 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_CLASS_HASH as RANGE_CLASS_HASH, constants_RANGE_CONTRACT_ADDRESS as RANGE_CONTRACT_ADDRESS, constants_RANGE_ETH_ADDRESS as RANGE_ETH_ADDRESS, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_I16 as RANGE_I16, constants_RANGE_I32 as RANGE_I32, constants_RANGE_I64 as RANGE_I64, constants_RANGE_I8 as RANGE_I8, constants_RANGE_U128 as RANGE_U128, constants_RANGE_U16 as RANGE_U16, constants_RANGE_U32 as RANGE_U32, constants_RANGE_U64 as RANGE_U64, constants_RANGE_U8 as RANGE_U8, constants_RANGE_U96 as RANGE_U96, 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_SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS as SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS, constants_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, type constants_SupportedCairoVersion as SupportedCairoVersion, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedRpcVersion0_10 as SupportedRpcVersion0_10, 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 };
8306
+ export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, type constants_ChannelDefaultOptions as ChannelDefaultOptions, type constants_ChannelDefaults as ChannelDefaults, type constants_ChannelMethodOptions as ChannelMethodOptions, 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_CLASS_HASH as RANGE_CLASS_HASH, constants_RANGE_CONTRACT_ADDRESS as RANGE_CONTRACT_ADDRESS, constants_RANGE_ETH_ADDRESS as RANGE_ETH_ADDRESS, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_I16 as RANGE_I16, constants_RANGE_I32 as RANGE_I32, constants_RANGE_I64 as RANGE_I64, constants_RANGE_I8 as RANGE_I8, constants_RANGE_STORAGE_ADDRESS as RANGE_STORAGE_ADDRESS, constants_RANGE_U128 as RANGE_U128, constants_RANGE_U16 as RANGE_U16, constants_RANGE_U32 as RANGE_U32, constants_RANGE_U64 as RANGE_U64, constants_RANGE_U8 as RANGE_U8, constants_RANGE_U96 as RANGE_U96, 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_SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS as SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS, constants_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, type constants_SupportedCairoVersion as SupportedCairoVersion, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedRpcVersion0_10 as SupportedRpcVersion0_10, 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 };
8252
8307
  }
8253
8308
 
8254
8309
  /** What a {@link SubscriptionChannel} needs: a socket to borrow, and how much to buffer. */
@@ -9512,6 +9567,19 @@ declare function verifyMessageInStarknet(provider: ProviderInterface, message: B
9512
9567
 
9513
9568
  declare function getGasPrices(channel: RpcChannel$3 | RpcChannel$2, blockIdentifier?: BlockIdentifier): Promise<GasPrices>;
9514
9569
 
9570
+ /**
9571
+ * @deprecated Use {@link RpcProvider} instead. `Provider` is an alias of it, kept only for
9572
+ * backward compatibility, and will be removed in a future major version. The two are the same
9573
+ * class, so the migration is a rename: no behavior changes.
9574
+ */
9575
+ declare const Provider: typeof RpcProvider;
9576
+ /**
9577
+ * @deprecated Use {@link RpcProvider} instead. `Provider` is an alias of it, kept only for
9578
+ * backward compatibility, and will be removed in a future major version. The two are the same
9579
+ * class, so the migration is a rename: no behavior changes.
9580
+ */
9581
+ type Provider = RpcProvider;
9582
+
9515
9583
  interface Account extends StarknetIdAccountMethods, BrotherIdProviderMethods, FastExecuteAccountMethods {
9516
9584
  }
9517
9585
  declare class Account implements AccountInterface {
@@ -9535,7 +9603,9 @@ declare class Account implements AccountInterface {
9535
9603
  getCairoVersion(classHash?: string): Promise<CairoVersion>;
9536
9604
  estimateInvokeFee(calls: AllowArray<Call>, details?: UniversalDetails): Promise<EstimateFeeResponseOverhead>;
9537
9605
  estimateDeclareFee(payload: DeclareContractPayload, details?: UniversalDetails): Promise<EstimateFeeResponseOverhead>;
9538
- estimateAccountDeployFee({ classHash, addressSalt, constructorCalldata, contractAddress, }: DeployAccountContractPayload, details?: UniversalDetails): Promise<EstimateFeeResponseOverhead>;
9606
+ estimateAccountDeployFee({ classHash, addressSalt, constructorCalldata, contractAddress, abi, }: DeployAccountContractPayload & {
9607
+ abi?: Abi;
9608
+ }, details?: UniversalDetails): Promise<EstimateFeeResponseOverhead>;
9539
9609
  estimateDeployFee(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], details?: UniversalDetails): Promise<EstimateFeeResponseOverhead>;
9540
9610
  estimateFeeBulk(invocations: Invocations, details?: UniversalDetails): Promise<EstimateFeeBulk>;
9541
9611
  simulateTransaction(invocations: Invocations, details?: SimulateTransactionDetails): Promise<SimulateTransactionOverheadResponse>;
@@ -9575,6 +9645,9 @@ declare class Account implements AccountInterface {
9575
9645
  * First check if contract is already declared, if not declare it
9576
9646
  * If contract already declared returned transaction_hash is ''.
9577
9647
  * Method will pass even if contract is already declared
9648
+ *
9649
+ * A given `classHash` is used as is to look for the class on the node, without being checked
9650
+ * against `contract`, to save time.
9578
9651
  * @param transactionsDetail (optional)
9579
9652
  */
9580
9653
  declareIfNot(payload: DeclareContractPayload, transactionsDetail?: UniversalDetails): Promise<DeclareContractResponse>;
@@ -9582,8 +9655,12 @@ declare class Account implements AccountInterface {
9582
9655
  deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], details?: UniversalDetails): Promise<MultiDeployContractResponse>;
9583
9656
  deployContract(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], details?: UniversalDetails & waitForTransactionOptions): Promise<DeployContractUDCResponse>;
9584
9657
  declareAndDeploy(payload: DeclareAndDeployContractPayload, details?: UniversalDetails & waitForTransactionOptions): Promise<DeclareDeployUDCResponse>;
9585
- deploySelf: ({ classHash, constructorCalldata, addressSalt, contractAddress: providedContractAddress, }: DeployAccountContractPayload, details?: UniversalDetails) => Promise<DeployContractResponse>;
9586
- deployAccount({ classHash, constructorCalldata, addressSalt, contractAddress: providedContractAddress, }: DeployAccountContractPayload, details?: UniversalDetails): Promise<DeployContractResponse>;
9658
+ deploySelf: ({ classHash, constructorCalldata, addressSalt, contractAddress: providedContractAddress, abi, }: DeployAccountContractPayload & {
9659
+ abi?: Abi;
9660
+ }, details?: UniversalDetails) => Promise<DeployContractResponse>;
9661
+ deployAccount({ classHash, constructorCalldata, addressSalt, contractAddress: providedContractAddress, abi, }: DeployAccountContractPayload & {
9662
+ abi?: Abi;
9663
+ }, details?: UniversalDetails): Promise<DeployContractResponse>;
9587
9664
  signMessage(typedData: TypedData): Promise<Signature>;
9588
9665
  hashMessage(typedData: TypedData): Promise<string>;
9589
9666
  /**
@@ -9677,7 +9754,9 @@ declare class Account implements AccountInterface {
9677
9754
  private resolveTransactionVersion;
9678
9755
  buildInvocation(call: Array<Call>, details: InvocationsSignerDetails): Promise<Invocation>;
9679
9756
  buildDeclarePayload(payload: DeclareContractPayload, details: InvocationsSignerDetails): Promise<DeclareContractTransaction>;
9680
- buildAccountDeployPayload({ classHash, addressSalt, constructorCalldata, contractAddress: providedContractAddress, }: DeployAccountContractPayload, details: InvocationsSignerDetails): Promise<DeployAccountContractTransaction>;
9757
+ buildAccountDeployPayload({ classHash, addressSalt, constructorCalldata, contractAddress: providedContractAddress, abi, }: DeployAccountContractPayload & {
9758
+ abi?: Abi;
9759
+ }, details: InvocationsSignerDetails): Promise<DeployAccountContractTransaction>;
9681
9760
  /**
9682
9761
  * Build account invocations with proper typing based on transaction type
9683
9762
  * @private
@@ -11171,7 +11250,7 @@ declare const defaultPlugins: StarknetPlugin<any, any>[];
11171
11250
  declare function keccakBn(value: BigNumberish): string;
11172
11251
  /**
11173
11252
  * Calculate the BigInt Starknet Keccak hash for a given string
11174
- * [Reference](https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/public/abi.py#L38)
11253
+ * [Reference](https://docs.starknet.io/learn/protocol/cryptography#starknet-keccak)
11175
11254
  *
11176
11255
  * @param str value to hash
11177
11256
  * @returns BigInt Keccak hash
@@ -11184,7 +11263,7 @@ declare function keccakBn(value: BigNumberish): string;
11184
11263
  declare function starknetKeccak(str: string): bigint;
11185
11264
  /**
11186
11265
  * Calculate the hex-string selector for a given abi function name
11187
- * [Reference](https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/public/abi.py#L46)
11266
+ * [Reference](https://www.starknet.io/cairo-book/ch102-01-contract-class-abi.html#function-selector)
11188
11267
  *
11189
11268
  * @param funcName abi function name
11190
11269
  * @returns hex-string selector
@@ -12243,7 +12322,7 @@ type V3Details = Required<Pick<UniversalDetails, 'tip' | 'paymasterData' | 'acco
12243
12322
  /**
12244
12323
  * Compress compiled Cairo 0 program
12245
12324
  *
12246
- * [Reference](https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/services/api/gateway/transaction.py#L54-L58)
12325
+ * [Reference](https://github.com/starkware-libs/cairo-lang/blob/v0.14.0.1/src/starkware/starknet/services/api/gateway/transaction_utils.py#L34-L39)
12247
12326
  * @param {Program | string} jsonProgram Representing the compiled Cairo 0 program
12248
12327
  * @return {CompressedProgram} Compressed Cairo 0 program
12249
12328
  * @example
@@ -13478,7 +13557,7 @@ declare function extractAbi(contract: ContractClass): Abi;
13478
13557
  * ```typescript
13479
13558
  * const result= provider.getDefaultNodeUrl(constants.NetworkName.SN_MAIN);
13480
13559
  * // console : "Using default public node url, please provide nodeUrl in provider options!"
13481
- * // result = "https://starknet-mainnet.public.blastapi.io/rpc/v0_9"
13560
+ * // result = "https://api.zan.top/public/starknet-mainnet/rpc/v0_10"
13482
13561
  * ```
13483
13562
  */
13484
13563
  declare const getDefaultNodeUrl: (networkName?: _NetworkName, rpcVersion?: _SupportedRpcVersion) => string;
@@ -16026,6 +16105,155 @@ declare class CairoContractAddress {
16026
16105
  static factoryFromApiResponse(responseIterator: Iterator<string>): CairoContractAddress;
16027
16106
  }
16028
16107
 
16108
+ /**
16109
+ * A Cairo `core::starknet::storage_access::StorageAddress` : the address of a value in the storage
16110
+ * of a contract.
16111
+ *
16112
+ * On the wire it is a field element like any other, so what this class adds over
16113
+ * {@link CairoFelt252} is the bound of the Cairo `StorageAddress` type : [0, 2^251), the same range
16114
+ * as the Cairo type of a class hash, and narrower than the field.
16115
+ *
16116
+ * A number, a bigint, a decimal string and a hexadecimal string are all read as the same number.
16117
+ * Text is **not** an accepted input : a storage address spelled as words is a mistake, not a value.
16118
+ * @example
16119
+ * ```typescript
16120
+ * // the same address, reached three ways
16121
+ * new CairoStorageAddress('0x1234').toBigInt(); // 4660n
16122
+ * new CairoStorageAddress(4660).toBigInt(); // 4660n
16123
+ * new CairoStorageAddress('4660').toBigInt(); // 4660n
16124
+ * ```
16125
+ */
16126
+ declare class CairoStorageAddress {
16127
+ /**
16128
+ * The address, always as a bigint.
16129
+ * @example
16130
+ * ```typescript
16131
+ * const result = new CairoStorageAddress('0x1234').data;
16132
+ * // result = 4660n
16133
+ * ```
16134
+ */
16135
+ data: bigint;
16136
+ /**
16137
+ * The abi type this class serializes.
16138
+ * @example
16139
+ * ```typescript
16140
+ * const result = CairoStorageAddress.abiSelector;
16141
+ * // result = "core::starknet::storage_access::StorageAddress"
16142
+ * ```
16143
+ */
16144
+ static abiSelector: "core::starknet::storage_access::StorageAddress";
16145
+ /**
16146
+ * Build from a number or a numeric string, refusing text and anything outside the
16147
+ * StorageAddress range.
16148
+ * @param {BigNumberish | boolean} data the address to carry, within [0, 2^251 - 1]
16149
+ * @throws {Error} when the value is text, a decimal number, not a felt252 input, or out of the StorageAddress range
16150
+ * @example
16151
+ * ```typescript
16152
+ * const result = new CairoStorageAddress('0x1234').toApiRequest();
16153
+ * // result = ["4660"]
16154
+ * ```
16155
+ */
16156
+ constructor(data: BigNumberish | boolean | unknown);
16157
+ /**
16158
+ * Serialize to the single felt a contract call carries.
16159
+ * @returns {string[]} one decimal-string felt, flagged as compiled
16160
+ * @example
16161
+ * ```typescript
16162
+ * const result = new CairoStorageAddress('0x1234').toApiRequest();
16163
+ * // result = ["4660"]
16164
+ * ```
16165
+ */
16166
+ toApiRequest(): string[];
16167
+ /**
16168
+ * The address as a number.
16169
+ * @returns {bigint} the number this address holds
16170
+ * @example
16171
+ * ```typescript
16172
+ * const result = new CairoStorageAddress('0x1234').toBigInt();
16173
+ * // result = 4660n
16174
+ * ```
16175
+ */
16176
+ toBigInt(): bigint;
16177
+ /**
16178
+ * The address in hexadecimal, without padding.
16179
+ *
16180
+ * Leading zeros are dropped, as they are everywhere else in the library.
16181
+ * @returns {string} the address as a 0x-prefixed hex string
16182
+ * @example
16183
+ * ```typescript
16184
+ * const result = new CairoStorageAddress(4660).toHexString();
16185
+ * // result = "0x1234"
16186
+ * const result2 = new CairoStorageAddress('0x0034').toHexString();
16187
+ * // result2 = "0x34" (four digits in, two out)
16188
+ * ```
16189
+ */
16190
+ toHexString(): string;
16191
+ /**
16192
+ * Throw unless the value can be carried by a StorageAddress.
16193
+ *
16194
+ * Text is refused first, then a number with a decimal part. A number or a bigint is read as it
16195
+ * is, so that a negative one reaches the range check. Anything else is read as a felt252 — which
16196
+ * is what refuses a null, an object or an unsupported type. The value is finally checked against
16197
+ * the range of the Cairo `StorageAddress` type, [0, 2^251), which is narrower than the field.
16198
+ * @param {BigNumberish | boolean} data the value to check
16199
+ * @throws {Error} when the value is text, a decimal number, not a felt252 input, or out of the StorageAddress range
16200
+ * @example
16201
+ * ```typescript
16202
+ * CairoStorageAddress.validate('0x1234'); // passes
16203
+ * CairoStorageAddress.validate('abc');
16204
+ * // throws Error("Invalid input: a StorageAddress cannot be built from text")
16205
+ * CairoStorageAddress.validate(2n ** 251n);
16206
+ * // throws Error("Value is out of StorageAddress range [0, 3618502788666131106986593281521497120414687020801267626233049500247285301247]")
16207
+ * CairoStorageAddress.validate(-1);
16208
+ * // throws Error("Value is out of StorageAddress range [0, 3618502788666131106986593281521497120414687020801267626233049500247285301247]")
16209
+ * ```
16210
+ */
16211
+ static validate(data: BigNumberish | boolean | unknown): void;
16212
+ /**
16213
+ * Can this value be carried by a StorageAddress?
16214
+ *
16215
+ * The non-throwing form of {@link CairoStorageAddress.validate}, so it answers false for every
16216
+ * input that one refuses, whatever the reason.
16217
+ * @param {BigNumberish | boolean} data the value to test
16218
+ * @returns {boolean} true when the value fits in a StorageAddress
16219
+ * @example
16220
+ * ```typescript
16221
+ * const result = CairoStorageAddress.is('0x1234');
16222
+ * // result = true
16223
+ * const result2 = CairoStorageAddress.is('abc');
16224
+ * // result2 = false (text, not a number)
16225
+ * ```
16226
+ */
16227
+ static is(data: BigNumberish | boolean | unknown): boolean;
16228
+ /**
16229
+ * Is this abi type the one this class serializes?
16230
+ * @param {string} abiType the abi type to test
16231
+ * @returns {boolean} true for `core::starknet::storage_access::StorageAddress`
16232
+ * @example
16233
+ * ```typescript
16234
+ * const result = CairoStorageAddress.isAbiType(
16235
+ * 'core::starknet::storage_access::StorageAddress'
16236
+ * );
16237
+ * // result = true
16238
+ * const result2 = CairoStorageAddress.isAbiType('core::felt252');
16239
+ * // result2 = false
16240
+ * ```
16241
+ */
16242
+ static isAbiType(abiType: string): boolean;
16243
+ /**
16244
+ * Read one StorageAddress off a contract response, advancing the iterator past it.
16245
+ * @param {Iterator<string>} responseIterator the response felts, positioned on this address
16246
+ * @returns {CairoStorageAddress} the address that was read
16247
+ * @example
16248
+ * ```typescript
16249
+ * const response = ['0x1234'];
16250
+ * const result = CairoStorageAddress.factoryFromApiResponse(response.values()).toBigInt();
16251
+ * // result = 4660n
16252
+ * ```
16253
+ */
16254
+ static factoryFromApiResponse(responseIterator: Iterator<string>): CairoStorageAddress;
16255
+ }
16256
+
16029
16257
  /**
16030
16258
  * A Cairo dynamic array : any number of values, all of the same type.
16031
16259
  *
@@ -18155,4 +18383,4 @@ declare class Logger {
18155
18383
  */
18156
18384
  declare const logger: Logger;
18157
18385
 
18158
- 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, 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, RpcProvider as 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 };
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 };