mirror of
https://github.com/Instadapp/boardroom-inc-protocol-Info.git
synced 2024-07-29 22:37:02 +00:00
chore: add example project
This commit is contained in:
parent
2d845fd990
commit
c92648a291
0
protocols/__example/contracts/governance.json
Normal file
0
protocols/__example/contracts/governance.json
Normal file
0
protocols/__example/contracts/token.json
Normal file
0
protocols/__example/contracts/token.json
Normal file
1
protocols/__example/events.json
Normal file
1
protocols/__example/events.json
Normal file
|
@ -0,0 +1 @@
|
|||
[]
|
BIN
protocols/__example/header.png
Normal file
BIN
protocols/__example/header.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
19
protocols/__example/index.json
Normal file
19
protocols/__example/index.json
Normal 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"
|
||||
}
|
BIN
protocols/__example/logo.png
Normal file
BIN
protocols/__example/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
1
protocols/__example/overview.md
Normal file
1
protocols/__example/overview.md
Normal file
|
@ -0,0 +1 @@
|
|||
Overview of protocol and governance process.
|
0
protocols/__example/resources/.gitkeep
Normal file
0
protocols/__example/resources/.gitkeep
Normal 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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user