@solana/web3.js 1.93.4 → 1.95.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.
@@ -4093,6 +4093,16 @@ const VersionResult = superstruct.type({
4093
4093
  'solana-core': superstruct.string(),
4094
4094
  'feature-set': superstruct.optional(superstruct.number())
4095
4095
  });
4096
+ const ParsedInstructionStruct = superstruct.type({
4097
+ program: superstruct.string(),
4098
+ programId: PublicKeyFromString,
4099
+ parsed: superstruct.unknown()
4100
+ });
4101
+ const PartiallyDecodedInstructionStruct = superstruct.type({
4102
+ programId: PublicKeyFromString,
4103
+ accounts: superstruct.array(PublicKeyFromString),
4104
+ data: superstruct.string()
4105
+ });
4096
4106
  const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(superstruct.type({
4097
4107
  err: superstruct.nullable(superstruct.union([superstruct.type({}), superstruct.string()])),
4098
4108
  logs: superstruct.nullable(superstruct.array(superstruct.string())),
@@ -4107,7 +4117,11 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(superstruct.t
4107
4117
  returnData: superstruct.optional(superstruct.nullable(superstruct.type({
4108
4118
  programId: superstruct.string(),
4109
4119
  data: superstruct.tuple([superstruct.string(), superstruct.literal('base64')])
4110
- })))
4120
+ }))),
4121
+ innerInstructions: superstruct.optional(superstruct.nullable(superstruct.array(superstruct.type({
4122
+ index: superstruct.number(),
4123
+ instructions: superstruct.array(superstruct.union([ParsedInstructionStruct, PartiallyDecodedInstructionStruct]))
4124
+ }))))
4111
4125
  }));
4112
4126
 
4113
4127
  /**
@@ -7220,6 +7234,9 @@ class Connection {
7220
7234
  if (!('commitment' in config)) {
7221
7235
  config.commitment = this.commitment;
7222
7236
  }
7237
+ if (configOrSigners && typeof configOrSigners === 'object' && 'innerInstructions' in configOrSigners) {
7238
+ config.innerInstructions = configOrSigners.innerInstructions;
7239
+ }
7223
7240
  const args = [encodedTransaction, config];
7224
7241
  const unsafeRes = await this._rpcRequest('simulateTransaction', args);
7225
7242
  const res = superstruct.create(unsafeRes, SimulatedTransactionResponseStruct);
@@ -7291,6 +7308,9 @@ class Connection {
7291
7308
  if (signers) {
7292
7309
  config.sigVerify = true;
7293
7310
  }
7311
+ if (configOrSigners && typeof configOrSigners === 'object' && 'innerInstructions' in configOrSigners) {
7312
+ config.innerInstructions = configOrSigners.innerInstructions;
7313
+ }
7294
7314
  const args = [encodedTransaction, config];
7295
7315
  const unsafeRes = await this._rpcRequest('simulateTransaction', args);
7296
7316
  const res = superstruct.create(unsafeRes, SimulatedTransactionResponseStruct);
@@ -10191,6 +10211,7 @@ const InfoString = superstruct.type({
10191
10211
  name: superstruct.string(),
10192
10212
  website: superstruct.optional(superstruct.string()),
10193
10213
  details: superstruct.optional(superstruct.string()),
10214
+ iconUrl: superstruct.optional(superstruct.string()),
10194
10215
  keybaseUsername: superstruct.optional(superstruct.string())
10195
10216
  });
10196
10217