Skip to content

Commit 8c4e5dc

Browse files
authored
Merge pull request #32 from Web3Camp-Labs/dev
upgrade to new version
2 parents 57abe60 + 246bf24 commit 8c4e5dc

76 files changed

Lines changed: 12503 additions & 24020 deletions

Some content is hidden

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

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
87

98
jobs:
109
deploy:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ package-lock.json
77
./package-lock.json
88
cache
99
artifacts
10-
typechain
10+
typechain
11+
CLAUDE.md

cli/testaddress.csv

Lines changed: 8623 additions & 8623 deletions
Large diffs are not rendered by default.

front-end/.babelrc

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

front-end/.eslintrc.json

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

front-end/.gitignore

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
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
1+
# Logs
2+
logs
3+
*.log
234
npm-debug.log*
245
yarn-debug.log*
256
yarn-error.log*
26-
.pnpm-debug.log*
27-
28-
# local env files
29-
.env*.local
30-
31-
# vercel
32-
.vercel
33-
34-
# typescript
35-
*.tsbuildinfo
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
# Build output
27+
build

front-end/README.md

Lines changed: 79 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,97 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
# Web3Camp MultiSender - React Implementation
2+
3+
This is a React implementation of the Web3Camp MultiSender application, which allows sending ETH and ERC-20 tokens to multiple addresses in a single transaction.
4+
5+
## Features
6+
7+
- Send ETH and ERC-20 tokens to multiple addresses in a single transaction
8+
- Import addresses and amounts from Excel files
9+
- Support for multiple networks (Ethereum, BSC, Polygon)
10+
- Transaction history tracking
11+
- Modern, responsive UI
212

313
## Getting Started
414

5-
First, run the development server:
15+
### Prerequisites
616

17+
- Node.js (v14 or later)
18+
- npm or yarn
19+
- MetaMask or compatible Web3 wallet
20+
21+
### Installation
22+
23+
1. Clone the repository:
724
```bash
8-
npm run dev
25+
git clone https://github.com/Web3Camp-Labs/multisender.git
26+
cd multisender/react-app
27+
```
28+
29+
2. Install dependencies:
30+
```bash
31+
npm install
32+
# or
33+
yarn install
34+
```
35+
36+
3. Start the development server:
37+
```bash
38+
npm start
939
# or
10-
yarn dev
40+
npm run dev
1141
```
1242

13-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
43+
4. Open [http://localhost:3000](http://localhost:3000) in your browser to see the application.
44+
45+
### Build for Production
46+
47+
```bash
48+
npm run build
49+
```
50+
51+
The build output will be in the `build/` directory.
52+
53+
## Usage
54+
55+
1. **Connect Wallet**: Click the "Connect Wallet" button in the header to connect your Web3 wallet.
56+
57+
2. **Step 1 - Prepare**:
58+
- Enter the token address (use 0x000000000000000000000000000000000000bEEF for ETH)
59+
- Import addresses and amounts from Excel or enter them manually in the format: `address,amount`
60+
- Click "Next" to proceed
1461

15-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
62+
3. **Step 2 - Confirm**:
63+
- Review the list of recipients and transaction summary
64+
- For ERC-20 tokens, approve the token spending if needed
65+
- Click "Send" to execute the transactions
1666

17-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
67+
4. **Step 3 - Result**:
68+
- View the transaction history with links to block explorers
69+
- Download a CSV file of any failed transactions (if applicable)
1870

19-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
71+
## Network Support
2072

21-
## Learn More
73+
The application supports the following networks:
74+
- Ethereum Mainnet
75+
- Binance Smart Chain
76+
- Polygon
77+
- BSC Testnet
2278

23-
To learn more about Next.js, take a look at the following resources:
79+
## Technical Details
2480

25-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
81+
This application is built with:
82+
- React 18
83+
- TypeScript
84+
- Vite (fast build tool)
85+
- ethers.js for Web3 integration
86+
- React Bootstrap for UI components
87+
- Styled Components for styling
2788

28-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
89+
## License
2990

30-
## Deploy on Vercel
91+
This project is licensed under the MIT License - see the LICENSE file for details.
3192

32-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
93+
## Acknowledgments
3394

34-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
95+
- Original Next.js implementation by Web3Camp
96+
- [ethers.js](https://docs.ethers.io/)
97+
- [React Bootstrap](https://react-bootstrap.github.io/)

front-end/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web3Camp MultiSender - Send ETH and ERC-20 tokens to multiple addresses in a single transaction"
11+
/>
12+
<title>Web3Camp MultiSender</title>
13+
</head>
14+
<body>
15+
<noscript>You need to enable JavaScript to run this app.</noscript>
16+
<div id="root"></div>
17+
<script type="module" src="/src/index.tsx"></script>
18+
</body>
19+
</html>

front-end/next-env.d.ts

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

front-end/next.config.js

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

0 commit comments

Comments
 (0)