Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git tags, ABI based on version, deployment manager IO1-2235 + IO1-2727 #199

Open
wants to merge 178 commits into
base: main
Choose a base branch
from

Conversation

mtabasco
Copy link
Collaborator

@mtabasco mtabasco commented Mar 11, 2023

  • Deploy manager script for deploying / upgrading contracts in stage / testnet / main environments

  • When the target environment is stage, testnet or mainnet, an annotated semantic version tag for current branch is created and the ABI is published to this location in contract-abi branch:
    docs/<env>/abi/<tag> when using stage, testnet or main
    'docs//abi/dev' when using develop

  • On demand semantic versioning. By default, these rules are followed:
    Tags created using stage env are treated as RCs (i.e v0.1.0-rc.0 -> v0.1.0-rc.1 ...)
    Tags created using testnet or main envs are treated as releases (i.e v0.1.0-rc.1 becomes v0.1.0)
    In both cases, if a version-type parameter is passed, the rule is overriden (i.e v0.1.0-rc.2 -> -t minor -> v0.2.0-rc.0)
    Tags created using develop env are not tagged

  • Deployment scripts were replaced by hardhat tasks for better integration

* cluster.disabled -> cluster.active
* liquidate cluster with negative balance
* Remove check for liquidation in deposit
* Fix cluster balance on reactivation
scripts/bash/deploy_manager Outdated Show resolved Hide resolved
@andrewbaronick
Copy link

I just want to add that i did review but i am not very strong in bash to really review this well

mtabasco and others added 7 commits March 14, 2023 16:41
* add getValidator function

* change getClusterBurnRate to getBurnRate

* todo to change var to public

---------

Co-authored-by: Lior Rutenberg <[email protected]>
* add Operator.whitelisted

* update Views contract, gas usage update

* test passed

* operatorsWhitelist mapping

* emit whitelisted address on registration

* remove unused flag

* add registerPrivateOperator

* registerOperator -> setOperatorWhitelist for private operators

* use only setOperatorWhitelist for setting / removing whithelist address
* use minimumLiquidationCollateral

* add MINIMAL_LIQUIDATION_COLLATERAL

* update min liquidation defualt value to 2

* allow owner to set any min collateral

* update gas usage

* remove MINIMAL_COLLATERAL constant

---------

Co-authored-by: Lior Rutenberg <[email protected]>
@mtabasco mtabasco changed the base branch from contract-v3 to develop March 17, 2023 13:32
Copy link
Collaborator

@andrew-blox andrew-blox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a lot of changes were done to scripts and adding of tasks but i dont see any changes to read me. Are any changes needed there @mtabasco

scripts/deploy_manager Show resolved Hide resolved
process.env.DECLARE_OPERATOR_FEE_PERIOD,
process.env.EXECUTE_OPERATOR_FEE_PERIOD,
process.env.MINIMUM_BLOCKS_BEFORE_LIQUIDATION,
process.env.MINIMUM_LIQUIDATION_COLLATERAL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update in .env.example as well right?

tasks/utils.ts Show resolved Hide resolved
@andrew-blox andrew-blox self-requested a review April 19, 2023 08:15
@mtabasco mtabasco changed the base branch from develop to main May 16, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants