Skip to content

Instantly share code, notes, and snippets.

@hellwolf
Created January 25, 2022 21:10
Show Gist options
  • Save hellwolf/f9d91b55e351f29d8b5b7af477368056 to your computer and use it in GitHub Desktop.
Save hellwolf/f9d91b55e351f29d8b5b7af477368056 to your computer and use it in GitHub Desktop.
Deployment on xDAI

Perhaps out dated notes

Extract the multi-files for uploading

$ # at the root folder protocol-monorepo
$ (C=SETHProxy;cd packages/ethereum-contracts;mkdir build/$C.json.d;cp build/contracts/$C.json build/$C.json.d;cat build/$C.json.d/$C.json | jq '.metadata | fromjson | .sources | keys | .[]' -r | while read i;do if [ "${i##/*}" != "" ];then i=$PWD/../../node_modules/$i;fi; echo $i;yes | cp -f $i build/$C.json.d/;done;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment