Merge pull request #184 from boardroom-inc/fix/screenerUpdates

Add new key for treasuryInfo
This commit is contained in:
Sudheer 2021-06-16 21:29:43 +05:30 committed by GitHub
commit 62d3c89ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
57 changed files with 359 additions and 8 deletions

View File

@ -0,0 +1 @@
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

View File

View File

33
protocols/aave/index.json Normal file
View File

@ -0,0 +1,33 @@
{
"cname": "aave",
"name": "Aave",
"description": "",
"path": "aave",
"previousPaths": [],
"folder": "aave",
"type": "others",
"suffix": "AAVE",
"coinGeckoPriceString": "",
"tokenContractAddress": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "aave",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null,
"treasuryAddresses": ["0x25F2226B597E8F9514B3F68F00f494cF4f286491"]
}

0
protocols/aave/logo.png Normal file
View File

View File

View File

@ -28,5 +28,6 @@
"url": "",
"categoryId": ""
},
"safeAddress": null
"safeAddress": null,
"treasuryAddresses": ["0x4441776e6a5d61fa024a5117bfc26b953ad1f425"]
}

View File

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

File diff suppressed because one or more lines are too long

View File

0
protocols/fei/header.png Normal file
View File

32
protocols/fei/index.json Normal file
View File

@ -0,0 +1,32 @@
{
"cname": "fei",
"name": "Fei Money",
"description": "",
"path": "fei",
"previousPaths": [],
"folder": "fei",
"type": "compoundish",
"suffix": "FEI",
"coinGeckoPriceString": "",
"tokenContractAddress": "0x956F47F50A910163D8BF957Cf5846D573E7f87CA",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "fei",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

0
protocols/fei/logo.png Normal file
View File

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "gitcoin",
"name": "",
"description": "",
"path": "gitcoin",
"previousPaths": [],
"folder": "gitcoin",
"type": "compoundish",
"suffix": "GTC",
"coinGeckoPriceString": "",
"tokenContractAddress": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "gitcoin",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

View File

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "idlefinance",
"name": "Idle Finance",
"description": "",
"path": "idlefinance",
"previousPaths": [],
"folder": "idlefinance",
"type": "compoundish",
"suffix": "IDLE",
"coinGeckoPriceString": "",
"tokenContractAddress": "0x875773784Af8135eA0ef43b5a374AaD105c5D39e",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "idlefinance",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

View File

View File

View File

@ -26,5 +26,6 @@
"url": "https://gov.indexcoop.com",
"categoryId": "5"
},
"safeAddress": null
"safeAddress": null,
"treasuryAddresses": ["0x9467cfADC9DE245010dF95Ec6a585A506A8ad5FC"]
}

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "indexed",
"name": "Indexed",
"description": "",
"path": "indexed",
"previousPaths": [],
"folder": "indexed",
"type": "compoundish",
"suffix": "NDX",
"coinGeckoPriceString": "",
"tokenContractAddress": "0x86772b1409b61c639EaAc9Ba0AcfBb6E238e5F83",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "indexed",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

View File

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "inverse",
"name": "Inverse Finance",
"description": "",
"path": "inverse",
"previousPaths": [],
"folder": "inverse",
"type": "compoundish",
"suffix": "INV",
"coinGeckoPriceString": "",
"tokenContractAddress": "0x41d5d79431a913c4ae7d69a668ecdfe5ff9dfb68",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "inverse",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

View File

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,33 @@
{
"cname": "pooltogether",
"name": "poolTogether",
"description": "",
"path": "pooltogether",
"previousPaths": [],
"folder": "pooltogether",
"type": "compoundish",
"suffix": "POOL",
"coinGeckoPriceString": "",
"tokenContractAddress": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "pooltogether",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null,
"treasuryAddresses": ["0x42cd8312d2bce04277dd5161832460e95b24262e", "0x21950e281bde1714ffd1062ed17c56d4d8de2359"]
}

View File

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "radicle",
"name": "Radicle",
"description": "",
"path": "radicle",
"previousPaths": [],
"folder": "radicle",
"type": "compoundish",
"suffix": "",
"coinGeckoPriceString": "",
"tokenContractAddress": "0x31c8eacbffdd875c74b94b077895bd78cf1e64a3RAD",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "radicle",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

View File

View File

View File

@ -21,5 +21,6 @@
"claimer": "",
"signature": ""
},
"safeAddress": "0x438679ECE13EDB95aDD18Ed02dDbf5e2418FF730"
"safeAddress": "0x438679ECE13EDB95aDD18Ed02dDbf5e2418FF730",
"treasuryAddresses": ["0xEb3107117FEAd7de89Cd14D463D340A2E6917769", "0x86626E1BbBd0ce95ED52e0C5E19f371a6640B591"]
}

