Skip to content

Commit 3a3ad78

Browse files
committed
Finish to implement paymaster and VRF management as a tower layer.
1 parent 9ea6cb4 commit 3a3ad78

File tree

50 files changed

+3756
-3836
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3756
-3836
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ members = [
1111
"crates/core",
1212
"crates/executor",
1313
"crates/explorer",
14-
"crates/genesis",
15-
"crates/gateway/gateway-types",
1614
"crates/gateway/gateway-client",
1715
"crates/gateway/gateway-server",
16+
"crates/gateway/gateway-types",
17+
"crates/genesis",
1818
"crates/grpc",
1919
"crates/messaging",
2020
"crates/metrics",
@@ -25,9 +25,9 @@ members = [
2525
"crates/pool/pool-api",
2626
"crates/primitives",
2727
"crates/primitives/macro",
28-
"crates/rpc/rpc-server",
2928
"crates/rpc/rpc-api",
3029
"crates/rpc/rpc-client",
30+
"crates/rpc/rpc-server",
3131
"crates/rpc/rpc-types",
3232
"crates/rpc/rpc-types-builder",
3333
"crates/runner",
@@ -82,11 +82,11 @@ katana-core = { path = "crates/core" }
8282
katana-db = { path = "crates/storage/db" }
8383
katana-executor = { path = "crates/executor" }
8484
katana-explorer = { path = "crates/explorer" }
85-
katana-gateway-types = { path = "crates/gateway/gateway-types" }
86-
katana-gateway-client = { path = "crates/gateway/gateway-client" }
87-
katana-gateway-server = { path = "crates/gateway/gateway-server" }
8885
katana-fork = { path = "crates/storage/fork" }
8986
katana-gas-price-oracle = { path = "crates/oracle/gas" }
87+
katana-gateway-client = { path = "crates/gateway/gateway-client" }
88+
katana-gateway-server = { path = "crates/gateway/gateway-server" }
89+
katana-gateway-types = { path = "crates/gateway/gateway-types" }
9090
katana-genesis = { path = "crates/genesis" }
9191
katana-grpc = { path = "crates/grpc" }
9292
katana-messaging = { path = "crates/messaging" }
@@ -100,9 +100,9 @@ katana-primitives = { path = "crates/primitives" }
100100
katana-primitives-macro = { path = "crates/primitives/macro" }
101101
katana-provider = { path = "crates/storage/provider/provider" }
102102
katana-provider-api = { path = "crates/storage/provider/provider-api" }
103-
katana-rpc-server = { path = "crates/rpc/rpc-server" }
104103
katana-rpc-api = { path = "crates/rpc/rpc-api" }
105104
katana-rpc-client = { path = "crates/rpc/rpc-client" }
105+
katana-rpc-server = { path = "crates/rpc/rpc-server" }
106106
katana-rpc-types = { path = "crates/rpc/rpc-types" }
107107
katana-rpc-types-builder = { path = "crates/rpc/rpc-types-builder" }
108108
katana-runner = { path = "crates/runner" }
@@ -161,7 +161,7 @@ regex = "1.10.3"
161161
reqwest = { version = "0.12.15", features = [ "json", "rustls-tls" ], default-features = false }
162162
rstest = "0.18.2"
163163
rstest_reuse = "0.6.0"
164-
sev-snp = { git = "https://github.com/automata-network/amd-sev-snp-attestation-sdk", branch = "main", default-features = false, features = ["legacy", "configfs"] }
164+
sev-snp = { git = "https://github.com/automata-network/amd-sev-snp-attestation-sdk", branch = "main", default-features = false, features = [ "configfs", "legacy" ] }
165165
similar-asserts = "1.5.0"
166166
slot = { git = "https://github.com/cartridge-gg/slot", rev = "1298a30" }
167167
spinoff = "0.8.0"
@@ -188,7 +188,7 @@ hyper = "0.14.27"
188188
jsonrpsee = { version = "0.26", default-features = false }
189189
rustls = "0.23"
190190
tower = "0.5"
191-
tower-http = { version = "0.6", features = [ "trace", "cors", "timeout" ] }
191+
tower-http = { version = "0.6", features = [ "cors", "timeout", "trace" ] }
192192
tower-service = "0.3"
193193

194194
# gRPC

bin/katana/src/cli/rpc/starknet.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,7 @@ fn parse_contract_storage_keys(storages: &[String]) -> Result<Vec<ContractStorag
635635

636636
if parts.len() != 2 {
637637
anyhow::bail!(
638-
"invalid storage format at position {}: '{}'. Expected 'address,key'",
639-
i,
640-
pair
638+
"invalid storage format at position {i}: '{pair}'. Expected 'address,key'",
641639
);
642640
}
643641

crates/cartridge/Cargo.toml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@ repository.workspace = true
77
version.workspace = true
88

99
[dependencies]
10-
katana-chain-spec.workspace = true
1110
katana-contracts.workspace = true
1211
katana-core.workspace = true
1312
katana-executor.workspace = true
13+
katana-genesis.workspace = true
1414
katana-pool.workspace = true
15+
katana-pool-api.workspace = true
1516
katana-primitives.workspace = true
1617
katana-provider.workspace = true
17-
katana-rpc.workspace = true
1818
katana-rpc-api.workspace = true
19+
katana-rpc-server.workspace = true
1920
katana-rpc-types.workspace = true
2021
katana-tasks.workspace = true
2122

23+
starknet-types-core.workspace = true
24+
2225
anyhow.workspace = true
2326
ark-ec = "0.4"
2427
lazy_static.workspace = true
@@ -32,11 +35,20 @@ url.workspace = true
3235
# Use a specific revision of stark-vrf to avoid unwanted breaking changes.
3336
stark-vrf = { git = "https://github.com/dojoengine/stark-vrf.git", rev = "96d6d2a" }
3437

35-
jsonrpsee = { workspace = true, features = [ "server" ] }
36-
tower.workspace = true
37-
3838
cainome.workspace = true
3939
cainome-cairo-serde.workspace = true
40+
futures.workspace = true
41+
jsonrpsee.workspace = true
42+
starknet.workspace = true
43+
tokio.workspace = true
44+
tower.workspace = true
4045

4146
[dev-dependencies]
47+
assert_matches.workspace = true
48+
cairo-lang-starknet-classes.workspace = true
49+
katana-db.workspace = true
50+
katana-gas-price-oracle.workspace = true
51+
katana-node.workspace = true
52+
katana-utils = { workspace = true, features = [ "node" ] }
53+
mockito = "1.7.0"
4254
similar-asserts.workspace = true

crates/cartridge/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
pub mod client;
44
pub mod paymaster;
55
pub mod rpc;
6+
pub mod utils;
67
pub mod vrf;
78

89
pub use client::Client;

0 commit comments

Comments
 (0)