https://github.com/zunxbt/fhenix-dev-task
Guide on how to create and verify contract on Fhenix Helium
https://github.com/zunxbt/fhenix-dev-task
contract fhe fhenix
Last synced: 3 months ago
JSON representation
Guide on how to create and verify contract on Fhenix Helium
- Host: GitHub
- URL: https://github.com/zunxbt/fhenix-dev-task
- Owner: zunxbt
- Created: 2024-10-02T14:22:28.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-02T14:23:25.000Z (8 months ago)
- Last Synced: 2025-01-14T18:12:39.711Z (5 months ago)
- Topics: contract, fhe, fhenix
- Homepage:
- Size: 2.93 KB
- Stars: 44
- Watchers: 1
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fhenix Dev Task
## Join Discord
- First join [Fhenix Discord](https://discord.gg/fhenix-io)
- Visit `#🤖|bot-commands` and write `/quests` and select the popped up `/quests` option and then press `Enter`
- 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](https://chainlist.org/?testnets=true&search=Fhenix+Helium)
- 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](https://get-helium.fhenix.zone/)
- You can also get tFHE by bridging from the below website1. [Native Bridge](https://bridge.helium.fhenix.zone/) [Sepolia Ethereum -> Fhenix Helium]
2. [Pheasant Bridge](https://testnet.pheasant.network/) [Many other testnet networks supported]## Quest 4 : Deploy Contract on Fhenix
- Visit [Remix Website](https://remix.ethereum.org)
- 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
- You need copy the below mentioned codes and paste it there
```solidity
// 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
- Then click on `Compile YOUR_CONTRACT_NAME.sol`

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

- 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
- Congrats, you have successfully deployed a contract on `Fhenix Helium`
- You can check your deployed contract address here
- 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
- Also, there contract verification tool is defective, if you use other than the above code, your contract will not be verified now