mirror of
https://github.com/Instadapp/boardroom-inc-protocol-Info.git
synced 2024-07-29 22:37:02 +00:00
fix: auto populate index.json skeleton
This commit is contained in:
parent
f17780856f
commit
327184fa2a
0
protocols/ampleforth/contracts/governance.json
Normal file
0
protocols/ampleforth/contracts/governance.json
Normal file
0
protocols/ampleforth/contracts/token.json
Normal file
0
protocols/ampleforth/contracts/token.json
Normal file
0
protocols/ampleforth/events.json
Normal file
0
protocols/ampleforth/events.json
Normal file
0
protocols/ampleforth/header.png
Normal file
0
protocols/ampleforth/header.png
Normal file
2
protocols/ampleforth/index.json
Normal file
2
protocols/ampleforth/index.json
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
|
0
protocols/ampleforth/logo.png
Normal file
0
protocols/ampleforth/logo.png
Normal file
0
protocols/ampleforth/overview.md
Normal file
0
protocols/ampleforth/overview.md
Normal file
|
@ -7,21 +7,42 @@ do
|
||||||
then
|
then
|
||||||
echo "Pass in the name of the protocol whose info you want to add. e.g: ./add_new_protocol.sh rarible"
|
echo "Pass in the name of the protocol whose info you want to add. e.g: ./add_new_protocol.sh rarible"
|
||||||
else
|
else
|
||||||
mkdir -p ./$arg
|
mkdir -p ./protocols/$arg
|
||||||
|
|
||||||
mkdir -p ./$arg/resources
|
mkdir -p ./protocols/$arg/resources
|
||||||
mkdir -p ./$arg/resources/calls
|
mkdir -p ./protocols/$arg/resources/calls
|
||||||
mkdir -p ./$arg/resources/Gov Weekly
|
mkdir -p ./protocols/$arg/resources/Gov Weekly
|
||||||
|
|
||||||
mkdir -p ./$arg/contracts
|
mkdir -p ./protocols/$arg/contracts
|
||||||
touch ./$arg/contracts/governance.json
|
touch ./protocols/$arg/contracts/governance.json
|
||||||
touch ./$arg/contracts/token.json
|
touch ./protocols/$arg/contracts/token.json
|
||||||
|
|
||||||
touch ./$arg/index.json
|
touch ./protocols/$arg/index.json
|
||||||
touch ./$arg/events.json
|
touch ./protocols/$arg/events.json
|
||||||
touch ./$arg/overview.md
|
touch ./protocols/$arg/overview.md
|
||||||
touch ./$arg/logo.png
|
touch ./protocols/$arg/logo.png
|
||||||
touch ./$arg/header.png
|
touch ./protocols/$arg/header.png
|
||||||
|
|
||||||
|
echo `{
|
||||||
|
"cname": $arg,
|
||||||
|
"name": $arg,
|
||||||
|
"description": "",
|
||||||
|
"path": $arg,
|
||||||
|
"previousPaths": [],
|
||||||
|
"folder": $arg,
|
||||||
|
"type": "snapshot",
|
||||||
|
"suffix": "",
|
||||||
|
"coinGeckoPriceString": "",
|
||||||
|
"tokenContractAddress": "",
|
||||||
|
"isEnabled": false,
|
||||||
|
"hasOnchain": false,
|
||||||
|
"isHybrid": false,
|
||||||
|
"hasDelegation": false,
|
||||||
|
"snapshotSpaceName": "",
|
||||||
|
"invalidSnapshots": [],
|
||||||
|
"branding": {},
|
||||||
|
"discourseForum": {},
|
||||||
|
"safeAddress": null }` >> ./protocols/$arg/index.json
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user