@solana/web3.js 1.60.0 → 1.61.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/README.md +18 -0
- package/lib/index.browser.cjs.js +8 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +8 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +8 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.esm.js +8 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +8 -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 +8 -1
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +1 -1
- package/src/programs/compute-budget.ts +3 -0
- package/src/transaction/versioned.ts +4 -0
package/package.json
CHANGED
package/src/connection.ts
CHANGED
|
@@ -4832,7 +4832,7 @@ export class Connection {
|
|
|
4832
4832
|
signersOrOptions?: Array<Signer> | SendOptions,
|
|
4833
4833
|
options?: SendOptions,
|
|
4834
4834
|
): Promise<TransactionSignature> {
|
|
4835
|
-
if ('
|
|
4835
|
+
if ('version' in transaction) {
|
|
4836
4836
|
if (signersOrOptions && Array.isArray(signersOrOptions)) {
|
|
4837
4837
|
throw new Error('Invalid arguments');
|
|
4838
4838
|
}
|
|
@@ -228,6 +228,9 @@ export class ComputeBudgetProgram {
|
|
|
228
228
|
'ComputeBudget111111111111111111111111111111',
|
|
229
229
|
);
|
|
230
230
|
|
|
231
|
+
/**
|
|
232
|
+
* @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
|
|
233
|
+
*/
|
|
231
234
|
static requestUnits(params: RequestUnitsParams): TransactionInstruction {
|
|
232
235
|
const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits;
|
|
233
236
|
const data = encodeData(type, params);
|
|
@@ -17,6 +17,10 @@ export class VersionedTransaction {
|
|
|
17
17
|
signatures: Array<Uint8Array>;
|
|
18
18
|
message: VersionedMessage;
|
|
19
19
|
|
|
20
|
+
get version(): TransactionVersion {
|
|
21
|
+
return this.message.version;
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
constructor(message: VersionedMessage, signatures?: Array<Uint8Array>) {
|
|
21
25
|
if (signatures !== undefined) {
|
|
22
26
|
assert(
|