starknet 6.8.0 → 6.9.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
@@ -1,5 +1,5 @@
1
1
  import * as RPCSPEC07 from 'starknet-types-07';
2
- import { ETransactionVersion as ETransactionVersion$1, ResourceBounds as ResourceBounds$2, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, BlockWithTxReceipts, InvokedTransaction as InvokedTransaction$2, DeclaredTransaction as DeclaredTransaction$2, DeployedAccountTransaction as DeployedAccountTransaction$1, L1Message as L1Message$1, EventFilter as EventFilter$1, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, EDAMode as EDAMode$1, Event as Event$1, ChainId as ChainId$1, AddInvokeTransactionParameters, AddDeclareTransactionParameters } from 'starknet-types-07';
2
+ import { ETransactionVersion as ETransactionVersion$1, ResourceBounds as ResourceBounds$2, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, BlockWithTxReceipts, InvokedTransaction as InvokedTransaction$2, DeclaredTransaction as DeclaredTransaction$2, DeployedAccountTransaction as DeployedAccountTransaction$1, L1Message as L1Message$1, EventFilter as EventFilter$1, SPEC, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, EDAMode as EDAMode$1, Event as Event$1, ChainId as ChainId$1, AddInvokeTransactionParameters, AddDeclareTransactionParameters } from 'starknet-types-07';
3
3
  export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from 'starknet-types-07';
4
4
  import * as weierstrass from '@noble/curves/abstract/weierstrass';
5
5
  import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
@@ -10,48 +10,20 @@ import * as json$1 from 'lossless-json';
10
10
  import * as starknet from '@scure/starknet';
11
11
 
12
12
  function _mergeNamespaces(n, m) {
13
- m.forEach(function (e) {
14
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
15
- if (k !== 'default' && !(k in n)) {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
13
+ m.forEach(function (e) {
14
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default' && !(k in n)) {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
22
20
  });
21
+ }
23
22
  });
24
- return Object.freeze(n);
23
+ });
24
+ return Object.freeze(n);
25
25
  }
26
26
 
