Skip to content

Commit

Permalink
Merge pull request #49 from DanGould/nudge
Browse files Browse the repository at this point in the history
Change list to list nudge-able wallets instead of those that don't support
  • Loading branch information
DanGould authored Jan 14, 2024
2 parents 2f7f39f + 6739675 commit 17c89d4
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 101 deletions.
4 changes: 3 additions & 1 deletion src/components/Icon/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import arrow from './svg/arrow.svg?raw';
import check from './svg/check.svg?raw';
import plus from './svg/plus.svg?raw';
import minus from './svg/minus.svg?raw';
import megaphone from './svg/megaphone.svg?raw';

const icons = {
moon,
Expand All @@ -24,7 +25,8 @@ const icons = {
arrow,
check,
plus,
minus
minus,
megaphone
};

export type IconName = keyof typeof icons;
Expand Down
3 changes: 3 additions & 0 deletions src/components/Icon/svg/megaphone.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/LinkTag.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a
{href}
class={`${
bad ? 'bg-red-100' : 'bg-green-100'
bad ? 'bg-orange-100 cursor-text' : 'bg-green-100'
} no-underline rounded-xl px-3 p-2 hover:scale-105 transition-all duration-200 ease-in-out`}
target="_blank"
rel="noreferrer noopener"
Expand Down
2 changes: 1 addition & 1 deletion src/features/WalletCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="flex-1">
<div
class={`flex gap-4 p-4 items-center rounded-3xl flex-wrap ${
bad ? 'bg-red-300' : 'bg-green-400'
bad ? 'bg-orange-300' : 'bg-green-400'
}`}
>
{#each wallets as { name, href }}
Expand Down
118 changes: 23 additions & 95 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
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',
Expand All @@ -25,18 +13,6 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
sending: true,
receiving: true
},
{
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/',
Expand All @@ -51,7 +27,7 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
},
{
name: 'Blixt Wallet',
href: 'https://blixtwallet.github.io/',
href: 'https://github.com/hsjoberg/blixt-wallet/issues/1262',
sending: false,
receiving: false
},
Expand All @@ -68,20 +44,8 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
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/',
name: 'Boltz',
href: 'https://github.com/BoltzExchange/boltz-backend/issues/449',
sending: false,
receiving: false
},
Expand All @@ -92,44 +56,38 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
receiving: true
},
{
name: 'Casa',
href: 'https://casa.io/',
sending: false,
receiving: false
},
{
name: 'Core Lightning',
href: 'https://corelightning.org/',
name: 'Bull Bitcoin',
href: 'https://github.com/SatoshiPortal/bullbitcoin-mobile/issues',
sending: false,
receiving: false
},
{
name: 'Coinomi',
href: 'https://www.coinomi.com/en/',
name: 'Casa',
href: 'https://casa.io/',
sending: false,
receiving: false
},
{
name: 'Eclair',
href: 'https://electrum.org/',
name: 'Core Lightning',
href: 'https://github.com/payjoin/nolooking/issues/67',
sending: false,
receiving: false
},
{
name: 'Electrum',
href: 'https://electrum.org/',
href: 'https://github.com/spesmilo/electrum/issues/6585',
sending: false,
receiving: false
},
{
name: 'Envoy',
href: 'https://foundationdevices.com/envoy/',
href: 'https://github.com/Foundation-Devices/envoy/pull/84',
sending: false,
receiving: false
},
{
name: 'Fedimint',
href: 'https://fedimint.org/',
href: 'https://github.com/fedimint/fedimint/discussions/1764',
sending: false,
receiving: false
},
Expand All @@ -141,25 +99,19 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
},
{
name: 'Fully Noded',
href: 'https://fullynoded.app/',
href: 'https://github.com/Fonta1n3/FullyNoded/issues/126',
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/',
href: 'https://github.com/orgs/BlockchainCommons/discussions/49',
sending: false,
receiving: false
},
{
name: 'JAM',
href: 'https://jamapp.org/',
href: 'https://github.com/joinmarket-webui/jam/issues/406',
sending: false,
receiving: false
},
Expand All @@ -171,25 +123,19 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
},
{
name: 'Liana',
href: 'https://wizardsardine.com/liana/',
href: 'https://github.com/wizardsardine/liana/issues/534',
sending: false,
receiving: false
},
{
name: 'LND',
href: 'https://docs.lightning.engineering/lightning-network-tools/lnd',
sending: false,
receiving: false
name: 'LND (nolooking)',
href: 'https://github.com/payjoin/nolooking',
sending: true,
receiving: true
},
{
name: 'Mutiny Wallet',
href: 'https://www.mutinywallet.com/',
sending: false,
receiving: false
},
{
name: 'Mycelium',
href: 'https://wallet.mycelium.com/',
href: 'https://github.com/MutinyWallet/mutiny-node/issues/194',
sending: false,
receiving: false
},
Expand All @@ -201,13 +147,7 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
},
{
name: 'Phoenix',
href: 'https://phoenix.acinq.co/',
sending: false,
receiving: false
},
{
name: 'Samourai Wallet',
href: 'https://samouraiwallet.com/',
href: 'https://github.com/ACINQ/phoenix/issues/161',
sending: false,
receiving: false
},
Expand All @@ -219,7 +159,7 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
},
{
name: 'Stack Wallet',
href: 'https://stackwallet.com/',
href: 'https://github.com/cypherstack/stack_wallet/issues/445',
sending: false,
receiving: false
},
Expand All @@ -229,18 +169,6 @@ export const WALLET_ADOPTION: AcceptedWallet[] = [
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://docs.wasabiwallet.io/using-wasabi/PayJoin.html',
Expand Down
6 changes: 3 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ If there is a wallet you’d like to see adopt payjoin or you are a wallet devel
</div>
<div class="flex sm:flex-row flex-col gap-8 w-3/4">
<div class="flex flex-col gap-2 w-full items-center">
<H3 class="flex gap-2 items-center sm:flex-row flex-col"
<H3 class="flex gap-4 items-center sm:flex-row flex-col"
><Icon name="check" class="text-green-400 w-8 sm:w-4" />Supports Payjoin</H3
>
<WalletCard wallets={privateWallets} />
</div>
<div class="flex flex-col gap-2 w-full items-center">
<H3 class="flex flex-col sm:flex-row gap-2 items-center"
><Icon name="close" class="text-red-300 w-8 sm:w-4" />Needs a nudge</H3
<H3 class="flex flex-col sm:flex-row gap-4 items-center"
><Icon name="megaphone" class="text-orange-300 w-8 sm:w-4" />Needs a nudge</H3
>
<WalletCard bad wallets={surveillableWallets} />
</div>
Expand Down

0 comments on commit 17c89d4

Please sign in to comment.