-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67efdd3
commit c5cda6b
Showing
4 changed files
with
35 additions
and
6 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
29 changes: 29 additions & 0 deletions
29
packages/thirdweb/src/react/native/wallets/defaultWallets.ts
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,29 @@ | ||
import type { Chain } from "../../../chains/types.js"; | ||
import { | ||
COINBASE, | ||
METAMASK, | ||
RAINBOW, | ||
ZERION, | ||
} from "../../../wallets/constants.js"; | ||
import type { Wallet } from "../../../wallets/interfaces/wallet.js"; | ||
import { createWallet } from "../../../wallets/native/create-wallet.js"; | ||
import type { AppMetadata } from "../../../wallets/types.js"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export function getDefaultWallets(options?: { | ||
appMetadata?: AppMetadata; | ||
chains?: Chain[]; | ||
}): Wallet[] { | ||
return [ | ||
createWallet("inApp"), | ||
createWallet(METAMASK), | ||
createWallet(COINBASE, { | ||
appMetadata: options?.appMetadata, | ||
chains: options?.chains, | ||
}), | ||
createWallet(RAINBOW), | ||
createWallet(ZERION), | ||
]; | ||
} |
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