-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from OlympusDAO/deployment-scripts
Improved deployment and proposal scripts
- Loading branch information
Showing
16 changed files
with
581 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ docs/ | |
cache/ | ||
coverage/ | ||
lib/ | ||
dependencies/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# ROLES | ||
|
||
This document describes the roles that are used in the Olympus protocol. | ||
|
||
## Role Definitions | ||
|
||
| Role | Policy | Actions | | ||
|------|----------|-------------| | ||
| bondmanager_admin | BondManager | Create/close bond markets, set parameters | | ||
| bridge_admin | CrossChainBridge | Allows configuring the CrossChainBridge | | ||
| callback_admin | BondCallback | Administers the policy | | ||
| callback_whitelist | BondCallback | Whitelists/blacklists tellers for callback | | ||
| cooler_overseer | Clearinghouse | Allows activating the Clearinghouse | | ||
| custodian | TreasuryCustodian | Deposit/withdraw reserves and grant/revoke approvals | | ||
| distributor_admin | Distributor | Set reward rate, bounty, and other parameters | | ||
| emergency_restart | Emergency | Reactivates the TRSRY and/or MINTR modules | | ||
| emergency_shutdown | Clearinghouse | Allows shutting down the protocol in an emergency | | ||
| emergency_shutdown | Emergency | Deactivates the TRSRY and/or MINTR modules | | ||
| heart | Operator | Call the operate() function | | ||
| heart | ReserveMigrator | Allows migrating reserves from one reserve token to another | | ||
| heart | YieldRepurchaseFacility | Creates a new YRF market | | ||
| heart_admin | Heart | Allows configuring heart parameters and activation/deactivation | | ||
| loop_daddy | YieldRepurchaseFacility | Activate/deactivate the functionality | | ||
| operator_admin | Operator | Activate/deactivate the functionality | | ||
| operator_policy | Operator | Set spreads, threshold factor, and cushion factor | | ||
| operator_reporter | Operator | Report bond purchases | | ||
| poly_admin | pOLY | Allows migrating pOLY terms to another contract | | ||
|
||
## Role Allocations | ||
|
||
```json | ||
{ | ||
"0x0AE561226896dA978EaDA0Bec4a7d3CfAE04f506": [ // Current Operator contract | ||
"callback_whitelist" | ||
], | ||
"0x245cc372C84B3645Bf0Ffe6538620B04a217988B": [ // DAO MS | ||
"operator_operate", | ||
"operator_admin", | ||
"callback_admin", | ||
"price_admin", | ||
"custodian", | ||
"emergency_restart", | ||
"bridge_admin", | ||
"heart_admin", | ||
"cooler_overseer", | ||
"operator_policy", | ||
"bondmanager_admin", | ||
"loop_daddy" | ||
], | ||
"0x73df08CE9dcC8d74d22F23282c4d49F13b4c795E": [ // Current BondCallback contract | ||
"operator_reporter" | ||
], | ||
"0x953EA3223d2dd3c1A91E9D6cca1bf7Af162C9c39": [ // OCG Timelock | ||
"cooler_overseer", | ||
"emergency_admin", | ||
"emergency_shutdown", | ||
"operator_admin", | ||
"callback_admin", | ||
"price_admin", | ||
"custodian", | ||
"emergency_restart", | ||
"bridge_admin", | ||
"heart_admin", | ||
"operator_policy", | ||
"loop_daddy", | ||
"contract_registry_admin", | ||
"loan_consolidator_admin" | ||
], | ||
"0xda9fEDBcAF319Ecf8AB11fe874Fb1AbFc2181766": [ // pOly MS | ||
"poly_admin" | ||
], | ||
"0xa8A6ff2606b24F61AFA986381D8991DFcCCd2D55": [ // Emergency MS | ||
"emergency_shutdown", | ||
"emergency_admin" | ||
], | ||
"0x39F6AA3d445e6Dd8eC232c6Bd589889A88E3034d": [ // Current Heart contract | ||
"heart", | ||
"operator_operate" | ||
] | ||
} | ||
``` | ||
|
||
The current role allocations can be determined by running the [role-viewer](https://github.com/OlympusDAO/role-viewer/) tool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[dependencies]] | ||
name = "surl" | ||
version = "1.0.0" | ||
git = "https://github.com/memester-xyz/surl.git" | ||
rev = "034c912ae9b5e707a5afd21f145b452ad8e800df" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Batch Scripts | ||
|
||
This directory contains batch scripts for the Olympus DAO multisig. | ||
|
||
## Fork Testing | ||
|
||
To run the scripts on a testnet/forked chain, provide the `--testnet` flag to the `batch.sh` script. This requires certain environment variables to be set, which are documented in the `batch.sh` file. | ||
|
||
For example: | ||
|
||
```bash | ||
./batch.sh --contract ContractRegistryInstall --batch script1_install --broadcast true --testnet true --env .env.testnet | ||
``` |
Oops, something went wrong.