@shapeshiftoss/swapper 5.12.0 → 6.0.1
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
|
@@ -71,13 +71,13 @@ interface TradeBase<C extends SupportedChainIds> {
|
|
|
71
71
|
sellAmount: string;
|
|
72
72
|
feeData: QuoteFeeData<C>;
|
|
73
73
|
rate: string;
|
|
74
|
-
allowanceContract: string;
|
|
75
74
|
sources: Array<SwapSource>;
|
|
76
75
|
buyAsset: Asset;
|
|
77
76
|
sellAsset: Asset;
|
|
78
77
|
sellAssetAccountId: string;
|
|
79
78
|
}
|
|
80
79
|
export interface TradeQuote<C extends SupportedChainIds> extends TradeBase<C> {
|
|
80
|
+
allowanceContract: string;
|
|
81
81
|
minimum: string;
|
|
82
82
|
maximum: string;
|
|
83
83
|
}
|
|
@@ -107,7 +107,6 @@ async function zrxBuildTrade({ adapterManager, web3 }, input) {
|
|
|
107
107
|
txData: data.data,
|
|
108
108
|
sellAmount: data.sellAmount,
|
|
109
109
|
buyAmount: data.buyAmount,
|
|
110
|
-
allowanceContract: data.allowanceTarget,
|
|
111
110
|
sources: ((_a = data.sources) === null || _a === void 0 ? void 0 : _a.filter((s) => parseFloat(s.proportion) > 0)) || constants_1.DEFAULT_SOURCE
|
|
112
111
|
};
|
|
113
112
|
const allowanceRequired = await (0, helpers_1.getAllowanceRequired)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/swapper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "TODO: description",
|
|
5
5
|
"repository": "https://github.com/shapeshift/lib",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,29 +23,29 @@
|
|
|
23
23
|
"swapcli": "yarn build && node ./dist/swappercli.js"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"axios": "^0.26.
|
|
27
|
-
"bignumber.js": "^9.0.
|
|
26
|
+
"axios": "^0.26.1",
|
|
27
|
+
"bignumber.js": "^9.0.2",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"retry-axios": "^2.6.0",
|
|
30
|
-
"web3": "^1.
|
|
30
|
+
"web3": "^1.7.3"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@shapeshiftoss/asset-service": "^4.6.0",
|
|
34
|
-
"@shapeshiftoss/caip": "^5.2.
|
|
35
|
-
"@shapeshiftoss/chain-adapters": "^
|
|
36
|
-
"@shapeshiftoss/
|
|
37
|
-
"@shapeshiftoss/
|
|
38
|
-
"@shapeshiftoss/
|
|
34
|
+
"@shapeshiftoss/caip": "^5.2.2",
|
|
35
|
+
"@shapeshiftoss/chain-adapters": "^5.0.0",
|
|
36
|
+
"@shapeshiftoss/errors": "^1.1.1",
|
|
37
|
+
"@shapeshiftoss/hdwallet-core": "^1.23.0",
|
|
38
|
+
"@shapeshiftoss/types": "^4.4.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@shapeshiftoss/asset-service": "^4.6.0",
|
|
42
|
-
"@shapeshiftoss/caip": "^5.2.
|
|
43
|
-
"@shapeshiftoss/chain-adapters": "^
|
|
44
|
-
"@shapeshiftoss/
|
|
42
|
+
"@shapeshiftoss/caip": "^5.2.2",
|
|
43
|
+
"@shapeshiftoss/chain-adapters": "^5.0.0",
|
|
44
|
+
"@shapeshiftoss/errors": "^1.1.1",
|
|
45
|
+
"@shapeshiftoss/hdwallet-core": "^1.23.0",
|
|
45
46
|
"@shapeshiftoss/types": "^4.4.0",
|
|
46
|
-
"@shapeshiftoss/errors": "^1.1.0",
|
|
47
47
|
"@types/readline-sync": "^1.4.4",
|
|
48
48
|
"readline-sync": "^1.4.10",
|
|
49
|
-
"web3-utils": "^1.
|
|
49
|
+
"web3-utils": "^1.7.3"
|
|
50
50
|
}
|
|
51
51
|
}
|