-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support dynamically specified networks #187
Open
SebastienGllmt
wants to merge
14
commits into
main
Choose a base branch
from
custom-networks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
20ae27d
Custom network support
SebastienGllmt 59dddc4
Dynamically load custom network configs
rooooooooob 9386b57
Merge branch 'main' into custom-networks
rooooooooob aa0738d
fmt
rooooooooob 2ce031a
cargo.lock to fix dep issues in CI
rooooooooob 29f2798
Merge branch 'main' into custom-networks
rooooooooob 93043cd
fixes after github merge
rooooooooob 2fa8e10
push some old code
SebastienGllmt 165e11b
update cardano source (less settings required) and add shelley genesi…
ecioppettini 33a4f35
fix plan_visualizer missing case
ecioppettini 2829c3a
only compute the epoch if it's not done by the source
ecioppettini d505f02
replace the oura source with new n2c (pallas network)
ecioppettini 0badb1b
parse the genesis inside the task to keep things working well without…
ecioppettini 04c76fd
point cml to unmerged pr with flota deser fixes
ecioppettini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
source: | ||
type: cardano_net | ||
relay: | ||
- localhost | ||
- 3001 | ||
|
||
sink: | ||
type: cardano | ||
db: | ||
type: postgres | ||
database_url: postgresql://carp:1234@localhost:5432/carp_custom5 | ||
network: custom # preview / preprod / testnet / custom | ||
genesis_folder: /home/user/Cardano/carp/indexer/genesis/ | ||
custom_config: | ||
chain_info: | ||
network_id: 1 | ||
protocol_magic: 42 | ||
relay: | ||
- "localhost" | ||
- 3001 | ||
from: | ||
BlockHeader: | ||
slot_nb: 1 | ||
hash: "ba8066f73eb9cf4ad9adf38051c54d3a51d92cb98561cffc1f202b1b97739cd5" | ||
genesis_parent: "0ded594a3411f6d3236228abc1e2ef8c2a21e09d859ea23bfc2182f92853cba8" | ||
genesis: | ||
BlockHeader: | ||
slot_nb: 0 | ||
hash: "7a32184d9e0068b0fa75fd0ecaad798f9bc573d4921c519b12968e26ff0747a3" | ||
shelley_era_config: | ||
first_slot: 0 | ||
start_epoch: 0 | ||
known_time: 1722355346 | ||
slot_length: 1 | ||
epoch_length_seconds: 500 | ||
|
||
start_block: | ||
|
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.
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.
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.
Not convinced about this approach. How would you convert the yaci-devkit to this data type dynamically?
Especially because the genesis config can contain stuff that we actually have to insert into the database (ex: for Shelley, the Shelley config can contain some default pools and registrations for the Shelley era that Carp would have to know about)
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.
You can do the config file dynamically with the env variable, wouldn't that be enough?