@shapeshiftoss/swapper 1.1.0 → 1.2.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/api.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface Swapper {
|
|
|
35
35
|
/**
|
|
36
36
|
* Get the default pair of the swapper
|
|
37
37
|
*/
|
|
38
|
-
getDefaultPair():
|
|
38
|
+
getDefaultPair(): Pick<Asset, 'chain' | 'symbol' | 'name'>[];
|
|
39
39
|
/**
|
|
40
40
|
* Get the minimum and maximum trade value of the sellAsset and buyAsset
|
|
41
41
|
* @param input
|
|
@@ -9,6 +9,6 @@ export declare class ThorchainSwapper implements Swapper {
|
|
|
9
9
|
getAvailableAssets(assets: Asset[]): Asset[];
|
|
10
10
|
canTradePair(sellAsset: Asset, buyAsset: Asset): boolean;
|
|
11
11
|
executeQuote(): Promise<ExecQuoteOutput>;
|
|
12
|
-
getDefaultPair():
|
|
12
|
+
getDefaultPair(): Pick<Asset, 'chain' | 'symbol' | 'name'>[];
|
|
13
13
|
approvalNeeded(): Promise<ApprovalNeededOutput>;
|
|
14
14
|
}
|
|
@@ -20,7 +20,7 @@ export declare class ZrxSwapper implements Swapper {
|
|
|
20
20
|
getMinMax(input: GetQuoteInput): Promise<MinMaxOutput>;
|
|
21
21
|
getAvailableAssets(assets: Asset[]): Asset[];
|
|
22
22
|
canTradePair(sellAsset: Asset, buyAsset: Asset): boolean;
|
|
23
|
-
getDefaultPair():
|
|
23
|
+
getDefaultPair(): Pick<Asset, 'chain' | 'symbol' | 'name'>[];
|
|
24
24
|
executeQuote(args: ExecQuoteInput): Promise<ExecQuoteOutput>;
|
|
25
25
|
approvalNeeded(args: ApprovalNeededInput): Promise<ApprovalNeededOutput>;
|
|
26
26
|
}
|