mirror of
https://github.com/Instadapp/boardroom-inc-protocol-Info.git
synced 2024-07-29 22:37:02 +00:00

* Excluding below compoundish projects, waiting for mutation support on them "aave" "gitcoin" "idlefinance" "indexed" "inverse" "pooltogether" "radicle" * Removing claim keys
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
import * as t from "io-ts";
|
|
|
|
export const 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"), t.literal("others")]),
|
|
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]),
|
|
treasuryAddresses: t.union([t.array(t.string), t.undefined]),
|
|
});
|
|
|
|
export const ProtocolForScreeenerIo = t.type({
|
|
name: t.string,
|
|
cname: t.string,
|
|
treasuryAddresses: t.array(t.string),
|
|
});
|
|
|
|
export type ProtocolForScreeener = t.TypeOf<typeof ProtocolForScreeenerIo>;
|
|
|
|
export type Protocol = t.TypeOf<typeof ProtocolIo>;
|