Skip to content

Commit 1a7bea0

Browse files
authored
[BOOST-4539] feat(sdk): specify browserlist, remove publishConfig, next boilerplate (#33)
2 parents 53e80b2 + 121158c commit 1a7bea0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+4779
-510
lines changed

.github/workflows/on-push-to-main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ jobs:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8989

9090
- name: Build
91+
env:
92+
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }}
9193
run: npx turbo build --cache-dir=".cache"
9294

9395
- name: Create .npmrc

.github/workflows/verify.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: Build
24+
env:
25+
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }}
2426
run: npx turbo build --cache-dir=".cache"
2527

2628
test:

examples/next/.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env
30+
.env*.local
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts

examples/next/LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) <2023-2024> Pedrojok01
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

examples/next/README.md

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
<div align="center">
2+
3+
<img src="./public/img/logo_transparent.png" width="70px"/>
4+
<br><br>
5+
6+
<h1><strong> Next Web3 Boilerplate </strong></h1>
7+
8+
[![Stargazers](https://img.shields.io/github/stars/Pedrojok01/Next-Web3-Boilerplate)](https://github.com/Pedrojok01/Next-Web3-Boilerplate/stargazers)
9+
[![Forks](https://img.shields.io/github/forks/Pedrojok01/Next-Web3-Boilerplate)](https://github.com/Pedrojok01/Next-Web3-Boilerplate/issues)
10+
[![Issues](https://img.shields.io/github/issues/Pedrojok01/Next-Web3-Boilerplate)](https://github.com/Pedrojok01/Next-Web3-Boilerplate/issues)
11+
[![MIT License](https://img.shields.io/github/license/Pedrojok01/Next-Web3-Boilerplate)](https://github.com/Pedrojok01/Next-Web3-Boilerplate/blob/main/License)
12+
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue?logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/pierre-e/)
13+
![Vercel](https://img.shields.io/github/deployments/Pedrojok01/Next-Web3-Boilerplate/production?label=Vercel&logo=Vercel&logoColor=white)
14+
15+
<br></br>
16+
17+
![Preview](./public/img/preview.gif)
18+
19+
</div>
20+
21+
## Table of Contents
22+
23+
- [Table of Contents](#table-of-contents)
24+
- [Update:](#update)
25+
- [Description](#description)
26+
- [Built With](#built-with)
27+
- [Installation](#installation)
28+
- [Make sure you have the following ready:](#make-sure-you-have-the-following-ready)
29+
- [Once your config is ready, create a new repo, open your favorite code editor, and clone the repo with the following cmd:](#once-your-config-is-ready-create-a-new-repo-open-your-favorite-code-editor-and-clone-the-repo-with-the-following-cmd)
30+
- [Install all package dependencies by running:](#install-all-package-dependencies-by-running)
31+
- [Add your API keys in the .env file:](#add-your-api-keys-in-the-env-file)
32+
- [To start the Next-Web3-Boilerplate:](#to-start-the-next-web3-boilerplate)
33+
- [Features:](#features)
34+
- [⭐️ ... and don't forget to leave a star if you like it! ⭐️](#️--and-dont-forget-to-leave-a-star-if-you-like-it-️)
35+
36+
## Update:
37+
38+
2024-02:
39+
40+
- Switched to Next.js v14;
41+
- Switched to Viem & Wagmi v2;
42+
- Add support for `Linea`, `lineaTestnet`, `Bsc` & `bscTestnet` networks;
43+
- Bump all dependencies to the latest versions;
44+
45+
## Description
46+
47+
Simple and minimalist Web3 boilerplate to boost your Dapp development. Built using the latest tech out there: [Next.js](https://nextjs.org/), [Viem](https://viem.sh/), [Wagmi](https://wagmi.sh/), [RainbowKit](https://www.rainbowkit.com/), [ChakraUI](https://chakra-ui.com/), and [Typescript](https://www.typescriptlang.org/). Eslint, Prettier, and Husky are already configured. The perfect starting point for your next web3 project.
48+
49+
Try it yourself: [https://next-web3-boilerplate.com/](https://next-web3-boilerplate.com/)
50+
51+
## Built With
52+
53+
- [![nextjs]][nextjs-url]
54+
- [![typescript]][typescript-url]
55+
- [![chakraui]][chakraui-url]
56+
- [![viem]][viem-url]
57+
- [![wagmi]][wagmi-url]
58+
- [![Rainbowkit]][rainbowkit-url]
59+
- [![prettier]][prettier-url]
60+
- [![ESLint]][eslint-url]
61+
62+
## Installation
63+
64+
### Make sure you have the following ready:
65+
66+
- [node.js](https://nodejs.org/) installed (developed on LTS v18)
67+
- [typescript](https://www.typescriptlang.org/) installed (developed on v5.3.3)
68+
- [bun](https://bun.sh/) or [pnpm](https://pnpm.io/) or [yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/) installed
69+
- [MetaMask](https://metamask.io/) (or any web3 compatible wallet) installed in your browser
70+
71+
### Once your config is ready, create a new repo, open your favorite code editor, and clone the repo with the following cmd:
72+
73+
```bash
74+
git clone https://github.com/Pedrojok01/Next-Web3-Boilerplate.git .
75+
```
76+
77+
### Install all package dependencies by running:
78+
79+
```bash
80+
bun install
81+
# or
82+
pnpm install
83+
# or
84+
yarn install
85+
# or
86+
npm install
87+
```
88+
89+
### Add your API keys in the .env file:
90+
91+
Remove the `.example` from the `.env.example` file name at the root of the project and add your API keys inside. The WalletConnect project ID is now required since the v2 update. You can create one easily on the [WalletConnect dashboard](https://cloud.walletconnect.com/).
92+
93+
```js
94+
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID = "Project ID needed for WalletConnect v2 here";
95+
```
96+
97+
### To start the Next-Web3-Boilerplate:
98+
99+
First, run the development server:
100+
101+
```bash
102+
bun dev
103+
# or
104+
pnpm dev
105+
# or
106+
yarn dev
107+
# or
108+
npm run dev
109+
```
110+
111+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
112+
113+
## Features:
114+
115+
- [x] Web3 Wallet Status (MetaMask / Rainbow / Coinbase Wallet / WalletConnect)
116+
- [x] Chain selector
117+
- [x] Block Number / Chain ID & Name
118+
- [x] Wallet balance
119+
- [x] Sign Messages & Transfer Native
120+
- [x] Dark mode support
121+
- [x] Hook to query user's Token Balances
122+
123+
<br></br>
124+
125+
<div align="center">
126+
<h2> Enjoy!!!</h2>
127+
128+
<br>
129+
130+
## ⭐️ ... and don't forget to leave a star if you like it! ⭐️
131+
132+
</div>
133+
134+
<p align="right">(<a href="#top">back to top</a>)</p>
135+
136+
<!-- MARKDOWN LINKS & IMAGES -->
137+
138+
[nextjs]: https://img.shields.io/badge/Next.js_v14.2-000000?style=for-the-badge&logo=next.js&logoColor=FFFFFF
139+
[nextjs-url]: https://nextjs.org/
140+
[typescript]: https://img.shields.io/badge/typescript_v5.4.5-375BD2?style=for-the-badge&logo=typescript&logoColor=61DAFB
141+
[typescript-url]: https://www.typescriptlang.org/
142+
[chakraui]: https://img.shields.io/badge/ChakraUI-purple?style=for-the-badge&logo=ChakraUI&logoColor=319795
143+
[chakraui-url]: https://chakra-ui.com/
144+
[wagmi]: https://img.shields.io/badge/Wagmi-35324a?style=for-the-badge&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAW5SURBVHhe7ZvbT1RHHMe/LHcQZLnsNoBsBFyh0JJWU6SJFVOflNXEBpNaaNFS47W3WLQPDdbHmoiIWltp7T9QAVtti2iLb7U+aMCG0Ad88KFULgEakHvP7zAYoex6ds/u5gf+PsmGmVmyhzmfmd/Mcn4TYrVapyGwwaJ+CkwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwQIcwIjY6OPqbKPhMeHg6bzYa0tHRMTU3i0aNH6h3/YrUmwuHIQExsLEa1a0xOTqp3/EdERARsdjscGRkYHR3VX8HE9PmQ3Nzn8W5lJVauzERMTAz6+/pw+XITmpoaMTIyon7LHPHx8SgrK8f69a8hwWrF2NgY7t69g+8ufouuri5MT/vniEvhunXYVbEb9ufsiNWkP3jwAJcufY9rzc1BE2NKiM1mx9mz57Bm7VqEhYX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PjxzdG9wIHN0b3AtY29sb3I9IiNGRjQwMDAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM4NzU0QzkiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZCIgeDE9IjIzIiB4Mj0iMjMiIHkxPSIyMCIgeTI9IjM3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzg3NTRDOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGNDAwMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4MT0iNjgiIHgyPSI4NCIgeTE9Ijk3IiB5Mj0iOTciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGNzAwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkY5OTAxIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImciIHgxPSIyMyIgeDI9IjIzIiB5MT0iNTIiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNGRkY3MDAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRjk5MDEiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=&logoColor=4FC08D
147+
[rainbowkit-url]: https://github.com/rainbow-me/rainbowkit#readme
148+
[viem]: https://img.shields.io/badge/Viem-ffc517?style=for-the-badge&logo=data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBA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+EP2tfhXCC0+oJplpY6Z4k8WaHavANQ8S/wDCC+ArqGJINWhdgD+FX9ir/gmB8WP28fDXjjXvg58df2T/AA5qXwx8B+M/it8R/Bnxc+MV38OvFvgf4V+AbqwtfFPxJ8Qwaj4QudDt/BulHU9PuLzV4NduRZWt5BPqEVmr18F/EbwbD8PvG3iLwZb+MvBXxCh8P3wsk8Z/DnVL/W/BOv8A+jwzteeHdV1PSdDvr6xVpjbmefSrMtcQTCNHiCSyfqP4Dvj+yH/wSb+JfjyNzp3xm/4KgfEOT4E+CplJh1TSP2M/2a/EGi+L/jdrlncwYnt9N+Mn7QLfDv4cFJnWHVtO+Dfj/TgrwpdpJ+QdABX9wH/Bmv8At+2PhX4t/Gz/AIJo/FLUbW78D/tA6Vq/xd+C+k62YrjS3+Jfhfw+lh8VPBcVjc+ZDdf8LA+F+nW3iKW1ljFmsPwu1KNle41krL/D/XX+AvH/AI2+Fvi/QviB8OPFWveCPG/hi7a/8PeKvDOpXWj67o148E1rJcafqNnJFcW0ktrcXFtL5bgS2880EgaKR1YA/QX/AIK2/HP4U/F79sjxh4J/ZvtI9J/ZM/Zb0q0/ZZ/ZY0W2vpNSsk+E3wp1TWYrvxbBqEjF9Sl+K3xH1fx78W7rU5UiubyXxz/pMavEFX8y6KKAP//Z
149+
[viem-url]: https://viem.sh/
150+
[prettier]: https://img.shields.io/badge/Prettier-360D3A?style=for-the-badge&logo=Prettier&logoColor=61DAFB
151+
[prettier-url]: https://prettier.io/
152+
[eslint]: https://img.shields.io/badge/ESLint-4B32C3?style=for-the-badge&logo=ESLint&logoColor=61DAFB
153+
[eslint-url]: https://eslint.org/

examples/next/next.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
webpack: (config) => {
5+
config.resolve.fallback = { fs: false, net: false, tls: false };
6+
config.externals.push('pino-pretty', 'lokijs', 'encoding');
7+
return config;
8+
},
9+
};
10+
11+
module.exports = nextConfig;

examples/next/package.json

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "examples-next",
3+
"version": "1.0.2",
4+
"description": "Nextjs web3 boilerplate built on Viem, Wagmi, rainbowkit and Chakra UI",
5+
"author": "Pedrojok01 <[email protected]>",
6+
"license": "MIT",
7+
"private": true,
8+
"homepage": "https://next-web3-boilerlate.com",
9+
"bugs": "https://github.com/Pedrojok01/Next-Web3-Boilerplate/issues",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/Pedrojok01/Next-Web3-Boilerplate"
13+
},
14+
"scripts": {
15+
"dev": "next dev",
16+
"build": "next build",
17+
"start": "next start"
18+
},
19+
"dependencies": {
20+
"@boostxyz/sdk": "*",
21+
"@chakra-ui/icons": "2.1.1",
22+
"@chakra-ui/next-js": "2.2.0",
23+
"@chakra-ui/react": "2.8.2",
24+
"@emotion/react": "11.11.4",
25+
"@emotion/styled": "11.11.5",
26+
"@rainbow-me/rainbowkit": "2.0.5",
27+
"@tanstack/react-query": "5.32.0",
28+
"@vercel/analytics": "1.2.2",
29+
"framer-motion": "11.1.7",
30+
"next": "14.2.3",
31+
"react": "18.3.0",
32+
"react-dom": "18.3.0",
33+
"react-jazzicon": "1.0.4",
34+
"sharp": "0.33.3",
35+
"viem": "2.9.27",
36+
"wagmi": "2.5.22"
37+
},
38+
"devDependencies": {
39+
"@types/node": "20.12.7",
40+
"@types/react": "18.3.0",
41+
"@types/react-dom": "18.3.0",
42+
"typescript": "5.4.5"
43+
},
44+
"keywords": [
45+
"nextjs",
46+
"wagmi",
47+
"viem",
48+
"web3",
49+
"boilerplate",
50+
"chakra-ui",
51+
"rainbowkit",
52+
"ethereum-dapp",
53+
"ethereum-boilerplate",
54+
"ethereum-dapp",
55+
"web3-boilerplate",
56+
"web3-dapp"
57+
]
58+
}
39.8 KB
Loading
Loading
35.8 KB
Loading
827 Bytes
Loading
2.16 KB
Loading

examples/next/public/favicon.ico

15 KB
Binary file not shown.
1.38 KB
Loading
1.33 KB
Loading
257 KB
Loading

examples/next/public/img/preview.gif

4.36 MB
Loading

examples/next/public/img/warning.svg

+1
Loading
+1
Loading

examples/next/public/site.webmanifest

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

examples/next/src/app/_app.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use client';
2+
import { Analytics } from '@vercel/analytics/react';
3+
import type { AppProps } from 'next/app';
4+
5+
import RootLayout from './layout';
6+
7+
function MyApp({ Component, pageProps }: AppProps) {
8+
return (
9+
<RootLayout>
10+
<Component {...pageProps} />
11+
<Analytics />
12+
</RootLayout>
13+
);
14+
}
15+
16+
export default MyApp;

0 commit comments

Comments
 (0)