Skip to content

Commit

Permalink
Merge pull request #314 from JBA-Khalifa/evm-bridge
Browse files Browse the repository at this point in the history
Evm bridge - Bridges
  • Loading branch information
balqaasem authored Jun 28, 2021
2 parents 8da6a14 + 21896fa commit 76fb112
Show file tree
Hide file tree
Showing 231 changed files with 17,494 additions and 3,033 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib-openrml"]
path = lib-openrml
url = https://github.com/open-web3-stack/open-runtime-module-library
[submodule "predeploy-contracts"]
path = predeploy-contracts
url = https://github.com/Setheum-Labs/predeploy-contracts
92 changes: 46 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ members = [
"lib-openrml/weight-gen",
"lib-openrml/weight-meter",
"lib-openrml/unknown-tokens",

]

resolver = "2"
Expand Down Expand Up @@ -236,4 +235,4 @@ sp-wasm-interface = { git = "https://github.com/paritytech//substrate", rev = "1
substrate-build-script-utils = { git = "https://github.com/paritytech//substrate", rev = "1d04678e20555e623c974ee1127bc8a45abcf3d6" }
substrate-frame-rpc-system = { git = "https://github.com/paritytech//substrate", rev = "1d04678e20555e623c974ee1127bc8a45abcf3d6" }
substrate-prometheus-endpoint = { git = "https://github.com/paritytech//substrate", rev = "1d04678e20555e623c974ee1127bc8a45abcf3d6" }
try-runtime-cli = { git = "https://github.com/paritytech//substrate", rev = "1d04678e20555e623c974ee1127bc8a45abcf3d6" }
try-runtime-cli = { git = "https://github.com/paritytech//substrate", rev = "1d04678e20555e623c974ee1127bc8a45abcf3d6" }
2 changes: 1 addition & 1 deletion HEADER-GPL3
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Setheum.

// Copyright (C) 2020-2021 Setheum Labs.
// Copyright (C) 2019-2021 Setheum Labs.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
41 changes: 36 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
run: githooks
cargo run --manifest-path node/setheum-dev/Cargo.toml -- --dev -lruntime=debug --instant-sealing

.PHONY: run-sevm
run: githooks
cargo run --manifest-path node/setheum-dev/Cargo.toml --features with-sevm -- --dev -lruntime=debug -levm=debug --instant-sealing

.PHONY: toolchain
toolchain:
./scripts/init.sh
Expand Down Expand Up @@ -56,8 +60,15 @@ check-try-runtime:
test: githooks
SKIP_WASM_BUILD= cargo test --all

.PHONY: test-sevm
test: githooks
SKIP_WASM_BUILD= cargo test --all --features with-sevm test_setheum_evm
SKIP_WASM_BUILD= cargo test --all --features with-sevm should_not_kill_contract_on_transfer_all
SKIP_WASM_BUILD= cargo test --all --features with-sevm schedule_call_precompile_should_work
SKIP_WASM_BUILD= cargo test --all --features with-sevm schedule_call_precompile_should_handle_invalid_input

.PHONY: test-all
test-all: test-dev test-setheum
test-all: test-dev test-sevm test-setheum test-benchmarking

.PHONY: test-dev
test-dev:
Expand All @@ -67,9 +78,15 @@ test-dev:
test-setheum:
SKIP_WASM_BUILD= cargo test --manifest-path node/setheum/Cargo.toml --all --features with-all-runtime

.PHONY: check-benchmarking
test-benchmarking:
SKIP_WASM_BUILD= cargo check --manifest-path node/setheum-dev/Cargo.toml --features runtime-benchmarks --no-default-features --target=wasm32-unknown-unknown -p newrome-runtime

.PHONY: test-benchmarking
test-benchmarking:
SKIP_WASM_BUILD= cargo test --manifest-path node/setheum-dev/Cargo.toml --features runtime-benchmarks -p newrome-runtime benchmarking
SKIP_WASM_BUILD= cargo test --manifest-path node/setheum-dev/Cargo.toml --features runtime-benchmarks --no-default-features --target=wasm32-unknown-unknown -p newrome-runtime
SKIP_WASM_BUILD= cargo test --manifest-path node/setheum/Cargo.toml --features runtime-benchmarks --no-default-features --target=wasm32-unknown-unknown -p neom-runtime


.PHONY: build
build: githooks
Expand Down Expand Up @@ -110,10 +127,24 @@ update-orml:
git add lib-openrml

.PHONY: update
update: update-orml
update: update-orml cargo-update check-all

.PHONY: cargo-update
cargo-update:
cargo update
make check

.PHONY: build-wasm-newrome
build-wasm-newrome:
./scripts/build-only-wasm.sh newrome-runtime
./scripts/build-only-wasm.sh -p newrome-runtime --features=with-sevm

.PHONY: build-wasm-neom
build-wasm-newrome:
./scripts/build-only-wasm.sh -p neom-runtime --features=on-chain-release-build

.PHONY: srtool-build-wasm-neom
srtool-build-wasm-neom:
PACKAGE=neom-runtime BUILD_OPTS="--features on-chain-release-build" ./scripts/srtool-build.sh

.PHONY: generate-tokens
generate-tokens:
./scripts/generate-tokens-and-predeploy-contracts.sh
2 changes: 1 addition & 1 deletion inspect/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Setheum.

// Copyright (C) 2020-2021 Setheum Labs.
// Copyright (C) 2019-2021 Setheum Labs.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion inspect/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Setheum.

// Copyright (C) 2020-2021 Setheum Labs.
// Copyright (C) 2019-2021 Setheum Labs.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion inspect/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Setheum.

// Copyright (C) 2020-2021 Setheum Labs.
// Copyright (C) 2019-2021 Setheum Labs.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
Loading

0 comments on commit 76fb112

Please sign in to comment.