ekonomia-tech / protocol-alpha

Alpha version of a DeFi stablecoin protocol
GNU General Public License v3.0
4 stars 0 forks source link

Deployment scripts update + Automatic address update + Shell scripts to add modules and ceiling #79

Closed nmimran99 closed 1 year ago

nmimran99 commented 1 year ago

This is a big one. This PR has:

  1. Updated deployment scripts that utilize one another. We no longer need to copy paste the addresses, the scripts know how to fetch the new deployed addresses and reuse them wherever needed
  2. A new logging mechanism where deployments to different environments are logged and saved
  3. New shell scripts to ease the deployments
  4. New shell scripts to add a module, add ceiling to a module and updating it.

Files and folders:

  1. deployments folder - this folder contains temporary addresses and logs the addresses deployed to each network
  2. deploy folder - contains shell scripts needed to deploy and update contracts
  3. scripts/Addresses.sol - this file has been changed and now reads addresses from temp addresses file/past addresses file based on when its needed
  4. scripts/UpdateAddModule.s.sol - This script adds a module
  5. scripts/UpdateModulePHOCeiling.s.sol - this script updates the module pho ceiling
  6. scripts/UpdateExecuteCeilingUpdate.s.sol - this script executes the ceiling update
  7. deploy/deploy.sh - this script deploys a single contract based on parameters
  8. deploy/deployAll.sh - this scripts calls several different depoy.sh with chosen parameters
  9. deploy/addModule.sh - script of .s file
  10. deploy/setPHOCeiling.sh - script of .s file
  11. deploy/executeCeilingUpdate.sh - script for .s file