Closed Defi-Moses closed 1 month ago
The changes introduced in this pull request enhance the integration of the "Worldchain" blockchain into various components of the codebase. This includes adding a new data key for "worldchain" in the BarChart
component, updating the network configuration to include details for "Worldchain," and modifying several API endpoints and their documentation to reflect the new blockchain's presence. Additionally, there are adjustments to SQL queries, GraphQL schemas, and various utility files to accommodate the new blockchain data without altering existing functionality.
File Path | Change Summary |
---|---|
packages/explorer-ui/components/ChainChart/index.tsx | Added a new Bar element for the dataKey "worldchain" in the BarChart component. |
packages/rfq-indexer/api/src/constants/networkConfig.ts | Introduced "Worldchain" network with chain ID 480 and FastBridgeV2 configuration. |
packages/rfq-indexer/api/src/controllers/conflictingProofsController.ts | Minor formatting change in function call spacing. |
packages/rfq-indexer/api/src/controllers/disputesController.ts | Minor formatting change in function call spacing. |
packages/rfq-indexer/api/src/controllers/pendingTransactionsController.ts | Changed HTTP status code from 404 to 200 when no pending transactions are found; minor formatting adjustments. |
packages/rfq-indexer/api/src/controllers/transactionIdController.ts | Reformatted import statements and query structure for clarity. |
packages/rfq-indexer/api/src/graphql/resolvers.ts | Added BridgeRequestEvents.request field in the qDeposits function. |
packages/rfq-indexer/api/src/graphql/types/events.graphql | Added request: String! field to BridgeRequestEvent type. |
packages/rfq-indexer/api/src/queries/depositsQueries.ts | Added BridgeRequestEvents.request column to qDeposits selection. |
packages/rfq-indexer/api/src/routes/conflictingProofsRoute.ts | Updated OpenAPI documentation to indicate 200 response may return an empty array. |
packages/rfq-indexer/api/src/routes/disputesRoute.ts | Updated OpenAPI documentation for 200 response to clarify it may return an empty array. |
packages/rfq-indexer/api/src/routes/invalidRelaysRoute.ts | Updated OpenAPI documentation for 200 response to clarify it may return an empty array. |
packages/rfq-indexer/api/src/routes/pendingTransactionsRoute.ts | Updated OpenAPI documentation for several endpoints to clarify 200 response may return an empty array. |
packages/rfq-indexer/api/src/routes/refundedAndRelayedRoute.ts | Updated OpenAPI documentation for 200 response to clarify it may return an empty array. |
packages/rfq-indexer/api/src/routes/transactionIdRoute.ts | Simplified endpoint summary and description in OpenAPI documentation. |
packages/rfq-indexer/api/src/types/index.ts | Added request: ColumnType<string> property in BridgeRequestEvents interface. |
packages/rfq-indexer/indexer/.env.example | Added new environment variable WORLDCHAIN_MAINNET_RPC . |
packages/rfq-indexer/indexer/ponder.config.ts | Added configuration for "worldchain" including chain ID, RPC endpoint, and FastBridgeV2 address. |
packages/rfq-indexer/indexer/ponder.schema.ts | Added request field to the BridgeRequestEvents table schema. |
packages/rfq-indexer/indexer/src/index.ts | Updated event handler for FastBridgeV2:BridgeRequested to include request parameter. |
packages/rfq-indexer/indexer/src/utils/chains.ts | Added mapping for chain ID 480 to name 'worldchain' . |
packages/rfq-indexer/indexer/src/utils/formatAmount.ts | Introduced ADDRESSES_WITH_18_DECIMALS constant and updated formatAmount function. |
services/explorer/api/server_test.go | Updated GetDailyStatisticsByChain struct to include Worldchain field. |
services/explorer/consumer/parser/rfqparser.go | Enhanced token identification logic for "WLD" tokens. |
services/explorer/consumer/parser/tokendata/cache.go | Added new entries for "WLD" and "USDC.e" tokens in tokenDataMap . |
services/explorer/graphql/client/client.go | Updated GetDailyStatisticsByChain struct to include Worldchain field. |
services/explorer/graphql/client/queries/queries.graphql | Added worldchain field to GetDailyStatisticsByChain query response. |
services/explorer/graphql/server/graph/model/models_gen.go | Added Worldchain field to DateResultByChain struct. |
services/explorer/graphql/server/graph/partials.go | Updated SQL queries to include worldchain in results selection. |
services/explorer/graphql/server/graph/resolver/server.go | Updated resolver function for DateResultByChain to include worldchain field. |
services/explorer/graphql/server/graph/schema/types.graphql | Added worldchain: Float field to DateResultByChain type. |
services/explorer/static/chainIDs.yaml | Added mapping for 'Worldchain' with identifier 480 . |
services/explorer/static/tokenIDToCoinGeckoID.yaml | Added mapping for token identifier WLD to CoinGecko ID worldcoin . |
services/explorer/static/tokenSymbolToCoinGeckoID.yaml | Added mapping for token symbol wld to CoinGecko ID worldcoin . |
services/explorer/static/tokenSymbolToTokenID.yaml | Added mapping for token symbol wld to token ID worldcoin . |
packages/rfq-indexer/indexer/abis/FastBridgeV2.ts | Reformatted FastBridgeV2Abi array for consistency without changing its content. |
<Bar>
component for the linea
data key in the ChainChart
, which is similar to the addition of the worldchain
data key in the main PR.ChainChart
component, which may relate to the overall structure and functionality of the chart being enhanced in the main PR.request
field in the BridgeRequestEvents
table and related changes in this PR align with the enhancements made to the BarChart
component in the main PR, as both involve expanding the data structure for blockchain events.bridgeMap
and the addition of the WORLDCHAIN
token in this PR relate to the overall theme of expanding blockchain support, which is also a focus of the main PR.WLD
token and updates to existing tokens in this PR are related to the main PR's focus on enhancing the ChainChart
to support additional blockchains.ETH
token on the BNB chain in this PR complements the main PR's focus on expanding the chart's functionality to include more blockchain data.M-synapse-interface
, size/m
, M-docs
🐰 In the land of code, we hop and play,
With "worldchain" added, hip-hip-hooray!
New bars in charts, and tokens galore,
Expanding horizons, who could ask for more?
With each little change, our project will grow,
A bright future awaits, let the data flow! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Please upload report for BASE (
master@bae13aa
). Learn more about missing BASE report. Report is 4 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
24fbf3e
|
Status: | ✅ Deploy successful! |
Preview URL: | https://5c590219.sanguine-fe.pages.dev |
Branch Preview URL: | https://feat-explorer-w.sanguine-fe.pages.dev |
Changes will decrease total bundle size by 3.86MB (-10.84%) :arrow_down:. This is within the configured threshold :white_check_mark:
ℹ️ *Bundle size includes cached data from a previous commit
Description A clear and concise description of the features you're adding in this pull request.
Additional context Add any other context about the problem you're solving.
Metadata
103f6db08d88ac3b8e67c41cbbc91ded2815b139: explorer-ui preview link
Summary by CodeRabbit
New Features
BarChart
component to display data for the "Worldchain" alongside existing blockchains.BridgeRequestEvents
to capture additional data in the GraphQL schema.Documentation
Bug Fixes
231d67fd6677f60cd96a71875490f8f5d7f589b8: explorer-ui preview link 0bcc74423e852ee0a3ef674dbb6da5efa1621f8b: explorer-ui preview link