Skip to content
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

Add Casper RPC url to server configuration #100

Merged
merged 5 commits into from
May 14, 2024

Conversation

koxu1996
Copy link
Contributor

This PR adds Casper RPC configuration to kairos-server:

#[derive(Debug)]
pub struct ServerConfig {
    pub socket_addr: SocketAddr,
+    pub casper_rpc: Url,
}

Notably, it is common requirement among 2 PRs:

Copy link
Contributor

@Avi-D-coder Avi-D-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link

github-actions bot commented May 13, 2024

File Coverage
All files 53%
kairos-test-utils/src/cctl/parsers.rs 66%
kairos-server/src/routes/deposit.rs 88%
kairos-server/src/routes/transfer.rs 90%
kairos-test-utils/src/cctl.rs 87%
kairos-crypto/src/implementations/casper.rs 6%
kairos-tx/src/asn.rs 48%
kairos-tx/src/error.rs 0%
kairos-server/src/config.rs 0%
kairos-server/src/errors.rs 12%
kairos-server/src/lib.rs 95%
kairos-server/src/state.rs 90%
kairos-server/src/utils.rs 22%
kairos-server/tests/transactions.rs 85%
kairos-server/src/state/transactions.rs 57%
kairos-server/src/state/trie.rs 35%
kairos-server/src/state/transactions/batch_state.rs 40%

Minimum allowed coverage is 60%

Generated by 🐒 cobertura-action against adc673c

kairos-server/.env Outdated Show resolved Hide resolved
koxu1996 and others added 2 commits May 13, 2024 22:31
Co-authored-by: Marijan Petričević <marijan.petricevic94@gmail.com>
@koxu1996 koxu1996 requested a review from marijanp May 13, 2024 20:33
@marijanp marijanp merged commit 331241b into main May 14, 2024
7 checks passed
@marijanp marijanp deleted the feature/configure-casper-rpc-in-server branch May 14, 2024 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants