Skip to content

Commit

Permalink
Lint ts and json
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Oct 26, 2021
1 parent cf431e2 commit 0c261d3
Show file tree
Hide file tree
Showing 79 changed files with 864 additions and 931 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prepublishOnly": "npm run build",
"prepare": "npm run build",
"postbuild": "copyfiles -u 1 src/**/*.md dist/ && copyfiles -u 1 src/**/*.json dist/",
"lint": "eslint . --ext .ts --fix"
"lint": "eslint . --ext .ts,.json --fix"
},
"dependencies": {
"@ethersproject/abi": "^5.0.4",
Expand Down
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"extends": [
"config:base"
],
"extends": ["config:base"],
"enabledManagers": ["npm"],
"rangeStrategy": "bump",
"packageRules": [
Expand Down
10 changes: 4 additions & 6 deletions src/strategies/aavegotchi/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
"name": "aavegotchi",
"params": {
"tokenAddress": "0x385Eeac5cB85A38A9a07A70c73e0a3271CfB54A7",
"ghstQuickAddress" : "0x8b1fd78ad67c7da09b682c5392b65ca7caa101b9",
"ghstUsdcAddress" : "0x096c5ccb33cfc5732bcd1f3195c13dbefc4c82f4",
"stakingAddress" : "0xA02d547512Bb90002807499F05495Fe9C4C3943f",
"ghstQuickAddress": "0x8b1fd78ad67c7da09b682c5392b65ca7caa101b9",
"ghstUsdcAddress": "0x096c5ccb33cfc5732bcd1f3195c13dbefc4c82f4",
"stakingAddress": "0xA02d547512Bb90002807499F05495Fe9C4C3943f",
"symbol": "GHST",
"decimals": 18
}
},
"network": "137",
"addresses": [
"0x027Ffd3c119567e85998f4E6B9c3d83D5702660c"
],
"addresses": ["0x027Ffd3c119567e85998f4E6B9c3d83D5702660c"],
"snapshot": 12089223
}
]
2 changes: 1 addition & 1 deletion src/strategies/anti-whale/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"params": {
"strategy": {
"name": "erc20-balance-of",
"params": {
"params": {
"address": "0x579cea1889991f68acc35ff5c3dd0621ff29b0c9",
"symbol": "IQ",
"decimals": 18
Expand Down
4 changes: 1 addition & 3 deletions src/strategies/apescape/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
}
},
"network": "56",
"addresses": [
"0x9Fa02A6DedD0383cF339aeCB9353bfaE1E319Aa6"
],
"addresses": ["0x9Fa02A6DedD0383cF339aeCB9353bfaE1E319Aa6"],
"snapshot": 7218577
}
]
4 changes: 1 addition & 3 deletions src/strategies/avn-balance-of-staked/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
}
},
"network": "1",
"addresses": [
"0xeEfbADa5539f9ae2c87C1151Cdb2057398383342"
],
"addresses": ["0xeEfbADa5539f9ae2c87C1151Cdb2057398383342"],
"snapshot": 12273608
}
]
106 changes: 53 additions & 53 deletions src/strategies/balance-in-vdfyn-vault/examples.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
[
{
"name": "Example query",
"strategy": {
"name": "balance-in-vdfyn-vault",
"params": {
"name": "vDfyn Vault",
"contractAddress": "0x75455c3DE45dD32CBE9a5aD5E518D3D50823c976",
"symbol": "VDFYN",
"scoreMultiplier": 1,
"methodABI": [
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ratio",
"outputs": [
{
"internalType": "uint256",
"name": "dfynAmount_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
},
"network": "137",
"addresses": [
"0x41CdE29bF9aea095fDD204D150451678b2c6A736",
"0xD7B26f34775fa41D6dCE182851642573aBF9B532"
],
"snapshot": 19310208
}
]
{
"name": "Example query",
"strategy": {
"name": "balance-in-vdfyn-vault",
"params": {
"name": "vDfyn Vault",
"contractAddress": "0x75455c3DE45dD32CBE9a5aD5E518D3D50823c976",
"symbol": "VDFYN",
"scoreMultiplier": 1,
"methodABI": [
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ratio",
"outputs": [
{
"internalType": "uint256",
"name": "dfynAmount_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
},
"network": "137",
"addresses": [
"0x41CdE29bF9aea095fDD204D150451678b2c6A736",
"0xD7B26f34775fa41D6dCE182851642573aBF9B532"
],
"snapshot": 19310208
}
]
1 change: 0 additions & 1 deletion src/strategies/balancer-smart-pool/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
"snapshot": 12815130
}
]

2 changes: 1 addition & 1 deletion src/strategies/comp-like-votes-inclusive/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
],
"snapshot": 13340820
}
]
]
4 changes: 1 addition & 3 deletions src/strategies/contract-call/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
}
},
"network": "97",
"addresses": [
"0xeF8305E140ac520225DAf050e2f71d5fBcC543e7"
],
"addresses": ["0xeF8305E140ac520225DAf050e2f71d5fBcC543e7"],
"snapshot": 3596310
}
]
112 changes: 56 additions & 56 deletions src/strategies/cream/examples.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
[
{
"name": "CREAM",
"strategy": {
"name": "cream",
"params": {
"token": "0x2ba592F78dB6436527729929AAf6c908497cB200",
"symbol": "CREAM",
"crCREAM": "0x892B14321a4FCba80669aE30Bd0cd99a7ECF6aC0",
"sushiswap": "0xf169CeA51EB51774cF107c88309717ddA20be167",
"uniswap": "0xddF9b7a31b32EBAF5c064C80900046C9e5b7C65F",
"balancer": "0x280267901C175565C64ACBD9A3c8F60705A72639",
"masterChef": "0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd",
"pid": 22,
"periods": 3,
"minVote": 1,
"pools": [
{
"name": "CREAM",
"address": "0x2ba592F78dB6436527729929AAf6c908497cB200"
},
{
"name": "1 Year",
"address": "0x780F75ad0B02afeb6039672E6a6CEDe7447a8b45"
},
{
"name": "2 Year",
"address": "0xBdc3372161dfd0361161e06083eE5D52a9cE7595"
},
{
"name": "3 Year",
"address": "0xD5586C1804D2e1795f3FBbAfB1FBB9099ee20A6c"
},
{
"name": "4 Year",
"address": "0xE618C25f580684770f2578FAca31fb7aCB2F5945"
}
]
}
},
"network": "1",
"addresses": [
"0x7dd508a1e4Da1243789B799a480f8B45e58b1B5b",
"0xB157ba30e3467DdBC844f14F02b4ba741f1d549F",
"0x6595732468A241312bc307F327bA0D64F02b3c20",
"0xdd4C3B2860f7C747C4F69414022D5FA7354Eef28",
"0xC51FA42503942cafa7b1ffc02F0Cd9564189773e",
"0x0430605323465E26Dc21fBAaA9A1A4Be6ae9d496",
"0xAdC24d7b630759A3AF7f52716d91299c999a2213",
"0x5E0b772FC4E58C470CE4551EeF2391A3B5dA5bb4",
"0x90aBCf1598ed3077861bCFb3B11EFcd1D7277223",
"0xF800d8407b1488BB6Dc3789c2D45147c25C38AF5",
"0xB662ACEAF435C5F21568FC138Ab202C6a43FFc13",
"0x99eb33756a2eAa32f5964A747722c4b59e6aF351"
],
"snapshot": 12315029
}
{
"name": "CREAM",
"strategy": {
"name": "cream",
"params": {
"token": "0x2ba592F78dB6436527729929AAf6c908497cB200",
"symbol": "CREAM",
"crCREAM": "0x892B14321a4FCba80669aE30Bd0cd99a7ECF6aC0",
"sushiswap": "0xf169CeA51EB51774cF107c88309717ddA20be167",
"uniswap": "0xddF9b7a31b32EBAF5c064C80900046C9e5b7C65F",
"balancer": "0x280267901C175565C64ACBD9A3c8F60705A72639",
"masterChef": "0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd",
"pid": 22,
"periods": 3,
"minVote": 1,
"pools": [
{
"name": "CREAM",
"address": "0x2ba592F78dB6436527729929AAf6c908497cB200"
},
{
"name": "1 Year",
"address": "0x780F75ad0B02afeb6039672E6a6CEDe7447a8b45"
},
{
"name": "2 Year",
"address": "0xBdc3372161dfd0361161e06083eE5D52a9cE7595"
},
{
"name": "3 Year",
"address": "0xD5586C1804D2e1795f3FBbAfB1FBB9099ee20A6c"
},
{
"name": "4 Year",
"address": "0xE618C25f580684770f2578FAca31fb7aCB2F5945"
}
]
}
},
"network": "1",
"addresses": [
"0x7dd508a1e4Da1243789B799a480f8B45e58b1B5b",
"0xB157ba30e3467DdBC844f14F02b4ba741f1d549F",
"0x6595732468A241312bc307F327bA0D64F02b3c20",
"0xdd4C3B2860f7C747C4F69414022D5FA7354Eef28",
"0xC51FA42503942cafa7b1ffc02F0Cd9564189773e",
"0x0430605323465E26Dc21fBAaA9A1A4Be6ae9d496",
"0xAdC24d7b630759A3AF7f52716d91299c999a2213",
"0x5E0b772FC4E58C470CE4551EeF2391A3B5dA5bb4",
"0x90aBCf1598ed3077861bCFb3B11EFcd1D7277223",
"0xF800d8407b1488BB6Dc3789c2D45147c25C38AF5",
"0xB662ACEAF435C5F21568FC138Ab202C6a43FFc13",
"0x99eb33756a2eAa32f5964A747722c4b59e6aF351"
],
"snapshot": 12315029
}
]
50 changes: 25 additions & 25 deletions src/strategies/ctoken/examples.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
[
{
"name": "Example query",
"strategy": {
"name":"ctoken",
"params": {
"symbol":"cUNI",
"address":"0x35A18000230DA775CAc24873d00Ff85BccdeD550",
"decimals":8,
"offsetCheck":40320,
"borrowingRestricted":true
}
},
"network": "1",
"addresses": [
"0x614812d04526C0C882A6cB993a135fcD559F33F9",
"0xff91AcCd5277cc3de3E73DD77e3102b1980e439e",
"0x05ff2b0db69458a0750badebc4f9e13add608c7f",
"0xd1a8Dd23e356B9fAE27dF5DeF9ea025A602EC81e",
"0x48f7cb174a2333de834452ad240ce8d3d827dc55",
"0x0d3cae1ff719d6a2ac0fcd7cd22f599cac64b6ec",
"0xE0e710A907a8E44c078e6212Efa336C1191F4CD1"
],
"snapshot": 13494433
}
[
{
"name": "Example query",
"strategy": {
"name": "ctoken",
"params": {
"symbol": "cUNI",
"address": "0x35A18000230DA775CAc24873d00Ff85BccdeD550",
"decimals": 8,
"offsetCheck": 40320,
"borrowingRestricted": true
}
},
"network": "1",
"addresses": [
"0x614812d04526C0C882A6cB993a135fcD559F33F9",
"0xff91AcCd5277cc3de3E73DD77e3102b1980e439e",
"0x05ff2b0db69458a0750badebc4f9e13add608c7f",
"0xd1a8Dd23e356B9fAE27dF5DeF9ea025A602EC81e",
"0x48f7cb174a2333de834452ad240ce8d3d827dc55",
"0x0d3cae1ff719d6a2ac0fcd7cd22f599cac64b6ec",
"0xE0e710A907a8E44c078e6212Efa336C1191F4CD1"
],
"snapshot": 13494433
}
]
Loading

0 comments on commit 0c261d3

Please sign in to comment.