@solana/web3.js 1.98.3 → 1.98.4-experimental.1
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/package.json +1 -1
- package/src/connection.ts +6 -0
- package/src/transaction/legacy.ts +0 -4
- package/lib/index.browser.cjs.js +0 -10562
- package/lib/index.browser.cjs.js.map +0 -1
- package/lib/index.browser.esm.js +0 -10461
- package/lib/index.browser.esm.js.map +0 -1
- package/lib/index.cjs.js +0 -11311
- package/lib/index.cjs.js.map +0 -1
- package/lib/index.d.ts +0 -4021
- package/lib/index.esm.js +0 -11206
- package/lib/index.esm.js.map +0 -1
- package/lib/index.iife.js +0 -26083
- package/lib/index.iife.js.map +0 -1
- package/lib/index.iife.min.js +0 -20
- package/lib/index.iife.min.js.map +0 -1
- package/lib/index.native.js +0 -10562
- package/lib/index.native.js.map +0 -1
package/package.json
CHANGED
package/src/connection.ts
CHANGED
|
@@ -1093,6 +1093,8 @@ export type ParsedTransactionMeta = {
|
|
|
1093
1093
|
loadedAddresses?: LoadedAddresses;
|
|
1094
1094
|
/** The compute units consumed after processing the transaction */
|
|
1095
1095
|
computeUnitsConsumed?: number;
|
|
1096
|
+
/** The cost units consumed after processing the transaction */
|
|
1097
|
+
costUnits?: number;
|
|
1096
1098
|
};
|
|
1097
1099
|
|
|
1098
1100
|
export type CompiledInnerInstruction = {
|
|
@@ -1124,6 +1126,8 @@ export type ConfirmedTransactionMeta = {
|
|
|
1124
1126
|
loadedAddresses?: LoadedAddresses;
|
|
1125
1127
|
/** The compute units consumed after processing the transaction */
|
|
1126
1128
|
computeUnitsConsumed?: number;
|
|
1129
|
+
/** The cost units consumed after processing the transaction */
|
|
1130
|
+
costUnits?: number;
|
|
1127
1131
|
};
|
|
1128
1132
|
|
|
1129
1133
|
/**
|
|
@@ -2369,6 +2373,7 @@ const ConfirmedTransactionMetaResult = pick({
|
|
|
2369
2373
|
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
2370
2374
|
loadedAddresses: optional(LoadedAddressesResult),
|
|
2371
2375
|
computeUnitsConsumed: optional(number()),
|
|
2376
|
+
costUnits: optional(number()),
|
|
2372
2377
|
});
|
|
2373
2378
|
|
|
2374
2379
|
/**
|
|
@@ -2394,6 +2399,7 @@ const ParsedConfirmedTransactionMetaResult = pick({
|
|
|
2394
2399
|
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
2395
2400
|
loadedAddresses: optional(LoadedAddressesResult),
|
|
2396
2401
|
computeUnitsConsumed: optional(number()),
|
|
2402
|
+
costUnits: optional(number()),
|
|
2397
2403
|
});
|
|
2398
2404
|
|
|
2399
2405
|
const TransactionVersionStruct = union([literal(0), literal('legacy')]);
|
|
@@ -857,10 +857,6 @@ export class Transaction {
|
|
|
857
857
|
wireTransaction,
|
|
858
858
|
signatureCount.length + signatures.length * 64,
|
|
859
859
|
);
|
|
860
|
-
invariant(
|
|
861
|
-
wireTransaction.length <= PACKET_DATA_SIZE,
|
|
862
|
-
`Transaction too large: ${wireTransaction.length} > ${PACKET_DATA_SIZE}`,
|
|
863
|
-
);
|
|
864
860
|
return wireTransaction;
|
|
865
861
|
}
|
|
866
862
|
|