@b3dotfun/sdk 0.1.70-alpha.20 → 0.1.70-alpha.21

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.
@@ -14,9 +14,9 @@ function RelayKitProviderWrapper({ children }) {
14
14
  };
15
15
  fetchChains();
16
16
  }, []);
17
- // No balance provider is configured for Relay's own token selector. Relay reads balances through
18
- // its Dune integration, which we no longer hold a key for, and it accepts no substitute — so the
19
- // selector lists tokens without balances rather than showing figures nothing can refresh.
17
+ // Balances for Relay's token selector come from the b3-zerion-api Zerion proxy, not Relay's own Dune
18
+ // integration. Relay only fires the balance query when duneConfig.apiKey is set, so apiBaseUrl points
19
+ // it at our proxy; the proxy ignores the client-sent key and holds the real Zerion credential itself.
20
20
  return ((0, jsx_runtime_1.jsx)(relay_kit_ui_1.RelayKitProvider, { options: {
21
21
  baseApiUrl: relay_sdk_1.MAINNET_RELAY_API,
22
22
  source: "anyspend",
@@ -24,5 +24,12 @@ function RelayKitProviderWrapper({ children }) {
24
24
  privateChainIds: undefined,
25
25
  appName: "AnySpend",
26
26
  useGasFeeEstimations: true,
27
+ duneConfig: {
28
+ // Non-secret placeholder. Relay only fires its balance query when apiKey is defined; the value is sent
29
+ // as X-Sim-Api-Key to our proxy, which ignores it. The real Zerion key stays server-side in b3-zerion-api.
30
+ apiKey: "proxied-via-portfolio-api",
31
+ // Relay appends /v1/evm/balances/{address}. Our b3-zerion-api worker serves that route, backed by Zerion.
32
+ apiBaseUrl: "https://portfolio-api.b3.fun",
33
+ },
27
34
  }, children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children }) }));
28
35
  }
@@ -11,9 +11,9 @@ export function RelayKitProviderWrapper({ children }) {
11
11
  };
12
12
  fetchChains();
13
13
  }, []);
14
- // No balance provider is configured for Relay's own token selector. Relay reads balances through
15
- // its Dune integration, which we no longer hold a key for, and it accepts no substitute — so the
16
- // selector lists tokens without balances rather than showing figures nothing can refresh.
14
+ // Balances for Relay's token selector come from the b3-zerion-api Zerion proxy, not Relay's own Dune
15
+ // integration. Relay only fires the balance query when duneConfig.apiKey is set, so apiBaseUrl points
16
+ // it at our proxy; the proxy ignores the client-sent key and holds the real Zerion credential itself.
17
17
  return (_jsx(RelayKitProvider, { options: {
18
18
  baseApiUrl: MAINNET_RELAY_API,
19
19
  source: "anyspend",
@@ -21,5 +21,12 @@ export function RelayKitProviderWrapper({ children }) {
21
21
  privateChainIds: undefined,
22
22
  appName: "AnySpend",
23
23
  useGasFeeEstimations: true,
24
+ duneConfig: {
25
+ // Non-secret placeholder. Relay only fires its balance query when apiKey is defined; the value is sent
26
+ // as X-Sim-Api-Key to our proxy, which ignores it. The real Zerion key stays server-side in b3-zerion-api.
27
+ apiKey: "proxied-via-portfolio-api",
28
+ // Relay appends /v1/evm/balances/{address}. Our b3-zerion-api worker serves that route, backed by Zerion.
29
+ apiBaseUrl: "https://portfolio-api.b3.fun",
30
+ },
24
31
  }, children: _jsx(_Fragment, { children: children }) }));
25
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.1.70-alpha.20",
3
+ "version": "0.1.70-alpha.21",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -13,9 +13,9 @@ export function RelayKitProviderWrapper({ children }: { children: React.ReactNod
13
13
  fetchChains();
14
14
  }, []);
15
15
 
16
- // No balance provider is configured for Relay's own token selector. Relay reads balances through
17
- // its Dune integration, which we no longer hold a key for, and it accepts no substitute — so the
18
- // selector lists tokens without balances rather than showing figures nothing can refresh.
16
+ // Balances for Relay's token selector come from the b3-zerion-api Zerion proxy, not Relay's own Dune
17
+ // integration. Relay only fires the balance query when duneConfig.apiKey is set, so apiBaseUrl points
18
+ // it at our proxy; the proxy ignores the client-sent key and holds the real Zerion credential itself.
19
19
  return (
20
20
  <RelayKitProvider
21
21
  options={{
@@ -25,6 +25,13 @@ export function RelayKitProviderWrapper({ children }: { children: React.ReactNod
25
25
  privateChainIds: undefined,
26
26
  appName: "AnySpend",
27
27
  useGasFeeEstimations: true,
28
+ duneConfig: {
29
+ // Non-secret placeholder. Relay only fires its balance query when apiKey is defined; the value is sent
30
+ // as X-Sim-Api-Key to our proxy, which ignores it. The real Zerion key stays server-side in b3-zerion-api.
31
+ apiKey: "proxied-via-portfolio-api",
32
+ // Relay appends /v1/evm/balances/{address}. Our b3-zerion-api worker serves that route, backed by Zerion.
33
+ apiBaseUrl: "https://portfolio-api.b3.fun",
34
+ },
28
35
  }}
29
36
  >
30
37
  <>{children}</>