@solana/web3.js 1.62.0 → 1.63.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.browser.cjs.js +9 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +9 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +9 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +9 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +9 -1
- 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 -1
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/programs/address-lookup-table/state.ts +1 -1
- package/src/publickey.ts +0 -1
- package/src/transaction/versioned.ts +17 -0
package/lib/index.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ declare module '@solana/web3.js' {
|
|
|
29
29
|
export type PublicKeyInitData =
|
|
30
30
|
| number
|
|
31
31
|
| string
|
|
32
|
-
| Buffer
|
|
33
32
|
| Uint8Array
|
|
34
33
|
| Array<number>
|
|
35
34
|
| PublicKeyData;
|
|
@@ -1890,6 +1889,7 @@ declare module '@solana/web3.js' {
|
|
|
1890
1889
|
serialize(): Uint8Array;
|
|
1891
1890
|
static deserialize(serializedTransaction: Uint8Array): VersionedTransaction;
|
|
1892
1891
|
sign(signers: Array<Signer>): void;
|
|
1892
|
+
addSignature(publicKey: PublicKey, signature: Uint8Array): void;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
1895
|
export type ClientSubscriptionId = number;
|
package/lib/index.esm.js
CHANGED
|
@@ -2144,6 +2144,14 @@ class VersionedTransaction {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
}
|
|
2146
2146
|
|
|
2147
|
+
addSignature(publicKey, signature) {
|
|
2148
|
+
assert(signature.byteLength === 64, 'Signature must be 64 bytes long');
|
|
2149
|
+
const signerPubkeys = this.message.staticAccountKeys.slice(0, this.message.header.numRequiredSignatures);
|
|
2150
|
+
const signerIndex = signerPubkeys.findIndex(pubkey => pubkey.equals(publicKey));
|
|
2151
|
+
assert(signerIndex >= 0, `Can not add signature; \`${publicKey.toBase58()}\` is not required to sign this transaction`);
|
|
2152
|
+
this.signatures[signerIndex] = signature;
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2147
2155
|
}
|
|
2148
2156
|
|
|
2149
2157
|
const SYSVAR_CLOCK_PUBKEY = new PublicKey('SysvarC1ock11111111111111111111111111111111');
|
|
@@ -3562,7 +3570,7 @@ class AddressLookupTableAccount {
|
|
|
3562
3570
|
}
|
|
3563
3571
|
|
|
3564
3572
|
isActive() {
|
|
3565
|
-
const U64_MAX =
|
|
3573
|
+
const U64_MAX = BigInt('0xffffffffffffffff');
|
|
3566
3574
|
return this.state.deactivationSlot === U64_MAX;
|
|
3567
3575
|
}
|
|
3568
3576
|
|