aeStaker is a decentralized staking and borrowing app, where users can stake and borrow AE tokens using Superhero wallet extension.
- Sophia (Writing Smart Contract)
- Javascript (NextJs & Unit Testing)
- aepp-sdk (Blockchain Interaction)
- aeproject (Smart Contract Development Framework)
- AEternity token protocol
- Install NodeJS, should work with any node version above 14.0.0
- Download and setup Docker
- Note: on windows WSL 2 must be used
π Clone or fork aeStaker:
https://github.com/paschal533/aeStaker.git
πΏ Install all dependencies:
$ cd aeStaker
$ cd frontend
$ npm install
npm run dev
- Note :- This app was deploy to aeternity testnet, so you need to have superhero wallet extension installed on your browser before you can be able to Interact with the app.
$ cd aeStaker
$ cd smart-contract
$ npm install
aeproject env
This will run a local Γ¦ternity network in dev-mode (node, compiler and nginx-proxy).
To stop an already spawned local environment use aeproject env --stop
Further explained in Environment Documentation.
aeproject test
This will run the tests located in ./test folder. Further explained in Testing Documentation.
Install aepp-cli
sudo npm i -g @aeternity/aepp-cli
Then create a wallet with aecli
aecli account create sample-wallet
Deploy the smart contract with the wallet you created
aecli contract deploy sample-wallet --contractSource contracts/StakeContract.aes
ct_SjV3mnz56BkpJdCQZfp1giwjNaHVqEt9EiKfBFbqBcbmdJyaC