-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename BlackBox to Senterprise #1040
Rename BlackBox to Senterprise #1040
- Loading branch information
Showing
113 changed files
with
12,008 additions
and
12,008 deletions.
There are no files selected for viewing
12,020 changes: 6,010 additions & 6,010 deletions
12,020
blockchain/black-box-extension/Cargo.lock → blockchain/senterprise-extension/Cargo.lock
Large diffs are not rendered by default.
Oops, something went wrong.
182 changes: 91 additions & 91 deletions
182
blockchain/black-box-extension/Cargo.toml → blockchain/senterprise-extension/Cargo.toml
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,91 +1,91 @@ | ||
[package] | ||
name = "black-box-extension" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
|
||
[dependencies] | ||
# Frontend dependencies: | ||
|
||
ink = { workspace = true, optional = true } | ||
sp-core = { workspace = true, optional = true } | ||
|
||
# Backend dependencies: | ||
|
||
getrandom = { version = "0.2.12", features = ["js"], optional = true } | ||
log = { workspace = true, optional = true } | ||
parity-scale-codec = { workspace = true, features = ["derive"], optional = true } | ||
|
||
frame-support = { workspace = true, optional = true } | ||
frame-system = { workspace = true, optional = true } | ||
pallet-contracts = { workspace = true, optional = true } | ||
sp-std = { workspace = true, optional = true } | ||
|
||
module-feature-control = { path = "../modules/feature-control", default-features = false, optional = true } | ||
|
||
## Proof verification dependencies: | ||
|
||
setheum-runtime-interfaces = { workspace = true, optional = true } | ||
module-vk-storage = { workspace = true, optional = true } | ||
|
||
# Benchmarking | ||
|
||
frame-benchmarking = { workspace = true, optional = true } | ||
paste = { workspace = true, optional = true } | ||
|
||
[dev-dependencies] | ||
setheum-runtime = { workspace = true } | ||
|
||
[build-dependencies] | ||
halo2_proofs = { workspace = true, features = ["mock-kzg-params", "multicore"] } | ||
|
||
[features] | ||
# This is an artificial feature that is used by 3rd party crates in macro expansions. | ||
std = [] | ||
|
||
# `runtime` and `runtime-std` features are dedicated to the runtime crate. They bring the backend part of the extension. | ||
runtime = [ | ||
"getrandom", | ||
"log", | ||
"parity-scale-codec", | ||
"frame-support", | ||
"frame-system", | ||
"pallet-contracts", | ||
"sp-std", | ||
"module-feature-control", | ||
"module-vk-storage", | ||
"setheum-runtime-interfaces", | ||
] | ||
runtime-std = [ | ||
"runtime", | ||
"std", | ||
"parity-scale-codec/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"pallet-contracts/std", | ||
"sp-std/std", | ||
"module-feature-control/std", | ||
"module-vk-storage/std", | ||
"setheum-runtime-interfaces/std", | ||
] | ||
|
||
# `ink` and `ink-std` features are dedicated to the ink! part of the extension. They bring the smart contract part of | ||
# the extension. | ||
ink = [ | ||
"dep:ink", | ||
"sp-core", | ||
] | ||
ink-std = [ | ||
"ink", | ||
"std", | ||
"ink/std", | ||
"sp-core/std", | ||
] | ||
|
||
runtime-benchmarks = [ | ||
"runtime", | ||
"frame-benchmarking", | ||
"paste", | ||
] | ||
[package] | ||
name = "senterprise-extension" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
|
||
[dependencies] | ||
# Frontend dependencies: | ||
|
||
ink = { workspace = true, optional = true } | ||
sp-core = { workspace = true, optional = true } | ||
|
||
# Backend dependencies: | ||
|
||
getrandom = { version = "0.2.12", features = ["js"], optional = true } | ||
log = { workspace = true, optional = true } | ||
parity-scale-codec = { workspace = true, features = ["derive"], optional = true } | ||
|
||
frame-support = { workspace = true, optional = true } | ||
frame-system = { workspace = true, optional = true } | ||
pallet-contracts = { workspace = true, optional = true } | ||
sp-std = { workspace = true, optional = true } | ||
|
||
module-feature-control = { path = "../modules/feature-control", default-features = false, optional = true } | ||
|
||
## Proof verification dependencies: | ||
|
||
setheum-runtime-interfaces = { workspace = true, optional = true } | ||
module-vk-storage = { workspace = true, optional = true } | ||
|
||
# Benchmarking | ||
|
||
frame-benchmarking = { workspace = true, optional = true } | ||
paste = { workspace = true, optional = true } | ||
|
||
[dev-dependencies] | ||
setheum-runtime = { workspace = true } | ||
|
||
[build-dependencies] | ||
halo2_proofs = { workspace = true, features = ["mock-kzg-params", "multicore"] } | ||
|
||
[features] | ||
# This is an artificial feature that is used by 3rd party crates in macro expansions. | ||
std = [] | ||
|
||
# `runtime` and `runtime-std` features are dedicated to the runtime crate. They bring the backend part of the extension. | ||
runtime = [ | ||
"getrandom", | ||
"log", | ||
"parity-scale-codec", | ||
"frame-support", | ||
"frame-system", | ||
"pallet-contracts", | ||
"sp-std", | ||
"module-feature-control", | ||
"module-vk-storage", | ||
"setheum-runtime-interfaces", | ||
] | ||
runtime-std = [ | ||
"runtime", | ||
"std", | ||
"parity-scale-codec/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"pallet-contracts/std", | ||
"sp-std/std", | ||
"module-feature-control/std", | ||
"module-vk-storage/std", | ||
"setheum-runtime-interfaces/std", | ||
] | ||
|
||
# `ink` and `ink-std` features are dedicated to the ink! part of the extension. They bring the smart contract part of | ||
# the extension. | ||
ink = [ | ||
"dep:ink", | ||
"sp-core", | ||
] | ||
ink-std = [ | ||
"ink", | ||
"std", | ||
"ink/std", | ||
"sp-core/std", | ||
] | ||
|
||
runtime-benchmarks = [ | ||
"runtime", | ||
"frame-benchmarking", | ||
"paste", | ||
] |
52 changes: 26 additions & 26 deletions
52
blockchain/black-box-extension/Makefile → blockchain/senterprise-extension/Makefile
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,26 +1,26 @@ | ||
.PHONY: test test-frontend test-backend lint clippy clean help | ||
|
||
AT_TEST_CONTRACT = --manifest-path test_contract/Cargo.toml | ||
TEST_TOOLCHAIN = nightly-2024-02-14 # needed for unstable features regarding const generics | ||
|
||
test: test-frontend test-backend ## Run all tests | ||
|
||
test-frontend: ## Run frontend tests | ||
cargo test --release $(AT_TEST_CONTRACT) || exit 1 | ||
|
||
test-backend: ## Run backend tests | ||
cargo +$(TEST_TOOLCHAIN) test --release --features runtime-std || exit 1 | ||
|
||
lint: ## Check linting rules | ||
cargo +nightly fmt --all --check || exit 1 | ||
cargo +nightly fmt --all --check $(AT_TEST_CONTRACT) || exit 1 | ||
|
||
clippy: ## Run clippy | ||
cargo clippy --no-deps --features runtime-std -- -D warnings || exit 1 | ||
|
||
clean: ## Clean all build files | ||
cargo clean | ||
cargo clean $(AT_TEST_CONTRACT) | ||
|
||
help: ## Displays this help | ||
@awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[1;36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[1;36m%-25s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) | ||
.PHONY: test test-frontend test-backend lint clippy clean help | ||
|
||
AT_TEST_CONTRACT = --manifest-path test_contract/Cargo.toml | ||
TEST_TOOLCHAIN = nightly-2024-02-14 # needed for unstable features regarding const generics | ||
|
||
test: test-frontend test-backend ## Run all tests | ||
|
||
test-frontend: ## Run frontend tests | ||
cargo test --release $(AT_TEST_CONTRACT) || exit 1 | ||
|
||
test-backend: ## Run backend tests | ||
cargo +$(TEST_TOOLCHAIN) test --release --features runtime-std || exit 1 | ||
|
||
lint: ## Check linting rules | ||
cargo +nightly fmt --all --check || exit 1 | ||
cargo +nightly fmt --all --check $(AT_TEST_CONTRACT) || exit 1 | ||
|
||
clippy: ## Run clippy | ||
cargo clippy --no-deps --features runtime-std -- -D warnings || exit 1 | ||
|
||
clean: ## Clean all build files | ||
cargo clean | ||
cargo clean $(AT_TEST_CONTRACT) | ||
|
||
help: ## Displays this help | ||
@awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[1;36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[1;36m%-25s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) |
Oops, something went wrong.