starknet 7.4.0 → 7.5.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.mjs CHANGED
@@ -63,10 +63,10 @@ var jsonrpc_exports = {};
63
63
 
64
64
  // src/types/api/index.ts
65
65
  __reExport(api_exports, starknet_types_08_star);
66
- import * as RPCSPEC07 from "starknet-types-07";
67
- import * as RPCSPEC08 from "starknet-types-08";
68
- import { PAYMASTER_API } from "starknet-types-08";
69
- import * as starknet_types_08_star from "starknet-types-08";
66
+ import * as RPCSPEC07 from "@starknet-io/starknet-types-07";
67
+ import * as RPCSPEC08 from "@starknet-io/starknet-types-08";
68
+ import { PAYMASTER_API } from "@starknet-io/starknet-types-08";
69
+ import * as starknet_types_08_star from "@starknet-io/starknet-types-08";
70
70
 
71
71
  // src/utils/encode.ts
72
72
  var encode_exports = {};
@@ -493,7 +493,7 @@ var BlockTag = {
493
493
  };
494
494
 
495
495
  // src/provider/types/spec.type.ts
496
- import * as RPCSPEC082 from "starknet-types-08";
496
+ import * as RPCSPEC082 from "@starknet-io/starknet-types-08";
497
497
  var { ETransactionVersion: ETransactionVersion2 } = RPCSPEC082;
498
498
  var { ETransactionVersion2: ETransactionVersion22 } = RPCSPEC082;
499
499
  var { ETransactionVersion3 } = RPCSPEC082;
@@ -587,7 +587,7 @@ var OutsideExecutionVersion = {
587
587
  // src/types/typedData.ts
588
588
  import {
589
589
  TypedDataRevision
590
- } from "starknet-types-07";
590
+ } from "@starknet-io/starknet-types-07";
591
591
 
592
592
  // src/utils/json.ts
593
593
  var json_exports = {};
@@ -9068,13 +9068,14 @@ var convertFEE_MODE = (feeMode) => {
9068
9068
  }
9069
9069
  return { mode: "default", gasToken: feeMode.gas_token };
9070
9070
  };
9071
- var convertTimeBounds = (timeBounds) => timeBounds && timeBounds.executeAfter && timeBounds.executeBefore ? {
9072
- execute_after: timeBounds.executeAfter.getTime().toString(),
9073
- execute_before: timeBounds.executeBefore.getTime().toString()
9071
+ var convertTimeBounds = (timeBounds) => timeBounds ? {
9072
+ execute_after: timeBounds.executeAfter || 1,
9073
+ // If executeAfter is not provided, set it to 1, meaning the transaction can be executed immediately
9074
+ execute_before: timeBounds.executeBefore
9074
9075
  } : void 0;
9075
- var convertTIME_BOUNDS = (timeBounds) => timeBounds && timeBounds.execute_after && timeBounds.execute_before ? {
9076
- executeAfter: new Date(timeBounds.execute_after),
9077
- executeBefore: new Date(timeBounds.execute_before)
9076
+ var convertTIME_BOUNDS = (timeBounds) => timeBounds ? {
9077
+ executeAfter: timeBounds.execute_after,
9078
+ executeBefore: timeBounds.execute_before
9078
9079
  } : void 0;
9079
9080
  var convertEXECUTION_PARAMETERS = (parameters) => ({
9080
9081
  version: parameters.version,