Merge pull request #117 from boardroom-inc/feat/bulk

feat: bulk add protocol skeletons
This commit is contained in:
YJ 2021-04-28 17:25:58 -05:00 committed by GitHub
commit a88a2d45af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
279 changed files with 1540 additions and 24 deletions

6
.gitignore vendored
View File

@ -1,7 +1,11 @@
types.js
types.d.ts
.DS_Store
node_modules
dist
# Remove some common IDE working directories
.idea
.vscode
.vscode
.env

8
.prettierrc.js Normal file
View File

@ -0,0 +1,8 @@
module.exports = {
semi: true,
endOfLine: "auto",
trailingComma: "all",
singleQuote: false,
printWidth: 120,
tabWidth: 2
};

1
allprotocols.json Normal file

File diff suppressed because one or more lines are too long

View File

@ -19,13 +19,19 @@
"io-ts": "^2.2.16",
"io-ts-validator": "^0.0.5",
"mkdirp": "^1.0.4",
"prettier": "^2.2.1",
"ts-node": "^9.1.1",
"tslib": "^2.1.0",
"typescript": "^4.1.3"
},
"scripts": {
"bulkAdd": "ts-node ./scripts/bulk_add.ts",
"build": "ts-node ./scripts/build.ts && tsc -d",
"prepare": "yarn build",
"validate": "yarn build && ts-node ./scripts/validate.ts"
},
"dependencies": {
"axios": "^0.21.1",
"dotenv": "^8.2.0"
}
}

View File

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

View File

View File

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

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

BIN
protocols/aragon/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "badgerdao",
"name": "BadgerDAO",
"description": "",
"path": "badgerdao.eth",
"previousPaths": [],
"folder": "badgerdao.eth",
"type": "snapshot",
"suffix": "BADGER",
"coinGeckoPriceString": "badger-dao",
"tokenContractAddress": "0x3472a5a71965499acd81997a54bba8d852c6e53d",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "badgerdao.eth",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

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

BIN
protocols/balancer/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

View File

@ -0,0 +1 @@
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_voter","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IVoteProxy","name":"_voteProxy","type":"address"}],"name":"setVoteProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteProxy","outputs":[{"internalType":"contract IVoteProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "basisdollar",
"name": "VPBasisDollar",
"description": "",
"path": "basisdollar.eth",
"previousPaths": [],
"folder": "basisdollar.eth",
"type": "snapshot",
"suffix": "BSDS",
"coinGeckoPriceString": "basis-dollar",
"tokenContractAddress": "0x86af7b477F87C6b20B1D27496e7355230EB49724",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "basisdollar.eth",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

View File

@ -17,5 +17,10 @@
"invalidSnapshots": [],
"branding": {},
"discourseForum": {},
"safeAddress": null
"safeAddress": null,
"claim": {
"isClaimed": true,
"claimer": "",
"signature": ""
}
}

View File

@ -13,9 +13,14 @@
"hasOnchain": false,
"isHybrid": false,
"isCouncil": false,
"isEnabled": true,
"isEnabled": false,
"invalidSnapshots": [],
"branding": {},
"discourseForum": {},
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"safeAddress": "0xF1D8c2eED95D5fC2EaDe4E6Bb15a5969453E89a9"
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,32 @@
{
"cname": "thegraphcouncil",
"name": "TheGraphCouncil",
"description": "",
"path": "council.graphprotocol.eth",
"previousPaths": [],
"folder": "council.graphprotocol.eth",
"type": "snapshot",
"suffix": "GC",
"coinGeckoPriceString": "the-graph",
"tokenContractAddress": "0xc944e90c64b2c07662a292be6244bdf05cda44a7",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "council.graphprotocol.eth",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "creamfinance",
"name": "CreamFinance",
"description": "",
"path": "cream-finance.eth",
"previousPaths": [],
"folder": "cream-finance.eth",
"type": "snapshot",
"suffix": "CREAM",
"coinGeckoPriceString": "cream",
"tokenContractAddress": "0x2ba592f78db6436527729929aaf6c908497cb200",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "cream-finance.eth",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "cryptocorgis",
"name": "CryptoCorgis",
"description": "",
"path": "crypto-corgis.eth",
"previousPaths": [],
"folder": "crypto-corgis.eth",
"type": "snapshot",
"suffix": "CORGI",
"coinGeckoPriceString": "",
"tokenContractAddress": "null",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "crypto-corgis.eth",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "curve",
"name": "Curve",
"description": "",
"path": "curve",
"previousPaths": [],
"folder": "curve",
"type": "snapshot",
"suffix": "veCRV",
"coinGeckoPriceString": "curve-dao-token",
"tokenContractAddress": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "curve",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

BIN
protocols/curve/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

View File

View File

View File

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

File diff suppressed because one or more lines are too long

View File

View File

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

View File

View File

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

View File

@ -22,5 +22,10 @@
],
"branding": {},
"discourseForum": {},
"safeAddress": null
"safeAddress": null,
"claim": {
"isClaimed": true,
"claimer": "",
"signature": ""
}
}

View File

@ -0,0 +1 @@
[{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

View File

View File

View File

@ -0,0 +1,32 @@
{
"cname": "dsd",
"name": "DynamicSetDollar",
"description": "",
"path": "dsd.eth",
"previousPaths": [],
"folder": "dsd.eth",
"type": "snapshot",
"suffix": "DSD",
"coinGeckoPriceString": "dynamic-set-dollar",
"tokenContractAddress": "0x6bf977ed1a09214e6209f4ea5f525261f1a2690a",
"isEnabled": false,
"hasOnchain": false,
"claim": {
"isClaimed": false,
"claimer": "",
"signature": ""
},
"isHybrid": false,
"hasDelegation": false,
"snapshotSpaceName": "dsd.eth",
"invalidSnapshots": [],
"branding": {
"primaryColor": "",
"accentColor": ""
},
"discourseForum": {
"url": "",
"categoryId": ""
},
"safeAddress": null
}

BIN
protocols/dsd.eth/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More