@rango-dev/widget-embedded 0.63.1-next.3 → 0.63.1-next.5
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/QueueManager.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.InstallWallet.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts +7 -3
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.test.d.ts +2 -0
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.test.d.ts.map +1 -0
- package/dist/containers/Wallets/Wallets.d.ts.map +1 -1
- package/dist/containers/Wallets/useUpdates.d.ts.map +1 -1
- package/dist/hooks/useStatefulConnect/useStatefulConnect.d.ts.map +1 -1
- package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts +5 -4
- package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts.map +1 -1
- package/dist/hooks/useWalletList.d.ts.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/dist/store/slices/config.d.ts.map +1 -1
- package/dist/types/config.d.ts +16 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +1 -1
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/common.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +1 -1
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +1 -1
- package/dist/utils/wallets.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/QueueManager.tsx +2 -6
- package/src/components/NamespaceItem/NamespaceItem.tsx +1 -1
- package/src/components/SwapDetailsModal/SwapDetailsModal.InstallWallet.tsx +8 -2
- package/src/components/WalletStatefulConnect/DerivationPath.helpers.test.ts +98 -0
- package/src/components/WalletStatefulConnect/DerivationPath.helpers.ts +14 -10
- package/src/components/WalletStatefulConnect/DerivationPath.tsx +14 -7
- package/src/components/WalletStatefulConnect/Namespaces.tsx +1 -1
- package/src/containers/Wallets/Wallets.tsx +4 -1
- package/src/containers/Wallets/useUpdates.ts +1 -1
- package/src/hooks/useStatefulConnect/useStatefulConnect.ts +5 -2
- package/src/hooks/useStatefulConnect/useStatefulConnect.types.ts +6 -3
- package/src/hooks/useWalletList.ts +9 -6
- package/src/index.ts +4 -7
- package/src/store/slices/config.ts +25 -6
- package/src/types/config.ts +20 -2
- package/src/types/wallets.ts +1 -1
- package/src/utils/common.ts +6 -0
- package/src/utils/swap.ts +1 -1
- package/src/utils/wallets.ts +14 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/store/slices/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/store/slices/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AA6B7D,eAAO,MAAM,cAAc,EAAE,YAe5B,CAAC;AAEF,UAAU,aAAa;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,YAAY;IACpB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAUD,MAAM,WAAW,WAAW;IAE1B,MAAM,EAAE,YAAY,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,mBAAmB,EAAE,MAAM,MAAM,EAAE,CAAC;IACpC,2BAA2B,EAAE,MAAM,MAAM,EAAE,CAAC;IAC5C,uBAAuB,EAAE,MAAM,OAAO,CAAC;IACvC,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,kBAAkB,EAAE,CAAC,CAAC,SAAS,MAAM,YAAY,EAC/C,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,KACnB,IAAI,CAAC;IAEV,MAAM,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,YAAY,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAC1C,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KACpB,IAAI,CAAC;IACV,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,qBAAqB,EAAE,MAAM,kBAAkB,EAAE,CAAC;CACnD;AAsBD,eAAO,MAAM,iBAAiB,EAAE,2BAA2B,CACzD,YAAY,EACZ,WAAW,GAAG,aAAa,GAAG,SAAS,EACvC,WAAW,CAyHZ,CAAC"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Provider } from '@hub3js/core';
|
|
2
2
|
import type { Language, theme } from '@rango-dev/ui';
|
|
3
|
-
import type { LegacyProviderInterface } from '@rango-dev/wallets-core/legacy';
|
|
4
|
-
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
3
|
+
import type { LegacyProviderInterface, LegacyWalletType as WalletType } from '@rango-dev/wallets-core/legacy';
|
|
5
4
|
import type { Asset } from 'rango-sdk';
|
|
6
5
|
import type { ReactElement } from 'react';
|
|
7
6
|
export type WidgetVariant = 'default' | 'expanded' | 'full-expanded';
|
|
@@ -162,6 +161,20 @@ export type TrezorManifest = {
|
|
|
162
161
|
export type TonConnectConfig = {
|
|
163
162
|
manifestUrl?: string;
|
|
164
163
|
};
|
|
164
|
+
/**
|
|
165
|
+
* Configuration for the Ledger wallet integration.
|
|
166
|
+
*
|
|
167
|
+
* @property {string} dAppIdentifier - Unique identifier of your dApp, registered with Ledger to authorize the integration.
|
|
168
|
+
* @property {string} apiKey - API key issued by Ledger, used to authenticate requests from your dApp.
|
|
169
|
+
* @property {'fatal' | 'error' | 'warn' | 'info' | 'debug'} [loggerLevel] - Verbosity of the Ledger logger.
|
|
170
|
+
* @property {boolean} [hideButton] - When `true`, hides the built-in Ledger floating button.
|
|
171
|
+
*/
|
|
172
|
+
export type LedgerWalletConfig = {
|
|
173
|
+
dAppIdentifier: string;
|
|
174
|
+
apiKey: string;
|
|
175
|
+
loggerLevel?: 'fatal' | 'error' | 'warn' | 'info' | 'debug';
|
|
176
|
+
hideButton?: boolean;
|
|
177
|
+
};
|
|
165
178
|
/**
|
|
166
179
|
* The type WidgetConfig defines the configuration options for a widget, including API key, affiliate
|
|
167
180
|
* reference, amount, blockchain and token configurations, liquidity sources, wallet types, language,
|
|
@@ -229,6 +242,7 @@ export type WidgetConfig = {
|
|
|
229
242
|
title?: string;
|
|
230
243
|
walletConnectProjectId?: string;
|
|
231
244
|
trezorManifest?: TrezorManifest;
|
|
245
|
+
ledgerWallet?: LedgerWalletConfig;
|
|
232
246
|
tonConnect?: TonConnectConfig;
|
|
233
247
|
affiliate?: WidgetAffiliate;
|
|
234
248
|
amount?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EACV,uBAAuB,EACvB,gBAAgB,IAAI,UAAU,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,eAAe,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG;KACvB,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM;CACzB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACjC,UAAU,CAAC,EAAE,MA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,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../src/types/wallets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAErF,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,KAAK,WAAW,GAAG,MAAM,CAAC;AAC1B,KAAK,OAAO,GAAG,MAAM,CAAC;AAEtB,kCAAkC;AAClC,MAAM,MAAM,SAAS,GAAG,GAAG,UAAU,IAAI,WAAW,IAAI,OAAO,EAAE,CAAC;AAElE,MAAM,MAAM,aAAa,GAAG;IAC1B,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC"}
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -19,4 +19,5 @@ export declare function isSingleWalletActive(wallets: WalletInfoWithExtra[], mul
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function memoizedResult(): <R>(fn: () => R, key: number | string) => R;
|
|
21
21
|
export declare function filterBlockchainsWithAtLeastOneToken(blockchains: BlockchainMeta[], tokens: Token[]): BlockchainMeta[];
|
|
22
|
+
export declare function detectMobileScreens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vE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,KAAK,EACb,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CA0GR;AAED,eAAO,MAAM,0BAA0B,mBACrB,eAAe,YACrB,MAAM,KACf,OAcF,CAAC;AAEF,eAAO,MAAM,gBAAgB,aAAc,MAAM,uBAGhD,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,mBAAmB,EAAE,EAC9B,YAAY,CAAC,EAAE,OAAO,WAMvB;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC,CAe5E;AAED,wBAAgB,oCAAoC,CAClD,WAAW,EAAE,cAAc,EAAE,EAC7B,MAAM,EAAE,KAAK,EAAE,oBAWhB;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAI7C"}
|
package/dist/utils/swap.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FetchStatus, FindToken } from '../store/slices/data';
|
|
2
2
|
import type { ConnectedWallet } from '../store/slices/wallets';
|
|
3
3
|
import type { ConvertedToken, QuoteError, QuoteWarning, RecommendedSlippages, SelectedQuote, SwapButtonState, Wallet } from '../types';
|
|
4
|
+
import type { LegacyWalletType as WalletType } from '@rango-dev/wallets-core/legacy';
|
|
4
5
|
import type { ExtendedWalletInfo } from '@rango-dev/wallets-react';
|
|
5
|
-
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
6
6
|
import type { BestRouteRequest, BlockchainMeta, RecommendedSlippage, SwapFee, SwapResult, Token } from 'rango-sdk';
|
|
7
7
|
import type { PendingSwap, PendingSwapStep } from 'rango-types';
|
|
8
8
|
import { type RouteEvent, type StepEvent } from '@rango-dev/queue-manager-rango-preset';
|
package/dist/utils/swap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../src/utils/swap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,MAAM,EACP,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../src/utils/swap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,MAAM,EACP,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,gBAAgB,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,OAAO,EACP,UAAU,EACV,KAAK,EACN,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGhE,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,SAAS,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,SAAS,MAAM,cAAc,CAAC;AAMrC,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,oBAAoB,CAAC;AAc5B,wBAAgB,cAAc,CAC5B,aAAa,EAAE,SAAS,GAAG,IAAI,EAC/B,cAAc,EAAE,SAAS,GAAG,IAAI,U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OAAO,EAChC,iBAAiB,EAAE,MAAM,GAAG,IAAI,EAChC,KAAK,EAAE,aAAa,GAAG,IAAI,EAC3B,eAAe,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EACxD,oBAAoB,EAAE,cAAc,GAAG,SAAS,GAC/C,OAAO,CA6BT;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,WAM7D;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,mJAK3D"}
|
package/dist/utils/wallets.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BalanceState, ConnectedWallet } from '../store/slices/wallets';
|
|
2
2
|
import type { Balance, SelectedQuote, Wallet, WalletInfoWithExtra } from '../types';
|
|
3
|
+
import type { LegacyNetwork as Network, LegacyWalletType as WalletType } from '@rango-dev/wallets-core/legacy';
|
|
3
4
|
import type { ExtendedWalletInfo, ProviderContext } from '@rango-dev/wallets-react';
|
|
4
|
-
import type { Network, WalletType } from '@rango-dev/wallets-shared';
|
|
5
5
|
import type { BlockchainMeta, Token } from 'rango-sdk';
|
|
6
6
|
import { WalletState as WalletStatus } from '@rango-dev/ui';
|
|
7
7
|
export type ExtendedModalWalletInfo = WalletInfoWithExtra & Pick<ExtendedWalletInfo, 'properties' | 'isHub'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../src/utils/wallets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,MAAM,EACN,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../src/utils/wallets.ts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AAC,WAAW,EAAE,mBAAmB,EAAE,UAElE;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,mBAAmB,EAAE,EAC9B,WAAW,EAAE,cAAc,EAAE,oBAa9B;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,uBAAuB,EAAE,EAClC,QAAQ,EAAE,MAAM,6BAcjB;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,kBAAkB,EAC1B,WAAW,EAAE,UAAU,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,WAiBlD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.63.1-next.
|
|
3
|
+
"version": "0.63.1-next.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"test:coverage": "vitest run --coverage"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@hub3js/core": "^0.
|
|
26
|
-
"@hub3js/namespaces": "^0.
|
|
25
|
+
"@hub3js/core": "^0.62.0",
|
|
26
|
+
"@hub3js/namespaces": "^0.4.0",
|
|
27
27
|
"@lingui/core": "4.2.1",
|
|
28
28
|
"@lingui/react": "4.2.1",
|
|
29
|
+
"@rango-dev/internal-blockchains": "^0.1.1-next.1",
|
|
29
30
|
"@rango-dev/logging-core": "^0.14.0",
|
|
30
|
-
"@rango-dev/provider-all": "^0.65.1-next.
|
|
31
|
+
"@rango-dev/provider-all": "^0.65.1-next.4",
|
|
31
32
|
"@rango-dev/queue-manager-core": "^0.34.0",
|
|
32
|
-
"@rango-dev/queue-manager-rango-preset": "^0.64.1-next.
|
|
33
|
+
"@rango-dev/queue-manager-rango-preset": "^0.64.1-next.4",
|
|
33
34
|
"@rango-dev/queue-manager-react": "^0.34.0",
|
|
34
35
|
"@rango-dev/signer-solana": "^0.49.0",
|
|
35
|
-
"@rango-dev/ui": "^0.65.1-next.
|
|
36
|
-
"@rango-dev/wallets-core": "^0.61.
|
|
37
|
-
"@rango-dev/wallets-react": "^0.48.1-next.
|
|
38
|
-
"@rango-dev/wallets-shared": "^0.62.1-next.2",
|
|
36
|
+
"@rango-dev/ui": "^0.65.1-next.4",
|
|
37
|
+
"@rango-dev/wallets-core": "^0.61.1-next.1",
|
|
38
|
+
"@rango-dev/wallets-react": "^0.48.1-next.4",
|
|
39
39
|
"bignumber.js": "^9.1.1",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
41
41
|
"crypto-browserify": "^3.12.1",
|
|
@@ -65,4 +65,4 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
}
|
|
68
|
-
}
|
|
68
|
+
}
|
package/src/QueueManager.tsx
CHANGED
|
@@ -2,16 +2,16 @@ import type {
|
|
|
2
2
|
SwapQueueContext,
|
|
3
3
|
TargetNamespace,
|
|
4
4
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
5
|
-
import type { WalletType } from '@rango-dev/wallets-
|
|
5
|
+
import type { LegacyWalletType as WalletType } from '@rango-dev/wallets-core/legacy';
|
|
6
6
|
import type { PropsWithChildren } from 'react';
|
|
7
7
|
|
|
8
|
+
import { convertEvmBlockchainMetaToEvmChainInfo } from '@rango-dev/internal-blockchains';
|
|
8
9
|
import {
|
|
9
10
|
checkWaitingForNetworkChange,
|
|
10
11
|
makeQueueDefinition,
|
|
11
12
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
12
13
|
import { Provider as ManagerProvider } from '@rango-dev/queue-manager-react';
|
|
13
14
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
14
|
-
import { convertEvmBlockchainMetaToEvmChainInfo } from '@rango-dev/wallets-shared';
|
|
15
15
|
import { isEvmBlockchain } from 'rango-types';
|
|
16
16
|
import React, { useMemo } from 'react';
|
|
17
17
|
|
|
@@ -24,7 +24,6 @@ import { walletAndSupportedChainsNames } from './utils/wallets';
|
|
|
24
24
|
|
|
25
25
|
function QueueManager(props: PropsWithChildren<{ apiKey?: string }>) {
|
|
26
26
|
const {
|
|
27
|
-
providers,
|
|
28
27
|
getSigners,
|
|
29
28
|
state,
|
|
30
29
|
connect,
|
|
@@ -83,8 +82,6 @@ function QueueManager(props: PropsWithChildren<{ apiKey?: string }>) {
|
|
|
83
82
|
const { supportedChains } = getWalletInfo(type);
|
|
84
83
|
return walletAndSupportedChainsNames(supportedChains);
|
|
85
84
|
};
|
|
86
|
-
const allProviders = providers();
|
|
87
|
-
|
|
88
85
|
const context: SwapQueueContext = {
|
|
89
86
|
meta: {
|
|
90
87
|
blockchains: allBlockchains,
|
|
@@ -101,7 +98,6 @@ function QueueManager(props: PropsWithChildren<{ apiKey?: string }>) {
|
|
|
101
98
|
}
|
|
102
99
|
},
|
|
103
100
|
wallets,
|
|
104
|
-
providers: allProviders,
|
|
105
101
|
switchNetwork,
|
|
106
102
|
canSwitchNetworkTo,
|
|
107
103
|
state,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { PropTypes } from './NamespaceItem.types';
|
|
2
2
|
|
|
3
3
|
import { i18n } from '@lingui/core';
|
|
4
|
+
import { getSupportedChainsFromNamespace } from '@rango-dev/internal-blockchains';
|
|
4
5
|
import {
|
|
5
6
|
ChevronDownIcon,
|
|
6
7
|
ChevronUpIcon,
|
|
7
8
|
Divider,
|
|
8
9
|
Typography,
|
|
9
10
|
} from '@rango-dev/ui';
|
|
10
|
-
import { getSupportedChainsFromNamespace } from '@rango-dev/wallets-shared';
|
|
11
11
|
import React, { useEffect, useState } from 'react';
|
|
12
12
|
|
|
13
13
|
import { useAppStore } from '../../store/AppStore';
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import type { InstallWalletContentProps } from './SwapDetailsModal.types';
|
|
2
2
|
|
|
3
3
|
import { i18n } from '@lingui/core';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Button,
|
|
6
|
+
detectInstallLink,
|
|
7
|
+
Divider,
|
|
8
|
+
Image,
|
|
9
|
+
MessageBox,
|
|
10
|
+
WarningIcon,
|
|
11
|
+
} from '@rango-dev/ui';
|
|
5
12
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
6
|
-
import { detectInstallLink } from '@rango-dev/wallets-shared';
|
|
7
13
|
import React from 'react';
|
|
8
14
|
|
|
9
15
|
import {
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { DerivationPathTemplate } from './DerivationPath.helpers';
|
|
2
|
+
|
|
3
|
+
import { describe, expect, it } from 'vitest';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
CUSTOM_DERIVATION_PATH,
|
|
7
|
+
getDerivationPaths,
|
|
8
|
+
} from './DerivationPath.helpers';
|
|
9
|
+
|
|
10
|
+
const LEDGER: DerivationPathTemplate[] = [
|
|
11
|
+
{
|
|
12
|
+
id: 'metamask',
|
|
13
|
+
label: `Metamask (m/44'/60'/0'/0/index)`,
|
|
14
|
+
namespace: 'EVM',
|
|
15
|
+
generateDerivationPath: (index) => `44'/60'/0'/0/${index}`,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 'ledgerLive',
|
|
19
|
+
label: `LedgerLive (m/44'/60'/index'/0/0)`,
|
|
20
|
+
namespace: 'EVM',
|
|
21
|
+
generateDerivationPath: (index) => `44'/60'/${index}'/0/0`,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: 'legacy',
|
|
25
|
+
label: `Legacy (m/44'/60'/0'/index)`,
|
|
26
|
+
namespace: 'EVM',
|
|
27
|
+
generateDerivationPath: (index) => `44'/60'/0'/${index}`,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: `(m/44'/501'/index')`,
|
|
31
|
+
label: `(m/44'/501'/index')`,
|
|
32
|
+
namespace: 'Solana',
|
|
33
|
+
generateDerivationPath: (index) => `44'/501'/${index}'`,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: `(m/44'/501'/0'/index)`,
|
|
37
|
+
label: `(m/44'/501'/0'/index)`,
|
|
38
|
+
namespace: 'Solana',
|
|
39
|
+
generateDerivationPath: (index) => `44'/501'/0'/${index}`,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
const TREZOR_UTXO: DerivationPathTemplate[] = [
|
|
44
|
+
{
|
|
45
|
+
id: 'bitcoin-native-segwit',
|
|
46
|
+
label: `Native SegWit (m/84'/0'/index')`,
|
|
47
|
+
namespace: 'UTXO',
|
|
48
|
+
generateDerivationPath: (index) => `84'/0'/${index}'/0/0`,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'bitcoin-taproot',
|
|
52
|
+
label: `Taproot (m/86'/0'/index')`,
|
|
53
|
+
namespace: 'UTXO',
|
|
54
|
+
generateDerivationPath: (index) => `86'/0'/${index}'/0/0`,
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
describe('getDerivationPaths', () => {
|
|
59
|
+
it('returns only the templates of the selected namespace', () => {
|
|
60
|
+
expect(getDerivationPaths(LEDGER, 'EVM').map((path) => path.id)).toEqual([
|
|
61
|
+
'metamask',
|
|
62
|
+
'ledgerLive',
|
|
63
|
+
'legacy',
|
|
64
|
+
CUSTOM_DERIVATION_PATH.id,
|
|
65
|
+
]);
|
|
66
|
+
|
|
67
|
+
expect(getDerivationPaths(LEDGER, 'Solana').map((path) => path.id)).toEqual(
|
|
68
|
+
[
|
|
69
|
+
`(m/44'/501'/index')`,
|
|
70
|
+
`(m/44'/501'/0'/index)`,
|
|
71
|
+
CUSTOM_DERIVATION_PATH.id,
|
|
72
|
+
]
|
|
73
|
+
);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it('appends the custom template so a user can enter a full path', () => {
|
|
77
|
+
const paths = getDerivationPaths(TREZOR_UTXO, 'UTXO');
|
|
78
|
+
|
|
79
|
+
expect(paths.at(-1)).toBe(CUSTOM_DERIVATION_PATH);
|
|
80
|
+
expect(CUSTOM_DERIVATION_PATH.generateDerivationPath(`84'/0'/3'/0/0`)).toBe(
|
|
81
|
+
`84'/0'/3'/0/0`
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it('generates the path the wallet expects for the picked index', () => {
|
|
86
|
+
const evm = getDerivationPaths(LEDGER, 'EVM');
|
|
87
|
+
const utxo = getDerivationPaths(TREZOR_UTXO, 'UTXO');
|
|
88
|
+
|
|
89
|
+
expect(evm[0]?.generateDerivationPath('2')).toBe(`44'/60'/0'/0/2`);
|
|
90
|
+
expect(evm[1]?.generateDerivationPath('2')).toBe(`44'/60'/2'/0/0`);
|
|
91
|
+
expect(utxo[0]?.generateDerivationPath('2')).toBe(`84'/0'/2'/0/0`);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it('returns nothing when the provider declares no template for the namespace', () => {
|
|
95
|
+
expect(getDerivationPaths(LEDGER, 'UTXO')).toEqual([]);
|
|
96
|
+
expect(getDerivationPaths([], 'EVM')).toEqual([]);
|
|
97
|
+
});
|
|
98
|
+
});
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
+
import type { ProviderProperty } from '@hub3js/core/store';
|
|
1
2
|
import type { Namespace } from '@hub3js/namespaces';
|
|
2
|
-
import type { DerivationPath } from '@rango-dev/wallets-shared';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
export type DerivationPathTemplate = Extract<
|
|
5
|
+
ProviderProperty,
|
|
6
|
+
{ name: 'derivationPath' }
|
|
7
|
+
>['value']['data'][number];
|
|
5
8
|
|
|
6
|
-
export
|
|
9
|
+
export type DerivationPathOption = Omit<DerivationPathTemplate, 'namespace'>;
|
|
10
|
+
|
|
11
|
+
export const CUSTOM_DERIVATION_PATH: DerivationPathOption = {
|
|
7
12
|
id: 'custom',
|
|
8
13
|
label: 'Custom',
|
|
9
14
|
generateDerivationPath: (index: string) => index,
|
|
10
15
|
};
|
|
11
16
|
|
|
12
17
|
export function getDerivationPaths(
|
|
18
|
+
derivationPaths: DerivationPathTemplate[],
|
|
13
19
|
selectedNamespace?: Namespace
|
|
14
|
-
):
|
|
15
|
-
const selectedNamespaceDerivationPaths =
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
): DerivationPathOption[] {
|
|
21
|
+
const selectedNamespaceDerivationPaths = derivationPaths.filter(
|
|
22
|
+
(derivationPath) => derivationPath.namespace === selectedNamespace
|
|
23
|
+
);
|
|
18
24
|
|
|
19
|
-
|
|
25
|
+
return selectedNamespaceDerivationPaths.length
|
|
20
26
|
? [...selectedNamespaceDerivationPaths, CUSTOM_DERIVATION_PATH]
|
|
21
27
|
: [];
|
|
22
|
-
|
|
23
|
-
return derivationPaths;
|
|
24
28
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PropTypes } from './DerivationPath.types';
|
|
2
|
-
import type { DerivationPath } from '@rango-dev/wallets-shared';
|
|
3
2
|
|
|
4
3
|
import { i18n } from '@lingui/core';
|
|
5
4
|
import { Divider, Image, MessageBox, Select, TextField } from '@rango-dev/ui';
|
|
6
|
-
import
|
|
5
|
+
import { useWallets } from '@rango-dev/wallets-react';
|
|
6
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
CUSTOM_DERIVATION_PATH,
|
|
@@ -26,6 +26,8 @@ export function DerivationPath(props: PropTypes) {
|
|
|
26
26
|
providerType: type,
|
|
27
27
|
} = props.value;
|
|
28
28
|
|
|
29
|
+
const { getWalletInfo } = useWallets();
|
|
30
|
+
|
|
29
31
|
const [selectedDerivationPathId, setSelectedDerivationPathId] = useState<
|
|
30
32
|
string | null
|
|
31
33
|
>(null);
|
|
@@ -36,7 +38,14 @@ export function DerivationPath(props: PropTypes) {
|
|
|
36
38
|
const isCustomOptionSelected =
|
|
37
39
|
selectedDerivationPathId === CUSTOM_DERIVATION_PATH.id;
|
|
38
40
|
|
|
39
|
-
const derivationPaths =
|
|
41
|
+
const derivationPaths = useMemo(
|
|
42
|
+
() =>
|
|
43
|
+
getDerivationPaths(
|
|
44
|
+
getWalletInfo(type).needsDerivationPath?.data ?? [],
|
|
45
|
+
selectedNamespace
|
|
46
|
+
),
|
|
47
|
+
[type, selectedNamespace]
|
|
48
|
+
);
|
|
40
49
|
|
|
41
50
|
const handleDerivationPathItemClick = ({ value }: { value: string }) => {
|
|
42
51
|
const selectedDerivationPath = derivationPaths?.find(
|
|
@@ -75,10 +84,8 @@ export function DerivationPath(props: PropTypes) {
|
|
|
75
84
|
};
|
|
76
85
|
|
|
77
86
|
useEffect(() => {
|
|
78
|
-
setSelectedDerivationPathId(
|
|
79
|
-
|
|
80
|
-
);
|
|
81
|
-
}, [selectedNamespace]);
|
|
87
|
+
setSelectedDerivationPathId(derivationPaths[0]?.id || null);
|
|
88
|
+
}, [derivationPaths]);
|
|
82
89
|
|
|
83
90
|
return (
|
|
84
91
|
<>
|
|
@@ -2,6 +2,7 @@ import type { PropTypes } from './Namespaces.types';
|
|
|
2
2
|
import type { Namespace } from '@hub3js/namespaces';
|
|
3
3
|
|
|
4
4
|
import { i18n } from '@lingui/core';
|
|
5
|
+
import { getSupportedChainsFromNamespace } from '@rango-dev/internal-blockchains';
|
|
5
6
|
import {
|
|
6
7
|
Alert,
|
|
7
8
|
Button,
|
|
@@ -11,7 +12,6 @@ import {
|
|
|
11
12
|
RadioRoot,
|
|
12
13
|
WalletImageContainer,
|
|
13
14
|
} from '@rango-dev/ui';
|
|
14
|
-
import { getSupportedChainsFromNamespace } from '@rango-dev/wallets-shared';
|
|
15
15
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
16
16
|
|
|
17
17
|
import { useAppStore } from '../../store/AppStore';
|
|
@@ -8,8 +8,8 @@ import type { ProvidersOptions } from '../../utils/providers';
|
|
|
8
8
|
import type { LegacyEventHandler } from '@rango-dev/wallets-core/legacy';
|
|
9
9
|
import type { PropsWithChildren } from 'react';
|
|
10
10
|
|
|
11
|
+
import { WalletTypes } from '@rango-dev/provider-all';
|
|
11
12
|
import { Provider } from '@rango-dev/wallets-react';
|
|
12
|
-
import { WalletTypes } from '@rango-dev/wallets-shared';
|
|
13
13
|
import React, { createContext, useEffect, useMemo, useRef } from 'react';
|
|
14
14
|
|
|
15
15
|
import { useWalletProviders } from '../../hooks/useWalletProviders';
|
|
@@ -126,6 +126,9 @@ function Main(props: PropsWithChildren<PropTypes>) {
|
|
|
126
126
|
meta: blockchains,
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
|
+
[WalletTypes.LEDGER_WALLET]: {
|
|
130
|
+
provider: config.ledgerWallet,
|
|
131
|
+
},
|
|
129
132
|
},
|
|
130
133
|
}}>
|
|
131
134
|
{props.children}
|
|
@@ -6,6 +6,7 @@ import type { LastConnectedWallet } from '@rango-dev/queue-manager-rango-preset'
|
|
|
6
6
|
import type {
|
|
7
7
|
LegacyEventHandler as EventHandler,
|
|
8
8
|
LegacyEventHandler,
|
|
9
|
+
LegacyNetwork as Network,
|
|
9
10
|
} from '@rango-dev/wallets-core/legacy';
|
|
10
11
|
|
|
11
12
|
import {
|
|
@@ -13,7 +14,6 @@ import {
|
|
|
13
14
|
legacyReadAccountAddress as readAccountAddress,
|
|
14
15
|
} from '@rango-dev/wallets-core/legacy';
|
|
15
16
|
import { Events } from '@rango-dev/wallets-react';
|
|
16
|
-
import { type Network } from '@rango-dev/wallets-shared';
|
|
17
17
|
import { isEvmBlockchain } from 'rango-sdk';
|
|
18
18
|
|
|
19
19
|
import { useAppStore } from '../../store/AppStore';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
HandleConnectOptions,
|
|
3
|
+
NamespaceData,
|
|
4
|
+
Result,
|
|
5
|
+
} from './useStatefulConnect.types';
|
|
2
6
|
import type { WalletInfoWithExtra } from '../../types';
|
|
3
7
|
import type { Namespace } from '@hub3js/namespaces';
|
|
4
|
-
import type { NamespaceData } from '@rango-dev/wallets-shared';
|
|
5
8
|
|
|
6
9
|
import { WalletState } from '@rango-dev/ui';
|
|
7
10
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ExtendedModalWalletInfo } from '../../utils/wallets';
|
|
2
2
|
import type { Namespace } from '@hub3js/namespaces';
|
|
3
3
|
|
|
4
|
+
export interface NamespaceData {
|
|
5
|
+
namespace: Namespace;
|
|
6
|
+
derivationPath?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
export interface HandleConnectOptions {
|
|
5
10
|
// To have a switch between connect and disconnect when user is clicking on a button, this option can be helpful.
|
|
6
11
|
forceConnectToNamespaces?: Namespace[];
|
|
@@ -15,9 +20,7 @@ export interface NeedsNamespacesState {
|
|
|
15
20
|
|
|
16
21
|
export interface DetachedPayload {
|
|
17
22
|
targetWallet: ExtendedModalWalletInfo;
|
|
18
|
-
selectedNamespaces:
|
|
19
|
-
| { namespace: Namespace; derivationPath?: string }[]
|
|
20
|
-
| null;
|
|
23
|
+
selectedNamespaces: NamespaceData[] | null;
|
|
21
24
|
derivationPath?: string;
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { ExtendedModalWalletInfo } from '../utils/wallets';
|
|
2
2
|
import type { WalletInfo } from '@rango-dev/ui';
|
|
3
3
|
|
|
4
|
+
import { WalletTypes } from '@rango-dev/provider-all';
|
|
4
5
|
import { WalletState } from '@rango-dev/ui';
|
|
5
6
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
6
|
-
import { detectMobileScreens, WalletTypes } from '@rango-dev/wallets-shared';
|
|
7
7
|
import { useCallback, useEffect } from 'react';
|
|
8
8
|
|
|
9
9
|
import { useAppStore } from '../store/AppStore';
|
|
10
|
+
import { detectMobileScreens } from '../utils/common';
|
|
10
11
|
import { emitWalletDetected } from '../utils/events';
|
|
11
12
|
import { configWalletsToWalletName } from '../utils/providers';
|
|
12
13
|
import {
|
|
@@ -37,6 +38,12 @@ const NON_INJECTED_WALLET_TYPES = new Set<string>([
|
|
|
37
38
|
WalletTypes.DEFAULT,
|
|
38
39
|
]);
|
|
39
40
|
|
|
41
|
+
const DEFAULT_EVM_WALLETS = new Set<string>([
|
|
42
|
+
WalletTypes.DEFAULT,
|
|
43
|
+
WalletTypes.WALLET_CONNECT_2,
|
|
44
|
+
WalletTypes.LEDGER,
|
|
45
|
+
]);
|
|
46
|
+
|
|
40
47
|
interface Params {
|
|
41
48
|
chain?: string;
|
|
42
49
|
}
|
|
@@ -131,11 +138,7 @@ export function useWalletList(params?: Params): API {
|
|
|
131
138
|
const isEvmWalletInstalledExceptDefault = wallets.filter(
|
|
132
139
|
(wallet) =>
|
|
133
140
|
wallet.state != WalletState.NOT_INSTALLED &&
|
|
134
|
-
!
|
|
135
|
-
WalletTypes.DEFAULT,
|
|
136
|
-
WalletTypes.WALLET_CONNECT_2,
|
|
137
|
-
WalletTypes.LEDGER,
|
|
138
|
-
].includes(wallet.type as WalletTypes) &&
|
|
141
|
+
!DEFAULT_EVM_WALLETS.has(wallet.type) &&
|
|
139
142
|
getWalletInfo(wallet.type).supportedChains.filter(
|
|
140
143
|
(blockchain) => blockchain.type == 'EVM'
|
|
141
144
|
).length > 0
|
package/src/index.ts
CHANGED
|
@@ -38,14 +38,13 @@ import type {
|
|
|
38
38
|
import type {
|
|
39
39
|
LegacyEventHandler as HandleWalletsUpdate,
|
|
40
40
|
LegacyProviderInterface as ProviderInterface,
|
|
41
|
+
LegacyWalletInfo as WalletInfo,
|
|
42
|
+
LegacyState as WalletState,
|
|
43
|
+
LegacyWalletType as WalletType,
|
|
41
44
|
} from '@rango-dev/wallets-core/legacy';
|
|
42
|
-
import type {
|
|
43
|
-
WalletInfo,
|
|
44
|
-
WalletState,
|
|
45
|
-
WalletType,
|
|
46
|
-
} from '@rango-dev/wallets-shared';
|
|
47
45
|
import type { PendingSwap, PendingSwapStep } from 'rango-types';
|
|
48
46
|
|
|
47
|
+
import { Networks } from '@rango-dev/internal-blockchains';
|
|
49
48
|
import {
|
|
50
49
|
EventSeverity,
|
|
51
50
|
RouteEventType,
|
|
@@ -55,7 +54,6 @@ import {
|
|
|
55
54
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
56
55
|
import { legacyReadAccountAddress as readAccountAddress } from '@rango-dev/wallets-core/legacy';
|
|
57
56
|
import { useWallets, Events as WalletEvents } from '@rango-dev/wallets-react';
|
|
58
|
-
import { Networks, WalletTypes } from '@rango-dev/wallets-shared';
|
|
59
57
|
import { PendingSwapNetworkStatus } from 'rango-types';
|
|
60
58
|
|
|
61
59
|
import {
|
|
@@ -186,7 +184,6 @@ export {
|
|
|
186
184
|
pickProviderVersionWithFallbackToLegacy,
|
|
187
185
|
Networks,
|
|
188
186
|
WalletEvents,
|
|
189
|
-
WalletTypes,
|
|
190
187
|
PendingSwapNetworkStatus,
|
|
191
188
|
EventSeverity,
|
|
192
189
|
};
|