@vleap/warps-adapter-fastset 0.1.0-alpha.33 → 0.1.0-alpha.35

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.js CHANGED
@@ -1499,8 +1499,8 @@ var FastsetClient = class {
1499
1499
 
1500
1500
  // src/helpers/general.ts
1501
1501
  var getConfiguredFastsetClient = (config, chain2) => {
1502
- const proxyUrl = (0, import_warps.getProviderUrl)(config, chain2.name, config.env, chain2.defaultApiUrl);
1503
- return new FastsetClient(proxyUrl);
1502
+ const providerConfig = (0, import_warps.getProviderConfig)(config, chain2.name, config.env, chain2.defaultApiUrl);
1503
+ return new FastsetClient(providerConfig.url);
1504
1504
  };
1505
1505
 
1506
1506
  // src/tokens/fastset.ts
@@ -2951,15 +2951,13 @@ var NativeTokenSet = {
2951
2951
  decimals: 0,
2952
2952
  logoUrl: "https://vleap.ai/images/tokens/set.svg"
2953
2953
  };
2954
- function createFastsetAdapter(chainName, chainPrefix, chainInfos) {
2954
+ function createFastsetAdapter(chainName, chainInfos) {
2955
2955
  return (config, fallback) => {
2956
2956
  const chainInfo = chainInfos[config.env];
2957
2957
  if (!chainInfo) throw new Error(`FastsetAdapter: chain info not found for chain ${chainName}`);
2958
2958
  if (!fallback) throw new Error("Fastset adapter requires a fallback adapter");
2959
2959
  return {
2960
- chain: chainName,
2961
2960
  chainInfo,
2962
- prefix: chainPrefix,
2963
2961
  builder: () => fallback.builder(),
2964
2962
  executor: new WarpFastsetExecutor(config, chainInfo),
2965
2963
  results: new WarpFastsetResults(config, chainInfo),
@@ -2973,7 +2971,7 @@ function createFastsetAdapter(chainName, chainPrefix, chainInfos) {
2973
2971
  };
2974
2972
  };
2975
2973
  }
2976
- var getFastsetAdapter = createFastsetAdapter(import_warps6.WarpChainName.Fastset, "fastset", {
2974
+ var getFastsetAdapter = createFastsetAdapter(import_warps6.WarpChainName.Fastset, {
2977
2975
  mainnet: {
2978
2976
  name: import_warps6.WarpChainName.Fastset,
2979
2977
  displayName: "FastSet",