@solana/web3.js 1.50.2 → 1.51.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/README.md +4 -0
- package/lib/index.browser.cjs.js +9 -3
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +9 -3
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +9 -3
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +9 -0
- package/lib/index.esm.js +9 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +9 -3
- 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/lib/index.native.js +9 -3
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -2
- package/src/connection.ts +17 -0
package/lib/index.cjs.js
CHANGED
|
@@ -5772,6 +5772,10 @@ const TokenBalanceResult = superstruct.type({
|
|
|
5772
5772
|
owner: superstruct.optional(superstruct.string()),
|
|
5773
5773
|
uiTokenAmount: TokenAmountResult
|
|
5774
5774
|
});
|
|
5775
|
+
const LoadedAddressesResult = superstruct.type({
|
|
5776
|
+
writable: superstruct.array(PublicKeyFromString),
|
|
5777
|
+
readonly: superstruct.array(PublicKeyFromString)
|
|
5778
|
+
});
|
|
5775
5779
|
/**
|
|
5776
5780
|
* @internal
|
|
5777
5781
|
*/
|
|
@@ -5791,7 +5795,8 @@ const ConfirmedTransactionMetaResult = superstruct.type({
|
|
|
5791
5795
|
postBalances: superstruct.array(superstruct.number()),
|
|
5792
5796
|
logMessages: superstruct.optional(superstruct.nullable(superstruct.array(superstruct.string()))),
|
|
5793
5797
|
preTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
|
|
5794
|
-
postTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult)))
|
|
5798
|
+
postTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
|
|
5799
|
+
loadedAddresses: superstruct.optional(LoadedAddressesResult)
|
|
5795
5800
|
});
|
|
5796
5801
|
/**
|
|
5797
5802
|
* @internal
|
|
@@ -5808,7 +5813,8 @@ const ParsedConfirmedTransactionMetaResult = superstruct.type({
|
|
|
5808
5813
|
postBalances: superstruct.array(superstruct.number()),
|
|
5809
5814
|
logMessages: superstruct.optional(superstruct.nullable(superstruct.array(superstruct.string()))),
|
|
5810
5815
|
preTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
|
|
5811
|
-
postTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult)))
|
|
5816
|
+
postTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
|
|
5817
|
+
loadedAddresses: superstruct.optional(LoadedAddressesResult)
|
|
5812
5818
|
});
|
|
5813
5819
|
/**
|
|
5814
5820
|
* Expected JSON RPC response for the "getBlock" message
|
|
@@ -5963,7 +5969,7 @@ const LogsNotificationResult = superstruct.type({
|
|
|
5963
5969
|
|
|
5964
5970
|
/** @internal */
|
|
5965
5971
|
const COMMON_HTTP_HEADERS = {
|
|
5966
|
-
'solana-client': `js/${(_process$env$npm_pack = "1.
|
|
5972
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.51.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5967
5973
|
};
|
|
5968
5974
|
/**
|
|
5969
5975
|
* A connection to a fullnode JSON RPC endpoint
|