@solana/web3.js 1.59.2 → 1.60.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.59.2",
3
+ "version": "1.60.1",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
package/src/connection.ts CHANGED
@@ -1029,6 +1029,8 @@ export type ParsedMessageAccount = {
1029
1029
  signer: boolean;
1030
1030
  /** Indicates if the account is writable for this transaction */
1031
1031
  writable: boolean;
1032
+ /** Indicates if the account key came from the transaction or a lookup table */
1033
+ source?: 'transaction' | 'lookupTable';
1032
1034
  };
1033
1035
 
1034
1036
  /**
@@ -1966,6 +1968,9 @@ const ParsedConfirmedTransactionResult = pick({
1966
1968
  pubkey: PublicKeyFromString,
1967
1969
  signer: boolean(),
1968
1970
  writable: boolean(),
1971
+ source: optional(
1972
+ union([literal('transaction'), literal('lookupTable')]),
1973
+ ),
1969
1974
  }),
1970
1975
  ),
1971
1976
  instructions: array(ParsedOrRawInstruction),
package/src/keypair.ts CHANGED
@@ -88,6 +88,6 @@ export class Keypair {
88
88
  * The raw secret key for this keypair
89
89
  */
90
90
  get secretKey(): Uint8Array {
91
- return this._keypair.secretKey;
91
+ return new Uint8Array(this._keypair.secretKey);
92
92
  }
93
93
  }