chore: add example project

This commit is contained in:
Zak Angelle 2021-04-22 06:12:54 -05:00
parent 2d845fd990
commit c92648a291
No known key found for this signature in database
GPG Key ID: AD38A27D7E1B3CDD
9 changed files with 26 additions and 3 deletions

View File

View File

@ -0,0 +1 @@
[]

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -0,0 +1,19 @@
{
"cname": "example",
"name": "Example",
"description": "A concise description of the protocol",
"path": "example",
"folder": "__example",
"type": "snapshot",
"suffix": "EXP",
"coinGeckoPriceString": "example",
"tokenContractAddress": "0x0000000000000000000000000000000000000000",
"isEnabled": true,
"hasOnchain": false,
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "example.eth",
"invalidSnapshots": [],
"discourseForum": {},
"safeAddress": "0x0000000000000000000000000000000000000000"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -0,0 +1 @@
Overview of protocol and governance process.

View File

View File

@ -3,9 +3,11 @@ import mkdirp from "mkdirp";
const protocols = fs.readdirSync("./protocols");
const protocolInfo = protocols.map((protocol) =>
fs.readFileSync(`./protocols/${protocol}/index.json`, "utf8")
);
const protocolInfo = protocols
.filter((protocol) => protocol !== "__example")
.map((protocol) =>
fs.readFileSync(`./protocols/${protocol}/index.json`, "utf8")
);
mkdirp.sync("./dist");
fs.copyFileSync("./types.ts", "./dist/types.ts");