@solana/web3.js 1.47.4 → 1.50.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
@@ -142,13 +142,6 @@ declare module '@solana/web3.js' {
142
142
  get secretKey(): Buffer;
143
143
  }
144
144
 
145
- /**
146
- * Blockhash as Base58 string.
147
- */
148
- export type Blockhash = string;
149
-
150
- export const BPF_LOADER_DEPRECATED_PROGRAM_ID: PublicKey;
151
-
152
145
  /**
153
146
  * Epoch schedule
154
147
  * (see https://docs.solana.com/terminology#epoch)
@@ -184,6 +177,11 @@ declare module '@solana/web3.js' {
184
177
  init?: nodeFetch.RequestInit,
185
178
  ): Promise<nodeFetch.Response>;
186
179
 
180
+ /**
181
+ * Blockhash as Base58 string.
182
+ */
183
+ export type Blockhash = string;
184
+
187
185
  /**
188
186
  * Calculator for transaction fees.
189
187
  */
@@ -339,223 +337,6 @@ declare module '@solana/web3.js' {
339
337
  static from(buffer: Buffer | Uint8Array | Array<number>): Message;
340
338
  }
341
339
 
342
- /**
343
- * Transaction signature as base-58 encoded string
344
- */
345
- export type TransactionSignature = string;
346
- export const enum TransactionStatus {
347
- BLOCKHEIGHT_EXCEEDED = 0,
348
- PROCESSED = 1,
349
- TIMED_OUT = 2,
350
- }
351
- /**
352
- * Account metadata used to define instructions
353
- */
354
- export type AccountMeta = {
355
- /** An account's public key */
356
- pubkey: PublicKey;
357
- /** True if an instruction requires a transaction signature matching `pubkey` */
358
- isSigner: boolean;
359
- /** True if the `pubkey` can be loaded as a read-write account. */
360
- isWritable: boolean;
361
- };
362
- /**
363
- * List of TransactionInstruction object fields that may be initialized at construction
364
- */
365
- export type TransactionInstructionCtorFields = {
366
- keys: Array<AccountMeta>;
367
- programId: PublicKey;
368
- data?: Buffer;
369
- };
370
- /**
371
- * Configuration object for Transaction.serialize()
372
- */
373
- export type SerializeConfig = {
374
- /** Require all transaction signatures be present (default: true) */
375
- requireAllSignatures?: boolean;
376
- /** Verify provided signatures (default: true) */
377
- verifySignatures?: boolean;
378
- };
379
- /**
380
- * Transaction Instruction class
381
- */
382
- export class TransactionInstruction {
383
- /**
384
- * Public keys to include in this transaction
385
- * Boolean represents whether this pubkey needs to sign the transaction
386
- */
387
- keys: Array<AccountMeta>;
388
- /**
389
- * Program Id to execute
390
- */
391
- programId: PublicKey;
392
- /**
393
- * Program input
394
- */
395
- data: Buffer;
396
- constructor(opts: TransactionInstructionCtorFields);
397
- }
398
- /**
399
- * Pair of signature and corresponding public key
400
- */
401
- export type SignaturePubkeyPair = {
402
- signature: Buffer | null;
403
- publicKey: PublicKey;
404
- };
405
- /**
406
- * List of Transaction object fields that may be initialized at construction
407
- */
408
- export type TransactionCtorFields_DEPRECATED = {
409
- /** Optional nonce information used for offline nonce'd transactions */
410
- nonceInfo?: NonceInformation | null;
411
- /** The transaction fee payer */
412
- feePayer?: PublicKey | null;
413
- /** One or more signatures */
414
- signatures?: Array<SignaturePubkeyPair>;
415
- /** A recent blockhash */
416
- recentBlockhash?: Blockhash;
417
- };
418
- export type TransactionCtorFields = TransactionCtorFields_DEPRECATED;
419
- /**
420
- * List of Transaction object fields that may be initialized at construction
421
- */
422
- export type TransactionBlockhashCtor = {
423
- /** The transaction fee payer */
424
- feePayer?: PublicKey | null;
425
- /** One or more signatures */
426
- signatures?: Array<SignaturePubkeyPair>;
427
- /** A recent blockhash */
428
- blockhash: Blockhash;
429
- /** the last block chain can advance to before tx is exportd expired */
430
- lastValidBlockHeight: number;
431
- };
432
- /**
433
- * Nonce information to be used to build an offline Transaction.
434
- */
435
- export type NonceInformation = {
436
- /** The current blockhash stored in the nonce */
437
- nonce: Blockhash;
438
- /** AdvanceNonceAccount Instruction */
439
- nonceInstruction: TransactionInstruction;
440
- };
441
- /**
442
- * Transaction class
443
- */
444
- export class Transaction {
445
- /**
446
- * Signatures for the transaction. Typically created by invoking the
447
- * `sign()` method
448
- */
449
- signatures: Array<SignaturePubkeyPair>;
450
- /**
451
- * The first (payer) Transaction signature
452
- */
453
- get signature(): Buffer | null;
454
- /**
455
- * The transaction fee payer
456
- */
457
- feePayer?: PublicKey;
458
- /**
459
- * The instructions to atomically execute
460
- */
461
- instructions: Array<TransactionInstruction>;
462
- /**
463
- * A recent transaction id. Must be populated by the caller
464
- */
465
- recentBlockhash?: Blockhash;
466
- /**
467
- * the last block chain can advance to before tx is exportd expired
468
- * */
469
- lastValidBlockHeight?: number;
470
- /**
471
- * Optional Nonce information. If populated, transaction will use a durable
472
- * Nonce hash instead of a recentBlockhash. Must be populated by the caller
473
- */
474
- nonceInfo?: NonceInformation;
475
- constructor(opts?: TransactionBlockhashCtor);
476
- /**
477
- * @deprecated `TransactionCtorFields` has been deprecated and will be removed in a future version.
478
- * Please supply a `TransactionBlockhashCtor` instead.
479
- */
480
- constructor(opts?: TransactionCtorFields_DEPRECATED);
481
- /**
482
- * Add one or more instructions to this Transaction
483
- */
484
- add(
485
- ...items: Array<
486
- Transaction | TransactionInstruction | TransactionInstructionCtorFields
487
- >
488
- ): Transaction;
489
- /**
490
- * Compile transaction data
491
- */
492
- compileMessage(): Message;
493
- /**
494
- * Get a buffer of the Transaction data that need to be covered by signatures
495
- */
496
- serializeMessage(): Buffer;
497
- /**
498
- * Get the estimated fee associated with a transaction
499
- */
500
- getEstimatedFee(connection: Connection): Promise<number>;
501
- /**
502
- * Specify the public keys which will be used to sign the Transaction.
503
- * The first signer will be used as the transaction fee payer account.
504
- *
505
- * Signatures can be added with either `partialSign` or `addSignature`
506
- *
507
- * @deprecated Deprecated since v0.84.0. Only the fee payer needs to be
508
- * specified and it can be set in the Transaction constructor or with the
509
- * `feePayer` property.
510
- */
511
- setSigners(...signers: Array<PublicKey>): void;
512
- /**
513
- * Sign the Transaction with the specified signers. Multiple signatures may
514
- * be applied to a Transaction. The first signature is considered "primary"
515
- * and is used identify and confirm transactions.
516
- *
517
- * If the Transaction `feePayer` is not set, the first signer will be used
518
- * as the transaction fee payer account.
519
- *
520
- * Transaction fields should not be modified after the first call to `sign`,
521
- * as doing so may invalidate the signature and cause the Transaction to be
522
- * rejected.
523
- *
524
- * The Transaction must be assigned a valid `recentBlockhash` before invoking this method
525
- */
526
- sign(...signers: Array<Signer>): void;
527
- /**
528
- * Partially sign a transaction with the specified accounts. All accounts must
529
- * correspond to either the fee payer or a signer account in the transaction
530
- * instructions.
531
- *
532
- * All the caveats from the `sign` method apply to `partialSign`
533
- */
534
- partialSign(...signers: Array<Signer>): void;
535
- /**
536
- * Add an externally created signature to a transaction. The public key
537
- * must correspond to either the fee payer or a signer account in the transaction
538
- * instructions.
539
- */
540
- addSignature(pubkey: PublicKey, signature: Buffer): void;
541
- /**
542
- * Verify signatures of a complete, signed Transaction
543
- */
544
- verifySignatures(): boolean;
545
- /**
546
- * Serialize the Transaction in the wire format.
547
- */
548
- serialize(config?: SerializeConfig): Buffer;
549
- /**
550
- * Parse a wire transaction into a Transaction object.
551
- */
552
- static from(buffer: Buffer | Uint8Array | Array<number>): Transaction;
553
- /**
554
- * Populate Transaction object from message and signatures
555
- */
556
- static populate(message: Message, signatures?: Array<string>): Transaction;
557
- }
558
-
559
340
  export type ClientSubscriptionId = number;
