Skip to content

Commit 63931d6

Browse files
authored
Merge pull request #6 from Web3Camp-Labs/dev
update to new version
2 parents 027951e + bf74d33 commit 63931d6

File tree

11 files changed

+1987
-226
lines changed

11 files changed

+1987
-226
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,26 @@ on:
88

99
jobs:
1010
deploy:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
1414
steps:
15-
- uses: actions/checkout@v2
15+
- name: Checkout code
16+
uses: actions/checkout@v3
1617

1718
- name: Setup Node
18-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v3
1920
with:
20-
node-version: '14'
21+
node-version: '18'
22+
cache: 'yarn'
2123

22-
- name: Get yarn cache
23-
id: yarn-cache
24-
run: echo "::set-output name=dir::$(yarn cache dir)"
24+
- name: Install dependencies
25+
run: yarn install --frozen-lockfile
2526

26-
- name: Cache dependencies
27-
uses: actions/cache@v2
28-
with:
29-
path: ${{ steps.yarn-cache.outputs.dir }}
30-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31-
restore-keys: |
32-
${{ runner.os }}-yarn-
33-
3427
- name: Build
3528
env:
3629
CI: false
37-
run: |
38-
yarn install --frozen-lockfile
39-
yarn build
30+
run: yarn build
4031

4132
- name: Deploy to gh-pages
4233
uses: peaceiris/actions-gh-pages@v3

README.md

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,55 @@ Quick DApp is a tool for smart contract developers to interact with any smart co
66

77
With Quick DApp, you can just create a simple dapp in minutes and share it with your friends anywhere.
88

9-
# Plans
9+
## Features
10+
11+
- **Instant Interface Generation**: Automatically creates a UI for any smart contract from its ABI
12+
- **Multi-network Support**: Works with Ethereum, Polygon, BSC, and other EVM-compatible networks
13+
- **Comprehensive Method Support**: Handles view/pure functions, state-changing functions, and payable functions
14+
- **Enhanced Transaction Tracking**: Real-time status updates with detailed feedback
15+
- **Advanced Type Handling**: Supports complex parameter types (arrays, structs, etc.)
16+
- **Clean Result Display**: Clearly formatted function return values
17+
- **User-friendly Error Messages**: Readable blockchain error information
18+
19+
## Usage
20+
21+
1. Connect your MetaMask wallet
22+
2. Enter your contract's ABI (JSON format) and address
23+
3. Select the network where your contract is deployed
24+
4. Click on any method to interact with it
25+
5. For read-only methods, results will display immediately
26+
6. For state-changing methods, you'll see transaction status and confirmations
27+
28+
## Installation
29+
30+
### Prerequisites
31+
32+
- Node.js (v14 or later)
33+
- Yarn or npm
34+
35+
### Setup
36+
37+
1. Clone the repository
38+
```bash
39+
git clone https://github.com/Web3Camp-Labs/quick-dapp.git
40+
cd quick-dapp
41+
```
42+
43+
2. Install dependencies
44+
```bash
45+
yarn install
46+
# or
47+
npm install
48+
```
49+
50+
3. Start the development server
51+
```bash
52+
yarn start
53+
# or
54+
npm start
55+
```
56+
57+
## Plans
1058
- [ ] Add support for other wallets
1159
- [ ] CoinBase
1260
- [ ] WalletConnect
@@ -15,11 +63,37 @@ With Quick DApp, you can just create a simple dapp in minutes and share it with
1563
- [ ] Save the created dapp locally
1664
- [ ] Provide share link for dapp
1765
- [ ] New UI
66+
- [x] Enhanced transaction tracking
67+
- [x] Improved error handling
68+
- [x] Better result formatting
69+
70+
## Project Structure
71+
72+
- `src/components/` - React components
73+
- `AppMethod.jsx` - Core component for interacting with contract methods
74+
- `TransactionStatus.jsx` - Transaction tracking UI
75+
- `src/utils/` - Utility functions
76+
- `contractUtils.js` - Smart contract interaction helpers
77+
- `src/store/` - State management
78+
- `methodReducer.js` - Reducer for method call state
79+
- `src/hooks/` - Custom React hooks
80+
- `useTransactionTracker.js` - Hook for tracking transaction status
1881

19-
# History
82+
## History
2083

2184
In the past years, **Patrick Gallagher** created a tool named OneClick DApp for the community. However, this tool has not worked for a long time since mid-2023. So we created a new tool to replace it under the name of Web3Camp.
2285

23-
# Special Thanks
86+
## Technologies
87+
88+
- React 17
89+
- ethers.js 5.5
90+
- Ant Design 4.18
91+
- Styled Components
92+
93+
## Special Thanks
2494

2595
https://oneclickdapp.com
96+
97+
## License
98+
99+
This project is licensed under the MIT License.

public/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
10-
content="OneClick dApp is a tool for smart contract developers to interactive with any smart contracts easily and quickly with one click!"
10+
content="One Click dApp is a tool to instantly build a dApp with any smart contracts easily and quickly with one click!"
11+
/>
12+
<meta
13+
name="keywords"
14+
content="ethereum, solidity, evm, dapp, oneclick, web3camp.us, web3camp"
1115
/>
1216
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1317
<!--
@@ -24,7 +28,7 @@
2428
work correctly both with client-side routing and a non-root public URL.
2529
Learn how to configure a non-root public URL by running `npm run build`.
2630
-->
27-
<title>One Click DApp</title>
31+
<title>One Click DApp | a tool to instantly build a dApp</title>
2832
</head>
2933
<body>
3034
<noscript>You need to enable JavaScript to run this app.</noscript>

0 commit comments

Comments
 (0)