/aeStaker

aeStaker is a decentralized staking and borrowing app, where users can stake and borrow AE tokens using Superhero wallet extension.

Primary LanguageTypeScriptMIT LicenseMIT

aeStaker

aeStaker is a decentralized staking and borrowing app, where users can stake and borrow AE tokens using Superhero wallet extension.

πŸ›  Technology Stack & Tools

  • Sophia (Writing Smart Contract)
  • Javascript (NextJs & Unit Testing)
  • aepp-sdk (Blockchain Interaction)
  • aeproject (Smart Contract Development Framework)

β›“ Blockchain Protocol used

  • AEternity token protocol

βš™ Requirements For Initial Setup

  • Install NodeJS, should work with any node version above 14.0.0
  • Download and setup Docker
  • Note: on windows WSL 2 must be used

πŸš€ Quick Start

πŸ“„ Clone or fork aeStaker:

https://github.com/paschal533/aeStaker.git

πŸ’Ώ Install all dependencies:

$ cd aeStaker
$ cd frontend
$ npm install 

πŸš΄β€β™‚οΈ Run your App:

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.

πŸ“„ interacting with the Smart-contract

$ cd aeStaker
$ cd smart-contract
$ npm install

πŸŽ— Running a local environment

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.

πŸ›  Test the Smart-contract:

aeproject test

This will run the tests located in ./test folder. Further explained in Testing Documentation.

πŸ”— Deploy the Smart-contract:

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

πŸ“„ Smart-contract address

ct_SjV3mnz56BkpJdCQZfp1giwjNaHVqEt9EiKfBFbqBcbmdJyaC

πŸ“œ aeternity Testnet Explorer

https://explorer.testnet.aeternity.io/contracts/transactions/ct_SjV3mnz56BkpJdCQZfp1giwjNaHVqEt9EiKfBFbqBcbmdJyaC