Sylvester-dev / assessment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alpaca Contract

Local Development

The following assumes the use of node@>=14.

Install Dependencies

  1. Copy .env.example file and change its name to .env in the project folder
  2. Run yarn to install all dependencies

Compile Contracts

yarn compile

Note: There will be a new folder called typechain generated in your project workspace. You will need to navigate to typechain/index.ts and delete duplicated lines inside this file in order to proceed.

Run Tests with hardhat

yarn test

Testing with Forge

Install Forge

Test

$ forge test

Contracts

debtibWBNB
Deployed at 0xdD34FC0AB5390AEfa550dCf28CFd8a82B6A05762
upgradable Vault contract for LINK-WBNB
Deployed at 0x9CF76779f81f0138ceff00cf39467CF8046De50B

Vault-config
upgradable configurableInterestVaultConfig contract
Deployed at 0x70A8994C904334B955136fBB6eb0a88CeCC1869e

AutomatedController
upgradable AutomatedVaultController
Deployed at 0x142CbA43190e25Eaecb004e0ab1C51BCDA2d7390
Deployed block: 20098702
SET AVController to file > 0x142CbA43190e25Eaecb004e0ab1C51BCDA2d7390

About

License:MIT License


Languages

Language:TypeScript 66.3%Language:Solidity 33.2%Language:Vyper 0.4%Language:Roff 0.1%Language:Shell 0.0%