@shapeshiftoss/swapper 5.12.0 → 5.12.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
  }
@@ -50,7 +50,6 @@ export declare const setupExecuteTrade: () => {
50
50
  tradeFee: string;
51
51
  };
52
52
  rate: string;
53
- allowanceContract: string;
54
53
  sources: never[];
55
54
  };
56
55
  buyAsset: Asset;
@@ -83,7 +83,6 @@ const setupExecuteTrade = () => {
83
83
  receiveAddress: '0x0',
84
84
  feeData: { fee: '0', chainSpecific: {}, tradeFee: '0' },
85
85
  rate: '0',
86
- allowanceContract: '0x0',
87
86
  sources: []
88
87
  };
89
88
  return { executeTradeInput, buyAsset, sellAsset };
@@ -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": "5.12.0",
3
+ "version": "5.12.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.0",
27
- "bignumber.js": "^9.0.1",
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.6.1"
30
+ "web3": "^1.7.3"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@shapeshiftoss/asset-service": "^4.6.0",
34
- "@shapeshiftoss/caip": "^5.2.1",
35
- "@shapeshiftoss/chain-adapters": "^4.7.0",
36
- "@shapeshiftoss/hdwallet-core": "1.20.0",
37
- "@shapeshiftoss/types": "^4.4.0",
38
- "@shapeshiftoss/errors": "^1.1.0"
34
+ "@shapeshiftoss/caip": "^5.2.2",
35
+ "@shapeshiftoss/chain-adapters": "^4.8.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.1",
43
- "@shapeshiftoss/chain-adapters": "^4.7.0",
44
- "@shapeshiftoss/hdwallet-core": "^1.20.0",
42
+ "@shapeshiftoss/caip": "^5.2.2",
43
+ "@shapeshiftoss/chain-adapters": "^4.8.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.5.2"
49
+ "web3-utils": "^1.7.3"
50
50
  }
51
51
  }