Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Add multicall address to output installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbennett committed Dec 16, 2019
1 parent 92d96cf commit 54e23ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dai/contracts/addresses/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"OLD_CHIEF": "0xe50ff8544b50e2e0f25cab27bc85a7a905d5671a",
"OLD_IOU": "0x3be5c78f206f1de8766cfcdfd8f09a6995cd89ec",
"POLLING": "0x33bbcca25638d046c754987a45f7cba6a73b1fd4",
"OLD_VOTE_PROXY_FACTORY": "0x17d4edea99fad126ce0b3ed46646587d067f4f8c"
"OLD_VOTE_PROXY_FACTORY": "0x17d4edea99fad126ce0b3ed46646587d067f4f8c",
"MULTICALL": "0x6dbff82b7b650ac3892dde048456804e5c1a7a47"
}
8 changes: 8 additions & 0 deletions packages/dai/scripts/install-testchain-outputs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ CWD=`dirname $0`
CONTRACTS=$CWD/../contracts
SOURCE=${1:-$CWD/../../../node_modules/@makerdao/testchain}

function jq_inplace {
TMP=$(mktemp)
jq "$1" > $TMP && mv $TMP "$2"
}

for file in $SOURCE/out/*.abi; do
cp $file $CONTRACTS/abis/$(basename $file .abi).json
done

cp $SOURCE/out/addresses.json $CONTRACTS/addresses/testnet.json
MULTICALL=$(cat $SOURCE/out/addresses-mcd.json | jq '.MULTICALL')

cat $CONTRACTS/addresses/testnet.json | jq_inplace ".MULTICALL = $(echo $MULTICALL)" $CONTRACTS/addresses/testnet.json

0 comments on commit 54e23ea

Please sign in to comment.