-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create a custom modal to handle wallet connect (#67)
* feat: create a custom modal to handle wallet connect * fix: types * chore: remove hardhat --------- Co-authored-by: Darren Kelly <[email protected]>
- Loading branch information
1 parent
eb64a9f
commit b457675
Showing
24 changed files
with
556 additions
and
341 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
// eslint-disable-next-line eslint-comments/disable-enable-pair | ||
/* eslint-disable no-undef */ | ||
import { configureThorModal } from './dist'; | ||
|
||
const walletConnectOptions = { | ||
projectId: 'a0b855ceaf109dbc8426479a4c3d38d8', | ||
metadata: { | ||
name: 'Sample VeChain dApp', | ||
description: 'A sample VeChain dApp', | ||
url: window.location.origin, | ||
icons: [`${window.location.origin}/images/logo/my-dapp.png`], | ||
}, | ||
}; | ||
|
||
const vechainWalletKitOptions = { | ||
node: 'https://testnet.vechain.org/', | ||
network: 'test', | ||
walletConnectOptions, | ||
}; | ||
|
||
configureThorModal(vechainWalletKitOptions); |
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
17 changes: 17 additions & 0 deletions
17
packages/vanilla-wallet-kit/src/assets/icons/chevron-left.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,17 @@ | ||
import { html, svg } from 'lit'; | ||
|
||
export const ChevronLeftSvg = svg` | ||
<path | ||
d="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z" /> | ||
`; | ||
|
||
export const LightChevronLeftSvg = html` | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#777777"> | ||
${ChevronLeftSvg} | ||
</svg> | ||
`; | ||
export const DarkChevronLeftSvg = html` | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#999999"> | ||
${ChevronLeftSvg} | ||
</svg> | ||
`; |
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,17 @@ | ||
import { html, svg } from 'lit'; | ||
|
||
export const CopySvg = svg` | ||
<path | ||
d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" /> | ||
`; | ||
|
||
export const LightCopySvg = html` | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#777777"> | ||
${CopySvg} | ||
</svg> | ||
`; | ||
export const DarkCopySvg = html` | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#999999"> | ||
${CopySvg} | ||
</svg> | ||
`; |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
export * from './close'; | ||
export * from './chevron-left'; | ||
export * from './copy'; |
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
Oops, something went wrong.