@@ -5,17 +5,48 @@ resolver = "2"
5
5
members = [
6
6
" m2/rollup" ,
7
7
" m2/stf" ,
8
+ " protocol-units/sov-aptos" ,
9
+ " protocol-units/sov-modules/sov-aptos-vm"
8
10
]
9
11
12
+ [workspace .features ]
13
+ sov-aptos = [" experimental" ]
14
+
10
15
[workspace .package ]
11
16
version = " 0.3.0"
12
17
edition = " 2021"
13
18
license = " MIT OR Apache-2.0"
14
19
authors = [" Movement Labs" ]
20
+ repository = " www.github.com/movementlabs"
21
+ homepage = " www.homepage.com"
15
22
publish = false
16
23
rust-version = " 1.73"
17
24
18
25
[workspace .dependencies ]
26
+ auto_impl = " 1.2.0"
27
+ serde = { version = " 1.0.192" , features = [" derive" , " rc" ] }
28
+ serde_json = { version = " 1.0.81" , features = [
29
+ " preserve_order" ,
30
+ " arbitrary_precision" ,
31
+ ] } # Note: arbitrary_precision is required to parse u256 in JSON
32
+ anyhow = " 1.0.68"
33
+ derive_more = { version = " 0.99.11" , default-features = false }
34
+ bytes = { version = " 1.2.1" , default-features = false }
35
+ clap = { version = " 4.4.10" , features = [" derive" ] }
36
+ hex = { version = " 0.4.3" , default-features = false , features = [" alloc" , " serde" ] }
37
+ async-trait = " 0.1.71"
38
+ borsh = { version = " 0.10.3" , features = [" rc" , " bytes" ] }
39
+ tracing = " 0.1.40"
40
+ tokio = { version = " 1.35.1" , features = [" full" ] }
41
+ tempfile = " 3.5"
42
+ jsonrpsee = { version = " 0.20.1" , features = [" jsonrpsee-types" ] }
43
+ proptest = { version = " 1.3.1" , default-features = false , features = [" alloc" ] }
44
+ poem-openapi = { version = " =2.0.11" , features = [" swagger-ui" , " url" ] }
45
+ schemars = { version = " 0.8.16" , features = [" derive" ] }
46
+ thiserror = " 1.0.50"
47
+ x25519-dalek = " 2.0.1"
48
+
49
+ # Sovereign Labs dependencies
19
50
sov-modules-api = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
20
51
sov-state = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
21
52
sov-accounts = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
@@ -29,25 +60,67 @@ sov-db = { git = "ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git", re
29
60
sov-sequencer = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
30
61
sov-rollup-interface = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
31
62
sov-risc0-adapter = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
32
- sov-mock-zkvm = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
63
+ sov-mock-zkvm = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
33
64
sov-first-read-last-write-cache = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
34
65
sov-cli = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
35
66
sov-mock-da = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
36
67
sov-celestia-adapter = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
37
68
sov-prover-storage-manager = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
69
+ sov-chain-state = { git = " ssh://git@github.com/Sovereign-Labs/sovereign-sdk-wip.git" , rev = " 517e99e558513e24983d8d09ef16a73675ea1a1b" }
38
70
39
- stf-starter = { path = " ./crates/stf " }
71
+ risc0-build = " 0.20 "
40
72
41
- serde = { version = " 1.0.192" , features = [" derive" , " rc" ] }
42
- serde_json = { version = " 1.0" }
73
+ # aptos dependencies
74
+ ethereum-types = " 0.14.1"
75
+ ethers = " =2.0.10"
76
+ ethers-core = { version = " =2.0.10" , default-features = false }
77
+ ethers-contract = " =2.0.10"
78
+ ethers-providers = { version = " =2.0.10" , default-features = false }
79
+ ethers-signers = { version = " =2.0.10" , default-features = false }
80
+ ethers-middleware = { version = " =2.0.10" , default-features = false }
81
+
82
+ # Aptos dependencies
83
+ # We use a forked version so that we can override dependency versions. This is required
84
+ # to be avoid depenedency conflicts with other Sovereign Labs crates.
85
+ aptos-sdk = { git = " https://github.com/0xmovses/aptos-core" , rev = " d3cc82ac6739bd1b9f2f532ddfe79fc261dceb5d" }
86
+ aptos-consensus-types = { git = " https://github.com/0xmovses/aptos-core" , rev = " d3cc82ac6739bd1b9f2f532ddfe79fc261dceb5d" }
87
+ aptos-crypto = { git = " https://github.com/0xmovses/aptos-core" , rev = " d3cc82ac6739bd1b9f2f532ddfe79fc261dceb5d" }
88
+ aptos-db = { git = " https://github.com/0xmovses/aptos-core" , rev = " d3cc82ac6739bd1b9f2f532ddfe79fc261dceb5d" }
89
+ aptos-api-types = { git = " https://github.com/0xmovses/aptos-core" , rev = " d3cc82ac6739bd1b9f2f532ddfe79fc261dceb5d" }
90
+ aptos-api = { git = " https://github.com/0xmovses/aptos-core" , rev = " d3cc82ac6739bd1b9f2f532ddfe79fc261dceb5d" }
91
+
92
+ # https://github.com/paradigmxyz/reth/tree/c0655fed8915490f82d4acf8900a16a10554cbfb
93
+ reth-primitives = { git = " https://github.com/paradigmxyz/reth" , rev = " c0655fed8915490f82d4acf8900a16a10554cbfb" , default-features = false }
94
+ reth-interfaces = { git = " https://github.com/paradigmxyz/reth" , rev = " c0655fed8915490f82d4acf8900a16a10554cbfb" }
95
+ reth-rpc-types = { git = " https://github.com/paradigmxyz/reth" , rev = " c0655fed8915490f82d4acf8900a16a10554cbfb" }
96
+ reth-rpc-types-compat = { git = " https://github.com/paradigmxyz/reth" , rev = " c0655fed8915490f82d4acf8900a16a10554cbfb" }
97
+ reth-revm = { git = " https://github.com/paradigmxyz/reth" , rev = " c0655fed8915490f82d4acf8900a16a10554cbfb" }
98
+
99
+ # Matches reth dependency. Using exact revision for matching our tightly coupled usage of both reth and revm crates
100
+ revm = { version = " 5.0.0" , default-features = false , features = [" serde" ] }
101
+ # Used just to be safe about breaking changes
102
+ revm-primitives = { version = " =2.0.0" , default-features = false }
103
+ secp256k1 = { version = " 0.27" , default-features = false , features = [" global-context" , " rand-std" , " recovery" ] }
104
+
105
+ [workspace .lints .rust ]
106
+ dead_code = " deny"
107
+ unused_imports = " deny"
108
+ non_ascii_idents = " deny" # Bad for readability and it can also be a security vulnerability
109
+
110
+ # In case you need inspiration for new lints to add to the list, this is a good
111
+ # reference: <https://github.com/EmbarkStudios/rust-ecosystem/blob/6783ae1573d62f3f5439b8ff9e04bec191ec2eaf/lints.toml>.
112
+ [workspace .lints .clippy ]
113
+ debug_assert_with_mut_call = " deny"
114
+ inefficient_to_string = " deny"
115
+ map_flatten = " deny"
116
+ manual_ok_or = " deny"
117
+ doc_link_with_quotes = " deny"
118
+ match_same_arms = " deny"
119
+ semicolon_if_nothing_returned = " deny"
43
120
44
- anyhow = " 1.0.68"
45
- clap = { version = " 4.4.10" , features = [" derive" ] }
46
- async-trait = " 0.1.71"
47
- borsh = { version = " 0.10.3" , features = [" rc" , " bytes" ] }
48
- tracing = " 0.1.40"
49
- tokio = { version = " 1" , features = [" full" ] }
50
- tempfile = " 3.5"
51
- jsonrpsee = { version = " 0.20.1" , features = [" jsonrpsee-types" ] }
52
121
53
- risc0-build = " 0.20"
122
+ [patch .crates-io ]
123
+ merlin = { git = " https://github.com/aptos-labs/merlin" }
124
+ x25519-dalek = { git = " https://github.com/aptos-labs/x25519-dalek" , branch = " zeroize_v1" }
125
+ sha2 = { git = " https://github.com/risc0/RustCrypto-hashes" , tag = " sha2-v0.10.8-risczero.0" }
126
+ ed25519-dalek = { git = " https://github.com/risc0/curve25519-dalek" , tag = " curve25519-4.1.0-risczero.1" }
0 commit comments