@wheelx-widget/widget 0.1.18 → 0.1.19
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 +25 -17
- package/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
package/dist/index.mjs
CHANGED
|
@@ -43713,12 +43713,9 @@ var WidgetThemeProvider = ({
|
|
|
43713
43713
|
};
|
|
43714
43714
|
|
|
43715
43715
|
// src/api/consts.ts
|
|
43716
|
-
var
|
|
43716
|
+
var BASE_API_URL = "https://api.wheelx.fi";
|
|
43717
43717
|
function getBaseApiUrl() {
|
|
43718
|
-
return
|
|
43719
|
-
}
|
|
43720
|
-
function setBaseApiUrl(url) {
|
|
43721
|
-
_baseApiUrl = url;
|
|
43718
|
+
return BASE_API_URL;
|
|
43722
43719
|
}
|
|
43723
43720
|
async function getChainsAndTokens() {
|
|
43724
43721
|
const url = `${getBaseApiUrl()}/v1/chain-info`;
|
|
@@ -44763,9 +44760,6 @@ function ChainsAndTokensLoader({ children, config }) {
|
|
|
44763
44760
|
var DEFAULT_ENVIRONMENT_ID = "f217660e-2cec-470b-a8f4-ac655b16f802";
|
|
44764
44761
|
var solanaRpcUrl = "https://mainnet.helius-rpc.com/?api-key=7337bed2-6c3a-472f-b06f-9b2be0e1392f";
|
|
44765
44762
|
var WheelXProvider = ({ config, children }) => {
|
|
44766
|
-
if (config?.apiBaseUrl) {
|
|
44767
|
-
setBaseApiUrl(config.apiBaseUrl);
|
|
44768
|
-
}
|
|
44769
44763
|
const queryClient = useMemo(() => new QueryClient(), []);
|
|
44770
44764
|
const evmNetworks = useMemo(() => supportedChains.map((chain) => ({
|
|
44771
44765
|
chainId: chain.id,
|