Skip to content

Commit

Permalink
Rename BlackBox to Senterprise #1040
Browse files Browse the repository at this point in the history
Rename BlackBox to Senterprise #1040
  • Loading branch information
balqaasem committed Jun 24, 2024
1 parent 336b6c8 commit 94623c5
Show file tree
Hide file tree
Showing 113 changed files with 12,008 additions and 12,008 deletions.

Large diffs are not rendered by default.

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",
]
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)
Loading

0 comments on commit 94623c5

Please sign in to comment.