From 09686b1745dcd3fe39e361221a5c23278804f99d Mon Sep 17 00:00:00 2001 From: Brandon Lucas <38222767+thebrandonlucas@users.noreply.github.com> Date: Wed, 1 Nov 2023 23:10:25 -0400 Subject: [PATCH 1/3] feat: scaffold wallet cards --- src/components/LinkTag.svelte | 16 ++++++++++++ src/features/WalletCard.svelte | 13 +++++++++ src/lib/constants.ts | 48 ++++++++++++++++++++++++++++++++-- src/lib/types.ts | 6 +++++ src/routes/+page.svelte | 34 +++++++++++++++++------- 5 files changed, 105 insertions(+), 12 deletions(-) create mode 100644 src/components/LinkTag.svelte create mode 100644 src/features/WalletCard.svelte diff --git a/src/components/LinkTag.svelte b/src/components/LinkTag.svelte new file mode 100644 index 0000000..c4b4273 --- /dev/null +++ b/src/components/LinkTag.svelte @@ -0,0 +1,16 @@ + + + + {text} + diff --git a/src/features/WalletCard.svelte b/src/features/WalletCard.svelte new file mode 100644 index 0000000..244d420 --- /dev/null +++ b/src/features/WalletCard.svelte @@ -0,0 +1,13 @@ + + +
+ {#each wallets as { name, href }} + + {/each} +
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index e75ad71..76b0fbc 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -1,211 +1,255 @@ -export const WALLET_ADOPTION = [ +import type { AcceptedWallet } from './types'; + +export const WALLET_ADOPTION: AcceptedWallet[] = [ { name: 'Armory', + href: 'https://www.bitcoinarmory.com/', sending: false, receiving: false }, { name: 'bcoin', + href: 'https://bcoin.io/', sending: false, receiving: false }, { name: 'BDK-CLI', + href: 'https://github.com/bitcoindevkit/bdk-cli/pull/156', sending: false, receiving: false }, { name: 'Bitcoin Core', + href: 'https://bitcoin.org/en/bitcoin-core/', sending: false, receiving: false }, { name: 'Bitcoin Knots', + href: 'https://bitcoinknots.org/', sending: false, receiving: false }, { name: 'Bitcoin Wallet for Android', + href: 'https://play.google.com/store/apps/details?id=de.schildbach.wallet', sending: false, receiving: false }, { name: 'BitMask', + href: 'https://segwit.bitmask.app/', sending: true, receiving: false }, { name: 'Blink (Bitcoin Beach Wallet)', + href: 'https://www.blink.sv/', sending: false, receiving: false }, { name: 'Blixt Wallet', + href: 'https://blixtwallet.github.io/', sending: false, receiving: false }, { name: 'Blockstream Green', + href: 'https://blockstream.com/green/', sending: false, receiving: false }, { name: 'BlueWallet', + href: 'https://bluewallet.io/', sending: true, receiving: false }, { name: 'Brainbow', + href: 'https://github.com/Bitcoin-Brainbow/Brainbow', sending: false, receiving: false }, { name: 'Breadwallet', + href: 'https://play.google.com/store/apps/details?id=com.breadwallet', sending: false, receiving: false }, { name: 'BTC.com', + href: 'https://btc.com/', sending: false, receiving: false }, { name: 'BTCPay Server', + href: 'https://btcpayserver.org/', sending: true, receiving: true }, { name: 'Casa', + href: 'https://casa.io/', sending: false, receiving: false }, { - name: 'CLN', + name: 'Core Lightning', + href: 'https://corelightning.org/', sending: false, receiving: false }, { name: 'Coinomi', + href: 'https://www.coinomi.com/en/', sending: false, receiving: false }, { name: 'Eclair', + href: 'https://electrum.org/', sending: false, receiving: false }, { name: 'Electrum', + href: 'https://electrum.org/', sending: false, receiving: false }, { name: 'Envoy', + href: 'https://foundationdevices.com/envoy/', sending: false, receiving: false }, { name: 'Fedimint', + href: 'https://fedimint.org/', sending: false, receiving: false }, { name: 'FireBolt', + href: 'https://github.com/AreaLayer/FireBolt', sending: false, receiving: false }, { name: 'Fully Noded', + href: 'https://fullynoded.app/', sending: false, receiving: false }, { name: 'Gordian Wallet', + href: 'https://github.com/BlockchainCommons/GordianWallet-iOS', sending: false, receiving: false }, { name: 'Guarda Wallet', + href: 'https://guarda.com/', sending: false, receiving: false }, { name: 'JAM', + href: 'https://jamapp.org/', sending: false, receiving: false }, { name: 'JoinMarket', + href: 'https://joinmarket.net/', sending: true, receiving: true }, { name: 'Liana', + href: 'https://wizardsardine.com/liana/', sending: false, receiving: false }, { name: 'LND', + href: 'https://docs.lightning.engineering/lightning-network-tools/lnd', sending: false, receiving: false }, { name: 'Mutiny Wallet', + href: 'https://www.mutinywallet.com/', sending: false, receiving: false }, { name: 'Mycelium', + href: 'https://wallet.mycelium.com/', sending: false, receiving: false }, { name: 'Nunchuk', + href: 'https://nunchuk.io/', sending: false, receiving: false }, { name: 'Phoenix', + href: 'https://phoenix.acinq.co/', sending: false, receiving: false }, { name: 'Samourai Wallet', + href: 'https://samouraiwallet.com/', sending: false, receiving: false }, { name: 'Sparrow Wallet', + href: 'https://www.sparrowwallet.com/', sending: true, receiving: false }, { name: 'Stack Wallet', + href: 'https://stackwallet.com/', sending: false, receiving: false }, { name: 'Trezor Suite', + href: 'https://trezor.io/trezor-suite', sending: false, receiving: false }, { name: 'Trust Wallet', + href: 'https://trustwallet.com/', sending: false, receiving: false }, { name: 'Vortex', + href: 'https://lnvortex.com/', sending: false, receiving: false }, { name: 'Wasabi Wallet', + href: 'https://wasabiwallet.app/', sending: true, receiving: false }, { name: 'Zeus', + href: 'https://zeusln.app/', sending: false, receiving: false } diff --git a/src/lib/types.ts b/src/lib/types.ts index e69de29..36d41e6 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -0,0 +1,6 @@ +export type AcceptedWallet = { + name: string; + href: string; + sending: boolean; + receiving: boolean; +}; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f77d34f..c16c82d 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,4 +1,5 @@
@@ -19,12 +23,15 @@ how you use it.
- Help improve Bitcoin by asking your wallet to implement payjoin!
+ icon="externalLink" + > + asking your wallet to implement payjoin! + +
@@ -275,11 +282,18 @@

Supporting Wallets

-

A list of wallets that support sending or receiving payjoin. We need your help growing this - list!

- +
+

A list of wallets that support sending or receiving payjoin. We need your help growing this + list!

+
+ + +
+ + +

Future Plans

From 1a11a3298aff8f19a36f8376bc53765bd7331a26 Mon Sep 17 00:00:00 2001 From: Brandon Lucas <38222767+thebrandonlucas@users.noreply.github.com> Date: Wed, 1 Nov 2023 23:22:53 -0400 Subject: [PATCH 2/3] feat: wallet adoption cards --- src/features/WalletCard.svelte | 12 ++++++++---- src/routes/+page.svelte | 4 +--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/features/WalletCard.svelte b/src/features/WalletCard.svelte index 244d420..48d953e 100644 --- a/src/features/WalletCard.svelte +++ b/src/features/WalletCard.svelte @@ -6,8 +6,12 @@ export let wallets: AcceptedWallet[] = []; -
- {#each wallets as { name, href }} - - {/each} +
+
+ {#each wallets as { name, href }} + + {/each} +
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c16c82d..d1157fb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -288,9 +288,7 @@ list!
- - -
+
From 98e9e479d1070d906af790d6ac547c7b9d81a7aa Mon Sep 17 00:00:00 2001 From: Brandon Lucas <38222767+thebrandonlucas@users.noreply.github.com> Date: Wed, 1 Nov 2023 23:23:58 -0400 Subject: [PATCH 3/3] har har --- src/routes/+page.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index d1157fb..649e814 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -11,7 +11,9 @@ import WalletCard from '../features/WalletCard.svelte'; const privateWallets = WALLET_ADOPTION.filter((wallet) => wallet.sending || wallet.sending); - const surveilledWallets = WALLET_ADOPTION.filter((wallet) => !wallet.sending && !wallet.sending); + const surveillableWallets = WALLET_ADOPTION.filter( + (wallet) => !wallet.sending && !wallet.sending + );
@@ -290,7 +292,7 @@
- +