Repository navigation
refactor(contracts): Ensure deployments scripts are typechecked, fix compilation issues and refactor the code - #1236
Merged
Conversation
PetarKirov
marked this pull request as draft
April 17, 2025 01:21
PetarKirov
force-pushed
the
refactor/contracts/deployment-scripts
branch
2 times, most recently
from
April 17, 2025 17:29
150ac7a to
8618c0c
Compare
PetarKirov
force-pushed
the
refactor/contracts/deployment-scripts
branch
7 times, most recently
from
May 3, 2025 12:19
6e20e1c to
12625d6
Compare
PetarKirov
force-pushed
the
refactor/contracts/deployment-scripts
branch
5 times, most recently
from
May 11, 2025 21:47
70dd233 to
c0b911f
Compare
PetarKirov
force-pushed
the
refactor/contracts/deployment-scripts
branch
from
May 15, 2025 01:00
fa6f570 to
59c562f
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the contracts code to enhance type checking in deployment scripts and resolve compilation issues. The changes primarily update the type conversion pattern (switching from S.Schema.Type to typeof …Schema.Type), refactor array iteration utilities, and adjust key composition in ChainLink-related modules.
- Uniform type conversions in multiple exchange-specific type files.
- Replacement of array iteration functions and iterator access in Kraken and ChainLink feeds.
- Minor dependency updates in package.json.
Reviewed Changes
Copilot reviewed 116 out of 116 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| apps/data-feeds-config-generator/src/data-services/fetchers/exchanges/*/types.ts | Replaced S.Schema.Type with typeof …Schema.Type for improved type inference. |
| apps/data-feeds-config-generator/src/data-services/fetchers/exchanges/kraken/kraken.ts | Replaced entries with entriesOf and updated the array conversion pattern. |
| apps/data-feeds-config-generator/src/data-feeds-config-generator/src/data-services/fetchers/chainlink/chainlink_feeds.ts | Adjusted how the first feed data item is accessed using the iterator’s next() method. |
| apps/data-feeds-config-generator/src/chainlink-compatibility/index.ts | Updated key composition by removing parseNetworkFilename from the key formation. |
| apps/data-feeds-config-generator/package.json | Updated dependency versions for effect and vitest. |
Comments suppressed due to low confidence (1)
apps/data-feeds-config-generator/src/chainlink-compatibility/index.ts:107
- The removal of parseNetworkFilename from the key composition changes the expected key format, which may lead to mismatches if downstream logic expects the transformed filename. Ensure this change is intended and update related consumers if necessary.
[`${networkFile}/${contractAddress}`]: correspondingBlocksenseFeed ? correspondingBlocksenseFeed.id : null,
PetarKirov
force-pushed
the
refactor/contracts/deployment-scripts
branch
from
May 15, 2025 01:07
59c562f to
67eb1f1
Compare
Xearty
force-pushed
the
refactor/contracts/deployment-scripts
branch
from
May 15, 2025 11:07
9ae79a5 to
41fdd0d
Compare
PetarKirov
force-pushed
the
refactor/contracts/deployment-scripts
branch
2 times, most recently
from
May 16, 2025 21:33
a1b68b7 to
569e1e5
Compare
…rAdapter` from array to `FeedId`-based map
…stead of `description` Because `full_name` is what is typically used for such contracts and `description` is meant for the feed explorer website.
…vate-key-based `ethers.Wallet` And various other improvements: * Improve structure of `NetworkConfig` types * Re-implement `init-chain` on top of `parseDeploymentEnvConfig` * Improve logs
…lt for local deployment
…ove `NetworkAccessCard` Co-authored-by: Emil Ivanichkov <emil.ivanichkov@gmail.com> 5be1149
…sistent Co-authored-by: Kristin Kirkov <kristin.kirkov@metacraft-labs.com>
EmilIvanichkovv
approved these changes
Jul 9, 2025
EmilIvanichkovv
left a comment
Contributor
There was a problem hiding this comment.
The end of an era
🚀 Deployment Links of Blocksense Network websites:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Progress so far
{read,write}Configand{read,write}EvmDeploymentfunctions #1235 (6 commits)How to test
1. Prepare your local repo for testing of this branch
2. Start local Anvil instance and deploy against it