@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.1",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"rpc-websockets": "^7.5.0",
|
|
54
54
|
"secp256k1": "^4.0.2",
|
|
55
55
|
"superstruct": "^0.14.2",
|
|
56
|
-
"tweetnacl": "^1.0.
|
|
56
|
+
"tweetnacl": "^1.0.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/core": "^7.12.13",
|
package/src/connection.ts
CHANGED
|
@@ -804,6 +804,14 @@ export type TokenBalance = {
|
|
|
804
804
|
*/
|
|
805
805
|
export type ParsedConfirmedTransactionMeta = ParsedTransactionMeta;
|
|
806
806
|
|
|
807
|
+
/**
|
|
808
|
+
* Collection of addresses loaded by a transaction using address table lookups
|
|
809
|
+
*/
|
|
810
|
+
export type LoadedAddresses = {
|
|
811
|
+
writable: Array<PublicKey>;
|
|
812
|
+
readonly: Array<PublicKey>;
|
|
813
|
+
};
|
|
814
|
+
|
|
807
815
|
/**
|
|
808
816
|
* Metadata for a parsed transaction on the ledger
|
|
809
817
|
*/
|
|
@@ -824,6 +832,8 @@ export type ParsedTransactionMeta = {
|
|
|
824
832
|
postTokenBalances?: Array<TokenBalance> | null;
|
|
825
833
|
/** The error result of transaction processing */
|
|
826
834
|
err: TransactionError | null;
|
|
835
|
+
/** The collection of addresses loaded using address lookup tables */
|
|
836
|
+
loadedAddresses?: LoadedAddresses;
|
|
827
837
|
};
|
|
828
838
|
|
|
829
839
|
export type CompiledInnerInstruction = {
|
|
@@ -1794,6 +1804,11 @@ const TokenBalanceResult = pick({
|
|
|
1794
1804
|
uiTokenAmount: TokenAmountResult,
|
|
1795
1805
|
});
|
|
1796
1806
|
|
|
1807
|
+
const LoadedAddressesResult = pick({
|
|
1808
|
+
writable: array(PublicKeyFromString),
|
|
1809
|
+
readonly: array(PublicKeyFromString),
|
|
1810
|
+
});
|
|
1811
|
+
|
|
1797
1812
|
/**
|
|
1798
1813
|
* @internal
|
|
1799
1814
|
*/
|
|
@@ -1821,6 +1836,7 @@ const ConfirmedTransactionMetaResult = pick({
|
|
|
1821
1836
|
logMessages: optional(nullable(array(string()))),
|
|
1822
1837
|
preTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
1823
1838
|
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
1839
|
+
loadedAddresses: optional(LoadedAddressesResult),
|
|
1824
1840
|
});
|
|
1825
1841
|
|
|
1826
1842
|
/**
|
|
@@ -1844,6 +1860,7 @@ const ParsedConfirmedTransactionMetaResult = pick({
|
|
|
1844
1860
|
logMessages: optional(nullable(array(string()))),
|
|
1845
1861
|
preTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
1846
1862
|
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
|
|
1863
|
+
loadedAddresses: optional(LoadedAddressesResult),
|
|
1847
1864
|
});
|
|
1848
1865
|
|
|
1849
1866
|
/**
|