-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: restructure pallet part 2, workspace manifest file (#156)
- Loading branch information
1 parent
440b53c
commit f42e934
Showing
76 changed files
with
146 additions
and
157 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,43 @@ | ||
[package] | ||
name = "pallet-move" | ||
version = "0.1.0" | ||
authors = ["Eiger <[email protected]>"] | ||
[workspace] | ||
members = [ | ||
"pallet", | ||
"rpc", | ||
] | ||
resolver = "2" | ||
|
||
[workspace.package] | ||
edition = "2021" | ||
authors = ["Eiger <[email protected]>"] | ||
readme = "README.md" | ||
|
||
repository = "https://github.com/eigerco/substrate-movevm-pallet" | ||
description = "MoveVM support pallet" | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
[workspace.dependencies] | ||
# crates.io | ||
anyhow = { version = "1.0", default-features = false } | ||
bcs = { git = "https://github.com/eigerco/bcs.git", default-features = false, branch = "master" } | ||
blake2 = { version = "0.10", default-features = false } | ||
codec = { package = "parity-scale-codec", version = "3.6", default-features = false, features = ["derive"] } | ||
hashbrown = { version = "0.14" } | ||
frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
frame-support = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
frame-system = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
hex = { version = "0.4", default-features = false } | ||
jsonrpsee = { version = "0.16", features = ["server", "macros"] } | ||
rand = { version = "0.8", default-features = false } | ||
scale-info = { version = "2.10", default-features = false, features = ["derive"] } | ||
serde = { version = "1.0", default-features = false, features = ["derive"] } | ||
sp-core = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
sp-runtime = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
sp-std = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
|
||
# MoveVM dependencies | ||
move-core-types = { default-features = false, git = "https://github.com/eigerco/substrate-move.git", branch = "main", features = ["address32"] } | ||
|
||
# MoveVM backend dependency | ||
move-vm-backend = { default-features = false, git = "https://github.com/eigerco/substrate-move.git", branch = "main" } | ||
move-vm-backend-common = { default-features = false, git = "https://github.com/eigerco/substrate-move.git", branch = "main" } | ||
|
||
[dev-dependencies] | ||
hex = "0.4" | ||
rand = "0.8" | ||
move-stdlib = { git = "https://github.com/eigerco/substrate-move.git", features = ["stdlib-bytecode"] } | ||
sp-io = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"anyhow/std", | ||
"blake2/std", | ||
"codec/std", | ||
"frame-benchmarking/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"scale-info/std", | ||
"serde/std", | ||
"sp-std/std", | ||
"move-core-types/std", | ||
"move-vm-backend/std", | ||
] | ||
runtime-benchmarks = [ | ||
"frame-benchmarking/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
] | ||
try-runtime = [ | ||
"frame-support/try-runtime", | ||
"frame-system/try-runtime", | ||
"sp-runtime/try-runtime", | ||
] | ||
|
||
# Builds move projects for test purposes. | ||
# | ||
# The move projects in `tests/assets/move-projects/` are not built by default without this flag | ||
# since rebuilding those tests takes lots of time. | ||
build-move-projects-for-test = [] | ||
# Polkadot crates | ||
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
frame-support = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
frame-system = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
sp-api = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
sp-io = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
sp-std = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0", default-features = false } | ||
|
||
# Eiger crates | ||
move-core-types = { git = "https://github.com/eigerco/substrate-move.git", branch = "main", features = ["address32"], default-features = false } | ||
move-stdlib = { git = "https://github.com/eigerco/substrate-move.git", features = ["stdlib-bytecode"], default-features = false } | ||
move-vm-backend = { git = "https://github.com/eigerco/substrate-move.git", branch = "main", default-features = false } | ||
move-vm-backend-common = { git = "https://github.com/eigerco/substrate-move.git", branch = "main", default-features = false } |
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,70 @@ | ||
[package] | ||
name = "pallet-move" | ||
version = "0.1.0" | ||
description = "MoveVM support pallet" | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
readme = { workspace = true } | ||
repository = { workspace = true } | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
bcs = { workspace = true } | ||
blake2 = { workspace = true } | ||
codec = { workspace = true } | ||
hashbrown = { workspace = true } | ||
frame-benchmarking = { workspace = true, optional = true } | ||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
move-core-types = { workspace = true } | ||
move-vm-backend = { workspace = true } | ||
move-vm-backend-common = { workspace = true } | ||
scale-info = { workspace = true } | ||
serde = { workspace = true } | ||
sp-api = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
[dev-dependencies] | ||
hex = { workspace = true } | ||
rand = { workspace = true } | ||
move-stdlib = { workspace = true } | ||
sp-io = { workspace = true } | ||
pallet-balances = { workspace = true, default-features = true } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"anyhow/std", | ||
"blake2/std", | ||
"codec/std", | ||
"frame-benchmarking/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"scale-info/std", | ||
"serde/std", | ||
"sp-std/std", | ||
"move-core-types/std", | ||
"move-vm-backend/std", | ||
] | ||
runtime-benchmarks = [ | ||
"frame-benchmarking/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
] | ||
try-runtime = [ | ||
"frame-support/try-runtime", | ||
"frame-system/try-runtime", | ||
"sp-runtime/try-runtime", | ||
] | ||
|
||
# Builds move projects for test purposes. | ||
# | ||
# The move projects in `tests/assets/move-projects/` are not built by default without this flag | ||
# since rebuilding those tests takes lots of time. | ||
build-move-projects-for-test = [] |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,31 +1,30 @@ | ||
[package] | ||
name = "pallet-move-rpc" | ||
version = "0.1.0" | ||
authors = ["Eiger <[email protected]>"] | ||
edition = "2021" | ||
description = 'RPC methods for the Move pallet' | ||
description = "RPC for the Move Pallet" | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
readme = { workspace = true } | ||
repository = { workspace = true } | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", version = "3.6", default-features = false, features = ["derive"] } | ||
serde = { version = "1.0", features = [ "derive" ], default-features = false } | ||
jsonrpsee = { version = "0.16", features = ["server", "macros"] } | ||
codec = { workspace = true } | ||
serde = { workspace = true } | ||
frame-support = { workspace = true } | ||
jsonrpsee = { workspace = true } | ||
sp-api = { workspace = true } | ||
sp-blockchain = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
|
||
# Substrate packages | ||
frame-support = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
sp-api = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
sp-blockchain = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
sp-runtime = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.4.0" } | ||
|
||
# local packages | ||
pallet-move-runtime-api = { path = "./runtime-api", default-features = false } | ||
pallet-move = { path = "../pallet" } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"sp-api/std", | ||
"sp-runtime/std", | ||
"pallet-move-runtime-api/std" | ||
"pallet-move/std" | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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