Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 13 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<div align="center">

![Da Nang Hackcamp](./assets/danang_hackcamp.png)
Expand Down Expand Up @@ -34,6 +33,7 @@ Go to **Participant Registration** section and register to be the workshop parti

```
| 🦄 | Name | Github username | Your current occupation |
| 🐈 | Tien Dung | Tizun71 | Student |
```

- Step 5: `Commit` your code and push to the forked Github repository
Expand All @@ -53,38 +53,36 @@ git commit -m "<Your Name> | Register for OpenGuild Da Nang Hackcamp 2025"

## Discover the List of Challenges 🏆

Total OpenGuild prize pool: **2000$ / 5 winners**
Total OpenGuild prize pool: **2000$ / 5 winners**
<br/>
Total Bifrost Parner prize pool: **300$-1000$** (dedicated to Bifrost's Challenge)
| Challenge | Description | Action | Bounty |
| Challenge | Description | Action | Bounty |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ------ |
| 1 | Building Uniswap V2 Application | [Take Challenge](./challenge-1-uniswapv2/README.md) | $ |
| 2 | Building Lending and Borrowing Application | [Take Challenge](./challenge-2-lending-borrowing/README.md) | $ |
| 3 | Build a cross-chain application using XCM | [Take Challenge](./challenge-3-xcm/README.md) | $ |
| 4 | Polkadot SDK | [Take Challenge](./challenge-4-polkadot-sdk/README.md) | $ |
| Parner Track - Bifrost | Create a unique and optimal UX for interacting with Bifrost Liquid Staking Tokens available on many chains | [Take Challenge](./challenge-bifrost/README.md) | $300-$1000 |
| 1 | Building Uniswap V2 Application | [Take Challenge](./challenge-1-uniswapv2/README.md) | $ |
| 2 | Building Lending and Borrowing Application | [Take Challenge](./challenge-2-lending-borrowing/README.md) | $ |
| 3 | Build a cross-chain application using XCM | [Take Challenge](./challenge-3-xcm/README.md) | $ |
| 4 | Polkadot SDK | [Take Challenge](./challenge-4-polkadot-sdk/README.md) | $ |
| Parner Track - Bifrost | Create a unique and optimal UX for interacting with Bifrost Liquid Staking Tokens available on many chains | [Take Challenge](./challenge-bifrost/README.md) | $300-$1000 |
</br>
</br>

</div>

## 👉 Resource for Development and Support Channels

### Paseo Contract Faucet
### Paseo Contract Faucet

Link : https://faucet.polkadot.io/?parachain=1111

### Explorer
### Explorer

Link : https://blockscout-passet-hub.parity-testnet.parity.io/

### RPC

+ ETH - EVM-compatible RPC: `https://testnet-passet-hub-eth-rpc.polkadot.io/`

+ ChainID: `0x190f1b45`

- ETH - EVM-compatible RPC: `https://testnet-passet-hub-eth-rpc.polkadot.io/`

- ChainID: `0x190f1b45`

### Resources

Expand All @@ -97,17 +95,13 @@ Link : https://blockscout-passet-hub.parity-testnet.parity.io/
- [OpenGuild Learn](https://learn.openguild.wtf/)

### Support Channels

- [Discord OpenGuild](https://github.com/openguild-labs)
- [Discord Polkadot](https://discord.gg/polkadot)
- [Stack Exchange](https://substrate.meta.stackexchange.com/)
- [Telegram](https://t.me/substratedevs)
- [Reddit](https://www.reddit.com/r/Polkadot/)






## 👉 Contribute to OpenGuild Community

OpenGuild is a builder-driven community centered around Polkadot. OpenGuild is built by Web3 builders for Web3 builders. Our primary aim is to cater to developers seeking a comprehensive understanding of the Polkadot blockchain, providing curated, in-depth materials with a low-level approach.
Expand All @@ -116,8 +110,3 @@ OpenGuild is a builder-driven community centered around Polkadot. OpenGuild is b
- **Website:** [OpenGuild Website](https://openguild.wtf/)
- **Github:** [OpenGuild Labs](https://github.com/openguild-labs)
- **Discord**: [Openguild Discord Channel](https://discord.gg/bcjMzxqtD7)





28 changes: 11 additions & 17 deletions challenge-1-uniswapv2/README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@

## Challenge details
A decentralized exchange (DEX) implementation based on Uniswap V2's architecture, adapted for Polkadot Asset Hub, enabling automated market making and token swaps with liquidity pools.

## Functional Specifications
A decentralized exchange (DEX) implementation based on Uniswap V2's architecture, adapted for Polkadot Asset Hub, enabling automated market making and token swaps with liquidity pools.

+ Swap interface
+ Liquidity Management
## Functional Specifications

- Swap interface
- Liquidity Management

## Implementation Smart Contract Requirements

Link contract: [Contract](./contracts)

- [ ] **Deploy a factory, pair, and ERC20 token contracts on Paseo Asset Hub**

- [x] **Deploy a factory, pair, and ERC20 token contracts on Paseo Asset Hub**


## Implementation UI Requirements
## Implementation UI Requirements

Link UI sample: [DOT UI](./frontend)

Build the UI with features based on the requirements:

- [ ] **Connect the frontend to Asset Hub using MetaMask and Web3 Tools ( Viem, Ethersjs)**
- [ ] **Build frontend with swap interface and liquidity pool management**


## Submission Requirements
- [ ] Deploy a factory, pair, and ERC20 token contracts on Paseo Asset Hub
- [ ] Complete UI

- [x] **Connect the frontend to Asset Hub using MetaMask and Web3 Tools ( Viem, Ethersjs)**
- [x] **Build frontend with swap interface and liquidity pool management**

## Submission Requirements

- [x] Deploy a factory, pair, and ERC20 token contracts on Paseo Asset Hub
- [x] Complete UI
Binary file modified challenge-1-uniswapv2/binaries/eth-rpc
Binary file not shown.
Binary file modified challenge-1-uniswapv2/binaries/substrate-node
Binary file not shown.
4 changes: 2 additions & 2 deletions challenge-1-uniswapv2/contracts/UniswapV2ERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "./libraries/SafeMath.sol";
contract UniswapV2ERC20 is IUniswapV2ERC20 {
using SafeMath for uint;

string public constant name = "Uniswap V2";
string public constant symbol = "UNI-V2";
string public constant name = "Tizun Token";
string public constant symbol = "TZ";
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
Expand Down
32 changes: 32 additions & 0 deletions challenge-1-uniswapv2/frontend/.next/app-build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"pages": {
"/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/css/app/page.css",
"static/chunks/app/page.js"
],
"/layout": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/css/app/layout.css",
"static/chunks/app/layout.js"
],
"/balance/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/css/app/balance/page.css",
"static/chunks/app/balance/page.js"
],
"/balance/loading": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/balance/loading.js"
],
"/_not-found/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/_not-found/page.js"
]
}
}
19 changes: 19 additions & 0 deletions challenge-1-uniswapv2/frontend/.next/build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"polyfillFiles": [
"static/chunks/polyfills.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/development/_buildManifest.js",
"static/development/_ssgManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack.js",
"static/chunks/main-app.js"
],
"pages": {
"/_app": []
},
"ampFirstPages": []
}
Loading