fix: claim type

This commit is contained in:
yj 2021-04-23 16:13:48 -05:00
parent e68a370e18
commit 0dd6fa0bc3
2 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,8 @@ async function run() {
for (let i = 0; i < Object.keys(notDed).length; i++) { for (let i = 0; i < Object.keys(notDed).length; i++) {
const key = Object.keys(notDed)[i]; const key = Object.keys(notDed)[i];
console.log("Writing: ", key);
const tokenAddress = extractTokenAddress(notDed[key]); const tokenAddress = extractTokenAddress(notDed[key]);
exec(`sh ./scripts/add_new_protocol.sh ${key} ${tokenAddress}`, (error, stdout, stderr) => { exec(`sh ./scripts/add_new_protocol.sh ${key} ${tokenAddress}`, (error, stdout, stderr) => {

View File

@ -9,6 +9,11 @@ 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({
isClaimed: t.boolean,
claimer: t.string,
signature: t.string,
}),
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]),