Skip to content

Commit 81b03ab

Browse files
authored
Feature: WalletConnect V2 Update (#28)
- Update dependencies, most importantly: Wagmi, ConnectKit, SIWE & WalletConnect. - Re-do implementation to make SIWE work with Loopring Wallet again.
1 parent 909374a commit 81b03ab

File tree

26 files changed

+4201
-4103
lines changed

26 files changed

+4201
-4103
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ PINATA_SUBMARINE_KEY=UNKNOWN
88
# LOOPRING_API_KEY -> Go to: https://loopring.io/#/layer2/security
99
LOOPRING_API_KEY=UNKNOWN
1010

11+
# WALLETCONNECT variables
12+
# NEXT_PUBLIC_WALLECTONNECT_ID -> Go to: https://docs.walletconnect.com/2.0/web/sign/installation
13+
NEXT_PUBLIC_WALLECTONNECT_ID=UNKNOWN
14+
1115
# Other environment variables
1216
SESSION_SECRET=complex_password_at_least_32_characters_long

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/setup/2-SECRETS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ The Pinata Submarine API key is used to unlock the hidden files.
4141
- Next, click on the 'Developers' tab, then the 'Submarine keys' tab.
4242
- Click on '+ New Key' to generate a new key. Copy it, and paste it in your `.env` file so that `PINATA_SUBMARINE_KEY=YOUR_SUB_KEY`.
4343

44+
## WalletConnect
45+
46+
{% hint style="info" %}
47+
The WalletConnect Project ID is used to power WalletConnect connections.
48+
{% endhint %}
49+
50+
- Head over to the WalletConnect documentation to create a Project and generate a Project ID: https://docs.walletconnect.com/2.0/web/sign/installation.
51+
- Once you have a Project ID paste it in your `.env` file so that `NEXT_PUBLIC_WALLECTONNECT_ID=YOUR_ID`.
52+
4453
## Session Secret
4554

4655
{% hint style="info" %}

docs/setup/OVERVIEW.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ description: >-
88

99
![An overview of the APIs and SDKs LoopGate interacts with.](../../public/images/docs/loopgate-overview.png)
1010

11-
* LoopGate is a web application built using in **TypeScript** using [NextJS](https://nextjs.org/) and [TailwindCSS](https://tailwindcss.com/).
12-
* LoopGate implements external **SDKs/APIs**. Most importantly:
13-
* [Loopring API](https://docs.loopring.io/en/) — Query the Loopring blockchain to get NFT ownership data.
14-
* [Piñata API](https://docs.pinata.cloud/pinata-submarine-api) — Query and unlock submarined content on Piñata.
15-
* [ConnectKit](https://github.com/family/connectkit) — Provides a seamless user experience for connecting crypto wallets.
16-
* LoopGate can **easily be deployed online** from its GitHub repository using [Netlify](https://netlify.app/).
17-
* You can edit the `src/config/config.ts` file to specify **new unlockables.**
11+
- LoopGate is a web application built using in **TypeScript** using [NextJS](https://nextjs.org/) and [TailwindCSS](https://tailwindcss.com/).
12+
- LoopGate implements external **SDKs/APIs**. Most importantly:
13+
- [Loopring API](https://docs.loopring.io/en/) — Query the Loopring blockchain to get NFT ownership data.
14+
- [Piñata API](https://docs.pinata.cloud/pinata-submarine-api) — Query and unlock submarined content on Piñata.
15+
- [ConnectKit](https://github.com/family/connectkit) — Provides a seamless user experience for connecting crypto wallets.
16+
- LoopGate can **easily be deployed online** from its GitHub repository using [Netlify](https://netlify.app/).
17+
- You can edit the `src/config/config.ts` file to specify **new unlockables.**
1818

1919
##
2020

@@ -24,21 +24,16 @@ In order to create your own instance of LoopGate, you will need the following:
2424

2525
### **Tools: 🛠️**
2626

27-
* [ ] **Node JS** installed on your computer. [(Guide)](https://nodejs.org/en/)
28-
* [ ] **Git** installed on your computer. [(Guide)](https://github.com/git-guides/install-git)
29-
* [ ] **A code editor**. [(I recommend VS Code)](https://code.visualstudio.com/)
27+
- [ ] **Node JS** installed on your computer. [(Guide)](https://nodejs.org/en/)
28+
- [ ] **Git** installed on your computer. [(Guide)](https://github.com/git-guides/install-git)
29+
- [ ] **A code editor**. [(I recommend VS Code)](https://code.visualstudio.com/)
3030

3131
### **Accounts: 🔑**
3232

33-
* [ ] A [**GitHub**](https://github.com/) account. (free)
34-
* [ ] An activated **Loopring L2 account**. ([GME Wallet](https://wallet.gamestop.com/) / [Loopring Wallet](https://loopring.io/#/wallet))
35-
* [ ] A [**Piñata 'Picnic'**](https://www.pinata.cloud/pricing) account.
36-
37-
FYI: [Piñata currently offer a 30-day trial](https://www.submarine.me/?utm\_medium=social\&utm\_source=twitter\&utm\_campaign=submarine\_q1\_2023\_jan) for the 'Picnic' tier.🛠️
38-
39-
40-
41-
33+
- [ ] A [**GitHub**](https://github.com/) account. (free)
34+
- [ ] An activated **Loopring L2 account**. ([GME Wallet](https://wallet.gamestop.com/) / [Loopring Wallet](https://loopring.io/#/wallet))
35+
- [ ] A [**Piñata 'Picnic'**](https://www.pinata.cloud/pricing) account.
36+
- [ ] A [**WalletConnect Project ID**](https://docs.walletconnect.com/2.0/web/sign/installation).
4237

4338
{% hint style="info" %}
4439
Once you meet all of the requirements above, [proceed to setting up](../../1-FORKING.md)!

env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
namespace NodeJS {
22
interface ProcessEnv {
3+
NEXT_PUBLIC_APP_VERSION: string;
34
NEXT_PUBLIC_PINATA_GATEWAY_URL: string;
45
PINATA_SUBMARINE_KEY: string;
56
LOOPRING_API_KEY: string;
67
SESSION_SECRET: string;
8+
NEXT_PUBLIC_WALLECTONNECT_ID: string;
79
}
810
}

0 commit comments

Comments
 (0)