starknet 11.6.3 → 11.7.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
@@ -75,7 +75,7 @@ var api_exports = {};
75
75
  __export(api_exports, {
76
76
  JRPC: () => jsonrpc_exports,
77
77
  PAYMASTER_API: () => PAYMASTER_API,
78
- RPCSPEC0104: () => RPCSPEC0104,
78
+ RPCSPEC0105: () => RPCSPEC0105,
79
79
  RPCSPEC09: () => RPCSPEC09
80
80
  });
81
81
 
@@ -84,13 +84,13 @@ var jsonrpc_exports = {};
84
84
 
85
85
  // src/types/api/index.ts
86
86
  import * as RPCSPEC09 from "@starknet-io/starknet-types-09";
87
- import * as RPCSPEC0104 from "@starknet-io/starknet-types-0104";
88
- import { PAYMASTER_API } from "@starknet-io/starknet-types-0104";
87
+ import * as RPCSPEC0105 from "@starknet-io/starknet-types-0105";
88
+ import { PAYMASTER_API } from "@starknet-io/starknet-types-0105";
89
89
 
90
90
  // src/types/api/rpc.ts
91
91
  var rpc_exports = {};
92
- __reExport(rpc_exports, starknet_types_0104_star);
93
- import * as starknet_types_0104_star from "@starknet-io/starknet-types-0104";
92
+ __reExport(rpc_exports, starknet_types_0105_star);
93
+ import * as starknet_types_0105_star from "@starknet-io/starknet-types-0105";
94
94
 
95
95
  // src/types/api/index.ts
96
96
  __reExport(api_exports, rpc_exports);
@@ -98,19 +98,19 @@ __reExport(api_exports, rpc_exports);
98
98
  // src/provider/types/spec.type.ts
99
99
  var { ETransactionVersion } = RPCSPEC09;
100
100
  var { ETransactionVersion3 } = RPCSPEC09;
101
- var { EDataAvailabilityMode } = RPCSPEC0104;
102
- var { EDAMode } = RPCSPEC0104;
101
+ var { EDataAvailabilityMode } = RPCSPEC0105;
102
+ var { EDAMode } = RPCSPEC0105;
103
103
  function isRPC08Plus_ResourceBounds(entry) {
104
104
  return "l1_data_gas" in entry;
105
105
  }
106
106
  function isRPC08Plus_ResourceBoundsBN(entry) {
107
107
  return "l1_data_gas" in entry;
108
108
  }
109
- var { ETxnResponseFlag } = RPCSPEC0104;
110
- var { ETraceFlag } = RPCSPEC0104;
111
- var { ESubscriptionTag } = RPCSPEC0104;
112
- var { ETransactionStatus } = RPCSPEC0104;
113
- var { ETransactionExecutionStatus } = RPCSPEC0104;
109
+ var { ETxnResponseFlag } = RPCSPEC0105;
110
+ var { ETraceFlag } = RPCSPEC0105;
111
+ var { ESubscriptionTag } = RPCSPEC0105;
112
+ var { ETransactionStatus } = RPCSPEC0105;
113
+ var { ETransactionExecutionStatus } = RPCSPEC0105;
114
114
  var { ETransactionType: TransactionType } = RPCSPEC09;
115
115
  var { EBlockStatus: BlockStatus } = RPCSPEC09;
116
116
  var { ETransactionFinalityStatus: TransactionFinalityStatus } = RPCSPEC09;
@@ -325,11 +325,13 @@ var _SupportedRpcVersion = {
325
325
  "0.10.2": "0.10.2",
326
326
  "0.10.3": "0.10.3",
327
327
  "0.10.4": "0.10.4",
328
+ "0.10.5": "0.10.5",
328
329
  v0_9_0: "0.9.0",
329
330
  v0_10_0: "0.10.0",
330
331
  v0_10_2: "0.10.2",
331
332
  v0_10_3: "0.10.3",
332
- v0_10_4: "0.10.4"
333
+ v0_10_4: "0.10.4",
334
+ v0_10_5: "0.10.5"
333
335
  };
