mirror of
https://github.com/Instadapp/boardroom-inc-protocol-Info.git
synced 2024-07-29 22:37:02 +00:00
fix: make sure it validates
This commit is contained in:
parent
327184fa2a
commit
ff58457463
|
@ -1,2 +1,21 @@
|
||||||
|
{
|
||||||
|
"cname": "",
|
||||||
|
"name": "",
|
||||||
|
"description": "",
|
||||||
|
"path": "",
|
||||||
|
"previousPaths": [],
|
||||||
|
"folder": "",
|
||||||
|
"type": "snapshot",
|
||||||
|
"suffix": "",
|
||||||
|
"coinGeckoPriceString": "",
|
||||||
|
"tokenContractAddress": "",
|
||||||
|
"isEnabled": false,
|
||||||
|
"hasOnchain": false,
|
||||||
|
"isHybrid": false,
|
||||||
|
"hasDelegation": false,
|
||||||
|
"snapshotSpaceName": "",
|
||||||
|
"invalidSnapshots": [],
|
||||||
|
"branding": {},
|
||||||
|
"discourseForum": {},
|
||||||
|
"safeAddress": null
|
||||||
|
}
|
||||||
|
|
|
@ -23,27 +23,28 @@ do
|
||||||
touch ./protocols/$arg/logo.png
|
touch ./protocols/$arg/logo.png
|
||||||
touch ./protocols/$arg/header.png
|
touch ./protocols/$arg/header.png
|
||||||
|
|
||||||
echo `{
|
echo '{
|
||||||
"cname": $arg,
|
"cname": "",
|
||||||
"name": $arg,
|
"name": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"path": $arg,
|
"path": "",
|
||||||
"previousPaths": [],
|
"previousPaths": [],
|
||||||
"folder": $arg,
|
"folder": "",
|
||||||
"type": "snapshot",
|
"type": "snapshot",
|
||||||
"suffix": "",
|
"suffix": "",
|
||||||
"coinGeckoPriceString": "",
|
"coinGeckoPriceString": "",
|
||||||
"tokenContractAddress": "",
|
"tokenContractAddress": "",
|
||||||
"isEnabled": false,
|
"isEnabled": false,
|
||||||
"hasOnchain": false,
|
"hasOnchain": false,
|
||||||
"isHybrid": false,
|
"isHybrid": false,
|
||||||
"hasDelegation": false,
|
"hasDelegation": false,
|
||||||
"snapshotSpaceName": "",
|
"snapshotSpaceName": "",
|
||||||
"invalidSnapshots": [],
|
"invalidSnapshots": [],
|
||||||
"branding": {},
|
"branding": {},
|
||||||
"discourseForum": {},
|
"discourseForum": {},
|
||||||
"safeAddress": null }` >> ./protocols/$arg/index.json
|
"safeAddress": null
|
||||||
|
}' >> ./protocols/$arg/index.json
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Arg 1: $1"
|
echo "Arg 1: $1"
|
57
types.js
Normal file
57
types.js
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
"use strict";
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||||
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||||
|
}) : function(o, v) {
|
||||||
|
o["default"] = v;
|
||||||
|
});
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ProtocolIo = void 0;
|
||||||
|
var t = __importStar(require("io-ts"));
|
||||||
|
exports.ProtocolIo = t.type({
|
||||||
|
cname: t.string,
|
||||||
|
name: t.string,
|
||||||
|
description: t.string,
|
||||||
|
path: t.string,
|
||||||
|
previousPaths: t.union([t.array(t.string), t.undefined]),
|
||||||
|
folder: t.string,
|
||||||
|
type: t.union([t.literal("snapshot"), t.literal("compoundish")]),
|
||||||
|
suffix: t.string,
|
||||||
|
coinGeckoPriceString: t.string,
|
||||||
|
tokenContractAddress: t.string,
|
||||||
|
governanceContractAddress: t.union([t.string, t.undefined]),
|
||||||
|
isEnabled: t.boolean,
|
||||||
|
hasOnchain: t.boolean,
|
||||||
|
isHybrid: t.boolean,
|
||||||
|
hasDelegation: t.boolean,
|
||||||
|
snapshotSpaceName: t.union([t.string, t.undefined]),
|
||||||
|
invalidSnapshots: t.union([t.array(t.string), t.undefined]),
|
||||||
|
branding: t.union([
|
||||||
|
t.partial({
|
||||||
|
primaryColor: t.string,
|
||||||
|
accentColor: t.string,
|
||||||
|
}),
|
||||||
|
t.undefined,
|
||||||
|
]),
|
||||||
|
discourseForum: t.union([
|
||||||
|
t.partial({
|
||||||
|
url: t.string,
|
||||||
|
categoryId: t.string,
|
||||||
|
}),
|
||||||
|
t.undefined,
|
||||||
|
]),
|
||||||
|
safeAddress: t.union([t.string, t.null]),
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user