-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add leaderboard-squid and leaderboard v2 #797
Conversation
✅ Deploy Preview for dev-astral ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
User description
Add leaderboard-squid and leaderboard v2
Screenshots
PR Type
enhancement, tests
Description
leaderboard-squid
.ExplorerQueryState
interface and removed unused imports.AccountLeaderboard
component.Changes walkthrough 📝
5 files
v0.ts
Add comprehensive type definitions for leaderboard-squid
indexers/leaderboard-squid/src/types/v0.ts
sts.Type
structures.leaderboard.query.ts
Add GraphQL queries for leaderboard metrics
explorer/src/components/Leaderboard/leaderboard.query.ts
extrinsic counts.
cache.ts
Implement caching mechanism for leaderboard data
indexers/leaderboard-squid/src/utils/cache.ts
query.ts
Update ExplorerQueryState interface
explorer/src/states/query.ts
ExplorerQueryState
interface.page.tsx
Update leaderboard page to use AccountLeaderboard component
explorer/src/app/[chain]/leaderboard/page.tsx
AccountLeaderboard
component.87 files
leaderboard.ts
...
explorer/gql/types/leaderboard.ts
...
staking.ts
...
explorer/gql/types/staking.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/domains/storage.ts
...
v5.ts
...
indexers/leaderboard-squid/src/types/v5.ts
...
v1.ts
...
indexers/leaderboard-squid/src/types/v1.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/system/storage.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/subspace/storage.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/balances/storage.ts
...
index.tsx
...
explorer/src/components/Leaderboard/index.tsx
...
sort.ts
...
indexers/leaderboard-squid/src/utils/sort.ts
...
account.ts
...
indexers/leaderboard-squid/src/storage/account.ts
...
LeaderboardList.tsx
...
explorer/src/components/Leaderboard/LeaderboardList.tsx
...
events.ts
...
indexers/leaderboard-squid/src/types/balances/events.ts
...
calls.ts
...
indexers/leaderboard-squid/src/types/domains/calls.ts
...
staking.ts
...
indexers/leaderboard-squid/src/events/staking.ts
...
events.ts
...
indexers/leaderboard-squid/src/types/domains/events.ts
...
operator.ts
...
indexers/leaderboard-squid/src/storage/operator.ts
...
farmer.ts
...
indexers/leaderboard-squid/src/storage/farmer.ts
...
v3.ts
...
indexers/leaderboard-squid/src/types/v3.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/domains/constants.ts
...
farmer.ts
...
indexers/leaderboard-squid/src/events/farmer.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/subspace/constants.ts
...
support.ts
...
indexers/leaderboard-squid/src/types/support.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/transaction-fees/storage.ts
...
calls.ts
...
indexers/leaderboard-squid/src/types/system/calls.ts
...
nominator.ts
...
indexers/leaderboard-squid/src/storage/nominator.ts
...
account.ts
...
indexers/leaderboard-squid/src/events/account.ts
...
calls.ts
...
indexers/leaderboard-squid/src/types/balances/calls.ts
...
extrinsic.ts
...
indexers/leaderboard-squid/src/events/extrinsic.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/rewards/storage.ts
...
processor.ts
...
indexers/leaderboard-squid/src/processor.ts
...
index.ts
...
indexers/leaderboard-squid/src/events/index.ts
...
calls.ts
...
indexers/leaderboard-squid/src/types/subspace/calls.ts
...
events.ts
...
indexers/leaderboard-squid/src/types/system/events.ts
...
index.ts
...
indexers/leaderboard-squid/src/utils/index.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/balances/constants.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/system/constants.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/rewards/constants.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/transaction-payment/constants.ts
...
events.ts
...
indexers/leaderboard-squid/src/types/transaction-fees/events.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/transaction-fees/constants.ts
...
indexers.ts
...
explorer/src/constants/indexers.ts
...
OperatorsList.tsx
...
explorer/src/components/Staking/OperatorsList.tsx
...
fee.ts
...
indexers/leaderboard-squid/src/events/fee.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/transaction-payment/storage.ts
...
events.ts
...
indexers/leaderboard-squid/src/types/subspace/events.ts
...
index.ts
...
indexers/leaderboard-squid/src/blocks/index.ts
...
events.ts
...
indexers/leaderboard-squid/src/types/rewards/events.ts
...
page.tsx
...
explorer/src/app/[chain]/leaderboard/accounts/page.tsx
...
ChainProvider.tsx
...
explorer/src/providers/ChainProvider.tsx
...
MyPositionSwitch.tsx
...
explorer/src/components/common/MyPositionSwitch.tsx
...
LeaderboardHeader.tsx
...
explorer/src/components/layout/LeaderboardHeader.tsx
...
staking.query.ts
...
explorer/src/components/Staking/staking.query.ts
...
OperatorNominatorTable.tsx
...
explorer/src/components/Staking/OperatorNominatorTable.tsx
...
calls.ts
...
indexers/leaderboard-squid/src/types/rewards/calls.ts
...
events.ts
...
indexers/leaderboard-squid/src/types/transaction-payment/events.ts
...
number.ts
...
explorer/src/utils/number.ts
...
page.tsx
...
explorer/src/app/[chain]/leaderboard/nominators/page.tsx
...
page.tsx
...
explorer/src/app/[chain]/leaderboard/operators/page.tsx
...
main.ts
...
indexers/leaderboard-squid/src/main.ts
...
page.tsx
...
explorer/src/app/[chain]/leaderboard/farmers/page.tsx
...
codegen.ts
...
explorer/codegen.ts
...
index.ts
...
indexers/leaderboard-squid/src/types/index.ts
...
constants.ts
...
indexers/leaderboard-squid/src/types/constants.ts
...
events.ts
...
indexers/leaderboard-squid/src/types/events.ts
...
storage.ts
...
indexers/leaderboard-squid/src/types/storage.ts
...
routes.ts
...
explorer/src/constants/routes.ts
...
calls.ts
...
indexers/leaderboard-squid/src/types/calls.ts
...
index.ts
...
indexers/leaderboard-squid/src/model/index.ts
...
1723206699043-Data.js
...
indexers/leaderboard-squid/db/migrations/1723206699043-Data.js
...
docker-run.sh
...
indexers/leaderboard-squid/scripts/docker-run.sh
...
gemini3h.jsonl
...
indexers/leaderboard-squid/gemini3h.jsonl
...
package-lock.json
...
indexers/leaderboard-squid/package-lock.json
...
README.md
...
indexers/leaderboard-squid/README.md
...
schema.graphql
...
indexers/leaderboard-squid/schema.graphql
...
commands.json
...
indexers/leaderboard-squid/commands.json
...
package.json
...
indexers/leaderboard-squid/package.json
...
typegen.json
...
indexers/leaderboard-squid/typegen.json
...
LICENSE
...
indexers/leaderboard-squid/LICENSE
...
squid.yaml
...
indexers/leaderboard-squid/squid.yaml
...
tsconfig.json
...
indexers/leaderboard-squid/tsconfig.json
...
.env
...
indexers/leaderboard-squid/.env
...
docker-compose.yml
...
indexers/leaderboard-squid/docker-compose.yml
...
astral.code-workspace
...
.vscode/astral.code-workspace
...
.squidignore
...
indexers/leaderboard-squid/.squidignore
...
.dockerignore
...
indexers/leaderboard-squid/.dockerignore
...
.npmrc
...
indexers/leaderboard-squid/.npmrc
...