Interacts with the type of timelock smart contract, which allows users to unlock tokens.
Users simply load the page, (the user's account details are automatically pre-filled in the address input box).
The user's available (un-lockable) balance is calculated automatically.
The user then simply clicks the "Unlock Your Tokens" button (please note: the maximum amount of available tokens are automatically pre-filled in the amount input box).
It is recommended to also click the "Refresh/Calculate Balances" button after any transfers.
There are a few different timelock smart contracts i.e. which are deployed on the Ethereum mainnet.
Clone this repository
git clone [email protected]:second-state/linear-timelock-user-interface.git
Paste the ABI and the address of the linear timelock's successfully deployed contract instance, into the helper.js file
In addition to that, also paste the contract address of the ERC20 contract into the helper.js file. You will see the two addresses are clearly marked.
Then simply type
npm install
To publish/deploy simply type
npm run deploy
The path prefix is
claim-parastate-erc20-token
The 3 parameters are locking
, cliff
and vesting
. For example.
_locking-na_cliff-na_vesting-na`
When combined will produce URL paths like the following examples
no locking, no cliff and no vesting
claim-parastate-erc20-token_locking-na_cliff-na_vesting-na
30 Day lock, no cliff and no vesting
claim-parastate-erc20-token_locking-30-day_cliff-na_vesting-na
no locking, 90 day cliff and 15 months vesting
claim-parastate-erc20-token_locking-na_cliff-90-day_vesting-15-month
This particular site will be hosted to https://second-state.github.io/claim-parastate-erc20-token_locking-90_cliff-na_vesting-na/html/index.html