Participating in the Edgeware lockdrop

Ambroid
Ambroid
May 31 · 6 min read

Almost a month ago, we published a guide to installing and running an Edgeware full node on their testnet.
Since 100Towers will be participating in the Edgeware lockdrop, we decided to make a guide on how to join us.

As a quick refresher — Edgeware (EDG) is a smart-contract WASM based platform in the Polkadot ecosystem. A lockdrop is a modification of an airdrop, where users are be able to lock their Ethereum for a predetermined time (3 months, 6 months, 1 year) and based upon the amount and lockup time they receive EDG tokens. After the preset time period, the participants will receive all their ETH back.

There is even an option to Signal, which means you don’t lock up your ETH and receive most EDG tokens later. It’s a simple way to generate some potential revenue on Ethereum you would be holding anyways.

Reminder, linux terminal commands
are in italic in separate rows for convenient copying

Getting ready for the lockdrop

This guide is purely for Ubuntu 18.04 LTS

You can check the version of Ubuntu you are currently running using
lsb_release -a

If you are already running the node (here is the dedicated guide) then you can skip the initial setup, however, it might be a good idea to reinstall it, since the team updated all the scripts and now the installation of node and subkey is fully automated and without errors. It also installs the necessary prerequisites.

First we need to check if our system is up to date
apt-get update
sudo apt upgrade

We highly recommend using the updated script from edgeware-node repository to ensure smooth experience. This will automatically install all the necessary prerequisites that will be needed for key pair generation later.

We need to clone the repository before we can execute the setup script
git clone https://github.com/hicommonwealth/edgeware-node

Now we need to navigate into the edgeware folder and run the automated script that will setup the prerequisites and the node
cd edgeware-node
./setup.sh

This process can take hours to finish.
With all the necessary libraries installed we can now execute another script that will fetch the substrate subkey needed for the actual key pairs generation.
./keygen.sh

At the end of this process, the output will be a mnemonic phrase and a set of keys. Save them in a safe place and back them up (use usual best practices with cryptoasset backups — we suggest Crypto Asset Inheritance by Pamela Morgan). We also suggest generating the keys on a clean, fresh machine, if you aim to use these addresses on mainnet too.
Keep the mnemonic phrase handy, we will need it later.

If you want to be a validator since the launch of the Edgeware chain, then you will need three public keys generated, specifically two with sr25519 and one with ed25519 encryption. If you wdon’t want to validate, we will only generate a single sr25519 key. We will get to this later.

These are prerequisites for installing the edgeware-cli (command line wallet)
sudo apt install nodejs npm

Check if it was installed correctly
nodejs --version

The output should be the latest version number.

Just in case we will need it in the future (because Edgeware team is using yarn) we should install yarn too. The first step is to enable the Yarn repository. Start by importing the repository’s GPG key using the following curl command.
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

Add the Yarn APT repository to your system’s software repository list
echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list

Proceed to the installation:
sudo apt update
sudo apt install yarn

Lastly we check if we installed yarn correctly:
yarn --version

The output should again be the version number.
Now we need to download and compile the command line interface. This can be used to check your wallet balance or transfer tokens.
git clone https://github.com/hicommonwealth/edgeware-cli.git
cd edgeware-cli

Next we build the node modules:
npm i edgeware-cli -g

This is the file that will store your mnemonic phrase.
We will use the mnemonic phrase and stash pubkey that we generated in ./keygen.sh
It should look something like this:
MNEMONIC_PHRASE=”bottom drive obey lake curtain smoke basket hold race lonely fit walk”
Then type this command inside the edgeware-cli directory
nano .env

This will open a new text file with the name .env
You want the content of the text file to look like this:

MNEMONIC_PHRASE=”bottom drive obey lake curtain smoke basket hold race lonely fit walk”
DERIVATION_PATH=// YOUR STASH PUBKEY

Now press Ctrl + x and type y, then hit Enter
This will save the file.

To double check, type in
nano .env
You will see if the file you just created saved the text you copied there.

Next we want to check our balance. It should be zero.

At the time of writing this blogpost there seem to be connectivity issues with the testnode.edgewa.re node. You can try to connect any other node, by replacing the testnode.edgewa.re

Make sure you have opened port 9944 on your server.
To check your balances run:
edge -r <YOUR NODES IP> balances freeBalance <INSERT YOUR STASH ADDRESS HERE> --ws-external

Participating in the lockdrop

For those who prefer video instead of reading, we recommend this video created by Staking Facilities.

All keys that you want to use for mainnet tokens should be generated on a clean machine to ensure higher security of the private keys.
You can test the lockdrop smart contract on Ropsten testnet of Ethereum to be sure that you won’t make a mistake on mainnet.

For simplicity, we will be using the UI for lockdrop that is provided by the Edgeware team on their website. You can lock Ethereum with any wallet where you have access to your private keys.

If you don’t wish to be a validator, you only need to generate a single SR25519 key with substrate subkey
subkey generate

Save all the information, back it up (especially the mnemonic).

If you wish to be a validator, generate a second SR25519 key and back it up.
subkey generate

And a third key encrypted with ED25519
subkey -e generate

The UI for the lockdrop contract is here: https://edgewa.re/lockdrop/

The UI is very intuitive and the only thing that is required is to provide your Edgeware address (or addresses, if you wish to be a validator). Then you choose the period to lock your ETH and specify how much ETH you want to lock. If you want to be a validator, change the default status to “Yes” then add all the EDG addresses we just generated. If you don’t want to be a validator, you will only need the one SR25519 key.
After choosing your preferred wallet type, a set of instructions will roll out. Typing them up in here would be redundant. They describe a typical process of interacting with an ETH smart contract. The process IS described in the video mentioned above, so if you want to check it out, click here and the video will start at the interesting part.

An important note to all those who want to become validators:
“…this process doesn’t guarantee that you will be a validator, it does enable your selection. At launch, Validators will be selected from the largest lock amounts from the set of nominated Edgeware Public Addresses.”

If you have more questions, problems or suggestions, hop in the Edgeware Discord server. It’s been popping lately.

Ambroid

Written by

Ambroid

Euphoric Cryptocurrency Speculator turned Depressed Cryptocurrency Speculator