@solana/web3.js 1.60.0 → 1.61.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/README.md +18 -0
- package/lib/index.browser.cjs.js +9 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +9 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +9 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.esm.js +9 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +9 -2
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +9 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +1 -1
- package/src/programs/address-lookup-table/state.ts +1 -1
- package/src/programs/compute-budget.ts +3 -0
- package/src/transaction/versioned.ts +4 -0
package/lib/index.d.ts
CHANGED
|
@@ -578,6 +578,9 @@ declare module '@solana/web3.js' {
|
|
|
578
578
|
* Public key that identifies the Compute Budget program
|
|
579
579
|
*/
|
|
580
580
|
static programId: PublicKey;
|
|
581
|
+
/**
|
|
582
|
+
* @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
|
|
583
|
+
*/
|
|
581
584
|
static requestUnits(params: RequestUnitsParams): TransactionInstruction;
|
|
582
585
|
static requestHeapFrame(
|
|
583
586
|
params: RequestHeapFrameParams,
|
|
@@ -1880,6 +1883,7 @@ declare module '@solana/web3.js' {
|
|
|
1880
1883
|
export class VersionedTransaction {
|
|
1881
1884
|
signatures: Array<Uint8Array>;
|
|
1882
1885
|
message: VersionedMessage;
|
|
1886
|
+
get version(): TransactionVersion;
|
|
1883
1887
|
constructor(message: VersionedMessage, signatures?: Array<Uint8Array>);
|
|
1884
1888
|
serialize(): Uint8Array;
|
|
1885
1889
|
static deserialize(serializedTransaction: Uint8Array): VersionedTransaction;
|
package/lib/index.esm.js
CHANGED
|
@@ -2049,6 +2049,10 @@ class TransactionMessage {
|
|
|
2049
2049
|
* Versioned transaction class
|
|
2050
2050
|
*/
|
|
2051
2051
|
class VersionedTransaction {
|
|
2052
|
+
get version() {
|
|
2053
|
+
return this.message.version;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2052
2056
|
constructor(message, signatures) {
|
|
2053
2057
|
this.signatures = void 0;
|
|
2054
2058
|
this.message = void 0;
|
|
@@ -3525,7 +3529,7 @@ class AddressLookupTableAccount {
|
|
|
3525
3529
|
}
|
|
3526
3530
|
|
|
3527
3531
|
isActive() {
|
|
3528
|
-
const U64_MAX =
|
|
3532
|
+
const U64_MAX = 18446744073709551615n;
|
|
3529
3533
|
return this.state.deactivationSlot === U64_MAX;
|
|
3530
3534
|
}
|
|
3531
3535
|
|
|
@@ -6561,7 +6565,7 @@ class Connection {
|
|
|
6561
6565
|
*/
|
|
6562
6566
|
// eslint-disable-next-line no-dupe-class-members
|
|
6563
6567
|
async sendTransaction(transaction, signersOrOptions, options) {
|
|
6564
|
-
if ('
|
|
6568
|
+
if ('version' in transaction) {
|
|
6565
6569
|
if (signersOrOptions && Array.isArray(signersOrOptions)) {
|
|
6566
6570
|
throw new Error('Invalid arguments');
|
|
6567
6571
|
}
|
|
@@ -7924,6 +7928,9 @@ class ComputeBudgetProgram {
|
|
|
7924
7928
|
*/
|
|
7925
7929
|
|
|
7926
7930
|
|
|
7931
|
+
/**
|
|
7932
|
+
* @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
|
|
7933
|
+
*/
|
|
7927
7934
|
static requestUnits(params) {
|
|
7928
7935
|
const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits;
|
|
7929
7936
|
const data = encodeData(type, params);
|