Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Add example deploy scripts for reference #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion deploy-synthetix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Requires MCD environment variables to be in scope https://changelog.makerdao.com/releases/mainnet/active/contracts.json
#
# Usage: ./deploy-synthetix.sh <ILK> <GEM> <BONUS> <POOL>
# Lido Example: ./deploy-synthetix.sh CRVV1STETHETH-A 0x06325440D014e39736583c165C2963BA99fAf14E 0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32 0x99ac10631F69C753DDb595D074422a0922D9056B
# Lido Example: ./deploy-synthetix.sh CRVV1ETHSTETH-A 0x06325440D014e39736583c165C2963BA99fAf14E 0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32 0x99ac10631F69C753DDb595D074422a0922D9056B
####################################################

ILK=$(seth --to-bytes32 "$(seth --from-ascii "$1")")
Expand All @@ -23,6 +23,10 @@ echo "Set implementation..."

seth send $CROPJOIN 'setImplementation(address)' $CROPJOIN_IMP

echo "Call init..."

seth send $CROPJOIN 'init()'
talbaneth marked this conversation as resolved.
Show resolved Hide resolved

echo "Set permissions..."

seth send $CROPJOIN 'rely(address)' $MCD_PAUSE_PROXY
Expand Down