diff --git a/protocols/__example/contracts/governance.json b/protocols/__example/contracts/governance.json new file mode 100644 index 0000000..e69de29 diff --git a/protocols/__example/contracts/token.json b/protocols/__example/contracts/token.json new file mode 100644 index 0000000..e69de29 diff --git a/protocols/__example/events.json b/protocols/__example/events.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/protocols/__example/events.json @@ -0,0 +1 @@ +[] diff --git a/protocols/__example/header.png b/protocols/__example/header.png new file mode 100644 index 0000000..96ea126 Binary files /dev/null and b/protocols/__example/header.png differ diff --git a/protocols/__example/index.json b/protocols/__example/index.json new file mode 100644 index 0000000..bf19cf2 --- /dev/null +++ b/protocols/__example/index.json @@ -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" +} diff --git a/protocols/__example/logo.png b/protocols/__example/logo.png new file mode 100644 index 0000000..249f3e6 Binary files /dev/null and b/protocols/__example/logo.png differ diff --git a/protocols/__example/overview.md b/protocols/__example/overview.md new file mode 100644 index 0000000..10f0af5 --- /dev/null +++ b/protocols/__example/overview.md @@ -0,0 +1 @@ +Overview of protocol and governance process. diff --git a/protocols/__example/resources/.gitkeep b/protocols/__example/resources/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/scripts/build.ts b/scripts/build.ts index b73e23b..7413817 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -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");