Closed Defi-Moses closed 1 month ago
The changes in this pull request involve modifications to the BridgeProofDisputedEvents
table schema in the ponder.schema.ts
file. The fields chainId
and chain
have been renamed to originChainId
and originChain
, respectively, to enhance clarity and consistency with other event tables. Additionally, the event handling logic for FastBridgeV2
events has been updated to reflect these new field names, ensuring uniformity across the codebase.
File Path | Change Summary |
---|---|
packages/rfq-indexer/indexer/ponder.schema.ts | Renamed fields chainId to originChainId and chain to originChain in BridgeProofDisputedEvents . Updated event handling logic to reflect these changes. |
BridgeProofDisputedEvents
table schema and event handling logic.size/m
, Sol
, Typescript
In the schema where events do play,
chainId
transformed, a bright new day.
originChainId
now takes the stage,
Consistency blooms, wisdom of age.
With each little change, we hop and cheer,
For clarity's path is now crystal clear! π°β¨
packages/rfq-indexer/indexer/ponder.schema.ts (2)
Line range hint `1-94`: **Summary: Naming convention standardization successfully implemented.** The changes in this file successfully standardize the naming convention for chain-related fields in the `BridgeProofDisputedEvents` table, aligning it with other tables in the schema. This improvement enhances code consistency and readability across the project. --- `88-89`: **LGTM! Consistent naming improvement.** The renaming of `chainId` to `originChainId` and `chain` to `originChain` in the `BridgeProofDisputedEvents` table improves consistency with other event tables in the schema. This change enhances code readability and maintainability. To ensure these changes don't break existing code, please run the following script to check for any references to the old field names: If the script returns any results, those occurrences should be updated to use the new field names.packages/rfq-indexer/indexer/src/index.ts (2)
`168-169`: **Approved: Improved naming consistency** The renaming of `chainId` to `originChainId` and `chain` to `originChain` enhances the consistency of the codebase. This change aligns the `BridgeProofDisputed` event handler with other handlers in the file, making it clear that these properties refer to the origin chain. Good job on standardizing the naming convention! --- `168-169`: **Verify impact on data consumers** While the renaming improves consistency, it's important to ensure that any code consuming data from the `BridgeProofDisputedEvents` table is updated to use the new property names (`originChainId` and `originChain`). Please verify that all relevant queries or data access points are adjusted accordingly to prevent any potential issues. To help verify this, you can run the following script to search for any usage of the old property names in relation to `BridgeProofDisputedEvents`: This script will search for any occurrences of `BridgeProofDisputedEvents` followed by `chain` (but not `chainId` or `chainChain`) in TypeScript and JavaScript files, excluding the current file. If there are any results, those areas may need to be updated.β Verification successful
**No external usages of old property names found** All consumers of the `BridgeProofDisputedEvents` table are using the updated property names (`originChainId` and `originChain`). No adjustments are necessary.π Scripts executed
The following scripts were executed for the analysis: Script: ```shell #!/bin/bash # Search for potential usage of old property names rg --type typescript --type javascript 'BridgeProofDisputedEvents.*chain(?!Id|Chain)' -g '!**/index.ts' ``` Length of output: 385 --- Script: ```shell #!/bin/bash # Search for potential usage of old property names using PCRE2 for look-around rg --pcre2 --type typescript --type javascript 'BridgeProofDisputedEvents.*chain(?!Id|Chain)' -g '!**/index.ts' ``` Length of output: 148 --- Script: ```shell #!/bin/bash # Search for potential usage of old property names using file extensions and PCRE2 rg --pcre2 'BridgeProofDisputedEvents.*chain(?!Id|Chain)' -g '*.ts' -g '*.tsx' -g '*.js' -g '*.jsx' -g '!**/index.ts' ``` Length of output: 119
Latest commit: |
bc3755d
|
Status: | β Deploy successful! |
Preview URL: | https://1fd7941a.sanguine-fe.pages.dev |
Branch Preview URL: | https://feat-rfq-indexer-db-names.sanguine-fe.pages.dev |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.43902%. Comparing base (
61c2310
) to head (bc3755d
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Changes two small naming conventions for stanadardization
Summary by CodeRabbit
New Features
Bug Fixes