@skip-go/client 0.6.0 → 0.7.0

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
@@ -31,7 +31,7 @@ type EndpointOptions = {
31
31
  rpc?: string;
32
32
  rest?: string;
33
33
  };
34
- interface SkipRouterOptions {
34
+ interface SkipClientOptions {
35
35
  apiURL?: string;
36
36
  apiKey?: string;
37
37
  getEVMSigner?: (chainID: string) => Promise<WalletClient>;
@@ -119,7 +119,7 @@ type GetFallbackGasAmount = (chainID: string, chainType: 'cosmos' | 'evm' | 'svm
119
119
  type GetGasPrice = (chainID: string, chainType: 'cosmos' | 'evm' | 'svm') => Promise<GasPrice | undefined>;
120
120
 
121
121
  declare const SKIP_API_URL = "https://api.skip.build";
122
- declare class SkipRouter {
122
+ declare class SkipClient {
123
123
  protected requestClient: RequestClient;
124
124
  protected aminoTypes: AminoTypes;
125
125
  protected registry: Registry;
@@ -133,7 +133,7 @@ declare class SkipRouter {
133
133
  protected getSVMSigner?: () => Promise<Adapter>;
134
134
  protected chainIDsToAffiliates?: Record<string, ChainAffiliates>;
135
135
  protected cumulativeAffiliateFeeBPS?: string;
136
- constructor(options?: SkipRouterOptions);
136
+ constructor(options?: SkipClientOptions);
137
137
  assets(options?: AssetsRequest): Promise<Record<string, Asset[]>>;
138
138
  assetsFromSource(options: AssetsFromSourceRequest): Promise<Record<string, Asset[]>>;
139
139
  assetsBetweenChains(options: AssetsBetweenChainsRequest): Promise<AssetBetweenChains[]>;
@@ -306,5 +306,10 @@ declare class SkipRouter {
306
306
  getFallbackGasAmount?: GetFallbackGasAmount;
307
307
  }): Promise<Coin>;
308
308
  }
309
+ /**
310
+ * @deprecated SkipRouter is deprecated please use SkipClient instead
311
+ */
312
+ declare class SkipRouter extends SkipClient {
313
+ }
309
314
 
310
- export { Asset, AssetBetweenChains, AssetOrError, AssetRecommendationRequest, AssetsBetweenChainsRequest, AssetsFromSourceRequest, AssetsRequest, Bridge, Chain, ChainAffiliates, CosmosMsg, DenomWithChainID, type EndpointOptions, EvmTx, type ExecuteCosmosMessage, type ExecuteCosmosMessageOptions, type ExecuteRouteOptions, FeeAsset, type GetFallbackGasAmount, type GetGasPrice, MsgsDirectRequest, MsgsDirectResponse, MsgsRequest, MsgsResponse, MultiChainMsg, RecommendationEntry, RouteRequest, RouteResponse, SKIP_API_URL, type SignCosmosMessageAminoOptions, type SignCosmosMessageDirectOptions, SkipRouter, type SkipRouterOptions, SubmitTxResponse, SvmTx, SwapVenue, TrackTxResponse, Tx, TxStatusResponse, type UserAddress };
315
+ export { Asset, AssetBetweenChains, AssetOrError, AssetRecommendationRequest, AssetsBetweenChainsRequest, AssetsFromSourceRequest, AssetsRequest, Bridge, Chain, ChainAffiliates, CosmosMsg, DenomWithChainID, type EndpointOptions, EvmTx, type ExecuteCosmosMessage, type ExecuteCosmosMessageOptions, type ExecuteRouteOptions, FeeAsset, type GetFallbackGasAmount, type GetGasPrice, MsgsDirectRequest, MsgsDirectResponse, MsgsRequest, MsgsResponse, MultiChainMsg, RecommendationEntry, RouteRequest, RouteResponse, SKIP_API_URL, type SignCosmosMessageAminoOptions, type SignCosmosMessageDirectOptions, SkipClient, type SkipClientOptions, SkipRouter, SubmitTxResponse, SvmTx, SwapVenue, TrackTxResponse, Tx, TxStatusResponse, type UserAddress };
package/dist/index.js CHANGED
@@ -2959,7 +2959,7 @@ var RequestClient = class {
2959
2959
  }
2960
2960
  };
2961
2961
  var SKIP_API_URL = "https://api.skip.build";
2962
- var SkipRouter = class {
2962
+ var SkipClient = class {
2963
2963
  constructor(options = {}) {
2964
2964
  this.cumulativeAffiliateFeeBPS = "0";
2965
2965
  var _a, _b, _c;
@@ -4379,6 +4379,8 @@ function validateChainIDsToAffiliates(chainIDsToAffiliates) {
4379
4379
  }
4380
4380
  return firstAffiliateBasisPointsFee == null ? void 0 : firstAffiliateBasisPointsFee.toFixed(0);
4381
4381
  }
4382
+ var SkipRouter = class extends SkipClient {
4383
+ };
4382
4384
  function raise(message, options) {
4383
4385
  throw new Error(message, options);
4384
4386
  }
@@ -5035,4 +5037,5 @@ Object.defineProperty(exports, "txToJSON", {
5035
5037
  get: function () { return chunkIEAKY5XG_js.txToJSON; }
5036
5038
  });
5037
5039
  exports.SKIP_API_URL = SKIP_API_URL;
5040
+ exports.SkipClient = SkipClient;
5038
5041
  exports.SkipRouter = SkipRouter;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/client",
3
3
  "description": "JavaScript SDK for Skip Go API",
4
- "version": "0.6.0",
4
+ "version": "0.7.0",
5
5
  "repository": "https://github.com/skip-mev/skip-go",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",