@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.browser.esm.js
CHANGED
|
@@ -5656,6 +5656,10 @@ const TokenBalanceResult = type({
|
|
|
5656
5656
|
owner: optional(string()),
|
|
5657
5657
|
uiTokenAmount: TokenAmountResult
|
|
5658
5658
|
});
|
|
5659
|
+
const LoadedAddressesResult = type({
|
|
5660
|
+
writable: array(PublicKeyFromString),
|
|
5661
|
+
readonly: array(PublicKeyFromString)
|
|
5662
|
+
});
|
|
5659
5663
|
/**
|
|
5660
5664
|
* @internal
|
|
5661
5665
|
*/
|
|
@@ -5675,7 +5679,8 @@ const ConfirmedTransactionMetaResult = type({
|
|
|
5675
5679
|
postBalances: array(number()),
|
|
5676
5680
|
logMessages: optional(nullable(array(string()))),
|
|
5677
5681
|
preTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
5678
|
-
postTokenBalances: optional(nullable(array(TokenBalanceResult)))
|
|
5682
|
+
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
5683
|
+
loadedAddresses: optional(LoadedAddressesResult)
|
|
5679
5684
|
});
|
|
5680
5685
|
/**
|
|
5681
5686
|
* @internal
|
|
@@ -5692,7 +5697,8 @@ const ParsedConfirmedTransactionMetaResult = type({
|
|
|
5692
5697
|
postBalances: array(number()),
|
|
5693
5698
|
logMessages: optional(nullable(array(string()))),
|
|
5694
5699
|
preTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
5695
|
-
postTokenBalances: optional(nullable(array(TokenBalanceResult)))
|
|
5700
|
+
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
5701
|
+
loadedAddresses: optional(LoadedAddressesResult)
|
|
5696
5702
|
});
|
|
5697
5703
|
/**
|
|
5698
5704
|
* Expected JSON RPC response for the "getBlock" message
|
|
@@ -5847,7 +5853,7 @@ const LogsNotificationResult = type({
|
|
|
5847
5853
|
|
|
5848
5854
|
/** @internal */
|
|
5849
5855
|
const COMMON_HTTP_HEADERS = {
|
|
5850
|
-
'solana-client': `js/${(_process$env$npm_pack = "1.
|
|
5856
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.51.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5851
5857
|
};
|
|
5852
5858
|
/**
|
|
5853
5859
|
* A connection to a fullnode JSON RPC endpoint
|