Skip to content

Commit

Permalink
fix: claim type
Browse files Browse the repository at this point in the history
  • Loading branch information
pmespresso committed Apr 23, 2021
1 parent e68a370 commit 0dd6fa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/bulk_add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ async function run() {
for (let i = 0; i < Object.keys(notDed).length; i++) {
const key = Object.keys(notDed)[i];

console.log("Writing: ", key);

const tokenAddress = extractTokenAddress(notDed[key]);

exec(`sh ./scripts/add_new_protocol.sh ${key} ${tokenAddress}`, (error, stdout, stderr) => {
Expand Down
5 changes: 5 additions & 0 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export const ProtocolIo = t.type({
folder: t.string,
type: t.union([t.literal("snapshot"), t.literal("compoundish")]),
suffix: t.string,
claim: t.type({
isClaimed: t.boolean,
claimer: t.string,
signature: t.string,
}),
coinGeckoPriceString: t.string,
tokenContractAddress: t.string,
governanceContractAddress: t.union([t.string, t.undefined]),
Expand Down

0 comments on commit 0dd6fa0

Please sign in to comment.