-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: revived @taquiot/wallet-connect-2 package * docs: adding website doc with live code example (modal isn't working yet) * feat: has qrcode modal working with @walletconnect/legacy-modal * feat: fill-in wc2 logic of sing and getPK * test: added unit test for sign and getPK * chore: dependencies update to fix vulnerabilities * feat: testdapp with walletconnect option * feat(wallet connect): sign payload using wc in test-dapp Added support to sign payload in the test-dapp using wallet connect, fix getPk and sign in the wallet connect package * Updated docs * fix: make verifySignatureWithTaquito walletconnect compatible * fix: resolve not subscribeToEvent ACTIVE_ACCOUNT_SET error in console * fix: added registryUrl to fix console 404 error * chore: update dependencies * refactor: rename from walletconnect2 to walletconnect * chore: updated sass to 1.80.1 * docs: added (BETA) to walletconnect package --------- Co-authored-by: Roxane Letourneau <roxane@ecadlabs.com> Co-authored-by: Roxane Létourneau <65877347+roxaneletourneau@users.noreply.github.com>
- Loading branch information
1 parent
d5d6bfd
commit 1188bbc
Showing
35 changed files
with
6,308 additions
and
948 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<script> | ||
import { createModalEventDispatcher } from "svelte-modals"; | ||
export let isOpen; | ||
export let title; | ||
export let options; | ||
const dispatch = createModalEventDispatcher(); | ||
</script> | ||
|
||
<style> | ||
.modal { | ||
position: fixed; | ||
top: 0; | ||
bottom: 0; | ||
right: 0; | ||
left: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: black; | ||
/* allow click-through to backdrop */ | ||
pointer-events: none; | ||
} | ||
.contents { | ||
min-width: 240px; | ||
border-radius: 6px; | ||
padding: 16px; | ||
background: white; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
pointer-events: auto; | ||
} | ||
.button { | ||
color: black; | ||
border-color: black; | ||
} | ||
h2 { | ||
text-align: center; | ||
font-size: 24px; | ||
} | ||
p { | ||
text-align: center; | ||
margin-top: 16px; | ||
} | ||
.actions { | ||
margin-top: 32px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
gap: 8px; | ||
} | ||
</style> | ||
|
||
{#if isOpen} | ||
<div role="dialog" class="modal"> | ||
<div class="contents"> | ||
<h2>{title}</h2> | ||
<div class="actions"> | ||
{#each options as option} | ||
<button class="button" on:click={() => dispatch("select", option)}> | ||
{option.peerMetadata.logo ?? ""} | ||
{option.peerMetadata.name} | ||
</button> | ||
{/each} | ||
<p>or</p> | ||
<button class="button" on:click={() => dispatch("select", "new_pairing")} | ||
>New Pairing</button | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
{/if} |
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.