Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/violet-bora-lee/web3-degen-challenge
Make a habit to explore Web3.0 ecosystem together
https://github.com/violet-bora-lee/web3-degen-challenge
Last synced: 2 days ago
JSON representation
Make a habit to explore Web3.0 ecosystem together
- Host: GitHub
- URL: https://github.com/violet-bora-lee/web3-degen-challenge
- Owner: Violet-Bora-Lee
- Created: 2023-09-01T18:03:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-03T04:12:04.000Z (about 1 year ago)
- Last Synced: 2024-04-15T10:17:08.055Z (7 months ago)
- Language: JavaScript
- Homepage: https://web3-degen-challenge.vercel.app
- Size: 1.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web3 Degen Challenge
## Introduction
- Video: https://www.loom.com/share/2873c2e33ce9479da1d922381b55e976?sid=93dffbad-f218-473a-b563-9de08d4641eb
## Import Tech Stacks and Contracts
### Linea
- [Linea](https://linea.build/)### Axelar
- [Axelar](https://axelar.network/)> Note: For bounty-related matters, please refer to the [Bounty.md](./Bounty.md) file.
## How to develop
Install [nodejs](https://nodejs.org/en/download/). Run `node -v` to check your installation.Support Node.js version 16.x and 18.x
1. Clone this repo:
```bash
git clone https://github.com/Violet-Bora-Lee/web3-degen-challenge.git
```2. Install dependencies:
```bash
npm install
```3. Compile smart contracts:
3-1. Install truffle globally:
```bash
npm i -g truffle
```3-2. Initialize a new truffle project with the default configuration and run test
```bash
truffle init
truffle test
```3-3. Compile smart contracts:
```bash
trufle compile
```4. `env` file setup:
- Create a new `.env` file inside the truffle folder and add the following code to the file:
```
MNEMONIC=your mnemonic
PROJECT_ID=your infura project id
```
> Note: You can get your mnemonic from your Metamask wallet and your Infura project id from [Infura](https://infura.io/)5. Deploy smart contracts:
- Run `truffle migrate --network goerli` to deploy the contract to the Linea Goerli testnet
> Note::Go to [Axelar Documentation](https://docs.axelar.dev/resources/testnet) to get the addresses for the Gateway Contract and Gas Service Contract for the each testnet.
## Step 5
- Create a new file called `1_deploy_contracts.js` in the `migrations` folder
In this step, we will deploy the contract to the Linea Goerli testnet and Optimism Goerli testnet.Go to [Axelar Documentation](https://docs.axelar.dev/resources/testnet) to get the addresses for the Linea Gateway Contract and Gas Service Contract for the Linea Goerli testnet and Optimism Goerli testnet.
- Save the contract address for the Linea Goerli testnet for the frontend project
6. frontend setup:
- In the root directory, create a new file called `.env.local` and add the following:
```
NEXT_PUBLIC_LINEA_RPC_URL=https://linea-goerli.infura.io/v3/
NEXT_PUBLIC_LINEA_SEND_MESSAGE_CONTRACT_ADDRESS=
NEXT_PUBLIC_LINEA_CHALLENGE_CONTRACT_ADDRESS=
NEXT_PUBLIC_LINEA_CHALLENGE_MANAGER_CONTRACT_ADDRESS=
NEXT_PUBLIC_OPTIMISM_RPC_URL=https://optimism-goerli.infura.io/v3/
NEXT_PUBLIC_OPTIMISM_NEXT_PUBLIC_OPTIMISM_CONTRACT_ADDRESS=
```
- Run `yarn dev` to start the frontend project