560
341
  export type TokenAccountsFilter =
561
342
  | {
@@ -699,6 +480,22 @@ declare module '@solana/web3.js' {
699
480
  /** The minimum slot that the request can be evaluated at */
700
481
  minContextSlot?: number;
701
482
  };
483
+ /**
484
+ * Configuration object for changing `getBlock` query behavior
485
+ */
486
+ export type GetBlockConfig = {
487
+ /** The level of finality desired */
488
+ commitment?: Finality;
489
+ /** The max transaction version to return in responses. If the requested transaction is a higher version, an error will be returned */
490
+ maxSupportedTransactionVersion?: number;
491
+ };
492
+ /**
493
+ * Configuration object for changing `getStakeMinimumDelegation` query behavior
494
+ */
495
+ export type GetStakeMinimumDelegationConfig = {
496
+ /** The level of commitment desired */
497
+ commitment?: Commitment;
498
+ };
702
499
  /**
703
500
  * Configuration object for changing `getBlockHeight` query behavior
704
501
  */
@@ -755,6 +552,15 @@ declare module '@solana/web3.js' {
755
552
  /** The minimum slot that the request can be evaluated at */
756
553
  minContextSlot?: number;
757
554
  };
555
+ /**
556
+ * Configuration object for changing `getTransaction` query behavior
557
+ */
558
+ export type GetTransactionConfig = {
559
+ /** The level of finality desired */
560
+ commitment?: Finality;
561
+ /** The max transaction version to return in responses. If the requested transaction is a higher version, an error will be returned */
562
+ maxSupportedTransactionVersion?: number;
563
+ };
758
564
  /**
759
565
  * Configuration object for changing `getLargestAccounts` query behavior
760
566
  */
@@ -1957,9 +1763,7 @@ declare module '@solana/web3.js' {
1957
1763
  */
1958
1764
  getBlock(
1959
1765
  slot: number,
1960
- opts?: {
1961
- commitment?: Finality;
1962
- },
1766
+ rawConfig?: GetBlockConfig,
1963
1767
  ): Promise<BlockResponse | null>;
1964
1768
  getBlockHeight(
1965
1769
  commitmentOrConfig?: Commitment | GetBlockHeightConfig,
@@ -1972,23 +1776,21 @@ declare module '@solana/web3.js' {
1972
1776
  */
1973
1777
  getTransaction(
1974
1778
  signature: string,
1975
- opts?: {
1976
- commitment?: Finality;
1977
- },
1779
+ rawConfig?: GetTransactionConfig,
1978
1780
  ): Promise<TransactionResponse | null>;
1979
1781
  /**
1980
1782
  * Fetch parsed transaction details for a confirmed or finalized transaction
1981
1783
  */
1982
1784
  getParsedTransaction(
1983
1785
  signature: TransactionSignature,
1984
- commitment?: Finality,
1786
+ commitmentOrConfig?: GetTransactionConfig | Finality,
1985
1787
  ): Promise<ParsedConfirmedTransaction | null>;
1986
1788
  /**
1987
1789
  * Fetch parsed transaction details for a batch of confirmed transactions
1988
1790
  */
1989
1791
  getParsedTransactions(
1990
1792
  signatures: TransactionSignature[],
1991
- commitment?: Finality,
1793
+ commitmentOrConfig?: GetTransactionConfig | Finality,
1992
1794
  ): Promise<(ParsedConfirmedTransaction | null)[]>;
1993
1795
  /**
1994
1796
  * Fetch transaction details for a batch of confirmed transactions.
@@ -1996,7 +1798,7 @@ declare module '@solana/web3.js' {
1996
1798
  */
1997
1799
  getTransactions(
1998
1800
  signatures: TransactionSignature[],
1999
- commitment?: Finality,
1801
+ commitmentOrConfig?: GetTransactionConfig | Finality,
2000
1802
  ): Promise<(TransactionResponse | null)[]>;
2001
1803
  /**
2002
1804
  * Fetch a list of Transactions and transaction statuses from the cluster
@@ -2132,6 +1934,12 @@ declare module '@solana/web3.js' {
2132
1934
  to: PublicKey,
2133
1935
  lamports: number,
2134
1936
  ): Promise<TransactionSignature>;
1937
+ /**
1938
+ * get the stake minimum delegation
1939
+ */
1940
+ getStakeMinimumDelegation(
1941
+ config?: GetStakeMinimumDelegationConfig,
1942
+ ): Promise<RpcResponseAndContext<number>>;
2135
1943
  /**
2136
1944
  * Simulate a transaction
2137
1945
  */
@@ -2315,6 +2123,312 @@ declare module '@solana/web3.js' {
2315
2123
  ): Promise<void>;
2316
2124
  }
2317
2125
 
2126
+ /**
2127
+ * Transaction signature as base-58 encoded string
2128
+ */
2129
+ export type TransactionSignature = string;
2130
+ export const enum TransactionStatus {
2131
+ BLOCKHEIGHT_EXCEEDED = 0,
2132
+ PROCESSED = 1,
2133
+ TIMED_OUT = 2,
2134
+ }
2135
+ /**
2136
+ * Account metadata used to define instructions
2137
+ */
2138
+ export type AccountMeta = {
2139
+ /** An account's public key */
2140
+ pubkey: PublicKey;
2141
+ /** True if an instruction requires a transaction signature matching `pubkey` */
2142
+ isSigner: boolean;
2143
+ /** True if the `pubkey` can be loaded as a read-write account. */
2144
+ isWritable: boolean;
2145
+ };
2146
+ /**
2147
+ * List of TransactionInstruction object fields that may be initialized at construction
2148
+ */
2149
+ export type TransactionInstructionCtorFields = {
2150
+ keys: Array<AccountMeta>;
2151
+ programId: PublicKey;
2152
+ data?: Buffer;
2153
+ };
2154
+ /**
2155
+ * Configuration object for Transaction.serialize()
2156
+ */
2157
+ export type SerializeConfig = {
2158
+ /** Require all transaction signatures be present (default: true) */
2159
+ requireAllSignatures?: boolean;
2160
+ /** Verify provided signatures (default: true) */
2161
+ verifySignatures?: boolean;
2162
+ };
2163
+ /**
2164
+ * Transaction Instruction class
2165
+ */
2166
+ export class TransactionInstruction {
2167
+ /**
2168
+ * Public keys to include in this transaction
2169
+ * Boolean represents whether this pubkey needs to sign the transaction
2170
+ */
2171
+ keys: Array<AccountMeta>;
2172
+ /**
2173
+ * Program Id to execute
2174
+ */
2175
+ programId: PublicKey;
2176
+ /**
2177
+ * Program input
2178
+ */
2179
+ data: Buffer;
2180
+ constructor(opts: TransactionInstructionCtorFields);
2181
+ }
2182
+ /**
2183
+ * Pair of signature and corresponding public key
2184
+ */
2185
+ export type SignaturePubkeyPair = {
2186
+ signature: Buffer | null;
2187
+ publicKey: PublicKey;
2188
+ };
2189
+ /**
2190
+ * List of Transaction object fields that may be initialized at construction
2191
+ */
2192
+ export type TransactionCtorFields_DEPRECATED = {
2193
+ /** Optional nonce information used for offline nonce'd transactions */
2194
+ nonceInfo?: NonceInformation | null;
2195
+ /** The transaction fee payer */
2196
+ feePayer?: PublicKey | null;
2197
+ /** One or more signatures */
2198
+ signatures?: Array<SignaturePubkeyPair>;
2199
+ /** A recent blockhash */
2200
+ recentBlockhash?: Blockhash;
2201
+ };
2202
+ export type TransactionCtorFields = TransactionCtorFields_DEPRECATED;
2203
+ /**
2204
+ * List of Transaction object fields that may be initialized at construction
2205
+ */
2206
+ export type TransactionBlockhashCtor = {
2207
+ /** The transaction fee payer */
2208
+ feePayer?: PublicKey | null;
2209
+ /** One or more signatures */
2210
+ signatures?: Array<SignaturePubkeyPair>;
2211
+ /** A recent blockhash */
2212
+ blockhash: Blockhash;
2213
+ /** the last block chain can advance to before tx is exportd expired */
2214
+ lastValidBlockHeight: number;
2215
+ };
2216
+ /**
2217
+ * Nonce information to be used to build an offline Transaction.
2218
+ */
2219
+ export type NonceInformation = {
2220
+ /** The current blockhash stored in the nonce */
2221
+ nonce: Blockhash;
2222
+ /** AdvanceNonceAccount Instruction */
2223
+ nonceInstruction: TransactionInstruction;
2224
+ };
2225
+ /**
2226
+ * Transaction class
2227
+ */
2228
+ export class Transaction {
2229
+ /**
2230
+ * Signatures for the transaction. Typically created by invoking the
2231
+ * `sign()` method
2232
+ */
2233
+ signatures: Array<SignaturePubkeyPair>;
2234
+ /**
2235
+ * The first (payer) Transaction signature
2236
+ */
2237
+ get signature(): Buffer | null;
2238
+ /**
2239
+ * The transaction fee payer
2240
+ */
2241
+ feePayer?: PublicKey;
2242
+ /**
2243
+ * The instructions to atomically execute
2244
+ */
2245
+ instructions: Array<TransactionInstruction>;
2246
+ /**
2247
+ * A recent transaction id. Must be populated by the caller
2248
+ */
2249
+ recentBlockhash?: Blockhash;
2250
+ /**
2251
+ * the last block chain can advance to before tx is exportd expired
2252
+ * */
2253
+ lastValidBlockHeight?: number;
2254
+ /**
2255
+ * Optional Nonce information. If populated, transaction will use a durable
2256
+ * Nonce hash instead of a recentBlockhash. Must be populated by the caller
2257
+ */
2258
+ nonceInfo?: NonceInformation;
2259
+ constructor(opts?: TransactionBlockhashCtor);
2260
+ /**
2261
+ * @deprecated `TransactionCtorFields` has been deprecated and will be removed in a future version.
2262
+ * Please supply a `TransactionBlockhashCtor` instead.
2263
+ */
2264
+ constructor(opts?: TransactionCtorFields_DEPRECATED);
2265
+ /**
2266
+ * Add one or more instructions to this Transaction
2267
+ */
2268
+ add(
2269
+ ...items: Array<
2270
+ Transaction | TransactionInstruction | TransactionInstructionCtorFields
2271
+ >
2272
+ ): Transaction;
2273
+ /**
2274
+ * Compile transaction data
2275
+ */
2276
+ compileMessage(): Message;
2277
+ /**
2278
+ * Get a buffer of the Transaction data that need to be covered by signatures
2279
+ */
2280
+ serializeMessage(): Buffer;
2281
+ /**
2282
+ * Get the estimated fee associated with a transaction
2283
+ */
2284
+ getEstimatedFee(connection: Connection): Promise<number>;
2285
+ /**
2286
+ * Specify the public keys which will be used to sign the Transaction.
2287
+ * The first signer will be used as the transaction fee payer account.
2288
+ *
2289
+ * Signatures can be added with either `partialSign` or `addSignature`
2290
+ *
2291
+ * @deprecated Deprecated since v0.84.0. Only the fee payer needs to be
2292
+ * specified and it can be set in the Transaction constructor or with the
2293
+ * `feePayer` property.
2294
+ */
2295
+ setSigners(...signers: Array<PublicKey>): void;
2296
+ /**
2297
+ * Sign the Transaction with the specified signers. Multiple signatures may
2298
+ * be applied to a Transaction. The first signature is considered "primary"
2299
+ * and is used identify and confirm transactions.
2300
+ *
2301
+ * If the Transaction `feePayer` is not set, the first signer will be used
2302
+ * as the transaction fee payer account.
2303
+ *
2304
+ * Transaction fields should not be modified after the first call to `sign`,
2305
+ * as doing so may invalidate the signature and cause the Transaction to be
2306
+ * rejected.
2307
+ *
2308
+ * The Transaction must be assigned a valid `recentBlockhash` before invoking this method
2309
+ */
2310
+ sign(...signers: Array<Signer>): void;
2311
+ /**
2312
+ * Partially sign a transaction with the specified accounts. All accounts must
2313
+ * correspond to either the fee payer or a signer account in the transaction
2314
+ * instructions.
2315
+ *
2316
+ * All the caveats from the `sign` method apply to `partialSign`
2317
+ */
2318
+ partialSign(...signers: Array<Signer>): void;
2319
+ /**
2320
+ * Add an externally created signature to a transaction. The public key
2321
+ * must correspond to either the fee payer or a signer account in the transaction
2322
+ * instructions.
2323
+ */
2324
+ addSignature(pubkey: PublicKey, signature: Buffer): void;
2325
+ /**
2326
+ * Verify signatures of a complete, signed Transaction
2327
+ */
2328
+ verifySignatures(): boolean;
2329
+ /**
2330
+ * Serialize the Transaction in the wire format.
2331
+ */
2332
+ serialize(config?: SerializeConfig): Buffer;
2333
+ /**
2334
+ * Parse a wire transaction into a Transaction object.
2335
+ */
2336
+ static from(buffer: Buffer | Uint8Array | Array<number>): Transaction;
2337
+ /**
2338
+ * Populate Transaction object from message and signatures
2339
+ */
2340
+ static populate(message: Message, signatures?: Array<string>): Transaction;
2341
+ }
2342
+
2343
+ export type CreateLookupTableParams = {
2344
+ /** Account used to derive and control the new address lookup table. */
2345
+ authority: PublicKey;
2346
+ /** Account that will fund the new address lookup table. */
2347
+ payer: PublicKey;
2348
+ /** A recent slot must be used in the derivation path for each initialized table. */
2349
+ recentSlot: bigint | number;
2350
+ };
2351
+ export type FreezeLookupTableParams = {
2352
+ /** Address lookup table account to freeze. */
2353
+ lookupTable: PublicKey;
2354
+ /** Account which is the current authority. */
2355
+ authority: PublicKey;
2356
+ };
2357
+ export type ExtendLookupTableParams = {
2358
+ /** Address lookup table account to extend. */
2359
+ lookupTable: PublicKey;
2360
+ /** Account which is the current authority. */
2361
+ authority: PublicKey;
2362
+ /** Account that will fund the table reallocation.
2363
+ * Not required if the reallocation has already been funded. */
2364
+ payer?: PublicKey;
2365
+ /** List of Public Keys to be added to the lookup table. */
2366
+ addresses: Array<PublicKey>;
2367
+ };
2368
+ export type DeactivateLookupTableParams = {
2369
+ /** Address lookup table account to deactivate. */
2370
+ lookupTable: PublicKey;
2371
+ /** Account which is the current authority. */
2372
+ authority: PublicKey;
2373
+ };
2374
+ export type CloseLookupTableParams = {
2375
+ /** Address lookup table account to close. */
2376
+ lookupTable: PublicKey;
2377
+ /** Account which is the current authority. */
2378
+ authority: PublicKey;
2379
+ /** Recipient of closed account lamports. */
2380
+ recipient: PublicKey;
2381
+ };
2382
+ /**
2383
+ * An enumeration of valid LookupTableInstructionType's
2384
+ */
2385
+ export type LookupTableInstructionType =
2386
+ | 'CreateLookupTable'
2387
+ | 'ExtendLookupTable'
2388
+ | 'CloseLookupTable'
2389
+ | 'FreezeLookupTable'
2390
+ | 'DeactivateLookupTable';
2391
+ export class AddressLookupTableInstruction {
2392
+ static decodeInstructionType(
2393
+ instruction: TransactionInstruction,
2394
+ ): LookupTableInstructionType;
2395
+ static decodeCreateLookupTable(
2396
+ instruction: TransactionInstruction,
2397
+ ): CreateLookupTableParams;
2398
+ static decodeExtendLookupTable(
2399
+ instruction: TransactionInstruction,
2400
+ ): ExtendLookupTableParams;
2401
+ static decodeCloseLookupTable(
2402
+ instruction: TransactionInstruction,
2403
+ ): CloseLookupTableParams;
2404
+ static decodeFreezeLookupTable(
2405
+ instruction: TransactionInstruction,
2406
+ ): FreezeLookupTableParams;
2407
+ static decodeDeactivateLookupTable(
2408
+ instruction: TransactionInstruction,
2409
+ ): DeactivateLookupTableParams;
2410
+ }
2411
+ export class AddressLookupTableProgram {
2412
+ static programId: PublicKey;
2413
+ static createLookupTable(
2414
+ params: CreateLookupTableParams,
2415
+ ): [TransactionInstruction, PublicKey];
2416
+ static freezeLookupTable(
2417
+ params: FreezeLookupTableParams,
2418
+ ): TransactionInstruction;
2419
+ static extendLookupTable(
2420
+ params: ExtendLookupTableParams,
2421
+ ): TransactionInstruction;
2422
+ static deactivateLookupTable(
2423
+ params: DeactivateLookupTableParams,
2424
+ ): TransactionInstruction;
2425
+ static closeLookupTable(
2426
+ params: CloseLookupTableParams,
2427
+ ): TransactionInstruction;
2428
+ }
2429
+
2430
+ export const BPF_LOADER_DEPRECATED_PROGRAM_ID: PublicKey;
2431
+
2318
2432
  export const BPF_LOADER_PROGRAM_ID: PublicKey;
2319
2433
  /**
2320
2434
  * Factory class for transactions to interact with a program loader