@unlink-xyz/react 0.1.7-canary.7512856 → 0.1.7-canary.8a44ae0

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/dist/index.d.ts CHANGED
@@ -39,6 +39,8 @@ type UnlinkConfigBase = {
39
39
  autoSync?: boolean;
40
40
  /** Optional prover/artifact source override */
41
41
  prover?: BrowserWalletOptions["prover"];
42
+ /** Direct chain RPC for burner EOA transactions. Defaults to chain's public RPC URL. */
43
+ chainRpcUrl?: string;
42
44
  };
43
45
  /**
44
46
  * Configuration for the UnlinkProvider.
@@ -309,7 +311,7 @@ type UnlinkError = {
309
311
  type UnlinkProviderProps = UnlinkConfig & {
310
312
  children: ReactNode;
311
313
  };
312
- declare function UnlinkProvider({ children, poolAddress, syncInterval, autoSync, prover, ...configProps }: UnlinkProviderProps): react_jsx_runtime.JSX.Element;
314
+ declare function UnlinkProvider({ children, poolAddress, syncInterval, autoSync, prover, chainRpcUrl, ...configProps }: UnlinkProviderProps): react_jsx_runtime.JSX.Element;
313
315
 
314
316
  /**
315
317
  * Hook to access the Unlink wallet SDK.
package/dist/index.js CHANGED
@@ -35882,6 +35882,10 @@ var Runtime = {
35882
35882
  return "unknown";
35883
35883
  }
35884
35884
  };
35885
+ var DEFAULT_RPC_URLS = {
35886
+ "monad-testnet": "https://testnet-rpc.monad.xyz",
35887
+ "monad-testnet-staging": "https://testnet-rpc.monad.xyz"
35888
+ };
35885
35889
  var CONFIG_URL = "https://config.unlink.xyz/networks.json";
35886
35890
  function parseRequiredString(chain2, field, value) {
35887
35891
  if (typeof value !== "string" || value.trim().length === 0) {
@@ -56836,7 +56840,7 @@ var Unlink = class _Unlink {
56836
56840
  {
56837
56841
  chainId,
56838
56842
  gatewayUrl,
56839
- chainRpcUrl: config22.chainRpcUrl,
56843
+ chainRpcUrl: config22.chainRpcUrl ?? ("chain" in config22 ? DEFAULT_RPC_URLS[config22.chain] : void 0),
56840
56844
  prover: proverConfig,
56841
56845
  autoSync: config22.autoSync
56842
56846
  }
@@ -57222,6 +57226,7 @@ function UnlinkProvider({
57222
57226
  syncInterval = 5e3,
57223
57227
  autoSync = true,
57224
57228
  prover,
57229
+ chainRpcUrl,
57225
57230
  ...configProps
57226
57231
  }) {
57227
57232
  const chain2 = "chain" in configProps ? configProps.chain : void 0;
@@ -57279,11 +57284,13 @@ function UnlinkProvider({
57279
57284
  chain2 ? {
57280
57285
  chain: chain2,
57281
57286
  poolAddress,
57287
+ chainRpcUrl,
57282
57288
  ...prover ? { prover } : {}
57283
57289
  } : {
57284
57290
  chainId,
57285
57291
  gatewayUrl,
57286
57292
  poolAddress,
57293
+ chainRpcUrl,
57287
57294
  ...prover ? { prover } : {}
57288
57295
  }
57289
57296
  );
@@ -57376,6 +57383,7 @@ function UnlinkProvider({
57376
57383
  refreshAccounts,
57377
57384
  gatewayUrl,
57378
57385
  poolAddress,
57386
+ chainRpcUrl,
57379
57387
  proverKey
57380
57388
  ]);
57381
57389
  const createWallet = useCallback(async () => {