@solana/web3.js 1.29.2 → 1.30.2
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/lib/index.browser.esm.js +1785 -184
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +1791 -185
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +12 -1
- package/lib/index.esm.js +1793 -186
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +28733 -29237
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +30 -30
- package/lib/index.iife.min.js.map +1 -1
- package/module.flow.js +20 -2
- package/package.json +6 -6
- package/src/connection.ts +31 -10
- package/src/publickey.ts +5 -3
package/lib/index.d.ts
CHANGED
|
@@ -625,6 +625,15 @@ declare module '@solana/web3.js' {
|
|
|
625
625
|
/** Filter largest accounts by whether they are part of the circulating supply */
|
|
626
626
|
filter?: LargestAccountsFilter;
|
|
627
627
|
};
|
|
628
|
+
/**
|
|
629
|
+
* Configuration object for changing `getSupply` request behavior
|
|
630
|
+
*/
|
|
631
|
+
export type GetSupplyConfig = {
|
|
632
|
+
/** The level of commitment desired */
|
|
633
|
+
commitment?: Commitment;
|
|
634
|
+
/** Exclude non circulating accounts list from response */
|
|
635
|
+
excludeNonCirculatingAccountsList?: boolean;
|
|
636
|
+
};
|
|
628
637
|
/**
|
|
629
638
|
* Configuration object for changing query behavior
|
|
630
639
|
*/
|
|
@@ -1403,7 +1412,9 @@ declare module '@solana/web3.js' {
|
|
|
1403
1412
|
/**
|
|
1404
1413
|
* Fetch information about the current supply
|
|
1405
1414
|
*/
|
|
1406
|
-
getSupply(
|
|
1415
|
+
getSupply(
|
|
1416
|
+
config?: GetSupplyConfig | Commitment,
|
|
1417
|
+
): Promise<RpcResponseAndContext<Supply>>;
|
|
1407
1418
|
/**
|
|
1408
1419
|
* Fetch the current supply of a token mint
|
|
1409
1420
|
*/
|