@shapeshiftoss/swapper 17.3.1 → 17.3.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.
@@ -157,7 +157,7 @@ class OsmosisSwapper {
157
157
  async executeTrade({ trade, wallet }) {
158
158
  var _a;
159
159
  const { sellAsset, buyAsset, sellAmountBeforeFeesCryptoBaseUnit: sellAmountCryptoBaseUnit, accountNumber, receiveAccountNumber, receiveAddress, } = trade;
160
- if (!receiveAccountNumber)
160
+ if (receiveAccountNumber === undefined)
161
161
  throw new api_1.SwapError('Receive account number not provided', {
162
162
  code: api_1.SwapErrorType.RECEIVE_ACCOUNT_NUMBER_NOT_PROVIDED,
163
163
  });
@@ -249,15 +249,15 @@ const buildTradeTx = async ({ osmoAddress, adapter, accountNumber, buyAssetDenom
249
249
  sender: osmoAddress,
250
250
  routes: [
251
251
  {
252
- poolId: '1',
253
- tokenOutDenom: buyAssetDenom,
252
+ pool_id: '1',
253
+ token_out_denom: buyAssetDenom,
254
254
  },
255
255
  ],
256
- tokenIn: {
256
+ token_in: {
257
257
  denom: sellAssetDenom,
258
258
  amount: sellAmount,
259
259
  },
260
- tokenOutMinAmount: '1', // slippage tolerance
260
+ token_out_min_amount: '1', // slippage tolerance
261
261
  },
262
262
  },
263
263
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/swapper",
3
- "version": "17.3.1",
3
+ "version": "17.3.3",
4
4
  "description": "An interface and implementations to trade coins via various protocols",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "@shapeshiftoss/caip": "^8.0.0",
36
36
  "@shapeshiftoss/chain-adapters": "^11.0.0",
37
37
  "@shapeshiftoss/errors": "^1.1.2",
38
- "@shapeshiftoss/hdwallet-core": "^1.42.0",
38
+ "@shapeshiftoss/hdwallet-core": "^1.43.0",
39
39
  "@shapeshiftoss/types": "^8.1.0"
40
40
  },
41
41
  "devDependencies": {
@@ -43,7 +43,7 @@
43
43
  "@shapeshiftoss/caip": "^8.0.0",
44
44
  "@shapeshiftoss/chain-adapters": "^11.0.0",
45
45
  "@shapeshiftoss/errors": "^1.1.2",
46
- "@shapeshiftoss/hdwallet-core": "^1.42.0",
46
+ "@shapeshiftoss/hdwallet-core": "^1.43.0",
47
47
  "@shapeshiftoss/types": "^8.1.0",
48
48
  "@shapeshiftoss/unchained-client": "^10.0.1",
49
49
  "@types/readline-sync": "^1.4.4",