@solana/web3.js 1.43.6 → 1.44.2
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 +13 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +12 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +13 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +11 -1
- package/lib/index.esm.js +12 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +13 -1
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +3 -3
- package/lib/index.iife.min.js.map +1 -1
- package/package.json +2 -2
- package/src/connection.ts +10 -1
- package/src/index.ts +1 -0
- package/src/system-program.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.2",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -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/connection.ts
CHANGED
|
@@ -3566,7 +3566,16 @@ export class Connection {
|
|
|
3566
3566
|
if ('error' in res) {
|
|
3567
3567
|
throw new Error('failed to get transactions: ' + res.error.message);
|
|
3568
3568
|
}
|
|
3569
|
-
|
|
3569
|
+
const result = res.result;
|
|
3570
|
+
if (!result) return result;
|
|
3571
|
+
|
|
3572
|
+
return {
|
|
3573
|
+
...result,
|
|
3574
|
+
transaction: {
|
|
3575
|
+
...result.transaction,
|
|
3576
|
+
message: new Message(result.transaction.message),
|
|
3577
|
+
},
|
|
3578
|
+
};
|
|
3570
3579
|
});
|
|
3571
3580
|
|
|
3572
3581
|
return res;
|
package/src/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './errors';
|
|
|
25
25
|
export * from './util/borsh-schema';
|
|
26
26
|
export * from './util/send-and-confirm-transaction';
|
|
27
27
|
export * from './util/send-and-confirm-raw-transaction';
|
|
28
|
+
export * from './util/tx-expiry-custom-errors';
|
|
28
29
|
export * from './util/cluster';
|
|
29
30
|
|
|
30
31
|
/**
|
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
|
/**
|