Skip to content

Latest commit

 

History

History
87 lines (56 loc) · 3.23 KB

README.md

File metadata and controls

87 lines (56 loc) · 3.23 KB

Fhenix Dev Task

Join Discord

  • First join Fhenix Discord
  • Visit #🤖|bot-commands and write /quests and select the popped up /quests option and then press Enter

Img-1

  • You will see 10 different quests, here I will show how to do only dev tasks (Quest 4,Quest 6)

Network Set Up

  • Visit Chainlist
  • Click on Connect wallet and then add the network in your preferred wallet (Metamask or Rabby or OKX)

Faucet (Bridge)

  • Right now you can get tFHE faucet by mining here
  • You can also get tFHE by bridging from the below website
  1. Native Bridge [Sepolia Ethereum -> Fhenix Helium]
  2. Pheasant Bridge [Many other testnet networks supported]

Quest 4 : Deploy Contract on Fhenix

Img-2

  • Give it any name but at the last part u need .sol as this is a solidity file [Example : zun.sol] and then press Enter
  • After that you will an interface like this

image

  • You need copy the below mentioned codes and paste it there
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;

contract SimpleStorage {
    uint256 public storedData;

    function set(uint256 x) public {
        storedData = x;
    }

    function get() public view returns (uint256) {
        return storedData;
    }
}
  • Click on Solidity Compiler icon

Img-4

  • Then click on Compile YOUR_CONTRACT_NAME.sol

Img-5

  • Afterthat, click on Deploy and run transactions icon in the left slide bar

Img-5

  • Open your wallet and then switch to Fhenix Helium network if you have not switched it yet
  • Now choose Injected Provider in environment section and then choose your wallet
  • Then click on Deploy button to deloy a contract

Img-6

  • Congrats, you have successfully deployed a contract on Fhenix Helium
  • You can check your deployed contract address here

Img7

  • Right now, you can deploy max 5 contract and can earn 150 points
  • To deploy more contracts,click on Deploy button again and again
  • Do this process 4 times to deploy 4 contracts

Quest 6 : Contract Verification

  • If you use above contract code, It will be verified automatically, You don't need to do anything

image

  • Also, there contract verification tool is defective, if you use other than the above code, your contract will not be verified now