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.
@@ -134,11 +134,12 @@ var starknet = (() => {
134
134
  RPC0102: () => v0_10_2_exports,
135
135
  RPC0103: () => v0_10_3_exports,
136
136
  RPC0104: () => v0_10_4_exports,
137
+ RPC0105: () => v0_10_5_exports,
137
138
  RPC09: () => v0_9_exports,
138
139
  RPCResponseParser: () => RPCResponseParser,
139
140
  ReconnectingWsTransport: () => ReconnectingWsTransport,
140
141
  ResponseParser: () => ResponseParser,
141
- RpcChannel: () => RpcChannel4,
142
+ RpcChannel: () => RpcChannel5,
142
143
  RpcError: () => RpcError,
143
144
  RpcProvider: () => RpcProvider,
144
145
  SECP256K1_POINT_MAX: () => SECP256K1_POINT_MAX,
@@ -330,7 +331,7 @@ var starknet = (() => {
330
331
  PRICE_UNIT_WEI: () => PRICE_UNIT_WEI2,
331
332
  PROVING_API: () => proving_api_exports,
332
333
  Permission: () => Permission2,
333
- RPCSPEC0104: () => esm_exports2,
334
+ RPCSPEC0105: () => esm_exports2,
334
335
  RPCSPEC09: () => esm_exports,
335
336
  STATE_MUTABILITY_EXTERNAL: () => STATE_MUTABILITY_EXTERNAL2,
336
337
  STATE_MUTABILITY_VIEW: () => STATE_MUTABILITY_VIEW2,
@@ -598,7 +599,7 @@ var starknet = (() => {
598
599
  // node_modules/@starknet-io/starknet-types-09/dist/esm/snip-29/index.js
599
600
  var snip_29_exports = {};
600
601
 
601
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/index.js
602
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/index.js
602
603
  var esm_exports2 = {};
603
604
  __export(esm_exports2, {
604
605
  ABI_TYPE_CONSTRUCTOR: () => ABI_TYPE_CONSTRUCTOR2,
@@ -650,7 +651,7 @@ var starknet = (() => {
650
651
  WALLET_API: () => wallet_api_exports2
651
652
  });
652
653
 
653
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/api/index.js
654
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/api/index.js
654
655
  var api_exports2 = {};
655
656
  __export(api_exports2, {
656
657
  ABI_TYPE_CONSTRUCTOR: () => ABI_TYPE_CONSTRUCTOR2,
@@ -696,7 +697,7 @@ var starknet = (() => {
696
697
  TXN_TYPE_L1_HANDLER: () => TXN_TYPE_L1_HANDLER2
697
698
  });
698
699
 
699
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/api/constants.js
700
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/api/constants.js
700
701
  var STATUS_ACCEPTED_ON_L22 = "ACCEPTED_ON_L2";
701
702
  var STATUS_ACCEPTED_ON_L12 = "ACCEPTED_ON_L1";
702
703
  var STATUS_SUCCEEDED2 = "SUCCEEDED";
@@ -829,28 +830,28 @@ var starknet = (() => {
829
830
  F3: ETransactionVersion4.F3
830
831
  };
831
832
 
832
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/api/contract.js
833
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/api/contract.js
833
834
  var contract_exports2 = {};
834
835
 
835
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/snip-29/index.js
836
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/snip-29/index.js
836
837
  var snip_29_exports2 = {};
837
838
 
838
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/proving-api/index.js
839
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/proving-api/index.js
839
840
  var proving_api_exports = {};
840
841
 
841
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/wallet-api/index.js
842
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/wallet-api/index.js
842
843
  var wallet_api_exports2 = {};
843
844
  __export(wallet_api_exports2, {
844
845
  Permission: () => Permission2,
845
846
  TypedDataRevision: () => TypedDataRevision2
846
847
  });
847
848
 
848
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/wallet-api/constants.js
849
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/wallet-api/constants.js
849
850
  var Permission2 = {
850
851
  ACCOUNTS: "accounts"
851
852
  };
852
853
 
853
- // node_modules/@starknet-io/starknet-types-0104/dist/esm/wallet-api/typedData.js
854
+ // node_modules/@starknet-io/starknet-types-0105/dist/esm/wallet-api/typedData.js
854
855
  var TypedDataRevision2 = {
855
856
  ACTIVE: "1",
856
857
  LEGACY: "0"
@@ -1287,11 +1288,13 @@ var starknet = (() => {
1287
1288
  "0.10.2": "0.10.2",
1288
1289
  "0.10.3": "0.10.3",
1289
1290
  "0.10.4": "0.10.4",
1291
+ "0.10.5": "0.10.5",
1290
1292
  v0_9_0: "0.9.0",
1291
1293
  v0_10_0: "0.10.0",
1292
1294
  v0_10_2: "0.10.2",
1293
1295
  v0_10_3: "0.10.3",
1294
- v0_10_4: "0.10.4"
1296
+ v0_10_4: "0.10.4",
1297
+ v0_10_5: "0.10.5"
1295
1298
  };
1296
1299
  var DEFAULT_GLOBAL_CONFIG = {
1297
1300
  rpcVersion: "0.10.0",
@@ -20906,6 +20909,25 @@ ${indent}}` : "}";
20906
20909
  channelSpecVersion = _SupportedRpcVersion.v0_10_4;
20907
20910
  };
20908
20911
 
20912
+ // src/channel/v0_10_5/index.ts
20913
+ var v0_10_5_exports = {};
20914
+ __export(v0_10_5_exports, {
20915
+ RpcChannel: () => RpcChannel5,
20916
+ SubscriptionChannel: () => SubscriptionChannel5
20917
+ });
20918
+
20919
+ // src/channel/rpc_0_10_5.ts
20920
+ var RpcChannel5 = class extends RpcChannel4 {
20921
+ id = "RPC0.10.5";
20922
+ channelSpecVersion = _SupportedRpcVersion.v0_10_5;
20923
+ };
20924
+
20925
+ // src/channel/v0_10_5/index.ts
20926
+ var SubscriptionChannel5 = class extends SubscriptionChannel {
20927
+ id = "RPC0.10.5-subscriptions";
20928
+ channelSpecVersion = _SupportedRpcVersion.v0_10_5;
20929
+ };
20930
+
20909
20931
  // src/channel/ws/ws_0_10.ts
20910
20932
  var WebSocketChannel = class {
20911
20933
  /**
@@ -23538,12 +23560,12 @@ ${indent}}` : "}";
23538
23560
  if (isVersion("0.9", options.specVersion)) {
23539
23561
  this.channel = new v0_9_exports.RpcChannel({ ...options, waitMode: false });
23540
23562
  } else if (isVersion("0.10", options.specVersion)) {
23541
- this.channel = new v0_10_4_exports.RpcChannel({ ...options, waitMode: false });
23563
+ this.channel = new v0_10_5_exports.RpcChannel({ ...options, waitMode: false });
23542
23564
  } else throw new Error(`unsupported channel for spec version: ${options.specVersion}`);
23543
23565
  } else if (isVersion("0.9", config.get("rpcVersion"))) {
23544
23566
  this.channel = new v0_9_exports.RpcChannel({ ...options, waitMode: false });
23545
23567
  } else if (isVersion("0.10", config.get("rpcVersion"))) {
23546
- this.channel = new v0_10_4_exports.RpcChannel({ ...options, waitMode: false });
23568
+ this.channel = new v0_10_5_exports.RpcChannel({ ...options, waitMode: false });
23547
23569
  } else throw new Error("unable to define spec version for channel");
23548
23570
  this.responseParser = new RPCResponseParser(options?.resourceBoundsOverhead);
23549
23571
  const plugins = options?.plugins === false ? [] : options?.plugins ?? defaultPlugins;
@@ -24056,7 +24078,7 @@ ${indent}}` : "}";
24056
24078
  const channelOptions = { transport, maxBufferSize: options.maxBufferSize };
24057
24079
  const forVersion = (specVersion) => {
24058
24080
  if (isVersion("0.9", specVersion)) return new v0_9_exports.SubscriptionChannel(channelOptions);
24059
- if (isVersion("0.10", specVersion)) return new v0_10_4_exports.SubscriptionChannel(channelOptions);
24081
+ if (isVersion("0.10", specVersion)) return new v0_10_5_exports.SubscriptionChannel(channelOptions);
24060
24082
  throw new LibraryError(`unsupported subscription channel for spec version: ${specVersion}`);
24061
24083
  };
24062
24084
  if (options.specVersion) return forVersion(options.specVersion);
@@ -24088,7 +24110,7 @@ ${indent}}` : "}";
24088
24110
  return new this({ ...options, transport, specVersion: _SupportedRpcVersion.v0_9_0 });
24089
24111
  }
24090
24112
  if (isVersion("0.10", spec)) {
24091
- return new this({ ...options, transport, specVersion: _SupportedRpcVersion.v0_10_4 });
24113
+ return new this({ ...options, transport, specVersion: _SupportedRpcVersion.v0_10_5 });
24092
24114
  }
24093
24115
  throw new LibraryError(
24094
24116
  `Provided RPC node specification version ${spec} is not compatible with the SDK. SDK supported RPC versions ${Object.keys(_SupportedRpcVersion).toString()}`
@@ -26835,8 +26857,10 @@ ${indent}}` : "}";
26835
26857
  }
26836
26858
  /**
26837
26859
  * Submit STRK20 actions as a single atomic transaction. The wallet displays an approval
26838
- * UI, generates the SNIP-36 proof, adds the fee action, and submits — so this call may
26839
- * take significantly longer than a standard invoke.
26860
+ * UI, generates the SNIP-36 proof, adds the fee action (except for a `register` action),
26861
+ * and submits — so this call may take significantly longer than a standard invoke.
26862
+ * The account must be registered in the pool first, else the wallet answers `NOT_REGISTERED`:
26863
+ * send `[{ type: 'register' }]` once, alone in its request.
26840
26864
  * @param {STRK20_ACTION[]} actions - The STRK20 actions to perform atomically (min 1).
26841
26865
  * @returns {Promise<{transaction_hash: string}>} The hash of the submitted transaction.
26842
26866
  * @example