-
Please follow this slide to register 30-days trial account with MorpheusLabs. It's absolutely free
-
Once you've done registration, click on our logo to automatically create a working space and RPC Node that would be used in this experiment
- Require Metamask wallet, and two accounts with available balances. Follow this to create and fund your accounts
WARNING:
- DO NOT share private keys to anyone even these accounts only use for testing purpose
- DO NOT use your main accounts
- Recommend to create brand new accounts in this experiment
- Install dependencies by running this command:
cd Loyalty-workshop
yarn
- Copy RPC Node API and paste into
hardhat.config.js
-
Once you have completed creating Metamask wallet and funding your accounts, it requires to create an environement file
- Create the
.env
file - Find
env.example
, then open and copy all content in this file - Paste copied content into
.env
file - Next, you need private keys of two funded accounts to be pasted into
.env
file
- Open your Metamask wallet -> click on three dots -> choose
Account details
- Choose
Export private keys
, then you will be prompted to type your Metamask wallet password
- Type your password and click on
Confirm
button - Copy your private key to either
DEPLOYER
orACCOUNT
in the.env
file
- Repeat these step for the last private key
- Create the
-
Compile smart contracts
yarn compile
Now, it's all set and ready to run an experiment