Merge pull request #199 from boardroom-inc/feat/disableTreasury

Add a flag to disable treasury nav
This commit is contained in:
Sudheer 2021-06-23 22:07:45 +05:30 committed by GitHub
commit 8feec37843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 23 additions and 12 deletions

View File

@ -23,5 +23,6 @@
"claimer": "", "claimer": "",
"signature": "" "signature": ""
}, },
"treasuryAddresses": ["0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b", "0x2775b1c75658Be0F640272CCb8c72ac986009e38"] "treasuryAddresses": ["0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b", "0x2775b1c75658Be0F640272CCb8c72ac986009e38"],
"disableTreasuryNav": true
} }

View File

@ -7,7 +7,7 @@
"folder": "fei", "folder": "fei",
"type": "compoundish", "type": "compoundish",
"suffix": "FEI", "suffix": "FEI",
"coinGeckoPriceString": "", "coinGeckoPriceString": "fei-protocol",
"tokenContractAddress": "0x956F47F50A910163D8BF957Cf5846D573E7f87CA", "tokenContractAddress": "0x956F47F50A910163D8BF957Cf5846D573E7f87CA",
"isEnabled": false, "isEnabled": false,
"hasOnchain": false, "hasOnchain": false,
@ -28,5 +28,6 @@
"url": "", "url": "",
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null "safeAddress": null,
"disableTreasuryNav": true
} }

View File

@ -7,7 +7,7 @@
"folder": "gitcoin", "folder": "gitcoin",
"type": "compoundish", "type": "compoundish",
"suffix": "GTC", "suffix": "GTC",
"coinGeckoPriceString": "", "coinGeckoPriceString": "gitcoin",
"tokenContractAddress": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f", "tokenContractAddress": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f",
"isEnabled": false, "isEnabled": false,
"hasOnchain": false, "hasOnchain": false,
@ -28,5 +28,6 @@
"url": "", "url": "",
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null "safeAddress": null,
"disableTreasuryNav": true
} }

View File

@ -28,5 +28,6 @@
"url": "", "url": "",
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null "safeAddress": null,
"disableTreasuryNav": true
} }

View File

@ -28,5 +28,6 @@
"url": "", "url": "",
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null "safeAddress": null,
"disableTreasuryNav": true
} }

View File

@ -28,5 +28,6 @@
"url": "", "url": "",
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null "safeAddress": null,
"disableTreasuryNav": true
} }

View File

@ -29,5 +29,6 @@
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null, "safeAddress": null,
"treasuryAddresses": ["0x42cd8312d2bce04277dd5161832460e95b24262e", "0x21950e281bde1714ffd1062ed17c56d4d8de2359"] "treasuryAddresses": ["0x42cd8312d2bce04277dd5161832460e95b24262e", "0x21950e281bde1714ffd1062ed17c56d4d8de2359"],
"disableTreasuryNav": true
} }

View File

@ -28,5 +28,6 @@
"url": "", "url": "",
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null "safeAddress": null,
"disableTreasuryNav": true
} }

View File

@ -31,5 +31,6 @@
"branding": {}, "branding": {},
"discourseForum": {}, "discourseForum": {},
"safeAddress": null, "safeAddress": null,
"treasuryAddresses": ["0x1a9c8182c09f50c8318d769245bea52c32be35bc", "0x4750c43867ef5f89869132eccf19b9b6c4286e1a"] "treasuryAddresses": ["0x1a9c8182c09f50c8318d769245bea52c32be35bc", "0x4750c43867ef5f89869132eccf19b9b6c4286e1a"],
"disableTreasuryNav": true
} }

View File

@ -51,7 +51,8 @@ printf '{
"url": "", "url": "",
"categoryId": "" "categoryId": ""
}, },
"safeAddress": null "safeAddress": null,
"disableTreasuryNav": false
}' >| ./protocols/$1/index.json }' >| ./protocols/$1/index.json
fi fi

View File

@ -42,6 +42,7 @@ export const ProtocolIo = t.type({
]), ]),
safeAddress: t.union([t.string, t.null]), safeAddress: t.union([t.string, t.null]),
treasuryAddresses: t.union([t.array(t.string), t.undefined]), treasuryAddresses: t.union([t.array(t.string), t.undefined]),
disableTreasuryNav: t.union([t.boolean, t.undefined]),
}); });
export const ProtocolForScreeenerIo = t.type({ export const ProtocolForScreeenerIo = t.type({