-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #424 from commons-stack/feat/support_multiple_wallets
Feat/support multiple wallets
- Loading branch information
Showing
185 changed files
with
2,210 additions
and
937 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+38.5 KB
.yarn/cache/@json-rpc-tools-provider-npm-1.7.6-cc129beab1-c60d73511d.zip
Binary file not shown.
Binary file added
BIN
+30.9 KB
.yarn/cache/@json-rpc-tools-types-npm-1.7.6-1c36bdb16d-f23ec7d79a.zip
Binary file not shown.
Binary file added
BIN
+31.9 KB
.yarn/cache/@json-rpc-tools-utils-npm-1.7.6-3168f282f4-32cac2e8cb.zip
Binary file not shown.
Binary file added
BIN
+4.99 KB
.yarn/cache/@metamask-safe-event-emitter-npm-2.0.0-0f6c91f887-8b717ac5d5.zip
Binary file not shown.
Binary file added
BIN
+16.9 KB
.yarn/cache/@pedrouid-environment-npm-1.0.1-3a1b030297-fd88340ad7.zip
Binary file not shown.
Binary file added
BIN
+168 KB
.yarn/cache/@rainbow-me-rainbowkit-npm-0.2.0-1103da41b3-049a12b204.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.66 KB
.yarn/cache/@types-use-sync-external-store-npm-0.0.3-875a91a914-161ddb8eec.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.6 KB
.yarn/cache/@vanilla-extract-dynamic-npm-2.0.2-b974034f8e-c6f22606bc.zip
Binary file not shown.
Binary file added
BIN
+14.4 KB
.yarn/cache/@vanilla-extract-private-npm-1.0.3-27ba5cf703-866a71ba68.zip
Binary file not shown.
Binary file added
BIN
+29.3 KB
.yarn/cache/@vanilla-extract-sprinkles-npm-1.4.1-60a1bc80c6-e72407ca6a.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+47 KB
.yarn/cache/@walletconnect-browser-utils-npm-1.7.8-b7419a468f-76d06a45a1.zip
Binary file not shown.
Binary file added
BIN
+58.8 KB
.yarn/cache/@walletconnect-client-npm-1.7.8-544a4e353d-44e39ab1a0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+32.6 KB
.yarn/cache/@walletconnect-encoding-npm-1.0.1-85f0b336bc-964a9e0884.zip
Binary file not shown.
Binary file added
BIN
+22.3 KB
.yarn/cache/@walletconnect-environment-npm-1.0.0-bc6b78dc54-ba553bbaaf.zip
Binary file not shown.
Binary file added
BIN
+106 KB
.yarn/cache/@walletconnect-ethereum-provider-npm-1.7.8-c338133702-f92f826c55.zip
Binary file not shown.
Binary file added
BIN
+63.6 KB
.yarn/cache/@walletconnect-iso-crypto-npm-1.7.8-3b86ce86ca-f2ee34d484.zip
Binary file not shown.
Binary file added
BIN
+45.5 KB
.yarn/cache/@walletconnect-jsonrpc-http-connection-npm-1.0.0-5c029846a2-bdc55212b3.zip
Binary file not shown.
Binary file added
BIN
+42 KB
.yarn/cache/@walletconnect-jsonrpc-provider-npm-1.0.3-24340b3cf6-0ff900482a.zip
Binary file not shown.
Binary file added
BIN
+40.9 KB
.yarn/cache/@walletconnect-jsonrpc-types-npm-1.0.0-a5a7069baa-6f38c5df6b.zip
Binary file not shown.
Binary file added
BIN
+61.7 KB
.yarn/cache/@walletconnect-jsonrpc-utils-npm-1.0.0-557b41797b-d760736a38.zip
Binary file not shown.
Binary file added
BIN
+5.6 KB
.yarn/cache/@walletconnect-mobile-registry-npm-1.4.0-77ad61b21b-06f18842e6.zip
Binary file not shown.
Binary file added
BIN
+90.4 KB
.yarn/cache/@walletconnect-qrcode-modal-npm-1.7.8-e859735f2b-dc1c33bb24.zip
Binary file not shown.
Binary file added
BIN
+31.2 KB
.yarn/cache/@walletconnect-randombytes-npm-1.0.2-e9bdd0234c-bd76b68238.zip
Binary file not shown.
Binary file added
BIN
+15.8 KB
.yarn/cache/@walletconnect-safe-json-npm-1.0.0-76114111c6-a8ee161cad.zip
Binary file not shown.
Binary file added
BIN
+95.9 KB
.yarn/cache/@walletconnect-signer-connection-npm-1.7.8-759fc863ae-e4aa8d022d.zip
Binary file not shown.
Binary file added
BIN
+67.7 KB
.yarn/cache/@walletconnect-socket-transport-npm-1.7.8-4f2065096f-a14f72b7cd.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+17 KB
.yarn/cache/@walletconnect-window-getters-npm-1.0.0-e14d14a8e5-192af7acb2.zip
Binary file not shown.
Binary file added
BIN
+19.4 KB
.yarn/cache/@walletconnect-window-metadata-npm-1.0.0-0dc17807e6-eec506ff6d.zip
Binary file not shown.
Binary file removed
BIN
-19.6 KB
.yarn/cache/@web3-react-abstract-connector-npm-6.0.7-733a51ba9e-fa8b0ea358.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-46.9 KB
.yarn/cache/@web3-react-injected-connector-npm-6.0.7-5cb516283f-867a634a12.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.61 KB
.yarn/cache/available-typed-arrays-npm-1.0.5-88f321e4d3-20eb47b3ce.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+18 KB
.yarn/cache/eth-json-rpc-middleware-npm-6.0.0-bf8eed1a10-d4ef8c6ba8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.85 KB
.yarn/cache/is-fullwidth-code-point-npm-2.0.0-507f56ec71-eef9c6e15f.zip
Binary file not shown.
Binary file added
BIN
+12.6 KB
.yarn/cache/is-generator-function-npm-1.0.10-1d0f3809ef-d54644e7db.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.55 KB
.yarn/cache/json-stable-stringify-npm-1.0.1-65df019fbd-65d6cbf0fc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+14.5 KB
.yarn/cache/keyvaluestorage-interface-npm-1.0.0-d6fc8e29c6-e20530e71b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+15.2 KB
.yarn/cache/react-remove-scroll-bar-npm-2.3.1-8468cbe922-490fb80d36.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.8 KB
.yarn/cache/react-style-singleton-npm-2.2.0-0c4ac8ff3f-e999e978c3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+19.8 KB
.yarn/cache/use-sync-external-store-npm-1.1.0-dcd59c7439-8993a0b642.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ node_modules | |
tsconfig.tsbuildinfo | ||
uploads/* | ||
!*uploads/praise_logo.png | ||
!*uploads/gnosischain_logo.png | ||
.nyc_output |
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,12 @@ | ||
export const generateActivateMessage = ( | ||
accountId: string, | ||
ethereumAddress: string, | ||
token: string | ||
): string => { | ||
return ( | ||
'SIGN THIS MESSAGE TO ACTIVATE YOUR ACCOUNT.\n\n' + | ||
`ACCOUNT ID:\n${accountId}\n\n` + | ||
`ADDRESS:\n${ethereumAddress}\n\n` + | ||
`TOKEN:\n${token}` | ||
); | ||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { shortenEthAddress } from 'api/dist/user/utils'; | ||
import { Jazzicon } from '@ukstv/jazzicon-react'; | ||
import { useAccount } from 'wagmi'; | ||
import { faAngleDown, faAngleRight } from '@fortawesome/free-solid-svg-icons'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { useState } from 'react'; | ||
import EthAccountDialog from './EthAccountDialog'; | ||
|
||
interface EthAccountParams { | ||
className?: string; | ||
showDownCaret?: boolean; | ||
showRightCaret?: boolean; | ||
} | ||
|
||
export default function EthAccount({ | ||
className, | ||
showDownCaret = true, | ||
showRightCaret = false, | ||
}: EthAccountParams): JSX.Element | null { | ||
const { data } = useAccount(); | ||
const [isDialogOpen, setIsDialogOpen] = useState<boolean>(false); | ||
|
||
if (!data?.address) return null; | ||
|
||
return ( | ||
<> | ||
<div | ||
className={`flex justify-between items-center cursor-pointer ${className}`} | ||
onClick={(): void => setIsDialogOpen(true)} | ||
> | ||
<div className="flex items-center space-x-2"> | ||
<div className="inline-block h-5"> | ||
<Jazzicon address={data.address} className="w-4 h-4" /> | ||
</div> | ||
<span>{shortenEthAddress(data.address)}</span> | ||
</div> | ||
<div> | ||
{showDownCaret && ( | ||
<FontAwesomeIcon icon={faAngleDown} className="w-4 h-4" /> | ||
)} | ||
{showRightCaret && ( | ||
<FontAwesomeIcon icon={faAngleRight} className="w-4 h-4" /> | ||
)} | ||
</div> | ||
</div> | ||
<EthAccountDialog | ||
open={isDialogOpen} | ||
address={data.address} | ||
onClose={(): void => setIsDialogOpen(false)} | ||
/> | ||
</> | ||
); | ||
} |
Oops, something went wrong.