View File

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

View File

@ -28,5 +28,6 @@
"url": "",
"categoryId": ""
},
"safeAddress": null
"safeAddress": null,
"treasuryAddresses": ["0x97990B693835da58A281636296D2Bf02787DEa17", "0xd67c05523d8ec1c60760fd017ef006b9f6e496d0", "0x205cc7463267861002b27021c7108bc230603d0f", "0xd67c05523d8ec1c60760fd017ef006b9f6e496d0"]
}

View File

@ -0,0 +1,67 @@
{
"sushi": {
"name": "SushiSwap",
"cname": "sushi",
"treasuryAddresses": ["0xe94b5eec1fa96ceecbd33ef5baa8d00e4493f4f3"]
},
"tornadocash": {
"name": "TornadoCash",
"cname": "tornadocash",
"treasuryAddresses": ["0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce", "0x179f48C78f57A3A78f0608cC9197B8972921d1D2"]
},
"alchemix": {
"name": "Alchemix",
"cname": "alchemix",
"treasuryAddresses": ["0x8392f6669292fa56123f71949b52d883ae57e225"]
},
"balancer": {
"name": "Balancer",
"cname": "balancer",
"treasuryAddresses": ["0xb618F903ad1d00d6F7b92f5b0954DcdC056fC533", "0xce88686553686DA562CE7Cea497CE749DA109f9F"]
},
"api3": {
"name": "API3",
"cname": "api3",
"treasuryAddresses": ["0xe7aF7c5982e073aC6525a34821fe1B3e8E432099"]
},
"badgerdao": {
"name": "BadgerDao",
"cname": "badgerdao",
"treasuryAddresses": ["0x4441776e6a5d61fa024a5117bfc26b953ad1f425"]
},
"barnbridge": {
"name": "BarnBridge",
"cname": "barnbridge",
"treasuryAddresses": ["0x4cAE362D7F227e3d306f70ce4878E245563F3069"]
},
"nexusMutual": {
"name": "Nexus Mutual",
"cname": "nexusMutual",
"treasuryAddresses": ["0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9"]
},
"yearn": {
"name": "Yearn",
"cname": "yearn",
"treasuryAddresses": ["0xfeb4acf3df3cdea7399794d0869ef76a6efaff52"]
},
"yamv2": {
"name": "Yam",
"cname": "yamv2",
"treasuryAddresses": ["0x97990B693835da58A281636296D2Bf02787DEa17", "0xd67c05523d8ec1c60760fd017ef006b9f6e496d0", "0x205cc7463267861002b27021c7108bc230603d0f", "0xd67c05523d8ec1c60760fd017ef006b9f6e496d0"]
},
"linkswap": {
"name": "Linkswap",
"cname": "linkswap",
"treasuryAddresses": ["0xE69A81b96FBF5Cb6CAe95d2cE5323Eff2bA0EAE4"]
},
"curve": {
"name": "Curve",
"cname": "curve",
"treasuryAddresses": ["0xe3997288987E6297Ad550A69B31439504F513267", "0xc420C9d507D0E038BD76383AaADCAd576ed0073c"]
},
"mStable": {
"name": "mStable",
"cname": "mStable",
"treasuryAddresses": ["0x3dd46846eed8D147841AE162C8425c08BD8E1b41"]
}
}

View File

@ -1,5 +1,6 @@
import fs from "fs";
import mkdirp from "mkdirp";
import protocolsInfo from "../protocolsInfoForScreener.json";
const protocols = fs.readdirSync("./protocols");
@ -12,8 +13,10 @@ fs.copyFileSync("./types.ts", "./dist/types.ts");
fs.writeFileSync(
"./dist/index.ts",
`
import { Protocol } from "../types";
import { Protocol, ProtocolForScreeener } from "../types";
export default [${protocolInfo.toString()}] as Protocol[];
const protocolsInfoForScreener: Record<string, ProtocolForScreeener> = ${JSON.stringify(protocolsInfo)};
export {protocolsInfoForScreener};
`,
);

View File

@ -7,7 +7,7 @@ export const ProtocolIo = t.type({
path: t.string,
previousPaths: t.union([t.array(t.string), t.undefined]),
folder: t.string,
type: t.union([t.literal("snapshot"), t.literal("compoundish")]),
type: t.union([t.literal("snapshot"), t.literal("compoundish"), t.literal("others")]),
suffix: t.string,
claim: t.union([
t.partial({
@ -41,6 +41,15 @@ export const ProtocolIo = t.type({
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>;