@solana/kit 6.0.1 → 6.1.0-canary-20260209202622

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.
@@ -5213,6 +5213,42 @@ this.globalThis.solanaWeb3 = (function (exports) {
5213
5213
  )
5214
5214
  );
5215
5215
  }
5216
+ function parseInstructionPlanInput(input) {
5217
+ if (Array.isArray(input) && input.length === 1) {
5218
+ return parseInstructionPlanInput(input[0]);
5219
+ }
5220
+ if (Array.isArray(input)) {
5221
+ return sequentialInstructionPlan(input.map(parseInstructionPlanInput));
5222
+ }
5223
+ return isInstructionPlan(input) ? input : singleInstructionPlan(input);
5224
+ }
5225
+ function parseTransactionPlanInput(input) {
5226
+ if (Array.isArray(input) && input.length === 1) {
5227
+ return parseTransactionPlanInput(input[0]);
5228
+ }
5229
+ if (Array.isArray(input)) {
5230
+ return sequentialTransactionPlan(input.map((item) => parseTransactionPlanInput(item)));
5231
+ }
5232
+ return isTransactionPlan(input) ? input : singleTransactionPlan(input);
5233
+ }
5234
+ function parseInstructionOrTransactionPlanInput(input) {
5235
+ if (Array.isArray(input) && input.length === 0) {
5236
+ return parseTransactionPlanInput(input);
5237
+ }
5238
+ if (Array.isArray(input) && isTransactionPlanInput(input[0])) {
5239
+ return parseTransactionPlanInput(input);
5240
+ }
5241
+ if (isTransactionPlanInput(input)) {
5242
+ return parseTransactionPlanInput(input);
5243
+ }
5244
+ return parseInstructionPlanInput(input);
5245
+ }
5246
+ function isTransactionPlanInput(value) {
5247
+ return isTransactionPlan(value) || isTransactionMessage(value);
5248
+ }
5249
+ function isTransactionMessage(value) {
5250
+ return typeof value === "object" && value !== null && "instructions" in value && Array.isArray(value.instructions) && "version" in value;
5251
+ }
5216
5252
  function sequentialTransactionPlanResult(plans) {
5217
5253
  return Object.freeze({ divisible: true, kind: "sequential", planType: "transactionPlanResult", plans });
5218
5254
  }
@@ -7566,7 +7602,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
7566
7602
  ...config.headers ? normalizeHeaders2(config.headers) : void 0,
7567
7603
  ...{
7568
7604
  // Keep these headers lowercase so they will override any user-supplied headers above.
7569
- "solana-client": `js/${"6.0.1"}`
7605
+ "solana-client": `js/${"6.1.0-canary-20260209202622"}`
7570
7606
  }
7571
7607
  }
7572
7608
  }),
@@ -10272,7 +10308,10 @@ this.globalThis.solanaWeb3 = (function (exports) {
10272
10308
  exports.parallelTransactionPlanResult = parallelTransactionPlanResult;
10273
10309
  exports.parseBase58RpcAccount = parseBase58RpcAccount;
10274
10310
  exports.parseBase64RpcAccount = parseBase64RpcAccount;
10311
+ exports.parseInstructionOrTransactionPlanInput = parseInstructionOrTransactionPlanInput;
10312
+ exports.parseInstructionPlanInput = parseInstructionPlanInput;
10275
10313
  exports.parseJsonRpcAccount = parseJsonRpcAccount;
10314
+ exports.parseTransactionPlanInput = parseTransactionPlanInput;
10276
10315
  exports.partiallySignOffchainMessageEnvelope = partiallySignOffchainMessageEnvelope;
10277
10316
  exports.partiallySignOffchainMessageWithSigners = partiallySignOffchainMessageWithSigners;
10278
10317
  exports.partiallySignTransaction = partiallySignTransaction;