-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some more updates - added remix plugin docs & Gitpod info. Also gener…
…al cleanups
- Loading branch information
Showing
24 changed files
with
507 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
# 🎧 Remix | ||
|
||
To get up and running with Remix, all you need is to include is the FHE.sol solidity library to your project so the compiler will know what to do. | ||
To get up and running with Remix, you should follow a few easy steps: | ||
|
||
1. Add Fhenix to Metamask | ||
2. Import `FHE.sol` from your contract | ||
3. Optionally, use the Fhenix Remix Plugin to make your life a bit easier | ||
|
||
|
||
## 1. Add Fhenix to Metamask | ||
|
||
Follow the instructions in the [Fhenix Frontier](../Fhenix%20Frontier/Connecting-To.md) to add Fhenix to Metamask. | ||
|
||
## 2. Import FHE.sol | ||
|
||
All you need is to include is the FHE.sol solidity library to your project so the compiler will know what to do. | ||
|
||
```solidity | ||
import "@fhenixprotocol/contracts/FHE.sol"; | ||
``` | ||
``` | ||
|
||
## 3. Fhenix Remix Plugin | ||
|
||
The Fhenix Remix Plugin is a browser extension that adds Fhenix support to Remix. It allows you to encrypt and decrypt data in your contracts, and to interact with the Fhenix testnet. | ||
|
||
See the [Fhenix Remix Plugin](Fhenix-Remix-Plugin.md) for more information on how to install and use the plugin! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"label": "Setting Up Your Environment", | ||
"position": 4 | ||
"position": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,25 @@ | ||
--- | ||
sidebar_position: 1 | ||
title: Overview | ||
description: Comparisons on FHE data | ||
description: Different ways to set up your development environment for Fhenix | ||
--- | ||
|
||
# Overview | ||
|
||
There are a few different ways to set up an environment for development on Fhenix. All the tools you know from Solidity are mostly supported, though the addition of FHE means that a few custom tools are needed. Here we'll describe the different ways you can set up your development environment. | ||
There are a few different ways to set up an environment for development on Fhenix. All the tools you know from Solidity are mostly supported, though the addition of FHE means that a few custom tools are helpful. Here we'll describe the different ways you can set up your development environment. | ||
|
||
For your main deployment (either after your code is ready or if you just want to develop there) you'll probably want to deploy to the public Devnet, which you can do by [connecting to the testnet](../Fhenix%20Frontier/Connecting-To.md).  | ||
The following environments are recommended for development on Fhenix: | ||
|
||
We support the following development environments: | ||
|
||
Local, Gitpod or Remix based environment. | ||
- [Fhenix Hardhat Example](./Hardhat.md) | ||
- [Fhenix with Remix](./Remix.md) | ||
- [Gitpod Environment](./Gitpod.mdx) | ||
|
||
:::note[Note] | ||
The main developer tools are all based on Javascript & Solidity, but we have open bounties to add support for Python & Vyper! | ||
::: | ||
|
||
## Gitpod | ||
|
||
|
||
## Remix | ||
|
||
To get up and running with Remix, all you need is to include the TFHE.sol solidity files to your project so the compiler knows what to do. You can do so by importing FHE.sol from your contract directly - | ||
|
||
```javascript | ||
import "@fhenixprotocol/contracts/FHE.sol"; | ||
``` | ||
|
||
We also provide an example contract that can be loaded into Remix, using the "Load From Github" | ||
|
||
<img src="../.gitbook/assets/image (1).png" alt="" data-size="original" /> | ||
|
||
Which is available from [https://github.com/FhenixProtocol/devnet-contracts/blob/main/EncryptedERC20.sol](https://github.com/FhenixProtocol/devnet-contracts/blob/main/EncryptedERC20.sol). | ||
|
||
To connect Remix to Fhenix testnet, you can use the injected provider option after [adding to Metamask](../Fhenix%20Frontier/Connecting-To.md). | ||
|
||
Remix can also be connected to Hardhat and LocalFhenix, though the scope of that is beyond what I feel like writing now :smile:. | ||
If you just want to utilize one of the tools in your own environment, take a look at: | ||
|
||
### Remix Plugin | ||
- [Fhenix-Remix-Plugin](../Tools%20and%20Utilities/Fhenix-Remix-Plugin.md) | ||
- [Fhenix-Encryption-UI](../Tools%20and%20Utilities/Fhenix-Encryption-UI.md) | ||
- [Hardhat-Plugin](../Tools%20and%20Utilities/Fhenix-Hardhat-Plugin.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# FHE | ||
# FHE.sol | ||
|
||
### NIL8 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.