@rango-dev/widget-embedded 0.1.10-next.87 → 0.1.10-next.89

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.1.10-next.87",
3
+ "version": "0.1.10-next.89",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "dev": "parcel public/index.html -p 3001",
14
14
  "build:app": "parcel build",
15
- "build": "tsdx build --entry ./src/lib.tsx --transpileOnly"
15
+ "build": "tsdx build --entry ./src/lib.tsx"
16
16
  },
17
17
  "husky": {
18
18
  "hooks": {
@@ -31,7 +31,8 @@
31
31
  "@rango-dev/queue-manager-rango-preset": "^0.1.10-next.77",
32
32
  "@rango-dev/queue-manager-react": "^0.1.10-next.73",
33
33
  "@rango-dev/ui": "^0.1.10-next.75",
34
- "@rango-dev/wallets-core": "^0.1.11-next.78",
34
+ "@rango-dev/wallets-core": "^0.1.11-next.80",
35
+ "@rango-dev/wallets-shared": "^0.1.11-next.78",
35
36
  "bignumber.js": "^9.1.1",
36
37
  "copy-to-clipboard": "^3.3.3",
37
38
  "immer": "^9.0.19",
@@ -1,3 +1,5 @@
1
1
  import { RangoClient } from 'rango-sdk';
2
2
 
3
- export const httpService = new RangoClient(process.env.REACT_API_KEY as string);
3
+ export const httpService = new RangoClient(
4
+ process.env.REACT_APP_API_KEY as string
5
+ );
@@ -113,7 +113,7 @@ export const confirmSwap = async (): Promise<PendingSwap | undefined> => {
113
113
 
114
114
  const userSlippage = customSlippage || slippage;
115
115
 
116
- if (!fromToken || !toToken || !inputAmount || !initialRoute) return;
116
+ if (!fromToken || !toToken || !inputAmount || !initialRoute) return undefined;
117
117
 
118
118
  if (proceedAnyway!) {
119
119
  const swapSettings: PendingSwapSettings = {
@@ -6,7 +6,6 @@ import {
6
6
  WalletInfo,
7
7
  WalletState,
8
8
  WalletType,
9
- isCosmosBlockchain,
10
9
  } from '@rango-dev/wallets-shared';
11
10
 
12
11
  import {
@@ -20,6 +19,7 @@ import {
20
19
  Token,
21
20
  WalletDetail,
22
21
  } from 'rango-sdk';
22
+ import { isCosmosBlockchain } from 'rango-types';
23
23
  import { readAccountAddress } from '@rango-dev/wallets-core';
24
24
  import { Account, Balance, TokenBalance } from '../store/wallets';
25
25
  import { numberToString } from './numbers';