@solana/web3.js 1.59.1 → 1.60.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.d.ts CHANGED
@@ -2432,6 +2432,8 @@ declare module '@solana/web3.js' {
2432
2432
  signer: boolean;
2433
2433
  /** Indicates if the account is writable for this transaction */
2434
2434
  writable: boolean;
2435
+ /** Indicates if the account key came from the transaction or a lookup table */
2436
+ source?: 'transaction' | 'lookupTable';
2435
2437
  };
2436
2438
  /**
2437
2439
  * A parsed transaction instruction
package/lib/index.esm.js CHANGED
@@ -4332,7 +4332,8 @@ const ParsedConfirmedTransactionResult = type({
4332
4332
  accountKeys: array(type({
4333
4333
  pubkey: PublicKeyFromString,
4334
4334
  signer: boolean(),
4335
- writable: boolean()
4335
+ writable: boolean(),
4336
+ source: optional(union([literal('transaction'), literal('lookupTable')]))
4336
4337
  })),
4337
4338
  instructions: array(ParsedOrRawInstruction),
4338
4339
  recentBlockhash: string(),
@@ -7508,7 +7509,7 @@ class Keypair {
7508
7509
 
7509
7510
 
7510
7511
  get secretKey() {
7511
- return this._keypair.secretKey;
7512
+ return new Uint8Array(this._keypair.secretKey);
7512
7513
  }
7513
7514
 
7514
7515
  }