@solana/web3.js 1.61.1 → 1.62.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/lib/index.browser.cjs.js +35 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +35 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +35 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.esm.js +35 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +35 -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 +35 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/message/legacy.ts +12 -8
- package/src/message/v0.ts +27 -0
- package/src/programs/address-lookup-table/state.ts +1 -1
- package/src/publickey.ts +0 -1
package/lib/index.iife.js
CHANGED
|
@@ -11293,7 +11293,17 @@ var solanaWeb3 = (function (exports) {
|
|
|
11293
11293
|
}
|
|
11294
11294
|
|
|
11295
11295
|
isAccountWritable(index) {
|
|
11296
|
-
|
|
11296
|
+
const numSignedAccounts = this.header.numRequiredSignatures;
|
|
11297
|
+
|
|
11298
|
+
if (index >= this.header.numRequiredSignatures) {
|
|
11299
|
+
const unsignedAccountIndex = index - numSignedAccounts;
|
|
11300
|
+
const numUnsignedAccounts = this.accountKeys.length - numSignedAccounts;
|
|
11301
|
+
const numWritableUnsignedAccounts = numUnsignedAccounts - this.header.numReadonlyUnsignedAccounts;
|
|
11302
|
+
return unsignedAccountIndex < numWritableUnsignedAccounts;
|
|
11303
|
+
} else {
|
|
11304
|
+
const numWritableSignedAccounts = numSignedAccounts - this.header.numReadonlySignedAccounts;
|
|
11305
|
+
return index < numWritableSignedAccounts;
|
|
11306
|
+
}
|
|
11297
11307
|
}
|
|
11298
11308
|
|
|
11299
11309
|
isProgramId(index) {
|
|
@@ -11466,6 +11476,29 @@ var solanaWeb3 = (function (exports) {
|
|
|
11466
11476
|
return new MessageAccountKeys(this.staticAccountKeys, accountKeysFromLookups);
|
|
11467
11477
|
}
|
|
11468
11478
|
|
|
11479
|
+
isAccountSigner(index) {
|
|
11480
|
+
return index < this.header.numRequiredSignatures;
|
|
11481
|
+
}
|
|
11482
|
+
|
|
11483
|
+
isAccountWritable(index) {
|
|
11484
|
+
const numSignedAccounts = this.header.numRequiredSignatures;
|
|
11485
|
+
const numStaticAccountKeys = this.staticAccountKeys.length;
|
|
11486
|
+
|
|
11487
|
+
if (index >= numStaticAccountKeys) {
|
|
11488
|
+
const lookupAccountKeysIndex = index - numStaticAccountKeys;
|
|
11489
|
+
const numWritableLookupAccountKeys = this.addressTableLookups.reduce((count, lookup) => count + lookup.writableIndexes.length, 0);
|
|
11490
|
+
return lookupAccountKeysIndex < numWritableLookupAccountKeys;
|
|
11491
|
+
} else if (index >= this.header.numRequiredSignatures) {
|
|
11492
|
+
const unsignedAccountIndex = index - numSignedAccounts;
|
|
11493
|
+
const numUnsignedAccounts = numStaticAccountKeys - numSignedAccounts;
|
|
11494
|
+
const numWritableUnsignedAccounts = numUnsignedAccounts - this.header.numReadonlyUnsignedAccounts;
|
|
11495
|
+
return unsignedAccountIndex < numWritableUnsignedAccounts;
|
|
11496
|
+
} else {
|
|
11497
|
+
const numWritableSignedAccounts = numSignedAccounts - this.header.numReadonlySignedAccounts;
|
|
11498
|
+
return index < numWritableSignedAccounts;
|
|
11499
|
+
}
|
|
11500
|
+
}
|
|
11501
|
+
|
|
11469
11502
|
resolveAddressTableLookups(addressLookupTableAccounts) {
|
|
11470
11503
|
const accountKeysFromLookups = {
|
|
11471
11504
|
writable: [],
|
|
@@ -17127,7 +17160,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
17127
17160
|
}
|
|
17128
17161
|
|
|
17129
17162
|
isActive() {
|
|
17130
|
-
const U64_MAX =
|
|
17163
|
+
const U64_MAX = BigInt('0xffffffffffffffff');
|
|
17131
17164
|
return this.state.deactivationSlot === U64_MAX;
|
|
17132
17165
|
}
|
|
17133
17166
|
|