Clone the source code, install dependencies.
git clone https://github.com/AlgemDeFi/algem-contracts
cd ~/algem-contracts
yarn install
Get latest astar-collator binary
To start dev node run
yarn chain
or
./astar-collator --dev
Run npx hardhat %TASK_NAME%
- convertAddr convert evm address to polkadot
- giveMoney give native tokens from //Alice dev account
- registerDapp register contract in DAPPS_STAKING module
yarn compile
or
npx hardhat compile
yarn deploy --network %NETWORK_NAME%
or
npx hardhat run scripts/init.ts --network %NETWORK_NAME%
yarn test
or
npx hardhat test --network astarLocal