-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Contracts 1.1] Prospective Release of Contracts 1.1 (#2)
* Add ability to configure dev fund split * regenerate minter * wip (#3) Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * [Contracts 1.1] Remove ovenMax Parameter (#4) * remove ovenmax * recompile Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * [Contracts 1.1] Decompose `updateParams` Entrypoint (#5) * decompose * decompose Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * process liquidations (#6) Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * Revert "process liquidations (#6)" (#7) This reverts commit 3e2e260. * [Contracts 1.1] Restrict Liquidations to the Liquidity Pool in Most Circumstances (#11) * process liquidations * add fake liquidity pool Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * Deploy Scripts for v1.1 (#9) * wip * wip * more wip * work work * work in progress * end to end * cleanup files Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * [Contracts 1.1] Update API to Use Threshold (#16) * Fix API * removed cached smartpy Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * [Contracts 1.1] Remove Accidentally Committed SmartPy Artifacts (#17) * remove accidentally committed smartpy files * update gitignore Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> * Fix some final nits (#18) * fix a few nits * fix substitution Co-authored-by: Keefer Taylor <keefer@keefertaylor.com> Co-authored-by: Keefer Taylor <keefer@keefertaylor.com>
- Loading branch information
1 parent
d33e0a4
commit a07449e
Showing
29 changed files
with
13,180 additions
and
4,516 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
migrations/*/src/config.ts | ||
migrations/*/deploy-data.json | ||
node_modules/ | ||
smart_contracts/smartpy_out |
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,6 @@ | ||
[submodule "multisig-timelock"] | ||
path = multisig-timelock | ||
url = https://github.com/hover-labs/multisig-timelock | ||
[submodule "break-glass-contracts"] | ||
path = break-glass-contracts | ||
url = https://github.com/hover-labs/break-glass-contracts |
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
Submodule break-glass-contracts
added at
9928bf
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,95 @@ | ||
# Description | ||
|
||
This script migrates contracts to the Contracts 1.1 branch (`keefertaylor/contracts-1.1`) | ||
|
||
## Runbooks | ||
|
||
### Testnet | ||
|
||
**Ensure up to date and clean checkout** | ||
``` | ||
$ git pull | ||
$ git status | ||
``` | ||
|
||
**Ensure correct SmartPy Version** | ||
|
||
``` | ||
sh <(curl -s https://smartpy.io/releases/20210708-4662b0f8b1fe2186a243078f9f1ba0a4aa1c6f16/cli/install.sh) | ||
``` | ||
|
||
**Remove any stale data** | ||
``` | ||
npm run install-submodules | ||
rm -f src/config.ts deploy-data.json | ||
``` | ||
|
||
**Reset Sandbox** | ||
|
||
Use the Discord bot! | ||
|
||
**Run Migration** | ||
``` | ||
export DEPLOY_SK=esdk... | ||
cp src/config.sandbox.ts src/config.ts | ||
ts-node src/flows/migrate.ts | ||
``` | ||
|
||
**Validate Results** | ||
|
||
Note: This action is destructive and the contract should not be used in production. | ||
|
||
``` | ||
ts-node src/verifications/verify-storage.ts | ||
ts-node src/verifications/verify-dao-and-break-glass.ts | ||
``` | ||
|
||
**Generate Governance Lambda** | ||
``` | ||
ts-node src/flows/generate-governance-lambda.ts | ||
``` | ||
|
||
**Validation** | ||
|
||
Validate the following in [the sandbox](https://sandbox.kolibri.finance/): | ||
- A new oven can be created (tests that oven factory is wired correctly) | ||
- New kUSD can be minted from the oven (tests that oven proxy and token are wired correctly) | ||
|
||
|
||
### Mainnet | ||
|
||
**Ensure up to date and clean checkout** | ||
``` | ||
$ git pull | ||
$ git status | ||
``` | ||
|
||
**Ensure correct SmartPy Version** | ||
|
||
``` | ||
sh <(curl -s https://smartpy.io/releases/20210708-4662b0f8b1fe2186a243078f9f1ba0a4aa1c6f16/cli/install.sh) | ||
``` | ||
|
||
**Remove any stale data** | ||
``` | ||
npm run install-submodules | ||
rm -f src/config.ts deploy-data.json | ||
``` | ||
|
||
**Run Migration** | ||
``` | ||
export DEPLOY_SK=esdk... | ||
cp src/config.mainnet.ts src/config.ts | ||
ts-node src/flows/migrate.ts | ||
``` | ||
|
||
**Validate Results** | ||
|
||
``` | ||
ts-node src/verifications/verify-storage.ts | ||
``` | ||
|
||
**Generate Governance Lambda** | ||
``` | ||
ts-node src/flows/generate-governance-lambda.ts | ||
``` |
Oops, something went wrong.