-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: restructure shared and react to use /core package
- Loading branch information
1 parent
a023ebc
commit afacbc4
Showing
27 changed files
with
272 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "@rango-dev/wallets-core/legacy", | ||
"type": "module", | ||
"main": "../dist/legacy/mod.js", | ||
"module": "../dist/legacy/mod.js", | ||
"types": "../dist/legacy/mod.d.ts", | ||
"sideEffects": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* All the exported types/values from legacy should be prefixed with `Legacy` | ||
* since they will be removed soon and isn't part of the main interface for this package. | ||
*/ | ||
export type { | ||
EventHandler as LegacyEventHandler, | ||
State as LegacyState, | ||
Options as LegacyOptions, | ||
} from './wallet.js'; | ||
|
||
export type { | ||
Connect as LegacyConnect, | ||
Disconnect as LegacyDisconnect, | ||
Subscribe as LegacySubscribe, | ||
CanEagerConnect as LegacyCanEagerConnect, | ||
SwitchNetwork as LegacySwitchNetwork, | ||
Suggest as LegacySuggest, | ||
CanSwitchNetwork as LegacyCanSwitchNetwork, | ||
NamespaceData as LegacyNamespaceData, | ||
ProviderInterface as LegacyProviderInterface, | ||
Network as LegacyNetwork, | ||
WalletType as LegacyWalletType, | ||
InstallObjects as LegacyInstallObjects, | ||
WalletInfo as LegacyWalletInfo, | ||
ConnectResult as LegacyConnectResult, | ||
} from './types.js'; | ||
|
||
export { | ||
Events as LegacyEvents, | ||
Namespace as LegacyNamespace, | ||
Networks as LegacyNetworks, | ||
} from './types.js'; | ||
|
||
export { Persistor } from './persistor.js'; | ||
export { | ||
readAccountAddress as legacyReadAccountAddress, | ||
getBlockChainNameFromId as legacyGetBlockChainNameFromId, | ||
} from './helpers.js'; | ||
export { default as LegacyWallet } from './wallet.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// This file will be updated to export Hub methods and types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.