@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.0",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@babel/preset-env": "^7.12.11",
|
|
81
81
|
"@babel/preset-typescript": "^7.12.16",
|
|
82
82
|
"@babel/register": "^7.12.13",
|
|
83
|
-
"@commitlint/config-conventional": "^
|
|
83
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
84
84
|
"@commitlint/travis-cli": "^17.0.0",
|
|
85
85
|
"@rollup/plugin-alias": "^3.1.9",
|
|
86
86
|
"@rollup/plugin-babel": "^5.2.3",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"rollup-plugin-dts": "^4.0.0",
|
|
127
127
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
128
128
|
"rollup-plugin-terser": "^7.0.2",
|
|
129
|
-
"semantic-release": "^
|
|
129
|
+
"semantic-release": "^19.0.3",
|
|
130
130
|
"sinon": "^13.0.2",
|
|
131
131
|
"sinon-chai": "^3.7.0",
|
|
132
132
|
"start-server-and-test": "^1.12.0",
|
package/src/system-program.ts
CHANGED
|
@@ -566,7 +566,8 @@ export type SystemInstructionType =
|
|
|
566
566
|
| 'InitializeNonceAccount'
|
|
567
567
|
| 'Transfer'
|
|
568
568
|
| 'TransferWithSeed'
|
|
569
|
-
| 'WithdrawNonceAccount'
|
|
569
|
+
| 'WithdrawNonceAccount'
|
|
570
|
+
| 'UpgradeNonceAccount';
|
|
570
571
|
|
|
571
572
|
type SystemInstructionInputData = {
|
|
572
573
|
AdvanceNonceAccount: IInstructionInputData;
|
|
@@ -616,6 +617,7 @@ type SystemInstructionInputData = {
|
|
|
616
617
|
WithdrawNonceAccount: IInstructionInputData & {
|
|
617
618
|
lamports: number;
|
|
618
619
|
};
|
|
620
|
+
UpgradeNonceAccount: IInstructionInputData;
|
|
619
621
|
};
|
|
620
622
|
|
|
621
623
|
/**
|
|
@@ -724,6 +726,12 @@ export const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze<{
|
|
|
724
726
|
],
|
|
725
727
|
),
|
|
726
728
|
},
|
|
729
|
+
UpgradeNonceAccount: {
|
|
730
|
+
index: 12,
|
|
731
|
+
layout: BufferLayout.struct<
|
|
732
|
+
SystemInstructionInputData['UpgradeNonceAccount']
|
|
733
|
+
>([BufferLayout.u32('instruction')]),
|
|
734
|
+
},
|
|
727
735
|
});
|
|
728
736
|
|
|
729
737
|
/**
|
package/src/transaction.ts
CHANGED
|
@@ -142,6 +142,11 @@ export type TransactionCtorFields_DEPRECATED = {
|
|
|
142
142
|
recentBlockhash?: Blockhash;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
+
// For backward compatibility; an unfortunate consequence of being
|
|
146
|
+
// forced to over-export types by the documentation generator.
|
|
147
|
+
// See https://github.com/solana-labs/solana/pull/25820
|
|
148
|
+
export type TransactionCtorFields = TransactionCtorFields_DEPRECATED;
|
|
149
|
+
|
|
145
150
|
/**
|
|
146
151
|
* List of Transaction object fields that may be initialized at construction
|
|
147
152
|
*/
|
|
@@ -403,8 +408,8 @@ export class Transaction {
|
|
|
403
408
|
// Writable accounts always come before read-only accounts
|
|
404
409
|
return x.isWritable ? -1 : 1;
|
|
405
410
|
}
|
|
406
|
-
// Otherwise, sort by pubkey.
|
|
407
|
-
return x.pubkey.
|
|
411
|
+
// Otherwise, sort by pubkey, stringwise.
|
|
412
|
+
return x.pubkey.toBase58().localeCompare(y.pubkey.toBase58());
|
|
408
413
|
});
|
|
409
414
|
|
|
410
415
|
// Move fee payer to the front
|