Skip to content

openguild-labs/open-hack-yield-farm

Repository files navigation

🌾 OpenHack Yield Farming Challenge 💰

image

The OpenGuild Labs makes the repository to introduce OpenHack workshop participants to Solidity and help the participants to get familiar with the language. This challenge involves creating a smart yield-farming contract where users can stake LP tokens and earn rewards. You'll learn about DeFi mechanics, reward distribution, and staking mechanisms in Solidity and deploy on PolkaVM. 🚀

Participant Registration

Add your information to the below list to officially participate in the workshop challenge (This is the first mission of the whole workshop)

Emoji Name Github Username Occupations
🎅 Ippo NTP-996 DevRel
👾 Daniel danielbui12 Dev

💻 Local development environment setup

1. Install Volta (Node.js Version Manager)

Windows

  1. Download the Windows installer from https://docs.volta.sh/guide/getting-started
  2. Run the installer and follow the prompts
  3. Open a new terminal to activate Volta

macOS/Linux

# Install Volta
curl https://get.volta.sh | bash

# Restart your terminal or run
source ~/.bashrc  # for bash
source ~/.zshrc   # for zsh

2. Install Node.js and npm using Volta

# Install Node.js LTS version
volta install node

# Verify installation
node --version
npm --version

🚀 Getting Started

git clone git@github.com:openguild-labs/open-hack-yield-farm.git
cd open-hack-yield-farm
npm i

👉 Start working on the TODO

✅ You finished the challenge when you passed all the tests

npx hardhat compile
npx hardhat test

image

🚀 Installing MetaMask and Deploying Smart Contracts on Asset-Hub Westend

At the time writing this challenge, Hardhat haven't support deployment on Westend network, we need to use remix for smart contract deployment

🦊 Installing and Setting Up MetaMask

  1. 💿 Install Metahttps://remix.polkadot.io/Mask

    • Visit the MetaMask website
    • Click "Download" and add the extension to your browser
    • Create a new wallet by following the setup wizard
    • 🔐 Save your seed phrase securely and never share it with anyone
  2. ⚙️ Configure Asset-Hub Westend Network

🪙 Getting Test Tokens

  1. 💧 You'll need some WND tokens to deploy contracts
    • Visit the Westend faucet
    • Request test tokens for your MetaMask address
    • ⏳ Wait for the tokens to appear in your wallet

💻 Using Remix and Deploying a Contract

🎯 Access Remix

🔨 Compile the Contract

  • Select the "Solidity Compiler" tab
  • Choose compiler version (e.g., 0.8.0)
  • Click "Compile"

📤 Deploy the Contract

  • Go to the "Deploy & Run Transactions" tab
  • Set the environment to "Injected Provider - MetaMask"
  • Ensure your MetaMask is connected to Asset-Hub Westend
  • Click "Deploy"
  • Confirm

image


🙋‍♂️ How to claim the bounty?

Complete the challenge on your fork repository
⭐ Star Open Guild repository
👥 Follow OpenGuild Lab Github
💬 Join OpenGuild Discord
📝 Submit the proof-of-work (your challenge repository) to OpenGuild Discord


🤝 How to contribute to the community?

To submit a proposal, ideas, or any questions, please submit them here: OpenGuild Discussion 💭 View tickets and activities that you can contribute: Community Activities 🎯

  • 🌱 Help to grow the community: Community growth is a collective effort. By actively engaging with and inviting fellow enthusiasts to join our community, you play a crucial role in expanding our network. Encourage discussions, share valuable insights, and foster a welcoming environment for newcomers.

  • 🎓 Participate in workshops and events: Be an active participant in our workshops and events. These sessions serve as valuable opportunities to learn, collaborate, and stay updated on the latest developments in the Polkadot ecosystem. Through participation, you not only enhance your knowledge but also contribute to the collaborative spirit of OpenGuild. Share your experiences, ask questions, and forge connections with like-minded individuals.

  • 💡 Propose project ideas: Your creativity and innovation are welcomed at OpenGuild. Propose project ideas that align with the goals of our community. Whether it's a new application, a tool, or a solution addressing a specific challenge in the Polkadot ecosystem, your ideas can spark exciting collaborations.

  • 🛠️ Contribute to our developer tools: Get involved in the ongoing development and improvement of tools that aid developers in their projects. Whether it's through code contributions, bug reports, or feature suggestions, your involvement in enhancing these tools strengthens the foundation for innovation within OpenGuild and the broader Polkadot community. Contribute to our developer tools: Get involved in the ongoing development and improvement of tools that aid developers in their projects. Whether it's through code contributions, bug reports, or feature suggestions, your involvement in enhancing these tools strengthens the foundation for innovation within OpenGuild and the broader Polkadot community.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •