starknet 8.5.4 → 8.6.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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [8.6.0](https://github.com/starknet-io/starknet.js/compare/v8.5.5...v8.6.0) (2025-10-17)
2
+
3
+ ### Features
4
+
5
+ - blake2s ([#1502](https://github.com/starknet-io/starknet.js/issues/1502)) ([dd3f8ec](https://github.com/starknet-io/starknet.js/commit/dd3f8eca44091a01d240f03e488a25b1119af524))
6
+
7
+ ## [8.5.5](https://github.com/starknet-io/starknet.js/compare/v8.5.4...v8.5.5) (2025-10-03)
8
+
9
+ ### Bug Fixes
10
+
11
+ - ensure cleanHex has valid output ([f5123b6](https://github.com/starknet-io/starknet.js/commit/f5123b6f9c7fa49ad104a48fd4a1f62e2520488e))
12
+
1
13
  ## [8.5.4](https://github.com/starknet-io/starknet.js/compare/v8.5.3...v8.5.4) (2025-09-17)
2
14
 
3
15
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -360,7 +360,7 @@ interface Program {
360
360
  }>;
361
361
  }
362
362
 
363
- /** SYSTEM TYPES */
363
+ /** Cairo Assembly .casm */
364
364
  type CairoAssembly = {
365
365
  prime: string;
366
366
  compiler_version: string;
@@ -3903,6 +3903,18 @@ declare const DEFAULT_GLOBAL_CONFIG: {
3903
3903
  fetch: any;
3904
3904
  websocket: any;
3905
3905
  buffer: any;
3906
+ /**
3907
+ * Custom blake function
3908
+ * @param uint8Array - The uint8Array to hash
3909
+ * @returns The hash of the uint8Array
3910
+ * @example
3911
+ * ```typescript
3912
+ * config.set('blake', (uint8Array: Uint8Array) => {
3913
+ * return blake2s(uint8Array, { dkLen: 32 });
3914
+ * });
3915
+ * ```
3916
+ */
3917
+ blake: ((uint8Array: Uint8Array) => Uint8Array) | undefined;
3906
3918
  };
3907
3919
  declare const RPC_DEFAULT_NODES: {
3908
3920
  readonly SN_MAIN: readonly ["https://starknet-mainnet.public.blastapi.io/rpc/"];
@@ -5773,11 +5785,10 @@ type CalcDeployAccountTxHashArgs = CalcV3DeployAccountTxHashArgs;
5773
5785
  declare function calculateDeployAccountTransactionHash$1(args: CalcDeployAccountTxHashArgs): string;
5774
5786
 
5775
5787
  /**
5776
- * Class Hash
5788
+ * Cairo 0 Class Hash computation using Pedersen hash
5777
5789
  */
5778
5790
 
5779
5791
  declare function computePedersenHash(a: BigNumberish, b: BigNumberish): string;
5780
- declare function computePoseidonHash(a: BigNumberish, b: BigNumberish): string;
5781
5792
  /**
5782
5793
  * Compute Pedersen hash from data
5783
5794
  *
@@ -5792,7 +5803,6 @@ declare function computePoseidonHash(a: BigNumberish, b: BigNumberish): string;
5792
5803
  */
5793
5804
  declare function computeHashOnElements(data: BigNumberish[]): string;
5794
5805
  declare const computePedersenHashOnElements: typeof computeHashOnElements;
5795
- declare function computePoseidonHashOnElements(data: BigNumberish[]): string;
5796
5806
  /**
5797
5807
  * Calculate contract address from class hash
5798
5808
  *
@@ -5808,17 +5818,6 @@ declare function computePoseidonHashOnElements(data: BigNumberish[]): string;
5808
5818
  * ```
5809
5819
  */
5810
5820
  declare function calculateContractAddressFromHash(salt: BigNumberish, classHash: BigNumberish, constructorCalldata: RawArgs, deployerAddress: BigNumberish): string;
5811
- /**
5812
- * Format json-string without spaces to conform starknet json-string
5813
- * @param {string} json json-string without spaces
5814
- * @returns {string} json-string with additional spaces after `:` and `,`
5815
- * @example
5816
- * ```typescript
5817
- * const result = hash.formatSpaces("{'onchain':true,'isStarknet':true}");
5818
- * // result = "{'onchain': true, 'isStarknet': true}"
5819
- * ```
5820
- */
5821
- declare function formatSpaces(json: string): string;
5822
5821
  /**
5823
5822
  * Compute hinted class hash for legacy compiled contract (Cairo 0)
5824
5823
  * @param {LegacyCompiledContract} compiledContract
@@ -5842,6 +5841,13 @@ declare function computeHintedClassHash(compiledContract: LegacyCompiledContract
5842
5841
  * ```
5843
5842
  */
5844
5843
  declare function computeLegacyContractClassHash(contract: LegacyCompiledContract | string): string;
5844
+
5845
+ /**
5846
+ * Cairo 1 Class Hash computation using Poseidon hash
5847
+ */
5848
+
5849
+ declare function computePoseidonHash(a: BigNumberish, b: BigNumberish): string;
5850
+ declare function computePoseidonHashOnElements(data: BigNumberish[]): string;
5845
5851
  /**
5846
5852
  * Compute hash of the bytecode for Sierra v1.5.0 onwards (Cairo 2.6.0)
5847
5853
  * Each segment is Poseidon hashed.
@@ -5867,7 +5873,7 @@ declare function hashByteCodeSegments(casm: CompiledSierraCasm): bigint;
5867
5873
  * // result = "0x4087905743b4fa2b3affc1fc71333f1390c8c5d1e8ea47d6ba70786de3fc01a"
5868
5874
  ```
5869
5875
  */
5870
- declare function computeCompiledClassHash(casm: CompiledSierraCasm): string;
5876
+ declare function computeCompiledClassHashPoseidon(casm: CompiledSierraCasm): string;
5871
5877
  /**
5872
5878
  * Compute sierra contract class hash (Cairo 1)
5873
5879
  * @param {CompiledSierra} sierra Cairo 1 Sierra contract content
@@ -5880,6 +5886,83 @@ declare function computeCompiledClassHash(casm: CompiledSierraCasm): string;
5880
5886
  ```
5881
5887
  */
5882
5888
  declare function computeSierraContractClassHash(sierra: CompiledSierra): string;
5889
+
5890
+ /**
5891
+ * Blake2s hash function for Starknet that produces a field element.
5892
+ * Matches the Blake2Felt252 implementation from Rust.
5893
+ *
5894
+ * The implementation:
5895
+ * 1. Encodes each Felt into u32 words (small: 2 words, large: 8 words)
5896
+ * 2. Serializes u32 words as little-endian bytes
5897
+ * 3. Computes Blake2s hash (32-byte output)
5898
+ * 4. Interprets hash as little-endian Felt
5899
+ */
5900
+ declare function blake2sHashMany(data: bigint[]): bigint;
5901
+ /**
5902
+ * Compute hash of the bytecode using Blake2s for nested segments.
5903
+ * Each segment is Blake2s hashed according to the segment structure.
5904
+ * For non-leaf nodes: 1 + Blake2sHash(len0, h0, len1, h1, ...)
5905
+ * @param {CompiledSierraCasm} casm compiled Sierra CASM file content.
5906
+ * @returns {bigint} the bytecode hash as bigint.
5907
+ * @example
5908
+ * ```typescript
5909
+ * const compiledCasm = json.parse(fs.readFileSync("./contractC260.casm.json").toString("ascii"));
5910
+ * const result = hash.hashByteCodeSegmentsBlake(compiledCasm);
5911
+ * ```
5912
+ */
5913
+ declare function hashByteCodeSegmentsBlake(casm: CompiledSierraCasm): bigint;
5914
+ /**
5915
+ * Compute compiled class hash for contract (Cairo 1) using Blake2s hashing (V2).
5916
+ * This implements the V2 hash version as specified in Starknet.
5917
+ * @param {CompiledSierraCasm} casm Cairo 1 compiled contract content
5918
+ * @returns {string} hex-string of compiled class hash
5919
+ * @example
5920
+ * ```typescript
5921
+ * const compiledCasm = json.parse(fs.readFileSync("./cairo260.casm.json").toString("ascii"));
5922
+ * const result = hash.computeCompiledClassHashBlake(compiledCasm);
5923
+ * ```
5924
+ */
5925
+ declare function computeCompiledClassHashBlake(casm: CompiledSierraCasm): string;
5926
+
5927
+ /**
5928
+ * Shared utilities for class hash computation
5929
+ */
5930
+
5931
+ /**
5932
+ * Compiled class version constant used in Cairo 1 compiled class hashing
5933
+ */
5934
+ declare const COMPILED_CLASS_VERSION = "COMPILED_CLASS_V1";
5935
+ /**
5936
+ * Format json-string without spaces to conform starknet json-string
5937
+ * @param {string} json json-string without spaces
5938
+ * @returns {string} json-string with additional spaces after `:` and `,`
5939
+ * @example
5940
+ * ```typescript
5941
+ * const result = hash.formatSpaces("{'onchain':true,'isStarknet':true}");
5942
+ * // result = "{'onchain': true, 'isStarknet': true}"
5943
+ * ```
5944
+ */
5945
+ declare function formatSpaces(json: string): string;
5946
+ /**
5947
+ * JSON replacer function that skips null values and empty arrays for specific keys
5948
+ * Used in legacy contract class serialization
5949
+ */
5950
+ declare function nullSkipReplacer(key: string, value: any): any;
5951
+ /**
5952
+ * Convert builtins array to encoded BigInt array
5953
+ * Common pattern used in both Poseidon and Blake2s hashing
5954
+ */
5955
+ declare function encodeBuiltins(builtins: Builtins): bigint[];
5956
+ /**
5957
+ * Extract entry point data for hashing
5958
+ * Returns flattened array of [selector, offset, ...builtins] for each entry point
5959
+ */
5960
+ declare function flattenEntryPointData(data: ContractEntryPointFields[], encodedBuiltinsArray: bigint[][]): bigint[];
5961
+
5962
+ /**
5963
+ * Class Hash Exports
5964
+ */
5965
+
5883
5966
  /**
5884
5967
  * Compute ClassHash (sierra or legacy) based on provided contract
5885
5968
  * @param {CompiledContract | string} contract Cairo 1 contract content
@@ -5892,14 +5975,23 @@ declare function computeSierraContractClassHash(sierra: CompiledSierra): string;
5892
5975
  ```
5893
5976
  */
5894
5977
  declare function computeContractClassHash(contract: CompiledContract | string): string;
5978
+ declare function computeCompiledClassHash(casm: CompiledSierraCasm,
5979
+ /**
5980
+ * Used to determine which hashing algorithm to use
5981
+ */
5982
+ specVersion?: _SupportedRpcVersion): string;
5895
5983
 
5896
5984
  /**
5897
5985
  * Hashes Exports
5898
5986
  */
5899
5987
 
5988
+ declare const index$3_COMPILED_CLASS_VERSION: typeof COMPILED_CLASS_VERSION;
5989
+ declare const index$3_blake2sHashMany: typeof blake2sHashMany;
5900
5990
  declare const index$3_calculateContractAddressFromHash: typeof calculateContractAddressFromHash;
5901
5991
  declare const index$3_calculateL2MessageTxHash: typeof calculateL2MessageTxHash;
5902
5992
  declare const index$3_computeCompiledClassHash: typeof computeCompiledClassHash;
5993
+ declare const index$3_computeCompiledClassHashBlake: typeof computeCompiledClassHashBlake;
5994
+ declare const index$3_computeCompiledClassHashPoseidon: typeof computeCompiledClassHashPoseidon;
5903
5995
  declare const index$3_computeContractClassHash: typeof computeContractClassHash;
5904
5996
  declare const index$3_computeHashOnElements: typeof computeHashOnElements;
5905
5997
  declare const index$3_computeHintedClassHash: typeof computeHintedClassHash;
@@ -5909,18 +6001,22 @@ declare const index$3_computePedersenHashOnElements: typeof computePedersenHashO
5909
6001
  declare const index$3_computePoseidonHash: typeof computePoseidonHash;
5910
6002
  declare const index$3_computePoseidonHashOnElements: typeof computePoseidonHashOnElements;
5911
6003
  declare const index$3_computeSierraContractClassHash: typeof computeSierraContractClassHash;
6004
+ declare const index$3_encodeBuiltins: typeof encodeBuiltins;
6005
+ declare const index$3_flattenEntryPointData: typeof flattenEntryPointData;
5912
6006
  declare const index$3_formatSpaces: typeof formatSpaces;
5913
6007
  declare const index$3_getL1MessageHash: typeof getL1MessageHash;
5914
6008
  declare const index$3_getL2MessageHash: typeof getL2MessageHash;
5915
6009
  declare const index$3_getSelector: typeof getSelector;
5916
6010
  declare const index$3_getSelectorFromName: typeof getSelectorFromName;
5917
6011
  declare const index$3_hashByteCodeSegments: typeof hashByteCodeSegments;
6012
+ declare const index$3_hashByteCodeSegmentsBlake: typeof hashByteCodeSegmentsBlake;
5918
6013
  declare const index$3_keccakBn: typeof keccakBn;
6014
+ declare const index$3_nullSkipReplacer: typeof nullSkipReplacer;
5919
6015
  declare const index$3_poseidon: typeof poseidon;
5920
6016
  declare const index$3_solidityUint256PackedKeccak256: typeof solidityUint256PackedKeccak256;
5921
6017
  declare const index$3_starknetKeccak: typeof starknetKeccak;
5922
6018
  declare namespace index$3 {
5923
- 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 };
6019
+ export { index$3_COMPILED_CLASS_VERSION as COMPILED_CLASS_VERSION, index$3_blake2sHashMany as blake2sHashMany, 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_computeCompiledClassHashBlake as computeCompiledClassHashBlake, index$3_computeCompiledClassHashPoseidon as computeCompiledClassHashPoseidon, 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_encodeBuiltins as encodeBuiltins, index$3_flattenEntryPointData as flattenEntryPointData, 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_hashByteCodeSegmentsBlake as hashByteCodeSegmentsBlake, index$3_keccakBn as keccakBn, index$3_nullSkipReplacer as nullSkipReplacer, index$3_poseidon as poseidon, index$3_solidityUint256PackedKeccak256 as solidityUint256PackedKeccak256, index$3_starknetKeccak as starknetKeccak };
5924
6020
  }
5925
6021
 
5926
6022
  /**
@@ -6078,6 +6174,7 @@ declare function tryToBigInt(value: BigNumberish | undefined): bigint | undefine
6078
6174
  * ```typescript
6079
6175
  * toHex(100); // '0x64'
6080
6176
  * toHex('200'); // '0xc8'
6177
+ * toHex('0x00023AB'); // '0x23ab'
6081
6178
  * ```
6082
6179
  */
6083
6180
  declare function toHex(value: BigNumberish): string;
@@ -6085,6 +6182,15 @@ declare function toHex(value: BigNumberish): string;
6085
6182
  * Alias of ToHex
6086
6183
  */
6087
6184
  declare const toHexString: typeof toHex;
6185
+ /**
6186
+ * Remove hex-string leading zeroes and lowercase it
6187
+ *
6188
+ * @example
6189
+ * ```typescript
6190
+ * cleanHex('0x00023AB'); // '0x23ab'
6191
+ * ```
6192
+ */
6193
+ declare function cleanHex(hex: string): string;
6088
6194
  /**
6089
6195
  * Convert BigNumberish to storage-key-string
6090
6196
  *
@@ -6127,17 +6233,6 @@ declare function toHex64(number: BigNumberish): string;
6127
6233
  * ```
6128
6234
  */
6129
6235
  declare function hexToDecimalString(hex: string): string;
6130
- /**
6131
- * Remove hex-string leading zeroes and lowercase it
6132
- *
6133
- * @param {string} hex hex-string
6134
- * @returns {string} updated string in hex-string format
6135
- * @example
6136
- * ```typescript
6137
- * cleanHex('0x00023AB'); // '0x23ab'
6138
- * ```
6139
- */
6140
- declare function cleanHex(hex: string): string;
6141
6236
  /**
6142
6237
  * Asserts input is equal to or greater then lowerBound and lower then upperBound.
6143
6238
  *
@@ -8010,6 +8105,32 @@ declare function toAnyPatchVersion(version: string): string;
8010
8105
  * @returns {string}
8011
8106
  */
8012
8107
  declare function toApiVersion(version: string): string;
8108
+ /**
8109
+ * Compare two semantic version strings segment by segment.
8110
+ * This function safely compares versions without collision risk between
8111
+ * versions like '0.0.1000' and '0.1.0'.
8112
+ *
8113
+ * @param {string} a First version string (e.g., '0.0.9')
8114
+ * @param {string} b Second version string (e.g., '0.0.10')
8115
+ * @returns {number} -1 if a < b, 0 if a === b, 1 if a > b
8116
+ * @example
8117
+ * ```typescript
8118
+ * const result1 = compareVersions('0.0.9', '0.0.10');
8119
+ * // result1 = -1 (0.0.9 < 0.0.10)
8120
+ *
8121
+ * const result2 = compareVersions('0.1.0', '0.0.1000');
8122
+ * // result2 = 1 (0.1.0 > 0.0.1000, correctly different!)
8123
+ *
8124
+ * const result3 = compareVersions('1.2.3', '1.2.3');
8125
+ * // result3 = 0 (equal versions)
8126
+ *
8127
+ * // Usage for version checks:
8128
+ * if (compareVersions(specVersion, '0.14.1') >= 0) {
8129
+ * // Use Blake2s hash for version >= 0.14.1
8130
+ * }
8131
+ * ```
8132
+ */
8133
+ declare function compareVersions(a: string, b: string): number;
8013
8134
  /**
8014
8135
  * Guard Pending Block
8015
8136
  * @param {GetBlockResponse} response answer of myProvider.getBlock()
@@ -9160,7 +9281,7 @@ declare function isSierra(contract: CairoContract | string): contract is SierraC
9160
9281
  * // }
9161
9282
  * ```
9162
9283
  */
9163
- declare function extractContractHashes(payload: DeclareContractPayload): CompleteDeclareContractPayload;
9284
+ declare function extractContractHashes(payload: DeclareContractPayload, specVersion?: _SupportedRpcVersion): CompleteDeclareContractPayload;
9164
9285
  /**
9165
9286
  * Helper to redeclare response Cairo0 contract
9166
9287
  */
@@ -9405,4 +9526,4 @@ declare class Logger {
9405
9526
  */
9406
9527
  declare const logger: Logger;
9407
9528
 
9408
- export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, 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, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, 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, type Details, EDAMode, EDataAvailabilityMode, ETH_ADDRESS, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, 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 FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, 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 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 ParsingStrategy, 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 ReconnectOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, 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, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, 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, WalletAccount, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, byteArray, cairo, config, constants, contractClassResponseToLegacyCompiledContract, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPaymaster, defaultProvider, ec, encode, eth, index as events, extractContractHashes, type fastExecuteResponse, fastParsingStrategy, type fastWaitForTransactionOptions, getAbiVersion, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isNoConstructorValid, 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 };
9529
+ export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, 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, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, 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, type Details, EDAMode, EDataAvailabilityMode, ETH_ADDRESS, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, 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 FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, 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 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 ParsingStrategy, 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 ReconnectOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, 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, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, 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, WalletAccount, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, byteArray, cairo, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPaymaster, defaultProvider, ec, encode, eth, index as events, extractContractHashes, type fastExecuteResponse, fastParsingStrategy, type fastWaitForTransactionOptions, getAbiVersion, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isNoConstructorValid, 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 };