Given as an incentive for users of the protocol. Can be locked in TokenLocker
to receive lock weight, which gives governance power within the Lista DAO.
Install dependencies with Yarn:
# Execute this command in the root directory of the repository
yarn
- Copy the
.env.example
file to.env
:
cp .env.example .env
- Fill in the environment variables in the
.env
file:
ETHERSCAN_API_KEY=
BSCSCAN_API_KEY=
DEPLOYER_PRIVATE_KEY=
BSC_TESTNET_RPC=
BSC_RPC=
SEPOLIA_RPC=
ETHEREUM_RPC=
DEPLOYER_PRIVATE_KEY
is the private key of the account that will deploy the contracts. It should have enough BNB/ETH to pay for the gas fees.
Run all tests:
yarn test:all
# or
npx hardhat test
Run a specific test file:
npx hardhat test <path/to/file>
Generate coverage report:
yarn coverage
Open coverage report in browser: coverage/index.html
- Run
npx hardhat deploy:ListaToken --network bsc <ownerAddress>
, which will deploy Lista contracts on bsc, the owner address is the address that will receive the total supply of tokens - Run
npx hardhat verify --network bsc <contractAddress> <ownerAddress>
, which will verify Lista contracts on bsc