27
- /**
28
- * PRIMITIVES
29
- */
30
- /**
31
- * A field element. represented by at most 63 hex digits
32
- * @pattern ^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$
33
- */
34
- type FELT$2 = string;
35
- /**
36
- * 64 bit integers, represented by hex string of length at most 16
37
- * "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,15})$"
38
- */
39
- type u64$1 = string;
40
- /**
41
- * 64 bit integers, represented by hex string of length at most 32
42
- * "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,31})$"
43
- */
44
- type u128$1 = string;
45
- type SIGNATURE$1 = Array<FELT$2>;
46
- type RESOURCE_BOUNDS_MAPPING$1 = {
47
- l1_gas: RESOURCE_BOUNDS$1;
48
- l2_gas: RESOURCE_BOUNDS$1;
49
- };
50
- type RESOURCE_BOUNDS$1 = {
51
- max_amount: u64$1;
52
- max_price_per_unit: u128$1;
53
- };
54
-
55
27
  type RequestBody = {
56
28
  id: number | string;
57
29
  jsonrpc: '2.0';
@@ -123,7 +95,7 @@ type FUNCTION_ABI_TYPE = 'function' | 'l1_handler' | 'constructor';
123
95
  type ENTRY_POINT_TYPE = 'EXTERNAL' | 'L1_HANDLER' | 'CONSTRUCTOR';
124
96
  type CALL_TYPE = 'DELEGATE' | 'LIBRARY_CALL' | 'CALL';
125
97
  type TXN_STATUS = 'RECEIVED' | 'REJECTED' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
126
- type SIMULATION_FLAG$2 = 'SKIP_VALIDATE' | 'SKIP_FEE_CHARGE';
98
+ type SIMULATION_FLAG$1 = 'SKIP_VALIDATE' | 'SKIP_FEE_CHARGE';
127
99
  type DA_MODE = 'L1' | 'L2';
128
100
  type TXN_TYPE = 'DECLARE' | 'DEPLOY' | 'DEPLOY_ACCOUNT' | 'INVOKE' | 'L1_HANDLER';
129
101
  type TXN_FINALITY_STATUS = 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
@@ -724,7 +696,7 @@ type components_TYPED_PARAMETER = TYPED_PARAMETER;
724
696
  type components_u128 = u128;
725
697
  type components_u64 = u64;
726
698
  declare namespace components {
727
- export type { components_ADDRESS as ADDRESS, components_BLOCK_BODY_WITH_TXS as BLOCK_BODY_WITH_TXS, components_BLOCK_BODY_WITH_TX_HASHES as BLOCK_BODY_WITH_TX_HASHES, BLOCK_HASH$1 as BLOCK_HASH, components_BLOCK_HEADER as BLOCK_HEADER, components_BLOCK_ID as BLOCK_ID, BLOCK_NUMBER$1 as BLOCK_NUMBER, components_BLOCK_STATUS as BLOCK_STATUS, components_BLOCK_TAG as BLOCK_TAG, components_BLOCK_WITH_TXS as BLOCK_WITH_TXS, components_BLOCK_WITH_TX_HASHES as BLOCK_WITH_TX_HASHES, components_BROADCASTED_DECLARE_TXN as BROADCASTED_DECLARE_TXN, components_BROADCASTED_DECLARE_TXN_V1 as BROADCASTED_DECLARE_TXN_V1, components_BROADCASTED_DECLARE_TXN_V2 as BROADCASTED_DECLARE_TXN_V2, components_BROADCASTED_DECLARE_TXN_V3 as BROADCASTED_DECLARE_TXN_V3, components_BROADCASTED_DEPLOY_ACCOUNT_TXN as BROADCASTED_DEPLOY_ACCOUNT_TXN, components_BROADCASTED_INVOKE_TXN as BROADCASTED_INVOKE_TXN, components_BROADCASTED_TXN as BROADCASTED_TXN, components_CALL_TYPE as CALL_TYPE, components_CHAIN_ID as CHAIN_ID, components_COMMON_RECEIPT_PROPERTIES as COMMON_RECEIPT_PROPERTIES, components_CONTRACT_ABI as CONTRACT_ABI, components_CONTRACT_ABI_ENTRY as CONTRACT_ABI_ENTRY, components_CONTRACT_CLASS as CONTRACT_CLASS, components_CONTRACT_STORAGE_DIFF_ITEM as CONTRACT_STORAGE_DIFF_ITEM, components_DA_MODE as DA_MODE, components_DECLARE_TXN as DECLARE_TXN, DECLARE_TXN_RECEIPT$1 as DECLARE_TXN_RECEIPT, components_DECLARE_TXN_TRACE as DECLARE_TXN_TRACE, components_DECLARE_TXN_V0 as DECLARE_TXN_V0, components_DECLARE_TXN_V1 as DECLARE_TXN_V1, components_DECLARE_TXN_V2 as DECLARE_TXN_V2, components_DECLARE_TXN_V3 as DECLARE_TXN_V3, components_DEPLOYED_CONTRACT_ITEM as DEPLOYED_CONTRACT_ITEM, components_DEPLOY_ACCOUNT_TXN as DEPLOY_ACCOUNT_TXN, DEPLOY_ACCOUNT_TXN_RECEIPT$1 as DEPLOY_ACCOUNT_TXN_RECEIPT, components_DEPLOY_ACCOUNT_TXN_TRACE as DEPLOY_ACCOUNT_TXN_TRACE, components_DEPLOY_ACCOUNT_TXN_V1 as DEPLOY_ACCOUNT_TXN_V1, components_DEPLOY_ACCOUNT_TXN_V3 as DEPLOY_ACCOUNT_TXN_V3, components_DEPLOY_TXN as DEPLOY_TXN, components_DEPLOY_TXN_RECEIPT as DEPLOY_TXN_RECEIPT, components_DEPRECATED_CAIRO_ENTRY_POINT as DEPRECATED_CAIRO_ENTRY_POINT, components_DEPRECATED_CONTRACT_CLASS as DEPRECATED_CONTRACT_CLASS, components_EMITTED_EVENT as EMITTED_EVENT, components_ENTRY_POINT_TYPE as ENTRY_POINT_TYPE, components_ETH_ADDRESS as ETH_ADDRESS, EVENT$1 as EVENT, components_EVENTS_CHUNK as EVENTS_CHUNK, components_EVENT_ABI_ENTRY as EVENT_ABI_ENTRY, components_EVENT_ABI_TYPE as EVENT_ABI_TYPE, components_EVENT_CONTENT as EVENT_CONTENT, components_EVENT_FILTER as EVENT_FILTER, components_EXECUTION_RESOURCES as EXECUTION_RESOURCES, components_FEE_ESTIMATE as FEE_ESTIMATE, components_FEE_PAYMENT as FEE_PAYMENT, FELT$1 as FELT, components_FUNCTION_ABI_ENTRY as FUNCTION_ABI_ENTRY, components_FUNCTION_ABI_TYPE as FUNCTION_ABI_TYPE, components_FUNCTION_CALL as FUNCTION_CALL, components_FUNCTION_INVOCATION as FUNCTION_INVOCATION, components_FUNCTION_STATE_MUTABILITY as FUNCTION_STATE_MUTABILITY, components_INVOKE_TXN as INVOKE_TXN, INVOKE_TXN_RECEIPT$1 as INVOKE_TXN_RECEIPT, components_INVOKE_TXN_TRACE as INVOKE_TXN_TRACE, components_INVOKE_TXN_V0 as INVOKE_TXN_V0, components_INVOKE_TXN_V1 as INVOKE_TXN_V1, components_INVOKE_TXN_V3 as INVOKE_TXN_V3, components_L1_HANDLER_TXN as L1_HANDLER_TXN, L1_HANDLER_TXN_RECEIPT$1 as L1_HANDLER_TXN_RECEIPT, components_L1_HANDLER_TXN_TRACE as L1_HANDLER_TXN_TRACE, components_MSG_FROM_L1 as MSG_FROM_L1, components_MSG_TO_L1 as MSG_TO_L1, components_NESTED_CALL as NESTED_CALL, components_NEW_CLASSES as NEW_CLASSES, components_NONCE_UPDATE as NONCE_UPDATE, components_NUM_AS_HEX as NUM_AS_HEX, components_ORDERED_EVENT as ORDERED_EVENT, components_ORDERED_MESSAGE as ORDERED_MESSAGE, components_PENDING_BLOCK_HEADER as PENDING_BLOCK_HEADER, components_PENDING_BLOCK_WITH_TXS as PENDING_BLOCK_WITH_TXS, components_PENDING_BLOCK_WITH_TX_HASHES as PENDING_BLOCK_WITH_TX_HASHES, components_PENDING_COMMON_RECEIPT_PROPERTIES as PENDING_COMMON_RECEIPT_PROPERTIES, PENDING_DECLARE_TXN_RECEIPT$1 as PENDING_DECLARE_TXN_RECEIPT, PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1 as PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, PENDING_INVOKE_TXN_RECEIPT$1 as PENDING_INVOKE_TXN_RECEIPT, PENDING_L1_HANDLER_TXN_RECEIPT$1 as PENDING_L1_HANDLER_TXN_RECEIPT, PENDING_STATE_UPDATE$1 as PENDING_STATE_UPDATE, components_PENDING_TXN_RECEIPT as PENDING_TXN_RECEIPT, PRICE_UNIT$1 as PRICE_UNIT, components_REPLACED_CLASS as REPLACED_CLASS, components_RESOURCE_BOUNDS as RESOURCE_BOUNDS, components_RESOURCE_BOUNDS_MAPPING as RESOURCE_BOUNDS_MAPPING, RESOURCE_PRICE$1 as RESOURCE_PRICE, components_RESULT_PAGE_REQUEST as RESULT_PAGE_REQUEST, components_SIERRA_ENTRY_POINT as SIERRA_ENTRY_POINT, components_SIGNATURE as SIGNATURE, SIMULATION_FLAG$2 as SIMULATION_FLAG, components_SIMULATION_FLAG_FOR_ESTIMATE_FEE as SIMULATION_FLAG_FOR_ESTIMATE_FEE, components_STATE_DIFF as STATE_DIFF, STATE_UPDATE$1 as STATE_UPDATE, components_STORAGE_KEY as STORAGE_KEY, components_STRUCT_ABI_ENTRY as STRUCT_ABI_ENTRY, components_STRUCT_ABI_TYPE as STRUCT_ABI_TYPE, components_STRUCT_MEMBER as STRUCT_MEMBER, components_SYNC_STATUS as SYNC_STATUS, components_StorageDiffItem as StorageDiffItem, components_TRANSACTION_TRACE as TRANSACTION_TRACE, components_TXN as TXN, components_TXN_EXECUTION_STATUS as TXN_EXECUTION_STATUS, components_TXN_FINALITY_STATUS as TXN_FINALITY_STATUS, TXN_HASH$1 as TXN_HASH, components_TXN_RECEIPT as TXN_RECEIPT, components_TXN_STATUS as TXN_STATUS, components_TXN_TYPE as TXN_TYPE, components_TYPED_PARAMETER as TYPED_PARAMETER, components_u128 as u128, components_u64 as u64 };
699
+ export type { components_ADDRESS as ADDRESS, components_BLOCK_BODY_WITH_TXS as BLOCK_BODY_WITH_TXS, components_BLOCK_BODY_WITH_TX_HASHES as BLOCK_BODY_WITH_TX_HASHES, BLOCK_HASH$1 as BLOCK_HASH, components_BLOCK_HEADER as BLOCK_HEADER, components_BLOCK_ID as BLOCK_ID, BLOCK_NUMBER$1 as BLOCK_NUMBER, components_BLOCK_STATUS as BLOCK_STATUS, components_BLOCK_TAG as BLOCK_TAG, components_BLOCK_WITH_TXS as BLOCK_WITH_TXS, components_BLOCK_WITH_TX_HASHES as BLOCK_WITH_TX_HASHES, components_BROADCASTED_DECLARE_TXN as BROADCASTED_DECLARE_TXN, components_BROADCASTED_DECLARE_TXN_V1 as BROADCASTED_DECLARE_TXN_V1, components_BROADCASTED_DECLARE_TXN_V2 as BROADCASTED_DECLARE_TXN_V2, components_BROADCASTED_DECLARE_TXN_V3 as BROADCASTED_DECLARE_TXN_V3, components_BROADCASTED_DEPLOY_ACCOUNT_TXN as BROADCASTED_DEPLOY_ACCOUNT_TXN, components_BROADCASTED_INVOKE_TXN as BROADCASTED_INVOKE_TXN, components_BROADCASTED_TXN as BROADCASTED_TXN, components_CALL_TYPE as CALL_TYPE, components_CHAIN_ID as CHAIN_ID, components_COMMON_RECEIPT_PROPERTIES as COMMON_RECEIPT_PROPERTIES, components_CONTRACT_ABI as CONTRACT_ABI, components_CONTRACT_ABI_ENTRY as CONTRACT_ABI_ENTRY, components_CONTRACT_CLASS as CONTRACT_CLASS, components_CONTRACT_STORAGE_DIFF_ITEM as CONTRACT_STORAGE_DIFF_ITEM, components_DA_MODE as DA_MODE, components_DECLARE_TXN as DECLARE_TXN, DECLARE_TXN_RECEIPT$1 as DECLARE_TXN_RECEIPT, components_DECLARE_TXN_TRACE as DECLARE_TXN_TRACE, components_DECLARE_TXN_V0 as DECLARE_TXN_V0, components_DECLARE_TXN_V1 as DECLARE_TXN_V1, components_DECLARE_TXN_V2 as DECLARE_TXN_V2, components_DECLARE_TXN_V3 as DECLARE_TXN_V3, components_DEPLOYED_CONTRACT_ITEM as DEPLOYED_CONTRACT_ITEM, components_DEPLOY_ACCOUNT_TXN as DEPLOY_ACCOUNT_TXN, DEPLOY_ACCOUNT_TXN_RECEIPT$1 as DEPLOY_ACCOUNT_TXN_RECEIPT, components_DEPLOY_ACCOUNT_TXN_TRACE as DEPLOY_ACCOUNT_TXN_TRACE, components_DEPLOY_ACCOUNT_TXN_V1 as DEPLOY_ACCOUNT_TXN_V1, components_DEPLOY_ACCOUNT_TXN_V3 as DEPLOY_ACCOUNT_TXN_V3, components_DEPLOY_TXN as DEPLOY_TXN, components_DEPLOY_TXN_RECEIPT as DEPLOY_TXN_RECEIPT, components_DEPRECATED_CAIRO_ENTRY_POINT as DEPRECATED_CAIRO_ENTRY_POINT, components_DEPRECATED_CONTRACT_CLASS as DEPRECATED_CONTRACT_CLASS, components_EMITTED_EVENT as EMITTED_EVENT, components_ENTRY_POINT_TYPE as ENTRY_POINT_TYPE, components_ETH_ADDRESS as ETH_ADDRESS, EVENT$1 as EVENT, components_EVENTS_CHUNK as EVENTS_CHUNK, components_EVENT_ABI_ENTRY as EVENT_ABI_ENTRY, components_EVENT_ABI_TYPE as EVENT_ABI_TYPE, components_EVENT_CONTENT as EVENT_CONTENT, components_EVENT_FILTER as EVENT_FILTER, components_EXECUTION_RESOURCES as EXECUTION_RESOURCES, components_FEE_ESTIMATE as FEE_ESTIMATE, components_FEE_PAYMENT as FEE_PAYMENT, FELT$1 as FELT, components_FUNCTION_ABI_ENTRY as FUNCTION_ABI_ENTRY, components_FUNCTION_ABI_TYPE as FUNCTION_ABI_TYPE, components_FUNCTION_CALL as FUNCTION_CALL, components_FUNCTION_INVOCATION as FUNCTION_INVOCATION, components_FUNCTION_STATE_MUTABILITY as FUNCTION_STATE_MUTABILITY, components_INVOKE_TXN as INVOKE_TXN, INVOKE_TXN_RECEIPT$1 as INVOKE_TXN_RECEIPT, components_INVOKE_TXN_TRACE as INVOKE_TXN_TRACE, components_INVOKE_TXN_V0 as INVOKE_TXN_V0, components_INVOKE_TXN_V1 as INVOKE_TXN_V1, components_INVOKE_TXN_V3 as INVOKE_TXN_V3, components_L1_HANDLER_TXN as L1_HANDLER_TXN, L1_HANDLER_TXN_RECEIPT$1 as L1_HANDLER_TXN_RECEIPT, components_L1_HANDLER_TXN_TRACE as L1_HANDLER_TXN_TRACE, components_MSG_FROM_L1 as MSG_FROM_L1, components_MSG_TO_L1 as MSG_TO_L1, components_NESTED_CALL as NESTED_CALL, components_NEW_CLASSES as NEW_CLASSES, components_NONCE_UPDATE as NONCE_UPDATE, components_NUM_AS_HEX as NUM_AS_HEX, components_ORDERED_EVENT as ORDERED_EVENT, components_ORDERED_MESSAGE as ORDERED_MESSAGE, components_PENDING_BLOCK_HEADER as PENDING_BLOCK_HEADER, components_PENDING_BLOCK_WITH_TXS as PENDING_BLOCK_WITH_TXS, components_PENDING_BLOCK_WITH_TX_HASHES as PENDING_BLOCK_WITH_TX_HASHES, components_PENDING_COMMON_RECEIPT_PROPERTIES as PENDING_COMMON_RECEIPT_PROPERTIES, PENDING_DECLARE_TXN_RECEIPT$1 as PENDING_DECLARE_TXN_RECEIPT, PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1 as PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, PENDING_INVOKE_TXN_RECEIPT$1 as PENDING_INVOKE_TXN_RECEIPT, PENDING_L1_HANDLER_TXN_RECEIPT$1 as PENDING_L1_HANDLER_TXN_RECEIPT, PENDING_STATE_UPDATE$1 as PENDING_STATE_UPDATE, components_PENDING_TXN_RECEIPT as PENDING_TXN_RECEIPT, PRICE_UNIT$1 as PRICE_UNIT, components_REPLACED_CLASS as REPLACED_CLASS, components_RESOURCE_BOUNDS as RESOURCE_BOUNDS, components_RESOURCE_BOUNDS_MAPPING as RESOURCE_BOUNDS_MAPPING, RESOURCE_PRICE$1 as RESOURCE_PRICE, components_RESULT_PAGE_REQUEST as RESULT_PAGE_REQUEST, components_SIERRA_ENTRY_POINT as SIERRA_ENTRY_POINT, components_SIGNATURE as SIGNATURE, SIMULATION_FLAG$1 as SIMULATION_FLAG, components_SIMULATION_FLAG_FOR_ESTIMATE_FEE as SIMULATION_FLAG_FOR_ESTIMATE_FEE, components_STATE_DIFF as STATE_DIFF, STATE_UPDATE$1 as STATE_UPDATE, components_STORAGE_KEY as STORAGE_KEY, components_STRUCT_ABI_ENTRY as STRUCT_ABI_ENTRY, components_STRUCT_ABI_TYPE as STRUCT_ABI_TYPE, components_STRUCT_MEMBER as STRUCT_MEMBER, components_SYNC_STATUS as SYNC_STATUS, components_StorageDiffItem as StorageDiffItem, components_TRANSACTION_TRACE as TRANSACTION_TRACE, components_TXN as TXN, components_TXN_EXECUTION_STATUS as TXN_EXECUTION_STATUS, components_TXN_FINALITY_STATUS as TXN_FINALITY_STATUS, TXN_HASH$1 as TXN_HASH, components_TXN_RECEIPT as TXN_RECEIPT, components_TXN_STATUS as TXN_STATUS, components_TXN_TYPE as TXN_TYPE, components_TYPED_PARAMETER as TYPED_PARAMETER, components_u128 as u128, components_u64 as u64 };
728
700
  }
729
701
 
730
702
  interface FAILED_TO_RECEIVE_TXN {
@@ -939,7 +911,7 @@ type TransactionReceipt$1 = TXN_RECEIPT | PENDING_TXN_RECEIPT;
939
911
  type Receipt = TXN_RECEIPT;
940
912
  type PendingReceipt = PENDING_TXN_RECEIPT;
941
913
  type EventFilter = EVENT_FILTER & RESULT_PAGE_REQUEST;
942
- type SimulationFlags$1 = Array<SIMULATION_FLAG$2>;
914
+ type SimulationFlags$1 = Array<SIMULATION_FLAG$1>;
943
915
  type L1Message = MSG_FROM_L1;
944
916
  type BaseTransaction = BROADCASTED_TXN;
945
917
  type ChainId = CHAIN_ID;
@@ -1222,7 +1194,7 @@ type TraceMethods = {
1222
1194
  params: {
1223
1195
  block_id: BLOCK_ID;
1224
1196
  transactions: Array<BROADCASTED_TXN>;
1225
- simulation_flags: Array<SIMULATION_FLAG$2>;
1197
+ simulation_flags: Array<SIMULATION_FLAG$1>;
1226
1198
  };
1227
1199
  result: SimulateTransactionResponse$1;
1228
1200
  errors: BLOCK_NOT_FOUND | TRANSACTION_EXECUTION_ERROR;
@@ -1373,10 +1345,10 @@ declare namespace index$4 {
1373
1345
  }
1374
1346
 
1375
1347
  var index$3 = /*#__PURE__*/_mergeNamespaces({
1376
- __proto__: null,
1377
- JRPC: index$5,
1378
- RPCSPEC06: index$4,
1379
- RPCSPEC07: RPCSPEC07
1348
+ __proto__: null,
1349
+ JRPC: index$5,
1350
+ RPCSPEC06: index$4,
1351
+ RPCSPEC07: RPCSPEC07
1380
1352
  }, [RPCSPEC07]);
1381
1353
 
1382
1354
  declare const IS_BROWSER: boolean;
@@ -1388,12 +1360,34 @@ declare const IS_BROWSER: boolean;
1388
1360
  * Convert array buffer to string
1389
1361
  *
1390
1362
  * *[internal usage]*
1363
+ *
1364
+ * @param {ArrayBuffer} array The ArrayBuffer to convert to string.
1365
+ * @returns {string} The converted string.
1366
+ *
1367
+ * @example
1368
+ * ```typescript
1369
+ * const buffer = new ArrayBuffer(5);
1370
+ * const view = new Uint8Array(buffer);
1371
+ * [72, 101, 108, 108, 111].forEach((x, idx) => view[idx] = x);
1372
+ * const result = encode.arrayBufferToString(buffer);
1373
+ * // result = "Hello"
1374
+ * ```
1391
1375
  */
1392
1376
  declare function arrayBufferToString(array: ArrayBuffer): string;
1393
1377
  /**
1394
1378
  * Convert utf8-string to Uint8Array
1395
1379
  *
1396
1380
  * *[internal usage]*
1381
+ *
1382
+ * @param {string} str The UTF-8 string to convert.
1383
+ * @returns {Uint8Array} The encoded Uint8Array.
1384
+ *
1385
+ * @example
1386
+ * ```typescript
1387
+ * const myString = 'Hi';
1388
+ * const result = encode.utf8ToArray(myString);
1389
+ * // result = Uint8Array(2) [ 72, 105 ]
1390
+ * ```
1397
1391
  */
1398
1392
  declare function utf8ToArray(str: string): Uint8Array;
1399
1393
  /**
@@ -1404,57 +1398,164 @@ declare function utf8ToArray(str: string): Uint8Array;
1404
1398
  declare function stringToArrayBuffer(str: string): Uint8Array;
1405
1399
  /**
1406
1400
  * Convert string to array buffer (browser and node compatible)
1401
+ *
1402
+ * @param {string} a The Base64 encoded string to convert.
1403
+ * @returns {Uint8Array} The decoded Uint8Array.
1404
+ *
1405
+ * @example
1406
+ * ```typescript
1407
+ * const base64String = 'SGVsbG8='; // 'Hello' in Base64
1408
+ * const result = encode.atobUniversal(base64String);
1409
+ * // result = Uint8Array(5) [ 72, 101, 108, 108, 111 ]
1410
+ * ```
1407
1411
  */
1408
1412
  declare function atobUniversal(a: string): Uint8Array;
1409
1413
  /**
1410
1414
  * Convert array buffer to string (browser and node compatible)
1415
+ *
1416
+ * @param {ArrayBuffer} b The Array buffer.
1417
+ * @returns {string} The Base64 encoded string.
1418
+ *
1419
+ * @example
1420
+ * ```typescript
1421
+ * const buffer = new Uint8Array([72, 101, 108, 108, 111]); // Array with ASCII values for 'Hello'
1422
+ * const result = encode.btoaUniversal(buffer);
1423
+ * // result = "SGVsbG8="
1424
+ * ```
1411
1425
  */
1412
1426
  declare function btoaUniversal(b: ArrayBuffer): string;
1413
1427
  /**
1414
1428
  * Convert array buffer to hex-string
1415
- * @returns format: hex-string
1429
+ *
1430
+ * @param {Uint8Array} buffer The encoded Uint8Array.
1431
+ * @returns {string} The hex-string
1432
+ *
1433
+ * @example
1434
+ * ```typescript
1435
+ * const buffer = new Uint8Array([72, 101, 108, 108, 111]); // Array with ASCII values for 'Hello'
1436
+ * const result = encode.buf2hex(buffer);
1437
+ * // result = "48656c6c6f"
1438
+ * ```
1416
1439
  */
1417
1440
  declare function buf2hex(buffer: Uint8Array): string;
1418
1441
  /**
1419
1442
  * Remove hex prefix '0x' from hex-string
1420
1443
  * @param hex hex-string
1421
- * @returns format: base16-string
1444
+ * @returns {string} The hex-string
1445
+ *
1446
+ * @example
1447
+ * ```typescript
1448
+ * const hexStringWithPrefix = '0x48656c6c6f';
1449
+ * const result = encode.removeHexPrefix(hexStringWithPrefix);
1450
+ * // result: "48656c6c6f"
1451
+ * ```
1422
1452
  */
1423
1453
  declare function removeHexPrefix(hex: string): string;
1424
1454
  /**
1425
1455
  * Add hex prefix '0x' to base16-string
1426
1456
  * @param hex base16-string
1427
- * @returns format: hex-string
1457
+ * @returns {string} The hex-string
1458
+ *
1459
+ * @example
1460
+ * ```typescript
1461
+ * const plainHexString = '48656c6c6f';
1462
+ * const result = encode.addHexPrefix(plainHexString);
1463
+ * // result: "0x48656c6c6f"
1464
+ * ```
1428
1465
  */
1429
1466
  declare function addHexPrefix(hex: string): string;
1430
1467
  /**
1431
1468
  * Prepend string (default with '0')
1469
+ *
1470
+ * Pads a string to a certain length with a specific string.
1471
+ * The padding can be applied only to the left of the input string.
1472
+ *
1473
+ * @param {string} str The string to pad.
1474
+ * @param {number} length The target length for the padded string.
1475
+ * @param {string} [padding='0'] The string to use for padding. Defaults to '0'.
1476
+ * @returns {string} The padded string.
1477
+ *
1478
+ * @example
1479
+ * ```typescript
1480
+ * const myString = '1A3F';
1481
+ * const result = encode.padLeft(myString, 10);
1482
+ * // result: '0000001A3F'
1483
+ * ```
1432
1484
  */
1433
1485
  declare function padLeft(str: string, length: number, padding?: string): string;
1434
1486
  /**
1435
1487
  * Calculate byte length of string
1436
1488
  *
1437
1489
  * *[no internal usage]*
1490
+ *
1491
+ * Calculates the byte length of a string based on a specified byte size.
1492
+ * The function rounds up the byte count to the nearest multiple of the specified byte size.
1493
+ *
1494
+ * @param {string} str The string whose byte length is to be calculated.
1495
+ * @param {number} [byteSize='8'] The size of the byte block to round up to. Defaults to 8.
1496
+ * @returns {number} The calculated byte length, rounded to the nearest multiple of byteSize.
1497
+ *
1498
+ * @example
1499
+ * ```typescript
1500
+ * const myString = 'Hello';
1501
+ * const result = encode.calcByteLength(myString, 4);
1502
+ * // result = 8 (rounded up to the nearest multiple of 4)
1503
+ *
1504
+ * ```
1438
1505
  */
1439
1506
  declare function calcByteLength(str: string, byteSize?: number): number;
1440
1507
  /**
1441
1508
  * Prepend '0' to string bytes
1442
1509
  *
1443
1510
  * *[no internal usage]*
1511
+ *
1512
+ *
1513
+ * * Prepends padding to the left of a string to ensure it matches a specific byte length.
1514
+ * The function uses a specified padding character and rounds up the string length to the nearest multiple of `byteSize`.
1515
+ *
1516
+ * @param {string} str The string to be padded.
1517
+ * @param {number} [byteSize='8'] The byte block size to which the string length should be rounded up. Defaults to 8.
1518
+ * @param {string} [padding='0'] The character to use for padding. Defaults to '0'.
1519
+ * @returns {string} The padded string.
1520
+ *
1521
+ * @example
1522
+ * ```typescript
1523
+ * const myString = '123';
1524
+ * const result = encode.sanitizeBytes(myString);
1525
+ * // result: '00000123' (padded to 8 characters)
1526
+ * ```
1444
1527
  */
1445
1528
  declare function sanitizeBytes(str: string, byteSize?: number, padding?: string): string;
1446
1529
  /**
1447
- * Prepend '0' to hex-string bytes
1530
+ * Sanitizes a hex-string by removing any existing '0x' prefix, padding the string with '0' to ensure it has even length,
1531
+ * and then re-adding the '0x' prefix.
1448
1532
  *
1449
1533
  * *[no internal usage]*
1450
1534
  * @param hex hex-string
1451
1535
  * @returns format: hex-string
1536
+ *
1537
+ * @example
1538
+ * ```typescript
1539
+ * const unevenHex = '0x23abc';
1540
+ * const result = encode.sanitizeHex(unevenHex);
1541
+ * // result = '0x023abc' (padded to ensure even length)
1542
+ * ```
1452
1543
  */
1453
1544
  declare function sanitizeHex(hex: string): string;
1454
1545
  /**
1455
1546
  * String transformation util
1456
1547
  *
1457
1548
  * Pascal case to screaming snake case
1549
+ *
1550
+ * @param {string} text The PascalCase string to convert.
1551
+ * @returns {string} The converted snake_case string in uppercase.
1552
+ *
1553
+ * @example
1554
+ * ```typescript
1555
+ * const pascalString = 'PascalCaseExample';
1556
+ * const result = encode.pascalToSnake(pascalString);
1557
+ * // result: 'PASCAL_CASE_EXAMPLE'
1558
+ * ```
1458
1559
  */
1459
1560
  declare const pascalToSnake: (text: string) => string;
1460
1561
 
@@ -1501,17 +1602,14 @@ declare const RANGE_U128: {
1501
1602
  };
1502
1603
  declare enum BaseUrl {
1503
1604
  SN_MAIN = "https://alpha-mainnet.starknet.io",
1504
- SN_GOERLI = "https://alpha4.starknet.io",
1505
1605
  SN_SEPOLIA = "https://alpha-sepolia.starknet.io"
1506
1606
  }
1507
1607
  declare enum NetworkName {
1508
1608
  SN_MAIN = "SN_MAIN",
1509
- SN_GOERLI = "SN_GOERLI",
1510
1609
  SN_SEPOLIA = "SN_SEPOLIA"
1511
1610
  }
1512
1611
  declare enum StarknetChainId {
1513
1612
  SN_MAIN = "0x534e5f4d41494e",// encodeShortString('SN_MAIN'),
1514
- SN_GOERLI = "0x534e5f474f45524c49",// encodeShortString('SN_GOERLI')
1515
1613
  SN_SEPOLIA = "0x534e5f5345504f4c4941"
1516
1614
  }
1517
1615
  declare enum TransactionHashPrefix {
@@ -1532,7 +1630,6 @@ declare const UDC: {
1532
1630
  };
1533
1631
  declare const RPC_DEFAULT_VERSION = "v0_7";
1534
1632
  declare const RPC_NODES: {
1535
- SN_GOERLI: string[];
1536
1633
  SN_MAIN: string[];
1537
1634
  SN_SEPOLIA: string[];
1538
1635
  };
@@ -1683,7 +1780,7 @@ declare class CairoResult<T, U> {
1683
1780
  type CairoEnum = CairoCustomEnum | CairoOption<any> | CairoResult<any, any>;
1684
1781
 
1685
1782
  /** ABI */
1686
- type Abi = ReadonlyArray<FunctionAbi | EventAbi | StructAbi | any>;
1783
+ type Abi = ReadonlyArray<FunctionAbi | EventAbi | StructAbi | InterfaceAbi | any>;
1687
1784
  type AbiEntry = {
1688
1785
  name: string;
1689
1786
  type: 'felt' | 'felt*' | string;
@@ -1717,6 +1814,14 @@ type StructAbi = {
1717
1814
  size: number;
1718
1815
  type: 'struct';
1719
1816
  };
1817
+ type AbiInterfaces = {
1818
+ [name: string]: InterfaceAbi;
1819
+ };
1820
+ type InterfaceAbi = {
1821
+ items: FunctionAbi[];
1822
+ name: string;
1823
+ type: 'interface';
1824
+ };
1720
1825
  type AbiEnums = {
1721
1826
  [name: string]: EnumAbi;
1722
1827
  };
@@ -2101,6 +2206,7 @@ interface ProviderOptions extends RpcProviderOptions {
2101
2206
  type RpcProviderOptions = {
2102
2207
  nodeUrl?: string | NetworkName;
2103
2208
  retries?: number;
2209
+ transactionRetryIntervalFallback?: number;
2104
2210
  headers?: object;
2105
2211
  blockIdentifier?: BlockIdentifier;
2106
2212
  chainId?: StarknetChainId;
@@ -2137,7 +2243,7 @@ type FELT = Merge<FELT$1, RPCSPEC07.SPEC.FELT>;
2137
2243
  type TXN_HASH = Merge<TXN_HASH$1, RPCSPEC07.SPEC.TXN_HASH>;
2138
2244
  type PRICE_UNIT = Merge<PRICE_UNIT$1, RPCSPEC07.SPEC.PRICE_UNIT>;
2139
2245
  type RESOURCE_PRICE = Merge<RESOURCE_PRICE$1, RPCSPEC07.SPEC.RESOURCE_PRICE>;
2140
- type SIMULATION_FLAG$1 = Merge<SIMULATION_FLAG$2, RPCSPEC07.SPEC.SIMULATION_FLAG>;
2246
+ type SIMULATION_FLAG = Merge<SIMULATION_FLAG$1, RPCSPEC07.SPEC.SIMULATION_FLAG>;
2141
2247
  type STATE_UPDATE = Merge<STATE_UPDATE$1, RPCSPEC07.SPEC.STATE_UPDATE>;
2142
2248
  type PENDING_STATE_UPDATE = Merge<PENDING_STATE_UPDATE$1, RPCSPEC07.SPEC.PENDING_STATE_UPDATE>;
2143
2249
  type INVOKE_TXN_RECEIPT = Merge<INVOKE_TXN_RECEIPT$1, RPCSPEC07.SPEC.INVOKE_TXN_RECEIPT & RPCSPEC07.BlockHashAndNumber>;
@@ -2234,7 +2340,8 @@ type DeclareContractResponse = DeclaredTransaction;
2234
2340
  type CallContractResponse = string[];
2235
2341
  type Storage = FELT;
2236
2342
  type Nonce = string;
2237
- type SimulationFlags = Array<SIMULATION_FLAG$1>;
2343
+
2344
+ type SimulationFlags = Array<SIMULATION_FLAG>;
2238
2345
  type SimulatedTransaction = SimulateTransaction & {
2239
2346
  suggestedMaxFee: bigint;
2240
2347
  resourceBounds: ResourceBounds;
@@ -2309,10 +2416,6 @@ type SimulateTransactionDetails = {
2309
2416
  skipValidate?: boolean;
2310
2417
  skipExecute?: boolean;
2311
2418
  } & Partial<V3TransactionDetails>;
2312
- declare enum SIMULATION_FLAG {
2313
- SKIP_VALIDATE = "SKIP_VALIDATE",
2314
- SKIP_EXECUTE = "SKIP_EXECUTE"
2315
- }
2316
2419
  type EstimateFeeAction = {
2317
2420
  type: TransactionType.INVOKE;
2318
2421
  payload: AllowArray<Call>;
@@ -2455,6 +2558,7 @@ type index$2_Abi = Abi;
2455
2558
  type index$2_AbiEntry = AbiEntry;
2456
2559
  type index$2_AbiEnums = AbiEnums;
2457
2560
  type index$2_AbiEvents = AbiEvents;
2561
+ type index$2_AbiInterfaces = AbiInterfaces;
2458
2562
  type index$2_AbiStructs = AbiStructs;
2459
2563
  type index$2_AccountInvocationItem = AccountInvocationItem;
2460
2564
  type index$2_AccountInvocations = AccountInvocations;
@@ -2533,6 +2637,7 @@ type index$2_GetBlockResponse = GetBlockResponse;
2533
2637
  type index$2_GetTransactionResponse = GetTransactionResponse;
2534
2638
  type index$2_GetTxReceiptResponseWithoutHelper = GetTxReceiptResponseWithoutHelper;
2535
2639
  type index$2_HexCalldata = HexCalldata;
2640
+ type index$2_InterfaceAbi = InterfaceAbi;
2536
2641
  type index$2_Invocation = Invocation;
2537
2642
  type index$2_Invocations = Invocations;
2538
2643
  type index$2_InvocationsDetails = InvocationsDetails;
@@ -2569,7 +2674,6 @@ type index$2_Result = Result;
2569
2674
  type index$2_RevertedTransactionReceiptResponse = RevertedTransactionReceiptResponse;
2570
2675
  type index$2_RpcProviderOptions = RpcProviderOptions;
2571
2676
  type index$2_SIMULATION_FLAG = SIMULATION_FLAG;
2572
- declare const index$2_SIMULATION_FLAG: typeof SIMULATION_FLAG;
2573
2677
  type index$2_SierraContractClass = SierraContractClass;
2574
2678
  type index$2_SierraContractEntryPointFields = SierraContractEntryPointFields;
2575
2679
  type index$2_SierraEntryPointsByType = SierraEntryPointsByType;
@@ -2629,7 +2733,7 @@ type index$2_getEstimateFeeBulkOptions = getEstimateFeeBulkOptions;
2629
2733
  type index$2_getSimulateTransactionOptions = getSimulateTransactionOptions;
2630
2734
  type index$2_waitForTransactionOptions = waitForTransactionOptions;
2631
2735
  declare namespace index$2 {
2632
- export { type index$2_Abi as Abi, type index$2_AbiEntry as AbiEntry, type index$2_AbiEnums as AbiEnums, type index$2_AbiEvents as AbiEvents, type index$2_AbiStructs as AbiStructs, type index$2_AccountInvocationItem as AccountInvocationItem, type index$2_AccountInvocations as AccountInvocations, type index$2_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$2_AllowArray as AllowArray, type index$2_Args as Args, type index$2_ArgsOrCalldata as ArgsOrCalldata, type index$2_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$2_ArraySignatureType as ArraySignatureType, type index$2_AsyncContractFunction as AsyncContractFunction, type index$2_BigNumberish as BigNumberish, type Block$1 as Block, type index$2_BlockIdentifier as BlockIdentifier, type index$2_BlockNumber as BlockNumber, index$2_BlockStatus as BlockStatus, index$2_BlockTag as BlockTag, type index$2_BlockWithTxHashes as BlockWithTxHashes, type index$2_Builtins as Builtins, type index$2_ByteArray as ByteArray, type index$2_ByteCode as ByteCode, type index$2_Cairo1Event as Cairo1Event, type index$2_CairoAssembly as CairoAssembly, type index$2_CairoContract as CairoContract, type index$2_CairoEnum as CairoEnum, type index$2_CairoVersion as CairoVersion, type index$2_Call as Call, type index$2_CallContractResponse as CallContractResponse, type index$2_CallDetails as CallDetails, type index$2_CallOptions as CallOptions, type index$2_CallStruct as CallStruct, type index$2_Calldata as Calldata, type index$2_CompiledContract as CompiledContract, type index$2_CompiledSierra as CompiledSierra, type index$2_CompiledSierraCasm as CompiledSierraCasm, type index$2_CompilerVersion as CompilerVersion, type index$2_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$2_CompressedProgram as CompressedProgram, type index$2_ContractClass as ContractClass, type index$2_ContractClassPayload as ContractClassPayload, type index$2_ContractClassResponse as ContractClassResponse, type index$2_ContractEntryPointFields as ContractEntryPointFields, type index$2_ContractFunction as ContractFunction, type index$2_ContractOptions as ContractOptions, type index$2_ContractVersion as ContractVersion, type index$2_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$2_DeclareContractPayload as DeclareContractPayload, type index$2_DeclareContractResponse as DeclareContractResponse, type index$2_DeclareContractTransaction as DeclareContractTransaction, type index$2_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$2_DeclareSignerDetails as DeclareSignerDetails, type index$2_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$2_DeployAccountContractPayload as DeployAccountContractPayload, type index$2_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$2_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$2_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$2_DeployContractResponse as DeployContractResponse, type index$2_DeployContractUDCResponse as DeployContractUDCResponse, type index$2_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$2_Details as Details, index$2_EntryPointType as EntryPointType, type index$2_EntryPointsByType as EntryPointsByType, type index$2_EnumAbi as EnumAbi, type index$2_EstimateFee as EstimateFee, type index$2_EstimateFeeAction as EstimateFeeAction, type index$2_EstimateFeeBulk as EstimateFeeBulk, type index$2_EstimateFeeDetails as EstimateFeeDetails, type index$2_EstimateFeeResponse as EstimateFeeResponse, type index$2_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type index$2_EventAbi as EventAbi, type index$2_EventEntry as EventEntry, type index$2_FeeEstimate as FeeEstimate, type index$2_FunctionAbi as FunctionAbi, type index$2_GetBlockResponse as GetBlockResponse, type index$2_GetTransactionResponse as GetTransactionResponse, type index$2_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$2_HexCalldata as HexCalldata, type index$2_Invocation as Invocation, type index$2_Invocations as Invocations, type index$2_InvocationsDetails as InvocationsDetails, type index$2_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$2_InvocationsSignerDetails as InvocationsSignerDetails, type index$2_InvokeFunctionResponse as InvokeFunctionResponse, type index$2_InvokeOptions as InvokeOptions, type index$2_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$2_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$2_LegacyCompiledContract as LegacyCompiledContract, type index$2_LegacyContractClass as LegacyContractClass, type index$2_LegacyEvent as LegacyEvent, index$2_Literal as Literal, type index$2_MessageToL1 as MessageToL1, type index$2_MultiDeployContractResponse as MultiDeployContractResponse, type index$2_MultiType as MultiType, type index$2_Nonce as Nonce, type index$2_OptionalPayload as OptionalPayload, type index$2_ParsedEvent as ParsedEvent, type index$2_ParsedEvents as ParsedEvents, type index$2_ParsedStruct as ParsedStruct, type index$2_PendingBlock as PendingBlock, type index$2_PendingStateUpdate as PendingStateUpdate, type index$2_Program as Program, type index$2_ProviderOptions as ProviderOptions, type index$2_PythonicHints as PythonicHints, index$3 as RPC, type index$2_RawArgs as RawArgs, type index$2_RawArgsArray as RawArgsArray, type index$2_RawArgsObject as RawArgsObject, type index$2_RawCalldata as RawCalldata, type index$2_RejectedTransactionReceiptResponse as RejectedTransactionReceiptResponse, type index$2_Result as Result, type index$2_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$2_RpcProviderOptions as RpcProviderOptions, index$2_SIMULATION_FLAG as SIMULATION_FLAG, type index$2_SierraContractClass as SierraContractClass, type index$2_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$2_SierraEntryPointsByType as SierraEntryPointsByType, type index$2_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$2_Signature as Signature, type index$2_SimulateTransactionDetails as SimulateTransactionDetails, type index$2_SimulateTransactionResponse as SimulateTransactionResponse, type index$2_SimulatedTransaction as SimulatedTransaction, type index$2_SimulationFlags as SimulationFlags, type index$2_StarkProfile as StarkProfile, index$2_StarknetDomain as StarknetDomain, index$2_StarknetEnumType as StarknetEnumType, index$2_StarknetMerkleType as StarknetMerkleType, index$2_StarknetType as StarknetType, type index$2_StateUpdate as StateUpdate, type index$2_StateUpdateResponse as StateUpdateResponse, type index$2_Storage as Storage, type index$2_StructAbi as StructAbi, type index$2_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, index$2_TransactionExecutionStatus as TransactionExecutionStatus, index$2_TransactionFinalityStatus as TransactionFinalityStatus, type index$2_TransactionReceipt as TransactionReceipt, type index$2_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$2_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$2_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$2_TransactionReceiptStatus as TransactionReceiptStatus, type index$2_TransactionReceiptUtilityInterface as TransactionReceiptUtilityInterface, type index$2_TransactionReceiptValue as TransactionReceiptValue, index$2_TransactionStatus as TransactionStatus, type index$2_TransactionStatusReceiptSets as TransactionStatusReceiptSets, index$2_TransactionType as TransactionType, type index$2_Tupled as Tupled, index$2_TypedData as TypedData, index$2_TypedDataRevision as TypedDataRevision, index$2_Uint as Uint, type index$2_Uint256 as Uint256, type index$2_Uint512 as Uint512, type index$2_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$2_UniversalDetails as UniversalDetails, type index$2_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$2_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$2_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$2_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$2_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$2_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$2_V3TransactionDetails as V3TransactionDetails, index$2_ValidateType as ValidateType, type index$2_WeierstrassSignatureType as WeierstrassSignatureType, type index$2_getContractVersionOptions as getContractVersionOptions, type index$2_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$2_getSimulateTransactionOptions as getSimulateTransactionOptions, type index$2_waitForTransactionOptions as waitForTransactionOptions };
2736
+ export { type index$2_Abi as Abi, type index$2_AbiEntry as AbiEntry, type index$2_AbiEnums as AbiEnums, type index$2_AbiEvents as AbiEvents, type index$2_AbiInterfaces as AbiInterfaces, type index$2_AbiStructs as AbiStructs, type index$2_AccountInvocationItem as AccountInvocationItem, type index$2_AccountInvocations as AccountInvocations, type index$2_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$2_AllowArray as AllowArray, type index$2_Args as Args, type index$2_ArgsOrCalldata as ArgsOrCalldata, type index$2_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$2_ArraySignatureType as ArraySignatureType, type index$2_AsyncContractFunction as AsyncContractFunction, type index$2_BigNumberish as BigNumberish, type Block$1 as Block, type index$2_BlockIdentifier as BlockIdentifier, type index$2_BlockNumber as BlockNumber, index$2_BlockStatus as BlockStatus, index$2_BlockTag as BlockTag, type index$2_BlockWithTxHashes as BlockWithTxHashes, type index$2_Builtins as Builtins, type index$2_ByteArray as ByteArray, type index$2_ByteCode as ByteCode, type index$2_Cairo1Event as Cairo1Event, type index$2_CairoAssembly as CairoAssembly, type index$2_CairoContract as CairoContract, type index$2_CairoEnum as CairoEnum, type index$2_CairoVersion as CairoVersion, type index$2_Call as Call, type index$2_CallContractResponse as CallContractResponse, type index$2_CallDetails as CallDetails, type index$2_CallOptions as CallOptions, type index$2_CallStruct as CallStruct, type index$2_Calldata as Calldata, type index$2_CompiledContract as CompiledContract, type index$2_CompiledSierra as CompiledSierra, type index$2_CompiledSierraCasm as CompiledSierraCasm, type index$2_CompilerVersion as CompilerVersion, type index$2_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$2_CompressedProgram as CompressedProgram, type index$2_ContractClass as ContractClass, type index$2_ContractClassPayload as ContractClassPayload, type index$2_ContractClassResponse as ContractClassResponse, type index$2_ContractEntryPointFields as ContractEntryPointFields, type index$2_ContractFunction as ContractFunction, type index$2_ContractOptions as ContractOptions, type index$2_ContractVersion as ContractVersion, type index$2_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$2_DeclareContractPayload as DeclareContractPayload, type index$2_DeclareContractResponse as DeclareContractResponse, type index$2_DeclareContractTransaction as DeclareContractTransaction, type index$2_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$2_DeclareSignerDetails as DeclareSignerDetails, type index$2_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$2_DeployAccountContractPayload as DeployAccountContractPayload, type index$2_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$2_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$2_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$2_DeployContractResponse as DeployContractResponse, type index$2_DeployContractUDCResponse as DeployContractUDCResponse, type index$2_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$2_Details as Details, index$2_EntryPointType as EntryPointType, type index$2_EntryPointsByType as EntryPointsByType, type index$2_EnumAbi as EnumAbi, type index$2_EstimateFee as EstimateFee, type index$2_EstimateFeeAction as EstimateFeeAction, type index$2_EstimateFeeBulk as EstimateFeeBulk, type index$2_EstimateFeeDetails as EstimateFeeDetails, type index$2_EstimateFeeResponse as EstimateFeeResponse, type index$2_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type index$2_EventAbi as EventAbi, type index$2_EventEntry as EventEntry, type index$2_FeeEstimate as FeeEstimate, type index$2_FunctionAbi as FunctionAbi, type index$2_GetBlockResponse as GetBlockResponse, type index$2_GetTransactionResponse as GetTransactionResponse, type index$2_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$2_HexCalldata as HexCalldata, type index$2_InterfaceAbi as InterfaceAbi, type index$2_Invocation as Invocation, type index$2_Invocations as Invocations, type index$2_InvocationsDetails as InvocationsDetails, type index$2_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$2_InvocationsSignerDetails as InvocationsSignerDetails, type index$2_InvokeFunctionResponse as InvokeFunctionResponse, type index$2_InvokeOptions as InvokeOptions, type index$2_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$2_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$2_LegacyCompiledContract as LegacyCompiledContract, type index$2_LegacyContractClass as LegacyContractClass, type index$2_LegacyEvent as LegacyEvent, index$2_Literal as Literal, type index$2_MessageToL1 as MessageToL1, type index$2_MultiDeployContractResponse as MultiDeployContractResponse, type index$2_MultiType as MultiType, type index$2_Nonce as Nonce, type index$2_OptionalPayload as OptionalPayload, type index$2_ParsedEvent as ParsedEvent, type index$2_ParsedEvents as ParsedEvents, type index$2_ParsedStruct as ParsedStruct, type index$2_PendingBlock as PendingBlock, type index$2_PendingStateUpdate as PendingStateUpdate, type index$2_Program as Program, type index$2_ProviderOptions as ProviderOptions, type index$2_PythonicHints as PythonicHints, index$3 as RPC, type index$2_RawArgs as RawArgs, type index$2_RawArgsArray as RawArgsArray, type index$2_RawArgsObject as RawArgsObject, type index$2_RawCalldata as RawCalldata, type index$2_RejectedTransactionReceiptResponse as RejectedTransactionReceiptResponse, type index$2_Result as Result, type index$2_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$2_RpcProviderOptions as RpcProviderOptions, type index$2_SIMULATION_FLAG as SIMULATION_FLAG, type index$2_SierraContractClass as SierraContractClass, type index$2_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$2_SierraEntryPointsByType as SierraEntryPointsByType, type index$2_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$2_Signature as Signature, type index$2_SimulateTransactionDetails as SimulateTransactionDetails, type index$2_SimulateTransactionResponse as SimulateTransactionResponse, type index$2_SimulatedTransaction as SimulatedTransaction, type index$2_SimulationFlags as SimulationFlags, type index$2_StarkProfile as StarkProfile, index$2_StarknetDomain as StarknetDomain, index$2_StarknetEnumType as StarknetEnumType, index$2_StarknetMerkleType as StarknetMerkleType, index$2_StarknetType as StarknetType, type index$2_StateUpdate as StateUpdate, type index$2_StateUpdateResponse as StateUpdateResponse, type index$2_Storage as Storage, type index$2_StructAbi as StructAbi, type index$2_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, index$2_TransactionExecutionStatus as TransactionExecutionStatus, index$2_TransactionFinalityStatus as TransactionFinalityStatus, type index$2_TransactionReceipt as TransactionReceipt, type index$2_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$2_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$2_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$2_TransactionReceiptStatus as TransactionReceiptStatus, type index$2_TransactionReceiptUtilityInterface as TransactionReceiptUtilityInterface, type index$2_TransactionReceiptValue as TransactionReceiptValue, index$2_TransactionStatus as TransactionStatus, type index$2_TransactionStatusReceiptSets as TransactionStatusReceiptSets, index$2_TransactionType as TransactionType, type index$2_Tupled as Tupled, index$2_TypedData as TypedData, index$2_TypedDataRevision as TypedDataRevision, index$2_Uint as Uint, type index$2_Uint256 as Uint256, type index$2_Uint512 as Uint512, type index$2_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$2_UniversalDetails as UniversalDetails, type index$2_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$2_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$2_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$2_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$2_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$2_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$2_V3TransactionDetails as V3TransactionDetails, index$2_ValidateType as ValidateType, type index$2_WeierstrassSignatureType as WeierstrassSignatureType, type index$2_getContractVersionOptions as getContractVersionOptions, type index$2_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$2_getSimulateTransactionOptions as getSimulateTransactionOptions, type index$2_waitForTransactionOptions as waitForTransactionOptions };
2633
2737
  }
2634
2738
 
2635
2739
  declare class RpcChannel$1 {
@@ -2679,7 +2783,7 @@ declare class RpcChannel$1 {
2679
2783
  * - skipValidate (default false)<br/>
2680
2784
  * - skipFeeCharge (default true)<br/>
2681
2785
  */
2682
- simulateTransaction(invocations: AccountInvocations, { blockIdentifier, skipValidate, skipFeeCharge, }?: getSimulateTransactionOptions): Promise<SimulateTransactionResponse$1>;
2786
+ simulateTransaction(invocations: AccountInvocations, simulateTransactionOptions?: getSimulateTransactionOptions): Promise<SimulateTransactionResponse$1>;
2683
2787
  waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<TXN_RECEIPT>;
2684
2788
  getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
2685
2789
  getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
@@ -2720,8 +2824,10 @@ declare class RpcChannel {
2720
2824
  readonly blockIdentifier: BlockIdentifier;
2721
2825
  private chainId?;
2722
2826
  private specVersion?;
2827
+ private transactionRetryIntervalFallback?;
2723
2828
  readonly waitMode: Boolean;
2724
2829
  constructor(optionsOrProvider?: RpcProviderOptions);
2830
+ private get transactionRetryIntervalDefault();
2725
2831
  setChainId(chainId: StarknetChainId): void;
2726
2832
  fetch(method: string, params?: object, id?: string | number): Promise<Response>;
2727
2833
  protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
@@ -2760,7 +2866,7 @@ declare class RpcChannel {
2760
2866
  * - skipValidate (default false)<br/>
2761
2867
  * - skipFeeCharge (default true)<br/>
2762
2868
  */
2763
- simulateTransaction(invocations: AccountInvocations, { blockIdentifier, skipValidate, skipFeeCharge, }?: getSimulateTransactionOptions): Promise<RPCSPEC07.SimulateTransactionResponse>;
2869
+ simulateTransaction(invocations: AccountInvocations, simulateTransactionOptions?: getSimulateTransactionOptions): Promise<RPCSPEC07.SimulateTransactionResponse>;
2764
2870
  waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<RPCSPEC07.API.SPEC.TXN_RECEIPT>;
2765
2871
  getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
2766
2872
  getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
@@ -2849,8 +2955,7 @@ declare abstract class ProviderInterface {
2849
2955
  * @param blockIdentifier block identifier
2850
2956
  * @returns the block object
2851
2957
  */
2852
- abstract getBlock(): Promise<PendingBlock>;
2853
- abstract getBlock(blockIdentifier: 'pending'): Promise<PendingBlock>;
2958
+ abstract getBlock(blockIdentifier?: 'pending'): Promise<PendingBlock>;
2854
2959
  abstract getBlock(blockIdentifier: 'latest'): Promise<Block$1>;
2855
2960
  abstract getBlock(blockIdentifier: BlockIdentifier): Promise<GetBlockResponse>;
2856
2961
  /**
@@ -2868,6 +2973,18 @@ declare abstract class ProviderInterface {
2868
2973
  * @returns gas price of the block
2869
2974
  */
2870
2975
  abstract getL1GasPrice(blockIdentifier: BlockIdentifier): Promise<string>;
2976
+ /**
2977
+ * Get L1 message hash from L2 transaction hash
2978
+ * @param {BigNumberish} l2TxHash L2 transaction hash
2979
+ * @returns {string} Hex string of L1 message hash
2980
+ * @example
2981
+ * In Sepolia Testnet :
2982
+ * ```typescript
2983
+ * const result = provider.getL1MessageHash('0x28dfc05eb4f261b37ddad451ff22f1d08d4e3c24dc646af0ec69fa20e096819');
2984
+ * // result = '0x55b3f8b6e607fffd9b4d843dfe8f9b5c05822cd94fcad8797deb01d77805532a'
2985
+ * ```
2986
+ */
2987
+ abstract getL1MessageHash(l2TxHash: BigNumberish): Promise<string>;
2871
2988
  /**
2872
2989
  * Returns the contract class hash in the given block for the contract deployed at the given address
2873
2990
  *
@@ -2902,14 +3019,14 @@ declare abstract class ProviderInterface {
2902
3019
  /**
2903
3020
  * Gets the transaction information from a tx id.
2904
3021
  *
2905
- * @param txHash
3022
+ * @param transactionHash
2906
3023
  * @returns the transaction object \{ transaction_id, status, transaction, block_number?, block_number?, transaction_index?, transaction_failure_reason? \}
2907
3024
  */
2908
3025
  abstract getTransaction(transactionHash: BigNumberish): Promise<GetTransactionResponse>;
2909
3026
  /**
2910
3027
  * Gets the transaction receipt from a tx hash.
2911
3028
  *
2912
- * @param txHash
3029
+ * @param transactionHash
2913
3030
  * @returns the transaction receipt object
2914
3031
  */
2915
3032
  abstract getTransactionReceipt(transactionHash: BigNumberish): Promise<GetTransactionReceiptResponse>;
@@ -3098,7 +3215,20 @@ declare class RpcProvider$1 implements ProviderInterface {
3098
3215
  getBlockNumber(): Promise<number>;
3099
3216
  getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$1>;
3100
3217
  getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs>;
3218
+ /**
3219
+ * Pause the execution of the script until a specified block is created.
3220
+ * @param {BlockIdentifier} blockIdentifier bloc number (BigNumberisk) or 'pending' or 'latest'.
3221
+ * Use of 'latest" or of a block already created will generate no pause.
3222
+ * @param {number} [retryInterval] number of milliseconds between 2 requests to the node
3223
+ * @example
3224
+ * ```typescript
3225
+ * await myProvider.waitForBlock();
3226
+ * // wait the creation of the pending block
3227
+ * ```
3228
+ */
3229
+ waitForBlock(blockIdentifier?: BlockIdentifier, retryInterval?: number): Promise<void>;
3101
3230
  getL1GasPrice(blockIdentifier?: BlockIdentifier): Promise<string>;
3231
+ getL1MessageHash(l2TxHash: BigNumberish): Promise<string>;
3102
3232
  getBlockWithReceipts(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxReceipts>;
3103
3233
  getStateUpdate: {
3104
3234
  (): Promise<PendingStateUpdate>;
@@ -3129,7 +3259,7 @@ declare class RpcProvider$1 implements ProviderInterface {
3129
3259
  getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$1>;
3130
3260
  /**
3131
3261
  * @param invocations AccountInvocations
3132
- * @param simulateTransactionOptions blockIdentifier and flags to skip validation and fee charge<br/>
3262
+ * @param options blockIdentifier and flags to skip validation and fee charge<br/>
3133
3263
  * - blockIdentifier<br/>
3134
3264
  * - skipValidate (default false)<br/>
3135
3265
  * - skipFeeCharge (default true)<br/>
@@ -3177,8 +3307,10 @@ declare class StarknetId {
3177
3307
  getAddressFromStarkName(name: string, StarknetIdContract?: string): Promise<string>;
3178
3308
  getStarkProfile(address: BigNumberish, StarknetIdContract?: string, StarknetIdIdentityContract?: string, StarknetIdVerifierContract?: string, StarknetIdPfpContract?: string, StarknetIdPopContract?: string, StarknetIdMulticallContract?: string): Promise<StarkProfile>;
3179
3309
  static getStarkName(provider: ProviderInterface, address: BigNumberish, StarknetIdContract?: string): Promise<string>;
3310
+ static executeStarkName(provider: ProviderInterface, address: string, contract: string): Promise<CallContractResponse>;
3180
3311
  static getAddressFromStarkName(provider: ProviderInterface, name: string, StarknetIdContract?: string): Promise<string>;
3181
3312
  static getStarkProfile(provider: ProviderInterface, address: BigNumberish, StarknetIdContract?: string, StarknetIdIdentityContract?: string, StarknetIdVerifierContract?: string, StarknetIdPfpContract?: string, StarknetIdPopContract?: string, StarknetIdMulticallContract?: string): Promise<StarkProfile>;
3313
+ static executeStarkProfile(provider: ProviderInterface, contract: string, functionName: string, initialCalldata: RawArgsArray, fallbackCalldata: RawArgsArray): Promise<CallContractResponse>;
3182
3314
  }
3183
3315
 
3184
3316
  declare const RpcProvider_base: ts_mixer_dist_types_types.Class<any[], RpcProvider$1 & StarknetId, typeof RpcProvider$1 & typeof StarknetId>;
@@ -3238,7 +3370,7 @@ declare abstract class SignerInterface {
3238
3370
  /**
3239
3371
  * Signs a DEPLOY_ACCOUNT transaction with the Starknet private key and returns the signature
3240
3372
  *
3241
- * @param transaction<br/>
3373
+ * @param transaction <br/>
3242
3374
  * - contractAddress<br/>
3243
3375
  * - chainId<br/>
3244
3376
  * - classHash<br/>
@@ -3252,7 +3384,7 @@ declare abstract class SignerInterface {
3252
3384
  /**
3253
3385
  * Signs a DECLARE transaction with the Starknet private key and returns the signature
3254
3386
  *
3255
- * @param transaction<br/>
3387
+ * @param transaction <br/>
3256
3388
  * - classHash<br/>
3257
3389
  * - compiledClassHash? - used for Cairo1<br/>
3258
3390
  * - senderAddress<br/>
@@ -3395,11 +3527,11 @@ declare abstract class AccountInterface extends ProviderInterface {
3395
3527
  * Estimate Fee for executing a list of transactions on starknet
3396
3528
  * Contract must be deployed for fee estimation to be possible
3397
3529
  *
3398
- * @param transactions array of transaction object containing :
3530
+ * @param invocations array of transaction object containing :
3399
3531
  * - type - the type of transaction : 'DECLARE' | (multi)'DEPLOY' | (multi)'INVOKE_FUNCTION' | 'DEPLOY_ACCOUNT'
3400
3532
  * - payload - the payload of the transaction
3401
3533
  *
3402
- * @param estimateFeeDetails -
3534
+ * @param details -
3403
3535
  * - blockIdentifier?
3404
3536
  * - nonce?
3405
3537
  * - skipValidate? - default true
@@ -3552,30 +3684,32 @@ declare abstract class AccountInterface extends ProviderInterface {
3552
3684
  */
3553
3685
  abstract deployAccount(contractPayload: DeployAccountContractPayload, transactionsDetail?: InvocationsDetails): Promise<DeployContractResponse>;
3554
3686
  /**
3555
- * Signs a JSON object for off-chain usage with the Starknet private key and returns the signature
3687
+ * Signs a TypedData object for off-chain usage with the Starknet private key and returns the signature
3556
3688
  * This adds a message prefix so it can't be interchanged with transactions
3557
3689
  *
3558
- * @param json - JSON object to be signed
3559
- * @returns the signature of the JSON object
3560
- * @throws {Error} if the JSON object is not a valid JSON
3690
+ * @param typedData - TypedData object to be signed
3691
+ * @returns the signature of the TypedData object
3692
+ * @throws {Error} if typedData is not a valid TypedData
3561
3693
  */
3562
3694
  abstract signMessage(typedData: TypedData): Promise<Signature>;
3563
3695
  /**
3564
- * Hash a JSON object with Pedersen hash and return the hash
3696
+ * Hash a TypedData object with Pedersen hash and return the hash
3565
3697
  * This adds a message prefix so it can't be interchanged with transactions
3566
3698
  *
3567
- * @param json - JSON object to be hashed
3568
- * @returns the hash of the JSON object
3569
- * @throws {Error} if the JSON object is not a valid JSON
3699
+ * @param typedData - TypedData object to be hashed
3700
+ * @returns the hash of the TypedData object
3701
+ * @throws {Error} if typedData is not a valid TypedData
3570
3702
  */
3571
3703
  abstract hashMessage(typedData: TypedData): Promise<string>;
3572
3704
  /**
3573
- * Verify a signature of a JSON object
3705
+ * Verify a signature of a TypedData object
3574
3706
  *
3575
- * @param typedData - JSON object to be verified
3576
- * @param signature - signature of the JSON object
3707
+ * @param typedData - TypedData object to be verified
3708
+ * @param signature - signature of the TypedData object
3709
+ * @param signatureVerificationFunctionName - optional account contract verification function name override
3710
+ * @param signatureVerificationResponse - optional response override { okResponse: string[]; nokResponse: string[]; error: string[] }
3577
3711
  * @returns true if the signature is valid, false otherwise
3578
- * @throws {Error} if the JSON object is not a valid JSON or the signature is not a valid signature
3712
+ * @throws {Error} if typedData is not a valid TypedData or the signature is not a valid signature
3579
3713
  */
3580
3714
  abstract verifyMessage(typedData: TypedData, signature: Signature): Promise<boolean>;
3581
3715
  /**
@@ -3584,6 +3718,8 @@ declare abstract class AccountInterface extends ProviderInterface {
3584
3718
  *
3585
3719
  * @param hash - hash to be verified
3586
3720
  * @param signature - signature of the hash
3721
+ * @param signatureVerificationFunctionName - optional account contract verification function name override
3722
+ * @param signatureVerificationResponse - optional response override { okResponse: string[]; nokResponse: string[]; error: string[] }
3587
3723
  * @returns true if the signature is valid, false otherwise
3588
3724
  * @throws {Error} if the signature is not a valid signature
3589
3725
  */
@@ -3607,7 +3743,7 @@ declare class Account extends RpcProvider implements AccountInterface {
3607
3743
  getNonce(blockIdentifier?: BlockIdentifier): Promise<Nonce>;
3608
3744
  protected getNonceSafe(nonce?: BigNumberish): Promise<bigint>;
3609
3745
  /**
3610
- * Retrieves the Cairo version from the network and sets `cairoVersion` if not already set in the constructor
3746
+ * Retrieves the Cairo version from the network and sets `cairoVersion` if not already set in the constructor.
3611
3747
  * @param classHash if provided detects Cairo version from classHash, otherwise from the account address
3612
3748
  */
3613
3749
  getCairoVersion(classHash?: string): Promise<CairoVersion>;
@@ -3635,11 +3771,19 @@ declare class Account extends RpcProvider implements AccountInterface {
3635
3771
  deployAccount({ classHash, constructorCalldata, addressSalt, contractAddress: providedContractAddress, }: DeployAccountContractPayload, details?: UniversalDetails): Promise<DeployContractResponse>;
3636
3772
  signMessage(typedData: TypedData): Promise<Signature>;
3637
3773
  hashMessage(typedData: TypedData): Promise<string>;
3638
- verifyMessageHash(hash: BigNumberish, signature: Signature): Promise<boolean>;
3639
- verifyMessage(typedData: TypedData, signature: Signature): Promise<boolean>;
3774
+ verifyMessageHash(hash: BigNumberish, signature: Signature, signatureVerificationFunctionName?: string, signatureVerificationResponse?: {
3775
+ okResponse: string[];
3776
+ nokResponse: string[];
3777
+ error: string[];
3778
+ }): Promise<boolean>;
3779
+ verifyMessage(typedData: TypedData, signature: Signature, signatureVerificationFunctionName?: string, signatureVerificationResponse?: {
3780
+ okResponse: string[];
3781
+ nokResponse: string[];
3782
+ error: string[];
3783
+ }): Promise<boolean>;
3640
3784
  protected getUniversalSuggestedFee(version: ETransactionVersion$1, { type, payload }: EstimateFeeAction, details: UniversalDetails): Promise<{
3641
3785
  maxFee: BigNumberish;
3642
- resourceBounds: RESOURCE_BOUNDS_MAPPING$1;
3786
+ resourceBounds: SPEC.RESOURCE_BOUNDS_MAPPING;
3643
3787
  }>;
3644
3788
  getSuggestedFee({ type, payload }: EstimateFeeAction, details: UniversalDetails): Promise<EstimateFee>;
3645
3789
  buildInvocation(call: Array<Call>, details: InvocationsSignerDetails): Promise<Invocation>;
@@ -3677,7 +3821,7 @@ declare class WalletAccount extends Account implements AccountInterface {
3677
3821
  execute(calls: AllowArray<Call>): Promise<RPCSPEC07.AddInvokeTransactionResult>;
3678
3822
  declare(payload: DeclareContractPayload): Promise<RPCSPEC07.AddDeclareTransactionResult>;
3679
3823
  deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Promise<MultiDeployContractResponse>;
3680
- signMessage(typedData: TypedData): Promise<SIGNATURE$1>;
3824
+ signMessage(typedData: TypedData): Promise<SPEC.SIGNATURE>;
3681
3825
  }
3682
3826
 
3683
3827
  declare module 'abi-wan-kanabi' {
@@ -3931,6 +4075,17 @@ declare function getSelectorFromName(funcName: string): string;
3931
4075
  *
3932
4076
  * @param value hex-string | dec-string | ascii-string
3933
4077
  * @returns format: hex-string
4078
+ * @example
4079
+ * ```typescript
4080
+ * const selector: string = getSelector("myFunction");
4081
+ * // selector = "0x7e44bafo"
4082
+ *
4083
+ * const selector1: string = getSelector("0x123abc");
4084
+ * // selector1 = "0x123abc"
4085
+ *
4086
+ * const selector2: string = getSelector("123456");
4087
+ * // selector2 = "0x1e240"
4088
+ * ```
3934
4089
  */
3935
4090
  declare function getSelector(value: string): string;
3936
4091
 
@@ -4206,6 +4361,17 @@ declare namespace json {
4206
4361
  /**
4207
4362
  * Test if string is hex-string
4208
4363
  * @param hex hex-string
4364
+ * @returns {boolean} True if the input string is a hexadecimal string, false otherwise
4365
+ * @example
4366
+ * ```typescript
4367
+ * const hexString1 = "0x2fd23d9182193775423497fc0c472e156c57c69e4089a1967fb288a2d84e914";
4368
+ * const result1 = isHex(hexString1);
4369
+ * // result1 = true
4370
+ *
4371
+ * const hexString2 = "2fd23d9182193775423497fc0c472e156c57c69e4089a1967fb288a2d84e914";
4372
+ * const result2 = isHex(hexString2);
4373
+ * // result2 = false
4374
+ * ```
4209
4375
  */
4210
4376
  declare function isHex(hex: string): boolean;
4211
4377
  /**
@@ -4252,6 +4418,20 @@ declare const cleanHex: (hex: string) => string;
4252
4418
  * Asserts input is equal to or greater then lowerBound and lower then upperBound.
4253
4419
  *
4254
4420
  * The `inputName` parameter is used in the assertion message.
4421
+ * @param input Value to check
4422
+ * @param lowerBound Lower bound value
4423
+ * @param upperBound Upper bound value
4424
+ * @param inputName Name of the input for error message
4425
+ * @Throws Error if input is out of range
4426
+ * @example
4427
+ * ```typescript
4428
+ * const input1:BigNumberish = 10;
4429
+ * assertInRange(input1, 5, 20, 'value')
4430
+ *
4431
+ * const input2: BigNumberish = 25;
4432
+ * assertInRange(input2, 5, 20, 'value');
4433
+ * // Throws Error: Message not signable, invalid value length.
4434
+ * ```
4255
4435
  */
4256
4436
  declare function assertInRange(input: BigNumberish, lowerBound: BigNumberish, upperBound: BigNumberish, inputName?: string): void;
4257
4437
  /**
@@ -4271,11 +4451,27 @@ declare const isStringWholeNumber: (value: string) => boolean;
4271
4451
  /**
4272
4452
  * Convert string to decimal string
4273
4453
  * @returns format: decimal string
4454
+ * @example
4455
+ * ```typescript
4456
+ * const result = getDecimalString("0x1a");
4457
+ * // result = "26"
4458
+ *
4459
+ * const result2 = getDecimalString("Hello");
4460
+ * // Throws Error: "Hello need to be hex-string or whole-number-string"
4461
+ * ```
4274
4462
  */
4275
4463
  declare function getDecimalString(value: string): string;
4276
4464
  /**
4277
4465
  * Convert string to hexadecimal string
4278
4466
  * @returns format: hex-string
4467
+ * @example
4468
+ * ```typescript
4469
+ * const result = getHexString("123");
4470
+ * // result = "0x7b"
4471
+ *
4472
+ * const result2 = getHexString("Hello");
4473
+ * // Throws Error: Hello need to be hex-string or whole-number-string
4474
+ * ```
4279
4475
  */
4280
4476
  declare function getHexString(value: string): string;
4281
4477
  /**
@@ -4285,6 +4481,16 @@ declare function getHexString(value: string): string;
4285
4481
  declare function getHexStringArray(value: Array<string>): string[];
4286
4482
  /**
4287
4483
  * Convert boolean to "0" or "1"
4484
+ * @param value The boolean value to be converted.
4485
+ * @returns {boolean} Returns true if the value is a number, otherwise returns false.
4486
+ * @example
4487
+ * ```typescript
4488
+ * const result = toCairoBool(true);
4489
+ * // result ="1"
4490
+ *
4491
+ * const result2 = toCairoBool(false);
4492
+ * // result2 = "0"
4493
+ * ```
4288
4494
  */
4289
4495
  declare const toCairoBool: (value: boolean) => string;
4290
4496
  /**
@@ -4303,6 +4509,15 @@ declare function addPercent(number: BigNumberish, percent: number): bigint;
4303
4509
  * Check if a value is a number.
4304
4510
  *
4305
4511
  * @param {unknown} value - The value to check.
4512
+ * @returns {boolean} Returns true if the value is a number, otherwise returns false.
4513
+ * @example
4514
+ * ```typescript
4515
+ * const result = isNumber(123);
4516
+ * // result = true
4517
+ *
4518
+ * const result2 = isNumber("123");
4519
+ * // result2 = false
4520
+ * ```
4306
4521
  * @return {boolean} Returns true if the value is a number, otherwise returns false.
4307
4522
  */
4308
4523
  declare function isNumber(value: unknown): value is number;
@@ -4310,6 +4525,15 @@ declare function isNumber(value: unknown): value is number;
4310
4525
  * Checks if a given value is of boolean type.
4311
4526
  *
4312
4527
  * @param {unknown} value - The value to check.
4528
+ * @returns {boolean} - True if the value is of boolean type, false otherwise.
4529
+ * @example
4530
+ * ```typescript
4531
+ * const result = isBoolean(true);
4532
+ * // result = true
4533
+ *
4534
+ * const result2 = isBoolean(false);
4535
+ * // result2 = false
4536
+ * ```
4313
4537
  * @return {boolean} - True if the value is of boolean type, false otherwise.
4314
4538
  */
4315
4539
  declare function isBoolean(value: unknown): value is boolean;
@@ -4494,7 +4718,7 @@ declare function v3Details(details: UniversalDetails): {
4494
4718
  accountDeploymentData: BigNumberish[];
4495
4719
  nonceDataAvailabilityMode: EDataAvailabilityMode$1;
4496
4720
  feeDataAvailabilityMode: EDataAvailabilityMode$1;
4497
- resourceBounds: RESOURCE_BOUNDS_MAPPING$1;
4721
+ resourceBounds: SPEC.RESOURCE_BOUNDS_MAPPING;
4498
4722
  };
4499
4723
  /**
4500
4724
  * It will reduce V2 to V1, else (V3) stay the same
@@ -4849,7 +5073,6 @@ declare function useDecoded(encoded: bigint[]): string;
4849
5073
  declare function useEncoded(decoded: string): bigint;
4850
5074
  declare const enum StarknetIdContract {
4851
5075
  MAINNET = "0x6ac597f8116f886fa1c97a23fa4e08299975ecaf6b598873ca6792b9bbfb678",
4852
- TESTNET = "0x3bab268e932d2cecd1946f100ae67ce3dff9fd234119ea2f6da57d16d29fce",
4853
5076
  TESTNET_SEPOLIA = "0x0707f09bc576bd7cfee59694846291047e965f4184fe13dac62c56759b3b6fa7"
4854
5077
  }
4855
5078
  /**
@@ -4862,7 +5085,6 @@ declare const enum StarknetIdContract {
4862
5085
  declare function getStarknetIdContract(chainId: StarknetChainId): string;
4863
5086
  declare const enum StarknetIdIdentityContract {
4864
5087
  MAINNET = "0x05dbdedc203e92749e2e746e2d40a768d966bd243df04a6b712e222bc040a9af",
4865
- TESTNET = "0x783a9097b26eae0586373b2ce0ed3529ddc44069d1e0fbc4f66d42b69d6850d",
4866
5088
  TESTNET_SEPOLIA = "0x070DF8B4F5cb2879f8592849fA8f3134da39d25326B8558cc9C8FE8D47EA3A90"
4867
5089
  }
4868
5090
  /**
@@ -4886,7 +5108,6 @@ declare const StarknetIdMulticallContract = "0x034ffb8f4452df7a613a0210824d6414d
4886
5108
  declare function getStarknetIdMulticallContract(chainId: StarknetChainId): string;
4887
5109
  declare const enum StarknetIdVerifierContract {
4888
5110
  MAINNET = "0x07d14dfd8ee95b41fce179170d88ba1f0d5a512e13aeb232f19cfeec0a88f8bf",
4889
- TESTNET = "0x057c942544063c3aea6ea6c37009cc9d1beacd750cb6801549a129c7265f0f11",
4890
5111
  TESTNET_SEPOLIA = "0x0182EcE8173C216A395f4828e1523541b7e3600bf190CB252E1a1A0cE219d184"
4891
5112
  }
4892
5113
  /**
@@ -4899,7 +5120,6 @@ declare const enum StarknetIdVerifierContract {
4899
5120
  declare function getStarknetIdVerifierContract(chainId: StarknetChainId): string;
4900
5121
  declare const enum StarknetIdPfpContract {
4901
5122
  MAINNET = "0x070aaa20ec4a46da57c932d9fd89ca5e6bb9ca3188d3df361a32306aff7d59c7",
4902
- TESTNET = "0x03cac3228b434259734ee0e4ff445f642206ea11adace7e4f45edd2596748698",
4903
5123
  TESTNET_SEPOLIA = "0x058061bb6bdc501eE215172c9f87d557C1E0f466dC498cA81b18f998Bf1362b2"
4904
5124
  }
4905
5125
  /**
@@ -4912,7 +5132,6 @@ declare const enum StarknetIdPfpContract {
4912
5132
  declare function getStarknetIdPfpContract(chainId: StarknetChainId): string;
4913
5133
  declare const enum StarknetIdPopContract {
4914
5134
  MAINNET = "0x0293eb2ba9862f762bd3036586d5755a782bd22e6f5028320f1d0405fd47bff4",
4915
- TESTNET = "0x03528caf090179e337931ee669a5b0214041e1bae30d460ff07d2cea2c7a9106",
4916
5135
  TESTNET_SEPOLIA = "0x0023FE3b845ed5665a9eb3792bbB17347B490EE4090f855C1298d03BB5F49B49"
4917
5136
  }
4918
5137
  /**
@@ -5180,21 +5399,37 @@ declare class CairoUint512 {
5180
5399
  * Format a hex number to '0x' and 64 characters, adding leading zeros if necessary.
5181
5400
  * @param {BigNumberish} address
5182
5401
  * @returns {string} Hex string : 0x followed by 64 characters. No upper case characters in the response.
5402
+ * @example
5403
+ * ```typescript
5404
+ * const address = "0x90591d9fa3efc87067d95a643f8455e0b8190eb8cb7bfd39e4fb7571fdf";
5405
+ * const result = addAddressPadding(address);
5406
+ * // result = "0x0000090591d9fa3efc87067d95a643f8455e0b8190eb8cb7bfd39e4fb7571fdf"
5407
+ * ```
5183
5408
  */
5184
5409
  declare function addAddressPadding(address: BigNumberish): string;
5185
5410
  /**
5186
5411
  * Check the validity of a Starknet address, and format it as a hex number : '0x' and 64 characters, adding leading zeros if necessary.
5187
5412
  * @param {BigNumberish} address
5188
5413
  * @returns {string} Hex string : 0x followed by 64 characters. No upper case characters in the response.
5414
+ * @example
5415
+ * ```typescript
5416
+ * const address = "0x90591d9fa3efc87067d95a643f8455e0b8190eb8cb7bfd39e4fb7571fdf";
5417
+ * const result = validateAndParseAddress(address);
5418
+ * // result = "0x0000090591d9fa3efc87067d95a643f8455e0b8190eb8cb7bfd39e4fb7571fdf"
5419
+ * ```
5189
5420
  */
5190
5421
  declare function validateAndParseAddress(address: BigNumberish): string;
5191
5422
  /**
5192
- * Computes the checksum address for the given Starknet address.
5193
- *
5194
- * From https://github.com/ethers-io/ethers.js/blob/fc1e006575d59792fa97b4efb9ea2f8cca1944cf/packages/address/src.ts/index.ts#L12
5195
- * @param {BigNumberish} address - The address to compute the checksum for.
5196
- *
5197
- * @returns {string} The checksum address.
5423
+ * Convert an address to her checksum representation which uses a specific pattern of uppercase and lowercase letters within
5424
+ * a given address to reduce the risk of errors introduced from typing an address or cut and paste issues.
5425
+ * @param {BigNumberish} address
5426
+ * @returns {string} Hex string : 0x followed by 64 characters. Mix of uppercase and lowercase
5427
+ * @example
5428
+ * ```typescript
5429
+ * const address = "0x90591d9fa3efc87067d95a643f8455e0b8190eb8cb7bfd39e4fb7571fdf";
5430
+ * const result = getChecksumAddress(address);
5431
+ * // result = "0x0000090591D9fA3EfC87067d95a643f8455E0b8190eb8Cb7bFd39e4fb7571fDF"
5432
+ * ```
5198
5433
  */
5199
5434
  declare function getChecksumAddress(address: BigNumberish): string;
5200
5435
  /**
@@ -5204,11 +5439,25 @@ declare function getChecksumAddress(address: BigNumberish): string;
5204
5439
  * @param address string
5205
5440
  *
5206
5441
  * @returns true if the ChecksumAddress is valid
5442
+ * @example
5443
+ * ```typescript
5444
+ * const address = "0x0000090591D9fA3EfC87067d95a643f8455E0b8190eb8Cb7bFd39e4fb7571fDF";
5445
+ * const result = validateChecksumAddress(address);
5446
+ * // result = true
5447
+ * ```
5207
5448
  */
5208
5449
  declare function validateChecksumAddress(address: string): boolean;
5209
5450
 
5210
5451
  /**
5211
5452
  * Loosely validate a URL `string`.
5453
+ *
5454
+ * @param {string} s - The URL to check for
5455
+ * @return {boolean} `true` if url is valid, `false` otherwise
5456
+ * @example
5457
+ * ```typescript
5458
+ * const s = "https://starknetjs.com/docs";
5459
+ * const result = isUrl(s);
5460
+ * // result == true
5212
5461
  */
5213
5462
  declare function isUrl(s?: string): boolean;
5214
5463
  /**
@@ -5218,6 +5467,14 @@ declare function isUrl(s?: string): boolean;
5218
5467
  * @param {string} defaultPath - The default path to use if no URL or path is provided.
5219
5468
  * @param {string} [urlOrPath] - The optional URL or path to append to the base URL.
5220
5469
  * @return {string} The built URL.
5470
+ * @example
5471
+ * ```typescript
5472
+ * const baseUrl = "https://starknetjs.com";
5473
+ * const defaultPath = "/";
5474
+ * const urlOrPath = "/docs";
5475
+ * const result = buildUrl(baseUrl, defaultPath, urlOrPath);
5476
+ *
5477
+ * result = "https://starknetjs.com/docs"
5221
5478
  */
5222
5479
  declare function buildUrl(baseUrl: string, defaultPath: string, urlOrPath?: string): string;
5223
5480
 
@@ -5471,7 +5728,7 @@ declare namespace cairo {
5471
5728
  declare function stringFromByteArray(myByteArray: ByteArray): string;
5472
5729
  /**
5473
5730
  * convert a JS string to a Cairo ByteArray
5474
- * @param myString a JS string
5731
+ * @param targetString a JS string
5475
5732
  * @returns Cairo representation of a LongString
5476
5733
  * @example
5477
5734
  * ```typescript
@@ -5520,7 +5777,7 @@ declare class CallData {
5520
5777
  * Compile contract callData with abi
5521
5778
  * Parse the calldata by using input fields from the abi for that method
5522
5779
  * @param method string - method name
5523
- * @param args RawArgs - arguments passed to the method. Can be an array of arguments (in the order of abi definition), or an object constructed in conformity with abi (in this case, the parameter can be in a wrong order).
5780
+ * @param argsCalldata RawArgs - arguments passed to the method. Can be an array of arguments (in the order of abi definition), or an object constructed in conformity with abi (in this case, the parameter can be in a wrong order).
5524
5781
  * @return Calldata - parsed arguments in format that contract is expecting
5525
5782
  * @example
5526
5783
  * ```typescript
@@ -5682,10 +5939,11 @@ declare function addInvokeTransaction(swo: StarknetWindowObject, params: AddInvo
5682
5939
  declare function addDeclareTransaction(swo: StarknetWindowObject, params: AddDeclareTransactionParameters): Promise<RPCSPEC07.AddDeclareTransactionResult>;
5683
5940
  /**
5684
5941
  * Sign typed data using the wallet.
5685
- * @param params The typed data to sign.
5942
+ * @param swo the starknet (wallet) window object to request the signature.
5943
+ * @param typedData The typed data to sign.
5686
5944
  * @returns An array of signatures as strings.
5687
5945
  */
5688
- declare function signMessage(swo: StarknetWindowObject, typedData: TypedData): Promise<SIGNATURE$1>;
5946
+ declare function signMessage(swo: StarknetWindowObject, typedData: TypedData): Promise<SPEC.SIGNATURE>;
5689
5947
  /**
5690
5948
  * Get the list of supported specifications.
5691
5949
  * @returns An array of supported specification strings.
@@ -5734,4 +5992,4 @@ declare namespace connect {
5734
5992
  /** @deprecated prefer the 'num' naming */
5735
5993
  declare const number: typeof num;
5736
5994
 
5737
- export { type Abi, type AbiEntry, type AbiEnums, type AbiEvents, type AbiStructs, Account, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AllowArray, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockWithTxHashes, type Builtins, type ByteArray, type ByteCode, type Cairo1Event, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallStruct, type Calldata, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, ContractFactory, type ContractFactoryParams, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, CustomError, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransactionReceiptResponse, type Details, EntryPointType, type EntryPointsByType, type EnumAbi, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventAbi, type EventEntry, type FeeEstimate, type FunctionAbi, GatewayError, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, HttpError, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransactionReceiptResponse, type L1HandlerTransactionReceiptResponse, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type MessageToL1, type MultiDeployContractResponse, type MultiType, type Nonce, type OptionalPayload, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PendingBlock, type PendingStateUpdate, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, index$3 as RPC, rpc_0_6 as RPC06, rpc_0_7 as RPC07, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, ReceiptTx, type RejectedTransactionReceiptResponse, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcProvider, type RpcProviderOptions, SIMULATION_FLAG, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type StructAbi, type SuccessfulTransactionReceiptResponse, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptUtilityInterface, type TransactionReceiptValue, TransactionStatus, type TransactionStatusReceiptSets, TransactionType, 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 V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, type WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, type getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, parseCalldataField, parseUDCEvent, provider, selector, shortString, splitArgsAndOptions, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions, connect as wallet };
5995
+ export { type Abi, type AbiEntry, type AbiEnums, type AbiEvents, type AbiInterfaces, type AbiStructs, Account, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AllowArray, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockWithTxHashes, type Builtins, type ByteArray, type ByteCode, type Cairo1Event, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallStruct, type Calldata, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, ContractFactory, type ContractFactoryParams, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, CustomError, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransactionReceiptResponse, type Details, EntryPointType, type EntryPointsByType, type EnumAbi, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventAbi, type EventEntry, type FeeEstimate, type FunctionAbi, GatewayError, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, HttpError, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransactionReceiptResponse, type L1HandlerTransactionReceiptResponse, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type MessageToL1, type MultiDeployContractResponse, type MultiType, type Nonce, type OptionalPayload, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PendingBlock, type PendingStateUpdate, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, index$3 as RPC, rpc_0_6 as RPC06, rpc_0_7 as RPC07, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, ReceiptTx, type RejectedTransactionReceiptResponse, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type StructAbi, type SuccessfulTransactionReceiptResponse, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptUtilityInterface, type TransactionReceiptValue, TransactionStatus, type TransactionStatusReceiptSets, TransactionType, 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 V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, type WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, type getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, parseCalldataField, parseUDCEvent, provider, selector, shortString, splitArgsAndOptions, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions, connect as wallet };