Skip to content

Commit

Permalink
Add holders endpoints and query
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Aug 31, 2024
1 parent ac68243 commit a64b14c
Show file tree
Hide file tree
Showing 27 changed files with 96 additions and 2,885 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[graphql]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
39 changes: 5 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,9 @@
# beefy-clm-api
# beefy-balances-api

https://clm-api.beefy.finance/api/documentation
http://localhost:4000/api/documentation

https://clm-api.beefy.finance/api/v1/investor/0xb1F1000b4FCae7CD07370cE1A3E3b11270caC0dE/timeline
http://localhost:4000/api/v1/investor/0xb1F1000b4FCae7CD07370cE1A3E3b11270caC0dE/timeline

https://clm-api.beefy.finance/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/prices/1d/1717621855
http://localhost:4000/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/prices/1d/1717621855

https://clm-api.beefy.finance/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/prices/range/1d
http://localhost:4000/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/prices/range/1d

https://clm-api.beefy.finance/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/price
http://localhost:4000/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/price

https://clm-api.beefy.finance/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/harvests
http://localhost:4000/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/harvests

https://clm-api.beefy.finance/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/investors
http://localhost:4000/api/v1/vault/arbitrum/0x4c32b8d26e6ab2ce401772514c999768f63afb4e/investors

https://clm-api.beefy.finance/api/v1/vaults/arbitrum/1d
http://localhost:4000/api/v1/vaults/arbitrum/1d

https://clm-api.beefy.finance/api/v1/vaults/arbitrum/harvests/1717621855
http://localhost:4000/api/v1/vaults/arbitrum/harvests/1717621855

https://clm-api.beefy.finance/api/v1/vaults/arbitrum/harvests/1712591753?vaults=0xeea4114ab4fcb82a28c514e21d656ca78d75b1a9&vaults=0x5b65c2d8866ee0cd0d041beb0c6ea53a1cd058cd&vaults=0x63b54b0e06028802007c5f1eaeac03d5472b904a&vaults=0x56637ef065dc19ed71b7bd8b60dbda9a1ba12a7e&vaults=0x9aa49971f4956d7831b2cd1c9af7ed931b5f91bc&vaults=0x4c32b8d26e6ab2ce401772514c999768f63afb4e&vaults=0xc670f18d0feef76ccb7c4c3ce0226cc64c8b6356&vaults=0x809f9007172beaae23c08352995e60b9f4c11bb2&vaults=0x8d8e012d80e2a7b3b4de2a050c0cf923a0064a8e&vaults=0xedd08a6ff7aeee1e4dccc103198af06b2316d8b8&vaults=0x2a2e016f9c30c7da5a41b21c19e9619ff78ab673&vaults=0xd3d8d178aaecde5ba307c8806cb04346bb91e307

http://localhost:4000/api/v1/vaults/arbitrum/harvests/1712591753?vaults=0xeea4114ab4fcb82a28c514e21d656ca78d75b1a9&vaults=0x5b65c2d8866ee0cd0d041beb0c6ea53a1cd058cd&vaults=0x63b54b0e06028802007c5f1eaeac03d5472b904a&vaults=0x56637ef065dc19ed71b7bd8b60dbda9a1ba12a7e&vaults=0x9aa49971f4956d7831b2cd1c9af7ed931b5f91bc&vaults=0x4c32b8d26e6ab2ce401772514c999768f63afb4e&vaults=0xc670f18d0feef76ccb7c4c3ce0226cc64c8b6356&vaults=0x809f9007172beaae23c08352995e60b9f4c11bb2&vaults=0x8d8e012d80e2a7b3b4de2a050c0cf923a0064a8e&vaults=0xedd08a6ff7aeee1e4dccc103198af06b2316d8b8&vaults=0x2a2e016f9c30c7da5a41b21c19e9619ff78ab673&vaults=0xd3d8d178aaecde5ba307c8806cb04346bb91e307



https://clm-api.beefy.finance/api/v1/status
https://balances-api.beefy.finance/api/v1/status
http://localhost:4000/api/v1/status


https://balances-api.beefy.finance/api/v1/holders/counts/all
http://localhost:4000/api/v1/holders/counts/all
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@
"ts-node-dev": "^2.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
12 changes: 5 additions & 7 deletions src/config/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import { StringEnum } from '../utils/typebox';
export enum ChainId {
arbitrum = 'arbitrum',
base = 'base',
optimism = 'optimism',
moonbeam = 'moonbeam',
bsc = 'bsc',
ethereum = 'ethereum',
fraxtal = 'fraxtal',
linea = 'linea',
polygon = 'polygon',
zksync = 'zksync',
manta = 'manta',
mantle = 'mantle',
sei = 'sei',
bsc = 'bsc',
mode = 'mode',
optimism = 'optimism',
}

export const allChainIds: Array<ChainId> = Object.values(ChainId);
Expand Down
6 changes: 6 additions & 0 deletions src/queries/AllTokenHolders.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
query AllTokenHolders($first: Int = 1000, $skip: Int = 0) {
tokenStatistics(skip: $skip, first: $first, where: { holderCount_gt: 0 }) {
id
holderCount
}
}
161 changes: 0 additions & 161 deletions src/queries/InvestorTimeline.graphql

This file was deleted.

50 changes: 0 additions & 50 deletions src/queries/VaultHarvests.graphql

This file was deleted.

88 changes: 0 additions & 88 deletions src/queries/VaultHistoricPrices.graphql

This file was deleted.

Loading

0 comments on commit a64b14c

Please sign in to comment.