Skip to content

Commit e4e238c

Browse files
authored
Merge pull request #68 from Quantus-Network/feat/exchange-rate-endpoint
Exchange rate + update dependencies
2 parents 044617e + de9397a commit e4e238c

19 files changed

Lines changed: 1618 additions & 711 deletions

Cargo.lock

Lines changed: 852 additions & 236 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,60 +21,60 @@ path = "src/bin/create_raid.rs"
2121

2222
[dependencies]
2323
# Quantus crates
24-
qp-human-checkphrase = "0.1.2"
25-
qp-rusty-crystals-dilithium = "2.0.0"
26-
quantus-cli = "0.3.0"
27-
rusx = {git = "https://github.com/Quantus-Network/rusx", tag = "v0.6.1"}
24+
qp-human-checkphrase = { git = "https://github.com/Quantus-Network/qp-human-checkphrase", tag = "v2.0.1" }
25+
qp-rusty-crystals-dilithium = "2.4.0"
26+
quantus-cli = "1.3.3"
27+
rusx = { git = "https://github.com/Quantus-Network/rusx", tag = "v0.6.1" }
2828

2929
# Async runtime
30-
tokio = {version = "1.46", features = ["full", "test-util"]}
30+
tokio = { version = "1.46", features = ["full", "test-util"] }
3131

3232
# HTTP server
33-
axum = {version = "0.7", features = ["tokio"]}
33+
axum = { version = "0.7", features = ["tokio"] }
3434
tower = "0.4"
3535
tower-cookies = "0.10"
36-
tower-http = {version = "0.5", features = ["cors", "trace"]}
36+
tower-http = { version = "0.5", features = ["cors", "trace"] }
3737

3838
# Serialization
39-
serde = {version = "1.0.228", features = ["derive"]}
39+
serde = { version = "1.0.228", features = ["derive"] }
4040
serde_json = "1.0.145"
4141

4242
# Database
43-
sqlx = {version = "0.7", features = [
43+
sqlx = { version = "0.7", features = [
4444
"runtime-tokio-rustls",
4545
"chrono",
4646
"postgres",
4747
"uuid",
4848
"migrate",
49-
]}
49+
] }
5050

5151
# Signature verification
5252
# Using quantus-cli's dilithium crypto for signature verification
5353
hex = "0.4"
54-
sp-core = "37.0.0"
55-
sp-runtime = "42.0.0"
54+
sp-core = "39.0.0"
55+
sp-runtime = "45.0.0"
5656

5757
# Configuration
58-
clap = {version = "4.5", features = ["derive"]}
58+
clap = { version = "4.5", features = ["derive"] }
5959
config = "0.14"
6060
toml = "0.9"
6161

6262
# Time handling
63-
chrono = {version = "0.4", features = ["serde"]}
63+
chrono = { version = "0.4", features = ["serde"] }
6464

6565
# Random generation
6666
rand = "0.9"
67-
uuid = {version = "1.6", features = ["v4", "serde"]}
67+
uuid = { version = "1.6", features = ["v4", "serde"] }
6868

6969
# HTTP client for GraphQL
70-
reqwest = {version = "0.11", features = ["json"]}
70+
reqwest = { version = "0.11", features = ["json"] }
7171

7272
# Ethereum / ENS
73-
alloy = {version = "1.8", features = ["providers", "provider-http", "ens"]}
73+
alloy = { version = "1.8", features = ["providers", "provider-http", "ens"] }
7474

7575
# Logging
7676
tracing = "0.1"
77-
tracing-subscriber = {version = "0.3", features = ["env-filter"]}
77+
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
7878

7979
# Error handling
8080
anyhow = "1.0"
@@ -85,13 +85,15 @@ argon2 = "0.5"
8585
dirs = "6.0"
8686
jsonwebtoken = "9.3.1"
8787
lazy_static = "1.5.0"
88-
prometheus = {version = "0.14.0", features = ["process"]}
88+
prometheus = { version = "0.14.0", features = ["process"] }
8989
subxt = "0.43.0"
90-
tiny-keccak = {version = "2.0.2", features = ["keccak"]}
90+
tiny-keccak = { version = "2.0.2", features = ["keccak"] }
9191
notify = "8.2.0"
9292

9393
[dev-dependencies]
9494
mockall = "0.13"
9595
wiremock = "0.5"
9696
# Enable the testing feature ONLY for tests
97-
rusx = {git = "https://github.com/Quantus-Network/rusx", tag = "v0.6.1", features = ["testing"]}
97+
rusx = { git = "https://github.com/Quantus-Network/rusx", tag = "v0.6.1", features = [
98+
"testing",
99+
] }

config/default.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,7 @@ infura_api_key = "change-me"
9090
infura_base_url = "https://mainnet.infura.io/v3"
9191
etherscan_calls_per_sec = 3
9292
max_concurrent_requests = 1
93+
94+
[exchange_rate]
95+
# https://www.exchangerate-api.com/ — v6 key for latest/{base} rates
96+
api_key = "change-me"

config/example.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ infura_base_url = "https://mainnet.infura.io/v3"
101101
etherscan_calls_per_sec = 3
102102
max_concurrent_requests = 1
103103

104+
[exchange_rate]
105+
# https://www.exchangerate-api.com/ — v6 key for latest/{base} rates
106+
api_key = "change-me"
107+
104108
# Example environment variable overrides:
105109
# TASKMASTER_BLOCKCHAIN__NODE_URL="ws://remote-node:9944"
106110
# TASKMASTER_BLOCKCHAIN__WALLET_PASSWORD="super_secure_password"

config/test.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,6 @@ infura_api_key = "change-me"
9090
infura_base_url = "https://mainnet.infura.io/v3"
9191
etherscan_calls_per_sec = 3
9292
max_concurrent_requests = 1
93+
94+
[exchange_rate]
95+
api_key = "test-key"

0 commit comments

Comments
 (0)