Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APIS-545] Add BTC provider #419

Merged
merged 4 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Popup/Routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ import Dashboard from '~/Popup/pages/Dashboard';
import Home from '~/Popup/pages/Home';
import PopupAptosSignMessage from '~/Popup/pages/Popup/Aptos/SignMessage';
import PopupAptosTransaction from '~/Popup/pages/Popup/Aptos/Transaction';
import PopupBitcoinSend from '~/Popup/pages/Popup/Bitcoin/Send';
import PopupBitcoinSignPsbt from '~/Popup/pages/Popup/Bitcoin/SignPsbt';
// import PopupBitcoinSignMessage from '~/Popup/pages/Popup/Bitcoin/SignMessage';
import PopupBitcoinSwitchNetwork from '~/Popup/pages/Popup/Bitcoin/SwitchNetwork';
import PopupCosmosAddChain from '~/Popup/pages/Popup/Cosmos/AddChain';
import PopupCosmosAddNFTs from '~/Popup/pages/Popup/Cosmos/AddNFTs';
import PopupCosmosAddTokens from '~/Popup/pages/Popup/Cosmos/AddTokens';
Expand Down Expand Up @@ -172,6 +176,11 @@ export default function Routes() {
<Route path={PATH.POPUP__SUI__TRANSACTION} element={<PopupSuiTransaction />} />
<Route path={PATH.POPUP__SUI__SIGN_MESSAGE} element={<PopupSuiSignMessage />} />

<Route path={PATH.POPUP__BITCOIN__SWITCH_NETWORK} element={<PopupBitcoinSwitchNetwork />} />
<Route path={PATH.POPUP__BITCOIN__SEND_BITCOIN} element={<PopupBitcoinSend />} />
<Route path={PATH.POPUP__BITCOIN__SIGN_PSBT} element={<PopupBitcoinSignPsbt />} />
{/* <Route path={PATH.POPUP__BITCOIN__SIGN_MESSAGE} element={<PopupBitcoinSignMessage />} /> */}

<Route path={PATH.POPUP__TX_RECEIPT} element={<PopupTxReceipt />}>
<Route path=":txhash" element={<PopupTxReceipt />} />
<Route path=":txhash/:chainId" element={<PopupTxReceipt />} />
Expand Down
2 changes: 2 additions & 0 deletions src/Popup/background/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { APTOS_NETWORKS, ETHEREUM_NETWORKS, SUI_NETWORKS } from '~/constants/chain';
import { APTOS } from '~/constants/chain/aptos/aptos';
import { BITCOIN } from '~/constants/chain/bitcoin/bitcoin';
import { SIGNET } from '~/constants/chain/bitcoin/signet';
import { COSMOS } from '~/constants/chain/cosmos/cosmos';
import { ETHEREUM } from '~/constants/chain/ethereum/ethereum';
Expand Down Expand Up @@ -135,6 +136,7 @@ function background() {
await setStorage('selectedEthereumNetworkId', ETHEREUM_NETWORKS[0].id);
await setStorage('selectedAptosNetworkId', APTOS_NETWORKS[0].id);
await setStorage('selectedSuiNetworkId', SUI_NETWORKS[0].id);
await setStorage('selectedBitcoinChainId', BITCOIN.id);

await setStorage('address', {});

Expand Down
Loading