@solana/web3.js 1.93.4 → 1.94.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/lib/index.iife.js CHANGED
@@ -17429,6 +17429,16 @@ var solanaWeb3 = (function (exports) {
17429
17429
  'solana-core': string(),
17430
17430
  'feature-set': optional(number())
17431
17431
  });
17432
+ const ParsedInstructionStruct = type({
17433
+ program: string(),
17434
+ programId: PublicKeyFromString,
17435
+ parsed: unknown()
17436
+ });
17437
+ const PartiallyDecodedInstructionStruct = type({
17438
+ programId: PublicKeyFromString,
17439
+ accounts: array(PublicKeyFromString),
17440
+ data: string()
17441
+ });
17432
17442
  const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(type({
17433
17443
  err: nullable(union([type({}), string()])),
17434
17444
  logs: nullable(array(string())),
@@ -17443,7 +17453,11 @@ var solanaWeb3 = (function (exports) {
17443
17453
  returnData: optional(nullable(type({
17444
17454
  programId: string(),
17445
17455
  data: tuple([string(), literal('base64')])
17446
- })))
17456
+ }))),
17457
+ innerInstructions: optional(nullable(array(type({
17458
+ index: number(),
17459
+ instructions: array(union([ParsedInstructionStruct, PartiallyDecodedInstructionStruct]))
17460
+ }))))
17447
17461
  }));
17448
17462
 
17449
17463
  /**
@@ -20556,6 +20570,9 @@ var solanaWeb3 = (function (exports) {
20556
20570
  if (!('commitment' in config)) {
20557
20571
  config.commitment = this.commitment;
20558
20572
  }
20573
+ if (configOrSigners && typeof configOrSigners === 'object' && 'innerInstructions' in configOrSigners) {
20574
+ config.innerInstructions = configOrSigners.innerInstructions;
20575
+ }
20559
20576
  const args = [encodedTransaction, config];
20560
20577
  const unsafeRes = await this._rpcRequest('simulateTransaction', args);
20561
20578
  const res = create(unsafeRes, SimulatedTransactionResponseStruct);
@@ -20627,6 +20644,9 @@ var solanaWeb3 = (function (exports) {
20627
20644
  if (signers) {
20628
20645
  config.sigVerify = true;
20629
20646
  }
20647
+ if (configOrSigners && typeof configOrSigners === 'object' && 'innerInstructions' in configOrSigners) {
20648
+ config.innerInstructions = configOrSigners.innerInstructions;
20649
+ }
20630
20650
  const args = [encodedTransaction, config];
20631
20651
  const unsafeRes = await this._rpcRequest('simulateTransaction', args);
20632
20652
  const res = create(unsafeRes, SimulatedTransactionResponseStruct);