Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting us syncd with head repo #3

Open
wants to merge 815 commits into
base: feature/v4-strategy
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
815 commits
Select commit Hold shift + click to select a range
8d83db8
fix: Add back missing strategies (#1366)
ChaituVR Dec 1, 2023
b68c291
[hats-protocol-hat-id] Fix hats-protocol-hat-id strategy (#1367)
gershido Dec 4, 2023
9603642
fix hats-protocol-hat-ids strategy (#1368)
gershido Dec 4, 2023
79320ac
feat: delegation-with-cap (#1369)
0xButterfield Dec 8, 2023
dad4d14
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.9.6 (#1…
renovate[bot] Dec 8, 2023
b7727ef
Change author for delegation-with-cap
ChaituVR Dec 8, 2023
22b8c27
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.9.7 (#1…
renovate[bot] Dec 13, 2023
ddda8e9
[cake] Update cake strategy for only veCake (#1364)
0xjojoex Dec 15, 2023
d4eca95
fix: delegation-with-cap (#1374)
0xButterfield Dec 17, 2023
215c357
[station-score-if-badge, station-constant-if-badge, mangrove-station-…
espendk Dec 17, 2023
1327273
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.9.8 (#1…
renovate[bot] Dec 19, 2023
09e31e6
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.9.9 (#1…
renovate[bot] Dec 22, 2023
b56b735
[aavegotchi-agip] Aavegotchi (#1378)
cinnabarhorse Dec 23, 2023
ee38f82
Vsdtoken [sd-vote-boost-twavp-vsdtoken] (#1380)
pierremarsotlyon1 Dec 28, 2023
cbe0f37
Automated lint (#1381)
github-actions[bot] Dec 31, 2023
334dced
Modify contract-call readme (#1383)
ChaituVR Jan 8, 2024
cb97bea
add TWAVP balanceOf for sdCake holders (#1389)
pierremarsotlyon1 Jan 13, 2024
7e19db8
Automated lint (#1390)
github-actions[bot] Jan 15, 2024
dd89cb9
feat: add vendor-v2-borrower-collateral-balance-of (#1391)
0xdapper Jan 16, 2024
457d379
Automated lint (#1393)
github-actions[bot] Jan 23, 2024
2d90343
fix(): arrow-vesting drives only on unclaimed; update examples with r…
bghughes Jan 23, 2024
8f697e1
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.10.1 (#…
renovate[bot] Jan 23, 2024
b79cf32
[hopr-stake-and-balance-qv] Update "HOPR Stake and Balance QV" to ver…
QYuQianchen Jan 23, 2024
22cd2c3
[nation3-passport-coop-with-delegations] Update behaviour on revoked …
johnmark13 Jan 25, 2024
7363102
[spacefi-blp] add blp strategy (#1394)
SpaceFinance Jan 25, 2024
f0df52d
Automated lint (#1398)
github-actions[bot] Jan 28, 2024
b431c61
chore(deps): bump @snapshot-labs/snapshot.js from 0.9.9 to 0.10.1 (#1…
dependabot[bot] Jan 28, 2024
587bc38
fix: fix invalid block value passed to thegraph (#1399)
wa0x6e Jan 31, 2024
1a9c44a
fix: enforce minimum decimal value (#1400)
wa0x6e Jan 31, 2024
e1f49b2
fix: do not log response body on network error (#1401)
wa0x6e Jan 31, 2024
d529830
twavp-4 new vp formula (#1403)
pierremarsotlyon1 Feb 5, 2024
0c9cb65
Automated lint (#1406)
github-actions[bot] Feb 10, 2024
ba4ca8a
[planet-finance-v2] Voting Strategy updated for New V3 Farm (#1402)
defininja Feb 21, 2024
27316d2
chore: add new networks to sablier, cleanup config (#1404)
razgraf Feb 21, 2024
d8f00b2
[urbit-galaxies] Add Urbit Galaxy Voting - compatible with any Azimut…
kennyrowe Feb 21, 2024
d8ab99d
add minime-balance-supply strategy (#1409)
divine-comedian Feb 21, 2024
5d5d668
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.0 (#…
renovate[bot] Feb 22, 2024
1af7f4e
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.1 (#…
renovate[bot] Feb 22, 2024
fb606a3
Automated lint (#1413)
github-actions[bot] Feb 25, 2024
9ce09f9
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.2 (#…
renovate[bot] Feb 26, 2024
38c6897
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.3 (#…
renovate[bot] Feb 27, 2024
ec4fb9a
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.6 (#…
renovate[bot] Mar 4, 2024
b768086
[vesting-balance-of] adding vesting-balance-of call (#1420)
propchain-development Mar 5, 2024
a9b1a5c
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.7 (#…
renovate[bot] Mar 5, 2024
5adadc6
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.8 (#…
renovate[bot] Mar 7, 2024
f6fa294
[push-voting-power] Added support for tokens staked in Push V2 pool (…
aeyshubh Mar 10, 2024
d2b3263
[stake-mine-liquid-helios] strategy added (#1428)
asim07 Mar 13, 2024
e8b29c1
[giveth-gnosis-balance-supply-weighted-v3] add giveth-gnosis-balance-…
divine-comedian Mar 13, 2024
58bbd0f
giveth-balance supply weighted (#1431)
divine-comedian Mar 14, 2024
dfbb795
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.9 (#…
renovate[bot] Mar 14, 2024
6114105
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.10 (…
renovate[bot] Mar 14, 2024
7e4ed10
add missing formatUnits to totalSupply (#1435)
divine-comedian Mar 14, 2024
b235d31
[faraland-staking] update subgraph URL (#1433)
tangobeo Mar 15, 2024
a242bfb
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.11 (…
renovate[bot] Mar 15, 2024
c9b3e74
Automated lint (#1426)
github-actions[bot] Mar 17, 2024
259917e
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.12 (…
renovate[bot] Mar 18, 2024
287fba1
[single-staking-longtermstaking-balanceof] strategy for long term vau…
macaronchef Mar 19, 2024
bd5e485
[faraland-staking] update subgraph URL (#1438)
tangobeo Mar 19, 2024
62d7077
[pokt-network-pda] Add Pokt network strategy (#1440)
ahmadyazdanii Mar 22, 2024
b60f95e
Automated lint (#1442)
github-actions[bot] Mar 22, 2024
add59e1
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.13 (…
renovate[bot] Mar 22, 2024
c3987a0
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.14 (…
renovate[bot] Mar 23, 2024
23b3ffb
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.15 (…
renovate[bot] Mar 25, 2024
18beeab
[pokt-network-pda] Update pokt network strategy (#1445)
ahmadyazdanii Mar 28, 2024
1ac0c3c
[uniswap-v3] fix: Add subgraph option to uniswap-v3 strategy (#1446)
ChaituVR Mar 30, 2024
46da723
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.16 (…
renovate[bot] Apr 2, 2024
1651d36
vsdcrv arbitrum (#1447)
pierremarsotlyon1 Apr 6, 2024
3b21cf1
[pokt-network-pda] Change schema to number (#1450)
ChaituVR Apr 6, 2024
a1aab04
Automated lint (#1451)
github-actions[bot] Apr 6, 2024
e69121d
[sd-vote-boost-twavp-vsdcrv-crosschain] Feature/eng 463 vsdcrv arbitr…
pierremarsotlyon1 Apr 10, 2024
a0b5ff2
Automated lint (#1454)
github-actions[bot] Apr 14, 2024
056428f
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.17 (…
renovate[bot] Apr 14, 2024
96cfd37
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.18 (…
renovate[bot] Apr 20, 2024
fec7249
[a51-farming] Add a51-farming strategy (#1458)
RAFAQAT11 Apr 22, 2024
e9d11d1
[a51-vault-balance] Add a51-vault-balance strategy (#1459)
RAFAQAT11 Apr 23, 2024
f5540e3
[quickswap-v3] Add quickswap-v3 strategy (#1460)
RAFAQAT11 Apr 24, 2024
a7a363f
[reliquary] Change multicall limit to 200
ChaituVR Apr 27, 2024
2558afd
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.19 (…
renovate[bot] Apr 29, 2024
2cdb72f
feat: add erc20 balance of with bazaar batch auction linear vesting (…
penandlim May 3, 2024
c1aabf6
Automated lint (#1470)
github-actions[bot] May 5, 2024
298b8d3
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.20 (…
renovate[bot] May 6, 2024
d129810
[lrc-l2-nft-balance-of]chore(Loopring): Update to latest query URL (#…
Raecaug May 7, 2024
2516419
[split-delegation] add split delegation strategy (#1466)
samepant May 7, 2024
b676da1
[galxe-staking] add galxe-staking strategy (#1474)
oyyblin May 8, 2024
26c455b
[reliquary] Reduce mulitcall limit to 100 (#1476)
ChaituVR May 9, 2024
426813e
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.23 (…
renovate[bot] May 19, 2024
8f06509
[whitelist-weighted-json] New strategy (#1480)
thierbig May 21, 2024
eb04d2a
[safe-vested] Optimize Strategy: safe-vested (#1481)
cristovaoth May 24, 2024
16be313
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.24 (…
renovate[bot] May 24, 2024
327a588
Keep the allocationMap in global cache variable, inside the strategy.…
cristovaoth May 28, 2024
3b51d52
[split-delegation] API request body schema update, update README and …
samepant May 28, 2024
0c2ff29
Automated lint (#1485)
github-actions[bot] May 28, 2024
e50d4c3
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.25 (…
renovate[bot] May 28, 2024
315ed5d
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.26 (…
renovate[bot] May 28, 2024
c2bc557
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.27 (…
renovate[bot] May 31, 2024
efcd42d
Update uniswap subgraph
ChaituVR Jun 2, 2024
de08ded
[staking-balance-of-v2] New strategy staking v2 (#1489)
propchain-development Jun 2, 2024
e84177c
[staking-balance-of-v1] New strategy staking balance v1 (#1490)
propchain-development Jun 2, 2024
bdbd660
Change Uniswap strategy subgraph to hosted subgraph
ChaituVR Jun 3, 2024
6bc5042
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.28 (…
renovate[bot] Jun 4, 2024
e0ed367
[garden-stakes] Add garden-stakes strategy (#1492)
Revantark Jun 5, 2024
e7c91dc
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.30 (…
renovate[bot] Jun 8, 2024
1da292d
Automated lint (#1494)
github-actions[bot] Jun 9, 2024
014489b
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.31 (…
renovate[bot] Jun 10, 2024
088dd14
chore: update decentraland urls (#1498)
andyesp Jun 11, 2024
5d70d3f
fix: Change subgraph URLs to upgraded ones (#1500)
ChaituVR Jun 12, 2024
ebf2b10
fix: Wrong subgraph URLs (#1501)
ChaituVR Jun 17, 2024
36a6a7f
[immutable-x] remove immutable x from snapshot strategies (#1497)
alexi21 Jun 18, 2024
968f935
[balance-of-with-max] Added balance-of-with-max (#1503)
thomasscovell Jun 18, 2024
8dbeb61
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.33 (…
renovate[bot] Jun 18, 2024
df6aa4b
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.34 (…
renovate[bot] Jun 18, 2024
d8874ca
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.35 (…
renovate[bot] Jun 18, 2024
3c909d0
[balancer-poolid] Fix subgraph URLs (#1506)
ChaituVR Jun 18, 2024
d9d0955
[balance-of-with-max] Updated balance-of-with-max to add weight (#1509)
thomasscovell Jun 19, 2024
e9f4e4f
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.36 (…
renovate[bot] Jun 19, 2024
ca38e17
Automated lint (#1511)
github-actions[bot] Jun 24, 2024
9f6c845
fix: balancer subgraphs (#1512)
ChaituVR Jun 24, 2024
cfc8825
fix: Change the graph network subgraphs (#1514)
ChaituVR Jun 25, 2024
3eb851c
[csv] add strategy CSV (#1515)
bonustrack Jun 26, 2024
28bd4e1
added the rocket-pool-node-operator-v4 strategy (#1516)
nickdoherty Jun 26, 2024
0caa600
added the rocket-pool-node-operator-delegate-v4 strategy (#1518)
nickdoherty Jun 26, 2024
53d3e6d
fix: Sushiswap subgraphs (#1519)
ChaituVR Jun 27, 2024
3f72a90
added the rocket-pool-node-operator-delegate-v5 strategy (#1520)
nickdoherty Jun 28, 2024
f02b673
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.38 (…
renovate[bot] Jun 29, 2024
3ddcca3
added the rocket-pool-node-operator-delegate-v6 strategy (#1521)
nickdoherty Jul 5, 2024
9017fed
Automated lint (#1522)
github-actions[bot] Jul 7, 2024
94f425e
[swarm-stacking] new strategy (#1523)
UnnaturalCabbage Jul 8, 2024
6d5d5e8
[swarm-staking] Fix type "staCking" -> (#1524)
UnnaturalCabbage Jul 9, 2024
413a6d8
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.39 (…
renovate[bot] Jul 11, 2024
8f93599
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.40 (…
renovate[bot] Jul 12, 2024
5ec57b8
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.11.41 (…
renovate[bot] Jul 12, 2024
f664662
fix: Poap xdai subgraph (#1528)
ChaituVR Jul 15, 2024
0406632
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.0 (#…
renovate[bot] Jul 15, 2024
a867f38
fix: Change path of types import (#1531)
ChaituVR Jul 16, 2024
def4606
added the rocket-pool-node-operator-v7 strategy (#1532)
nickdoherty Jul 16, 2024
66d50fd
[rocketpool-node-operator-delegate-v7] Added the rocket-pool-node-ope…
nickdoherty Jul 16, 2024
117cab8
[moca-staking] add new strategy (#1534)
m1ngshum Jul 18, 2024
bf10b1e
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.1 (#…
renovate[bot] Jul 18, 2024
ecf77ad
chore: ratelimit decentraland strategies [decentraland-wearable-rarit…
1emu Jul 19, 2024
1ee51d7
[streamr] added customizable symbol to strategy (#1537)
jtakalai Jul 20, 2024
9ea86b7
Automated lint (#1538)
github-actions[bot] Jul 21, 2024
7dfece6
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.2 (#…
renovate[bot] Jul 25, 2024
9f65b21
[rocketpool-node-operator-delegate-v8] Added rocket-pool-node-operato…
nickdoherty Jul 25, 2024
230cebc
[delegatexyz-erc721-balance-of] Delegatexyz erc721 balance of (#1541)
0xAlchemist Jul 26, 2024
3aceca9
Automated lint (#1542)
github-actions[bot] Jul 26, 2024
9603245
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.3 (#…
renovate[bot] Aug 2, 2024
f23583a
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.4 (#…
renovate[bot] Aug 2, 2024
2067352
[rdnt-capital-voting] Add base chain to rdnt-capital-voting (#1545)
JD0x2e Aug 3, 2024
83764b6
[candy-lockv1-token] feat: Add candy-lockv1-strategy (#1547)
DramaCrypto Aug 13, 2024
7604184
patch [delegatexyz-erc721-balance-of] delegatexyz-erc721-balance-of (…
0xAlchemist Aug 14, 2024
0ddf9d7
[candy-lock-token] feat: Add new strategy "candy-lock-token" (#1550)
DramaCrypto Aug 14, 2024
bfc6486
[candy-lock-nft] feat: Add new strategy "candy-lock-nft" (#1551)
DramaCrypto Aug 14, 2024
0268569
[candy-auto-vault] feat: Add new strategy "candy-auto-vault" (#1552)
DramaCrypto Aug 14, 2024
ad1e327
feat: Add new strategy "candy-nft-staking" (#1553)
DramaCrypto Aug 14, 2024
105de96
feat: Add multiplier x2500 (#1554)
DramaCrypto Aug 15, 2024
a7ba52b
feat: Add multiplier x2500 (#1555)
DramaCrypto Aug 15, 2024
bf3515b
[swarm-staking] Map proxy contract addresses to the owner addresses …
UnnaturalCabbage Aug 16, 2024
f27f0b3
Automated lint (#1557)
github-actions[bot] Aug 18, 2024
e44b28c
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.5 (#…
renovate[bot] Aug 21, 2024
eaed17d
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.6 (#…
renovate[bot] Aug 21, 2024
f954c5e
TG-192 #done (#1560)
tracyspacy Aug 23, 2024
0c7afed
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.7 (#…
renovate[bot] Aug 24, 2024
7b8d228
Frax Finance Fraxtal [frax-finance-fraxtal] (#1563)
FortisFortuna Aug 28, 2024
ba69938
add strategy with working balance (#1564)
pierremarsotlyon1 Aug 28, 2024
1be3b77
[api-v2] Fix: use lowercased addresses to find score from API respons…
ChaituVR Aug 29, 2024
a44c319
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.8 (#…
renovate[bot] Sep 4, 2024
74f328b
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.9 (#…
renovate[bot] Sep 5, 2024
837243b
sdvote-balanceof-twavp-pool (#1568)
pierremarsotlyon1 Sep 5, 2024
c29ef93
[hats-strategy] Hats Finance strategy (hats-finance) (#1569)
ben-kaufman Sep 5, 2024
7d40ebe
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.10 (…
renovate[bot] Sep 7, 2024
e59b59f
Automated lint (#1571)
github-actions[bot] Sep 9, 2024
bf0ea67
[sd-gauge-less-vote-boost] Add veSDT boost for MS (#1572)
pierremarsotlyon1 Sep 9, 2024
8aeadfc
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.11 (…
renovate[bot] Sep 12, 2024
8bb93f7
Add strategy for SuperBoring [superboring] (#1575)
d10r Sep 13, 2024
d1a0ba4
Fix delegation of hats-strategy (#1576)
ben-kaufman Sep 13, 2024
6ceed8c
[sd-gauge-less-vote-boost] Add delegation (#1577)
pierremarsotlyon1 Sep 13, 2024
c9280df
Add erable-governance-v1 strategy (#1579)
vk4vd Sep 13, 2024
3746739
Automated lint (#1580)
github-actions[bot] Sep 15, 2024
53452df
sdFXS delegation [sd-gauge-less-vote-boost] (#1581)
pierremarsotlyon1 Sep 16, 2024
d80d8cd
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.13 (…
renovate[bot] Sep 18, 2024
790b7ef
Add polygon-self-staked-pol (#1584)
xavikh Sep 19, 2024
3b160af
Automated lint (#1585)
github-actions[bot] Sep 23, 2024
b7a576a
[erc1155-all-balances-of] Update subgraph URL and disable matic netwo…
ChaituVR Sep 24, 2024
7f1ace3
[ens-domains-owned] fix latest block (#1589)
ChaituVR Sep 25, 2024
0de1083
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.14 (…
renovate[bot] Sep 25, 2024
f251d89
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.15 (…
renovate[bot] Sep 25, 2024
093d1bf
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.16 (…
renovate[bot] Sep 26, 2024
ae11f20
[subgraph-split-delegation] New strategy: Subgraph split delegation (…
xavikh Sep 26, 2024
101c2ba
[snx-multichain] feat: Add synthetix collateral voting strategy (#1592)
barrasso Sep 27, 2024
d08d943
[snx-multichain] fix v3 collateral voting power (#1594)
barrasso Sep 27, 2024
48a1231
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.18 (…
renovate[bot] Sep 28, 2024
461a692
[aavegotchi-agip] Update Aavegotchi Strategy (#1596)
cinnabarhorse Oct 1, 2024
1f8f92b
Update Aavegotchi Strategy (#1597)
cinnabarhorse Oct 1, 2024
e1a3538
[rocketpool-node-operator-delegate-v8] send secret in header (#1598)
ChaituVR Oct 4, 2024
e91d1af
[rocketpool-node-operator-delegate-v8] Add limit to strategies passed…
ChaituVR Oct 4, 2024
491c062
fix: use customFetch instead of fetch (#1600)
wa0x6e Oct 5, 2024
b89f3d9
fix: Abort fetch in customFetch on timeout (#1601)
ChaituVR Oct 6, 2024
902c431
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.20 (…
renovate[bot] Oct 7, 2024
69da3b0
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.22 (…
renovate[bot] Oct 8, 2024
442c51d
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.23 (…
renovate[bot] Oct 9, 2024
fc5b1d1
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.24 (…
renovate[bot] Oct 10, 2024
2eb039b
feat: use enums instead of strings in graphql queries (#1607)
juanmahidalgo Oct 11, 2024
50d1129
added WLFI voting strategy for untransferable tokens (#1609)
coreycaplan3 Oct 13, 2024
57c9f1f
[staking-amount-duration-exponential] 2 new strategies needed for our…
JanBajecDev Oct 14, 2024
e0c64b7
[moxie] Adding Strategy For Moxie Voting Power Calculation (#1604)
Hrishikesh-Thakkar Oct 15, 2024
ea7dcd6
hardcoding the subgraph ids and refactoring (#1610)
Hrishikesh-Thakkar Oct 15, 2024
a34aa66
[cookie-staking] cookie staking strategy (#1611)
spaceh3ad Oct 15, 2024
1e96902
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.25 (…
renovate[bot] Oct 16, 2024
e0a2d52
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.27 (…
renovate[bot] Oct 17, 2024
6be68d2
Automated lint (#1615)
github-actions[bot] Oct 20, 2024
e7939f1
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.28 (…
renovate[bot] Oct 21, 2024
bcaa0bd
Add sacra subgraph strategy (#1617)
alexandersazonof Oct 23, 2024
c414a07
[moxie] Moxie DAO voting strategy (#1618)
0xsarvesh Oct 27, 2024
0de704d
Make addresses unique (#1626)
xavikh Nov 7, 2024
1e5ab41
[fountainhead] Add Fountainhead strategy (#1624)
d10r Nov 7, 2024
fd38feb
Automated lint (#1629)
github-actions[bot] Nov 12, 2024
205c18d
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.29 (…
renovate[bot] Nov 14, 2024
692821f
Typos found in the documentation files (#1631)
famouswizard Nov 15, 2024
57fb94a
[delegation] fix add delegatioNetwork param (#1634)
ChaituVR Nov 19, 2024
df5b86a
Update delegation readme
ChaituVR Nov 19, 2024
299ab43
Add new power strategy for sacra (#1632)
alexandersazonof Nov 19, 2024
edd222d
[nayms-staking] nayms staking strategy (#1636)
kevin-fruitful Nov 21, 2024
be49f4e
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.30 (…
renovate[bot] Nov 21, 2024
0afd2c5
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.32 (…
renovate[bot] Nov 22, 2024
12c545e
Fix Grammar and Spelling Issues in Strategy Documentation (#1639)
Hopium21 Nov 22, 2024
e63eeca
Automated lint (#1641)
github-actions[bot] Nov 25, 2024
9dcad05
Fix Grammar and Wording Issues in Strategy Documentation (#1640)
Madmaxs2 Nov 25, 2024
96e2cf3
[morpho-delegation] morpho-delegation strategy (#1625)
Jean-Grimal Nov 29, 2024
4a23f6a
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.33 (…
renovate[bot] Nov 29, 2024
84e5e8b
Fix variable shadowing in getDelegations (#1644)
mdqst Dec 2, 2024
b4f3314
[morpho-delegation] Fix: morpho-delegation strategy (#1646)
Jean-Grimal Dec 2, 2024
2a65750
Remove split-delegation schema (#1647)
xavikh Dec 3, 2024
cb78534
[thales] Change Base subgraph URL for Thales strategy (#1648)
vladanthales Dec 3, 2024
1d2f9cd
chore: remove redundant words in comment (#1649)
rusttech Dec 3, 2024
c95e9d3
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.36 (…
renovate[bot] Dec 7, 2024
b173a93
[botto-dao-base] version 1 botto dao base (#1651)
agustinjch Dec 9, 2024
dd197e8
[sd-gauge-less-vote-boost-crosschain] Add sd-gauge-less-vote-boost-cr…
pierremarsotlyon1 Dec 17, 2024
36bd2d7
fix: Fix incorrect Promise structure in customFetch timeout logic (#1…
defitricks Dec 17, 2024
d84af4b
Automated lint (#1655)
github-actions[bot] Dec 17, 2024
ce75230
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.37 (…
renovate[bot] Dec 17, 2024
2fbc157
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.38 (…
renovate[bot] Dec 17, 2024
881ca6a
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.39 (…
renovate[bot] Dec 18, 2024
25bad80
[sd-gauge-less-vote-boost-crosschain] Add bot address (#1661)
pierremarsotlyon1 Dec 18, 2024
47c9072
A voting strategy for Lizard Labs' Lizcoin ERC20 Token (LIZ) (#1662)
vgorin Dec 19, 2024
97e9e93
Automated lint (#1663)
github-actions[bot] Dec 23, 2024
e9efb36
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.40 (…
renovate[bot] Dec 25, 2024
f2fd8f1
[realt] feat: realt (#1666)
neutiyoo Dec 27, 2024
7c4e0c9
Automated lint (#1667)
github-actions[bot] Dec 30, 2024
67416ec
fix(deps): update dependency @snapshot-labs/snapshot.js to ^0.12.41 (…
renovate[bot] Jan 3, 2025
6b17a42
[superfluid-vesting] Added strategy for Superfluid Vesting Schedules …
d10r Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SNAPSHOT_API_STRATEGY_SALT=12345 # Salt for the snapshot API strategy to send a key in header (optional)
PASSPORT_API_KEY= # API key for the passport API (optional for other strategies)
PASSPORT_SCORER_ID= # Scorer ID for the passport API (optional for other strategies)
MOXIE_API_KEY= # API key for the moxie APIs (optional for other strategies)
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"rules": {
"no-console": "off",
"no-eval": "error",
"prettier/prettier": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-ignore": "off",
Expand All @@ -21,6 +22,7 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-loss-of-precision": "off",
"prefer-spread": "off"
}
}
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow updates for @snapshot-labs/* only
- dependency-name: "@snapshot-labs/*"
10 changes: 4 additions & 6 deletions .github/workflows/nodejs.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Node CI
name: Build CI

on: [push, pull_request]

jobs:
build:

build_lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
node-version: [16.10.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -21,4 +20,3 @@ jobs:
run: |
yarn install --frozen-lockfile
yarn build
yarn lint
8 changes: 4 additions & 4 deletions .github/workflows/main.yml → .github/workflows/fix-lint.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Lint
name: Fix lint
on:
workflow_dispatch:
schedule:
- cron: 0 10 * * 0

jobs:
lint:
fix-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.10.x'
- name: Run lint script
run: |
yarn install --frozen-lockfile
yarn lint
yarn lint:fix
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Lint

on: [push]

jobs:
lint:
uses: snapshot-labs/actions/.github/workflows/lint.yml@main
secrets: inherit
18 changes: 0 additions & 18 deletions .github/workflows/publish.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test validation
on:
pull_request:
types:
- edited
- labeled
- synchronize
- ready_for_review
- review_requested
- reopened

jobs:
test-validation:
if: contains(toJson(github.event.pull_request.labels), 'validation')
runs-on: ubuntu-latest
env:
PR_TITLE: ${{ github.event.pull_request.title }}

steps:
- uses: actions/[email protected]

- name: Create env file
run: |
touch .env
echo PASSPORT_API_KEY=${{ secrets.PASSPORT_API_KEY }} >> .env
echo PASSPORT_SCORER_ID=${{ secrets.PASSPORT_SCORER_ID }} >> .env

- name: yarn install and test validation
run: |
yarn install --frozen-lockfile
VALIDATION=$(echo $PR_TITLE | sed -e 's/.*\[\(.*\)\].*/\1/')
if [ -n "$VALIDATION" ]; then
yarn test:validation --validation=$VALIDATION
fi
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ dist
# Remove some common IDE working directories
.idea
.vscode
.env
.history
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "none"
}
4 changes: 0 additions & 4 deletions .prettierrc.js

This file was deleted.

21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ yarn
yarn build
```

### Test strategy with predefined tests
### Test strategy with predefined tests (params from examples.json file)

> Note: If you're writing a new strategy, make sure to add it to strategies/index.ts before testing*

Expand All @@ -28,6 +28,12 @@ yarn test --strategy=eth-balance
yarn test --strategy=eth-balance --more=200
```

### Test validation with predefined tests (params from examples.json file)

```
yarn test:validation --validation=basic
```

### Test strategy with different parameters

Change values inside test/scores.ts and run
Expand All @@ -36,21 +42,24 @@ Change values inside test/scores.ts and run
ts-node test/scores.ts
```

### Checklist for adding a new strategy
### Checklist for adding a new voting strategy or validation strategy

Here is a simple checklist to look when reviewing a PR for a new strategy:
Here is a simple checklist to look at when reviewing a PR for a new strategy:

#### Overview

- The strategy must be unique.
- If the strategy does only a single call with an address as input, it's preferable to use the strategy "contract-call" instead of creating a new one.
- For validations better to use `basic` validation and use existing strategies

#### Code

- Strategies should always use a `snapshot` to calculate user's voting power. As a result the voting power should not change throughout the proposal duration.
- There should be a maximum of 5 requests, a request can use "fetch" a "subgraphRequest" or "multicall".
- The strategy should not send a request for each voters, this doesn't scale.
- The strategy PR should not add any dependency in Snapshot.js.
- The score returned by the strategy should use the same casing for address than on the input, or should return checksummed addresses.
- The strategy PR should not add any new dependency.
- The score returned by the strategy should use the same casing for address as on the input, or should return checksum addresses.
- Make sure that voting power of one address does not depend on other addresses.

#### Example

Expand All @@ -64,7 +73,7 @@ Here is a simple checklist to look when reviewing a PR for a new strategy:

#### Recommended

- Add a README.md file that describe the strategy and provide an example of parameters.
- Add a README.md file that describes the strategy and provides an example of parameters.
- Use string ABI instead of object.

### License
Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
testRegex: '/test(/(integration|unit))?/.*\\.spec\\.ts$'
testRegex: '/test(/(integration|unit))?/.*\\.test\\.ts$',
fakeTimers: {
enableGlobally: true
}
};
78 changes: 45 additions & 33 deletions package.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,59 @@
"license": "MIT",
"scripts": {
"build": "tsc -p .",
"test": "jest -i",
"test": "jest -i strategy.test.ts",
"test:vp": "jest -i vp.test.ts",
"test:delegation": "jest -i delegation.test.ts",
"test:validation": "jest -i validation.test.ts",
"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,.json --fix"
"postinstall": "npm run build",
"postbuild": "copyfiles -u 1 \"src/**/*.md\" dist/ && copyfiles -u 1 \"src/**/*.json\" dist/",
"typecheck": "tsc --noEmit",
"lint": "eslint src/ test/ --ext .ts,.json",
"lint:fix": "yarn lint --fix"
},
"dependencies": {
"@ethersproject/abi": "^5.0.4",
"@ethersproject/address": "^5.0.4",
"@ethersproject/bignumber": "^5.0.12",
"@ethersproject/bytes": "^5.0.8",
"@ethersproject/contracts": "^5.0.3",
"@ethersproject/hash": "^5.0.9",
"@ethersproject/providers": "^5.3.1",
"@ethersproject/solidity": "^5.0.10",
"@ethersproject/strings": "^5.0.5",
"@ethersproject/units": "^5.0.3",
"@ethersproject/wallet": "^5.4.0",
"@snapshot-labs/snapshot.js": "^0.4.5",
"@ethersproject/abi": "^5.6.4",
"@ethersproject/address": "^5.6.1",
"@ethersproject/bignumber": "^5.6.2",
"@ethersproject/bytes": "^5.6.1",
"@ethersproject/contracts": "^5.6.2",
"@ethersproject/hash": "^5.6.1",
"@ethersproject/providers": "^5.6.8",
"@ethersproject/solidity": "^5.6.1",
"@ethersproject/strings": "^5.6.1",
"@ethersproject/units": "^5.6.1",
"@ethersproject/wallet": "^5.6.2",
"@snapshot-labs/snapshot.js": "^0.12.41",
"@spruceid/didkit-wasm-node": "^0.2.1",
"@uniswap/sdk-core": "^3.0.1",
"@uniswap/v3-sdk": "^3.3.1",
"cross-fetch": "^3.0.6",
"@uniswap/v3-sdk": "^3.9.0",
"blakejs": "^1.2.1",
"copyfiles": "^2.4.1",
"cross-fetch": "^3.1.6",
"dotenv": "^16.0.3",
"eth-ens-namehash": "^2.0.8",
"json-to-graphql-query": "^2.0.0"
"json-to-graphql-query": "^2.2.4",
"tulons": "^0.0.7"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^13.9.5",
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"copyfiles": "^2.4.1",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^28.1.1",
"prettier": "2.2.0",
"ts-jest": "^28.0.5",
"typescript": "^4.2.3"
"@types/jest": "^29.5.1",
"@types/node": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"eslint": "^8.19.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.7.1",
"ts-jest": "^29.1.0",
"typescript": "^4.7.4"
},
"engines": {
"node": ">=14"
"node": ">=16.10.0"
},
"resolutions": {
"@uniswap/v3-periphery": "1.4.1"
}
}
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import 'dotenv/config';
import strategies from './strategies';
import validations from './validations';
import utils from './utils';

export default {
strategies,
validations,
utils
};
10 changes: 10 additions & 0 deletions src/strategies/a51-farming/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# A51 Farming

This strategy fetches the user's amount from the farming.

## Params

|| **name** || **description** || **default** ||
|| farmingVaultAddress || Address of the A51 farming vault || ||
|| isToken0 || Is the token0 desired token || ||
|| decimals || decimals of desired token || ||
20 changes: 20 additions & 0 deletions src/strategies/a51-farming/examples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"name": "Example query",
"strategy": {
"name": "a51-farming",
"params": {
"farmingVaultAddress": "0x5ea84bb07f399fbf58c504929864b5fcbdc8300b",
"isToken0": false,
"decimals": 18
}
},
"network": "137",
"addresses": [
"0x0895fcb879d7b0d36f23b3f68b6192c532ffad01",
"0x072fb32a9d71482d970090daef0e90cd8c665113",
"0x75f2BbF3A10B67134A780fB7D6da5808265111F7"
],
"snapshot": 55932446
}
]
Loading