@solana/web3.js 1.43.4 → 1.44.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 +6 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.esm.js +6 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -2
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/package.json +3 -3
- package/src/system-program.ts +9 -1
- package/src/transaction.ts +7 -2
package/lib/index.d.ts
CHANGED
|
@@ -415,6 +415,7 @@ declare module '@solana/web3.js' {
|
|
|
415
415
|
/** A recent blockhash */
|
|
416
416
|
recentBlockhash?: Blockhash;
|
|
417
417
|
};
|
|
418
|
+
export type TransactionCtorFields = TransactionCtorFields_DEPRECATED;
|
|
418
419
|
/**
|
|
419
420
|
* List of Transaction object fields that may be initialized at construction
|
|
420
421
|
*/
|
|
@@ -2981,7 +2982,8 @@ declare module '@solana/web3.js' {
|
|
|
2981
2982
|
| 'InitializeNonceAccount'
|
|
2982
2983
|
| 'Transfer'
|
|
2983
2984
|
| 'TransferWithSeed'
|
|
2984
|
-
| 'WithdrawNonceAccount'
|
|
2985
|
+
| 'WithdrawNonceAccount'
|
|
2986
|
+
| 'UpgradeNonceAccount';
|
|
2985
2987
|
/**
|
|
2986
2988
|
* Factory class for transactions to interact with the System program
|
|
2987
2989
|
*/
|
package/lib/index.esm.js
CHANGED
|
@@ -2618,10 +2618,10 @@ class Transaction {
|
|
|
2618
2618
|
if (x.isWritable !== y.isWritable) {
|
|
2619
2619
|
// Writable accounts always come before read-only accounts
|
|
2620
2620
|
return x.isWritable ? -1 : 1;
|
|
2621
|
-
} // Otherwise, sort by pubkey.
|
|
2621
|
+
} // Otherwise, sort by pubkey, stringwise.
|
|
2622
2622
|
|
|
2623
2623
|
|
|
2624
|
-
return x.pubkey.
|
|
2624
|
+
return x.pubkey.toBase58().localeCompare(y.pubkey.toBase58());
|
|
2625
2625
|
}); // Move fee payer to the front
|
|
2626
2626
|
|
|
2627
2627
|
const feePayerIndex = uniqueMetas.findIndex(x => {
|
|
@@ -3573,6 +3573,10 @@ const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze({
|
|
|
3573
3573
|
TransferWithSeed: {
|
|
3574
3574
|
index: 11,
|
|
3575
3575
|
layout: BufferLayout.struct([BufferLayout.u32('instruction'), u64('lamports'), rustString('seed'), publicKey('programId')])
|
|
3576
|
+
},
|
|
3577
|
+
UpgradeNonceAccount: {
|
|
3578
|
+
index: 12,
|
|
3579
|
+
layout: BufferLayout.struct([BufferLayout.u32('instruction')])
|
|
3576
3580
|
}
|
|
3577
3581
|
});
|
|
3578
3582
|
/**
|