-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Resolve Type Warnings for ConfigService.get() (#3350)
* fix: resolve type warnings for ConfigService.get() - Ensured type consistency in all affected test cases. - Removed unnecessary type casting or added necessary casting. Signed-off-by: belloibrahv <[email protected]> * fix: resolve type warnings for ConfigService.get() - Ensured type consistency in all affected test cases. - Removed unnecessary type casting or added necessary casting. Signed-off-by: belloibrahv <[email protected]> * Refactor GlobalConfig and revert header changes as per feedback Signed-off-by: belloibrahv <[email protected]> * Reverting License Header Changes Signed-off-by: belloibrahv <[email protected]> * Refinment of ConfigService.get() (to conform to newly suggested changes) Signed-off-by: belloibrahv <[email protected]> * Refactor ConfigService.get to enhance type safety and remove manual casting Signed-off-by: belloibrahv <[email protected]> * fix bugs in workflow Signed-off-by: belloibrahv <[email protected]> * Remove assesrtion Signed-off-by: belloibrahv <[email protected]> * Remove assesrtion Signed-off-by: belloibrahv <[email protected]> * Add assertion to _CONFIG (in the globalConfig.ts file) Signed-off-by: belloibrahv <[email protected]> * chore: renamed types and added explanation Signed-off-by: Logan Nguyen <[email protected]> * fix: loosen strict type checking for array types in config variables Signed-off-by: Logan Nguyen <[email protected]> * fix: modified GetTypeOfConfigKey to resolve to better types Signed-off-by: Logan Nguyen <[email protected]> * fix: updated properly default values to all global configs Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed ConfigService unit test Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed LocalLRUCache suite Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed HbarSpendingPlanConfigService suite Signed-off-by: Logan Nguyen <[email protected]> * chore: updated type explanation Signed-off-by: Logan Nguyen <[email protected]> Revert "chore: updated type explanation" This reverts commit ecd8d6e. Reapply "chore: updated type explanation" This reverts commit 6756ecb1ee558c7d20fb8f7a71e2fbee70bb75ad. * fix: modified typeCasting to always convert CHAIN_ID to hexadecimal value Signed-off-by: Logan Nguyen <[email protected]> * fix: further tighten ConfigService.get() Signed-off-by: Logan Nguyen <[email protected]> * Update web3.ts Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed test in net Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed test in web3 Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed eth_feeHistory Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed filter API Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed HbarLimitService unit test Signed-off-by: Logan Nguyen <[email protected]> Revert "fixed shouldLimit v1" This reverts commit 2f745e6f6188d7c4d84da931793544200420d073. Reapply "fixed shouldLimit v1" This reverts commit f280bbf311a4e407ed2c158d372581e2b8b36e25. s Signed-off-by: Logan Nguyen <[email protected]> Revert "fix: fixed HbarLimitService unit test" This reverts commit ec28eee. Reapply "fix: fixed HbarLimitService unit test" This reverts commit e27bae25cb51f5a49db525c5e66e08b3da2c3c15. Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed utils.spec.ts Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed BATCH_REQUESTS_ENABLED enabled by default Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed ws-server unit Signed-off-by: Logan Nguyen <[email protected]> * chore: switch MULTI_SET to false Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed newHeads test Signed-off-by: Logan Nguyen <[email protected]> * fix: removed type array in GlobalConfig Signed-off-by: Logan Nguyen <[email protected]> * fix: reverted Copyright Signed-off-by: Logan Nguyen <[email protected]> * chore: converted JSDoc to TSDoc Signed-off-by: Logan Nguyen <[email protected]> * chore: replaced constant CACHE_MAX with config Signed-off-by: Logan Nguyen <[email protected]> * chore: replaced constant CACHE_TTL.ONEHOUR with config 'CACHE_TTL' Signed-off-by: Logan Nguyen <[email protected]> * chore: replaced constants.SEND_RAW_TRANSACTION_SIZE_LIMIT with config Signed-off-by: Logan Nguyen <[email protected]> * chore: replaced constants. DEFAULT_ETH_GET_LOGS_BLOCK_RANGE_LIMIT with config value Signed-off-by: Logan Nguyen <[email protected]> * chore: replaced constants.ETH_GET_TRANSACTION_COUNT_MAX_BLOCK_RANGE with config Signed-off-by: Logan Nguyen <[email protected]> * chore: replaced constants.MIRROR_NODE_RETRY_DELAY_DEFAULT with config Signed-off-by: Logan Nguyen <[email protected]> * chore: replaced constants.MIRROR_NODE_REQUEST_RETRY_COUNT_DEFAULT with config Signed-off-by: Logan Nguyen <[email protected]> * fix(ci): fixed ci test with fallback log level Signed-off-by: Logan Nguyen <[email protected]> Revert "fix(ci): fixed ci test with fallback log level" This reverts commit 9af4396. Reapply "fix(ci): fixed ci test with fallback log level" This reverts commit bd81c5729ffa7e4e20cf07cccbec718aff61af9b. Revert "fix(ci): fixed ci test with fallback log level" This reverts commit 981cad0a66a4e487d6e396dfcc0fa1123f19296f. Reapply "fix(ci): fixed ci test with fallback log level" This reverts commit 87eb44fd5fcd09156210cd431d7a0d00e9f8e720. * fix: alphabeticalized configuration tables Signed-off-by: Logan Nguyen <[email protected]> --------- Signed-off-by: belloibrahv <[email protected]> Signed-off-by: Logan Nguyen <[email protected]> Co-authored-by: Logan Nguyen <[email protected]>
- Loading branch information
1 parent
4389821
commit 237b452
Showing
73 changed files
with
1,331 additions
and
1,255 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
1,517 changes: 796 additions & 721 deletions
1,517
packages/config-service/src/services/globalConfig.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.