/edge-lockdrop

Lockdrop contracts

Primary LanguageJavaScript

edge-lockdrop

This repo contains the smart contracts and scripts for the Edgeware lockdrop. The lockdrop contract enables users to lock and signal ether towards a given project. Users specify either 3, 6, or 12 month lockups and must submit an edgeware 32 byte hex public key and their interest in staking as a validator. The scripts aggregate transactions on behalf of a lockdrop contract and compile the JSON objects necessary for a substrate genesis specification.

Usage

yarn global add truffle
yarn install

To test, use ganache-cli and truffle

truffle test

To use the script /scripts/lockdrop.js, ensure you have a local Ethereum connection

node ./scripts/lockdrop.js 

API

Usage: lockdrop [options]

Options:
  -V, --version          output the version number
  -b, --balance          balance
  -l, --lock             lock
  -u, --unclock          unclock
  --lockers              lockers
  --ending               poll when the lockdrop lock period is ending
  --lockLength <length>  lockLength - (3, 6, or 12)
  --lockValue <value>    lockValue
  --pubKey <key>         pubKey in hex
  --isValidator          isValidator
  -h, --help             output usage information

Edgeware blockchain

To align incentives, the Edgeware network will be launched with a lockdrop of EDG tokens to Ether holders. A lockdrop happens where token holders on one network timelock their tokens for a certain amount of time — all executed within a smart contract. Ether holders are able to lock their tokens for as short as 3 months or as long as one year. With longer timelocks corresponding to receiving proportionally more Edgeware tokens.

Explainer on Medium