mirror of
https://github.com/Instadapp/boardroom-inc-protocol-Info.git
synced 2024-07-29 22:37:02 +00:00
fix: validate types
This commit is contained in:
parent
a5dfe215b8
commit
66045979c4
|
@ -14,7 +14,7 @@
|
||||||
"claim": {
|
"claim": {
|
||||||
"isClaimed": false,
|
"isClaimed": false,
|
||||||
"claimer": "",
|
"claimer": "",
|
||||||
"signature": "",
|
"signature": ""
|
||||||
},
|
},
|
||||||
"isHybrid": false,
|
"isHybrid": false,
|
||||||
"hasDelegation": false,
|
"hasDelegation": false,
|
||||||
|
|
4
types.d.ts
vendored
4
types.d.ts
vendored
|
@ -8,11 +8,11 @@ export declare const ProtocolIo: t.TypeC<{
|
||||||
folder: t.StringC;
|
folder: t.StringC;
|
||||||
type: t.UnionC<[t.LiteralC<"snapshot">, t.LiteralC<"compoundish">]>;
|
type: t.UnionC<[t.LiteralC<"snapshot">, t.LiteralC<"compoundish">]>;
|
||||||
suffix: t.StringC;
|
suffix: t.StringC;
|
||||||
claim: t.TypeC<{
|
claim: t.UnionC<[t.PartialC<{
|
||||||
isClaimed: t.BooleanC;
|
isClaimed: t.BooleanC;
|
||||||
claimer: t.StringC;
|
claimer: t.StringC;
|
||||||
signature: t.StringC;
|
signature: t.StringC;
|
||||||
}>;
|
}>, t.UndefinedC]>;
|
||||||
coinGeckoPriceString: t.StringC;
|
coinGeckoPriceString: t.StringC;
|
||||||
tokenContractAddress: t.StringC;
|
tokenContractAddress: t.StringC;
|
||||||
governanceContractAddress: t.UnionC<[t.StringC, t.UndefinedC]>;
|
governanceContractAddress: t.UnionC<[t.StringC, t.UndefinedC]>;
|
||||||
|
|
13
types.js
13
types.js
|
@ -30,11 +30,14 @@ exports.ProtocolIo = t.type({
|
||||||
folder: t.string,
|
folder: t.string,
|
||||||
type: t.union([t.literal("snapshot"), t.literal("compoundish")]),
|
type: t.union([t.literal("snapshot"), t.literal("compoundish")]),
|
||||||
suffix: t.string,
|
suffix: t.string,
|
||||||
claim: t.type({
|
claim: t.union([
|
||||||
isClaimed: t.boolean,
|
t.partial({
|
||||||
claimer: t.string,
|
isClaimed: t.boolean,
|
||||||
signature: t.string,
|
claimer: t.string,
|
||||||
}),
|
signature: t.string,
|
||||||
|
}),
|
||||||
|
t.undefined,
|
||||||
|
]),
|
||||||
coinGeckoPriceString: t.string,
|
coinGeckoPriceString: t.string,
|
||||||
tokenContractAddress: t.string,
|
tokenContractAddress: t.string,
|
||||||
governanceContractAddress: t.union([t.string, t.undefined]),
|
governanceContractAddress: t.union([t.string, t.undefined]),
|
||||||
|
|
13
types.ts
13
types.ts
|
@ -9,11 +9,14 @@ export const ProtocolIo = t.type({
|
||||||
folder: t.string,
|
folder: t.string,
|
||||||
type: t.union([t.literal("snapshot"), t.literal("compoundish")]),
|
type: t.union([t.literal("snapshot"), t.literal("compoundish")]),
|
||||||
suffix: t.string,
|
suffix: t.string,
|
||||||
claim: t.type({
|
claim: t.union([
|
||||||
isClaimed: t.boolean,
|
t.partial({
|
||||||
claimer: t.string,
|
isClaimed: t.boolean,
|
||||||
signature: t.string,
|
claimer: t.string,
|
||||||
}),
|
signature: t.string,
|
||||||
|
}),
|
||||||
|
t.undefined,
|
||||||
|
]),
|
||||||
coinGeckoPriceString: t.string,
|
coinGeckoPriceString: t.string,
|
||||||
tokenContractAddress: t.string,
|
tokenContractAddress: t.string,
|
||||||
governanceContractAddress: t.union([t.string, t.undefined]),
|
governanceContractAddress: t.union([t.string, t.undefined]),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user