@shapeshiftoss/swapper 3.0.2 → 3.0.3

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/api.d.ts CHANGED
@@ -32,10 +32,6 @@ export interface Swapper {
32
32
  * Get the usd rate from either the assets symbol or tokenId
33
33
  */
34
34
  getUsdRate(input: Pick<Asset, 'symbol' | 'tokenId'>): Promise<string>;
35
- /**
36
- * Get the default pair of the swapper
37
- */
38
- getDefaultPair(): [CAIP19, CAIP19];
39
35
  /**
40
36
  * Get the minimum and maximum trade value of the sellAsset and buyAsset
41
37
  */
@@ -14,7 +14,6 @@ export declare class TestSwapper implements Swapper {
14
14
  getUsdRate(input: Pick<Asset, 'symbol' | 'tokenId'>): Promise<string>;
15
15
  getMinMax(input: GetQuoteInput): Promise<MinMaxOutput>;
16
16
  executeQuote(): Promise<ExecQuoteOutput>;
17
- getDefaultPair(): [CAIP19, CAIP19];
18
17
  approvalNeeded(): Promise<ApprovalNeededOutput>;
19
18
  approveInfinite(): Promise<string>;
20
19
  filterBuyAssetsBySellAssetId(args: BuyAssetBySellIdInput): CAIP19[];
@@ -34,9 +34,6 @@ class TestSwapper {
34
34
  async executeQuote() {
35
35
  throw new Error('TestSwapper: executeQuote unimplemented');
36
36
  }
37
- getDefaultPair() {
38
- throw new Error('TestSwapper: getDefaultPair unimplemented');
39
- }
40
37
  async approvalNeeded() {
41
38
  throw new Error('TestSwapper: approvalNeeded unimplemented');
42
39
  }
@@ -8,7 +8,6 @@ export declare class ThorchainSwapper implements Swapper {
8
8
  getUsdRate(input: Pick<Asset, 'symbol' | 'tokenId'>): Promise<string>;
9
9
  getMinMax(input: GetQuoteInput): Promise<MinMaxOutput>;
10
10
  executeQuote(): Promise<ExecQuoteOutput>;
11
- getDefaultPair(): [CAIP19, CAIP19];
12
11
  approvalNeeded(): Promise<ApprovalNeededOutput>;
13
12
  approveInfinite(): Promise<string>;
14
13
  filterBuyAssetsBySellAssetId(): CAIP19[];
@@ -23,9 +23,6 @@ class ThorchainSwapper {
23
23
  async executeQuote() {
24
24
  throw new Error('ThorchainSwapper: executeQuote unimplemented');
25
25
  }
26
- getDefaultPair() {
27
- throw new Error('ThorchainSwapper: getDefaultPair unimplemented');
28
- }
29
26
  async approvalNeeded() {
30
27
  throw new Error('ThorchainSwapper: approvalNeeded unimplemented');
31
28
  }
@@ -19,7 +19,6 @@ export declare class ZrxSwapper implements Swapper {
19
19
  getQuote(input: GetQuoteInput): Promise<Quote<ChainTypes>>;
20
20
  getUsdRate(input: Pick<Asset, 'symbol' | 'tokenId'>): Promise<string>;
21
21
  getMinMax(input: GetQuoteInput): Promise<MinMaxOutput>;
22
- getDefaultPair(): [CAIP19, CAIP19];
23
22
  executeQuote(args: ExecQuoteInput<ChainTypes>): Promise<ExecQuoteOutput>;
24
23
  approvalNeeded(args: ApprovalNeededInput<ChainTypes>): Promise<ApprovalNeededOutput>;
25
24
  approveInfinite(args: ApproveInfiniteInput<ChainTypes>): Promise<string>;
@@ -35,11 +35,6 @@ class ZrxSwapper {
35
35
  async getMinMax(input) {
36
36
  return (0, getZrxMinMax_1.getZrxMinMax)(input);
37
37
  }
38
- getDefaultPair() {
39
- const ETH = 'eip155:1/slip44:60';
40
- const FOX = 'eip155:1/erc20:0xc770eefad204b5180df6a14ee197d99d808ee52d';
41
- return [ETH, FOX];
42
- }
43
38
  async executeQuote(args) {
44
39
  return (0, ZrxExecuteQuote_1.ZrxExecuteQuote)(this.deps, args);
45
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/swapper",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "TODO: description",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",