334
336
  var DEFAULT_GLOBAL_CONFIG = {
335
337
  rpcVersion: "0.10.0",
@@ -15141,6 +15143,25 @@ var SubscriptionChannel4 = class extends SubscriptionChannel {
15141
15143
  channelSpecVersion = _SupportedRpcVersion.v0_10_4;
15142
15144
  };
15143
15145
 
15146
+ // src/channel/v0_10_5/index.ts
15147
+ var v0_10_5_exports = {};
15148
+ __export(v0_10_5_exports, {
15149
+ RpcChannel: () => RpcChannel5,
15150
+ SubscriptionChannel: () => SubscriptionChannel5
15151
+ });
15152
+
15153
+ // src/channel/rpc_0_10_5.ts
15154
+ var RpcChannel5 = class extends RpcChannel4 {
15155
+ id = "RPC0.10.5";
15156
+ channelSpecVersion = _SupportedRpcVersion.v0_10_5;
15157
+ };
15158
+
15159
+ // src/channel/v0_10_5/index.ts
15160
+ var SubscriptionChannel5 = class extends SubscriptionChannel {
15161
+ id = "RPC0.10.5-subscriptions";
15162
+ channelSpecVersion = _SupportedRpcVersion.v0_10_5;
15163
+ };
15164
+
15144
15165
  // src/channel/ws/ws_0_10.ts
15145
15166
  var WebSocketChannel = class {
15146
15167
  /**
@@ -17773,12 +17794,12 @@ var RpcProvider = class {
17773
17794
  if (isVersion("0.9", options.specVersion)) {
17774
17795
  this.channel = new v0_9_exports.RpcChannel({ ...options, waitMode: false });
17775
17796
  } else if (isVersion("0.10", options.specVersion)) {
17776
- this.channel = new v0_10_4_exports.RpcChannel({ ...options, waitMode: false });
17797
+ this.channel = new v0_10_5_exports.RpcChannel({ ...options, waitMode: false });
17777
17798
  } else throw new Error(`unsupported channel for spec version: ${options.specVersion}`);
17778
17799
  } else if (isVersion("0.9", config.get("rpcVersion"))) {
17779
17800
  this.channel = new v0_9_exports.RpcChannel({ ...options, waitMode: false });
17780
17801
  } else if (isVersion("0.10", config.get("rpcVersion"))) {
17781
- this.channel = new v0_10_4_exports.RpcChannel({ ...options, waitMode: false });
17802
+ this.channel = new v0_10_5_exports.RpcChannel({ ...options, waitMode: false });
17782
17803
  } else throw new Error("unable to define spec version for channel");
17783
17804
  this.responseParser = new RPCResponseParser(options?.resourceBoundsOverhead);
17784
17805
  const plugins = options?.plugins === false ? [] : options?.plugins ?? defaultPlugins;
@@ -18291,7 +18312,7 @@ var WebSocketProvider = class _WebSocketProvider extends RpcProvider {
18291
18312
  const channelOptions = { transport, maxBufferSize: options.maxBufferSize };
18292
18313
  const forVersion = (specVersion) => {
18293
18314
  if (isVersion("0.9", specVersion)) return new v0_9_exports.SubscriptionChannel(channelOptions);
18294
- if (isVersion("0.10", specVersion)) return new v0_10_4_exports.SubscriptionChannel(channelOptions);
18315
+ if (isVersion("0.10", specVersion)) return new v0_10_5_exports.SubscriptionChannel(channelOptions);
18295
18316
  throw new LibraryError(`unsupported subscription channel for spec version: ${specVersion}`);
18296
18317
  };
18297
18318
  if (options.specVersion) return forVersion(options.specVersion);
@@ -18323,7 +18344,7 @@ var WebSocketProvider = class _WebSocketProvider extends RpcProvider {
18323
18344
  return new this({ ...options, transport, specVersion: _SupportedRpcVersion.v0_9_0 });
18324
18345
  }
18325
18346
  if (isVersion("0.10", spec)) {
18326
- return new this({ ...options, transport, specVersion: _SupportedRpcVersion.v0_10_4 });
18347
+ return new this({ ...options, transport, specVersion: _SupportedRpcVersion.v0_10_5 });
18327
18348
  }
18328
18349
  throw new LibraryError(
18329
18350
  `Provided RPC node specification version ${spec} is not compatible with the SDK. SDK supported RPC versions ${Object.keys(_SupportedRpcVersion).toString()}`
@@ -21072,8 +21093,10 @@ var WalletAccountV6 = class _WalletAccountV6 extends WalletAccountV5 {
21072
21093
  }
21073
21094
  /**
21074
21095
  * Submit STRK20 actions as a single atomic transaction. The wallet displays an approval
21075
- * UI, generates the SNIP-36 proof, adds the fee action, and submits — so this call may
21076
- * take significantly longer than a standard invoke.
21096
+ * UI, generates the SNIP-36 proof, adds the fee action (except for a `register` action),
21097
+ * and submits — so this call may take significantly longer than a standard invoke.
21098
+ * The account must be registered in the pool first, else the wallet answers `NOT_REGISTERED`:
21099
+ * send `[{ type: 'register' }]` once, alone in its request.
21077
21100
  * @param {STRK20_ACTION[]} actions - The STRK20 actions to perform atomically (min 1).
21078
21101
  * @returns {Promise<{transaction_hash: string}>} The hash of the submitted transaction.
21079
21102
  * @example
@@ -21888,11 +21911,12 @@ export {
21888
21911
  v0_10_2_exports as RPC0102,
21889
21912
  v0_10_3_exports as RPC0103,
21890
21913
  v0_10_4_exports as RPC0104,
21914
+ v0_10_5_exports as RPC0105,
21891
21915
  v0_9_exports as RPC09,
21892
21916
  RPCResponseParser,
21893
21917
  ReconnectingWsTransport,
21894
21918
  ResponseParser,
21895
- RpcChannel4 as RpcChannel,
21919
+ RpcChannel5 as RpcChannel,
21896
21920
  RpcError,
21897
21921
  RpcProvider,
21898
21922
  SECP256K1_POINT_MAX,