Skip to content

Commit

Permalink
Serparate chains (starting with qingdao) and move primitives into…
Browse files Browse the repository at this point in the history
… `blockchain`
  • Loading branch information
balqaasem committed Feb 13, 2024
1 parent 3682dd8 commit c4c355c
Show file tree
Hide file tree
Showing 115 changed files with 59 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ node-runtime = { git = "https://github.com/paritytech/substrate", branch = "polk

orml-oracle-rpc = { path = "../../../submodules/orml/oracle/rpc" }

module-nft = { path = "../../modules/nft" }
module-evm = { path = "../../modules//evm" }
module-evm-rpc-runtime-api = { path = "../../modules//evm/rpc/runtime_api" }
evm-rpc = { path = "../../modules//evm/rpc" }
module-nft = { path = "../../../modules/nft" }
module-evm = { path = "../../../modules//evm" }
module-evm-rpc-runtime-api = { path = "../../../modules//evm/rpc/runtime_api" }
evm-rpc = { path = "../../../modules//evm/rpc" }

setheum-primitives = { path = "../../../primitives" }
setheum-primitives = { path = "../../primitives" }

# runtime
setheum-runtime = { path = '../runtime', version = '1.0.0' }
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ pub fn public_testnet_config() -> Result<ChainSpec, String> {


pub fn live_mainnet_config() -> Result<ChainSpec, String> {
ChainSpec::from_json_bytes(&include_bytes!("../resources/chain_spec_mainnet_raw.json")[..])
ChainSpec::from_json_bytes(&include_bytes!("../../resources/chain_spec_mainnet_raw.json")[..])
}

pub fn live_testnet_config() -> Result<ChainSpec, String> {
ChainSpec::from_json_bytes(&include_bytes!("../resources/chain_spec_testnet_raw.json")[..])
ChainSpec::from_json_bytes(&include_bytes!("../../resources/chain_spec_testnet_raw.json")[..])
}

pub fn mainnet_config() -> Result<ChainSpec, String> {
Expand Down
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.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from substrateinterface import SubstrateInterface

import json
types = json.load(open("../resources/types.json", "r"))
types = json.load(open("../../resources/types.json", "r"))

url = "http://127.0.0.1:9933"
# url = "https://rpc-newrome.setheum.xyz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,22 @@ orml-tokens = { path = "../../../submodules/orml/tokens", default-features = fal
orml-traits = { path = "../../../submodules/orml/traits", default-features = false }
orml-nft= { path = "../../../submodules/orml/nft", default-features = false }

module-transaction-pause = { path = "../../modules/transaction-pause", default-features = false }
module-transaction-payment = { path = "../../modules/transaction-payment", default-features = false }
module-airdrop = { path = "../../modules/airdrop", default-features = false }

module-currencies = { path = "../../modules/currencies", default-features = false }
module-evm = { path = "../../modules/evm", default-features = false }
module-evm-accounts = { path = "../../modules/evm-accounts", default-features = false }
module-evm-bridge = { path = "../../modules/evm-bridge", default-features = false }
module-evm-rpc-runtime-api = { path = "../../modules/evm/rpc/runtime_api", default-features = false }
module-evm-manager = { path = "../../modules/evm-manager", default-features = false }

module-nft = { path = "../../modules/nft", default-features = false }
module-prices = { path = "../../modules/prices", default-features = false }

module-support = { path = "../../modules/support", default-features = false }
module-vesting = { path = "../../modules/vesting", default-features = false }
module-transaction-pause = { path = "../../../modules/transaction-pause", default-features = false }
module-transaction-payment = { path = "../../../modules/transaction-payment", default-features = false }
module-airdrop = { path = "../../../modules/airdrop", default-features = false }

module-currencies = { path = "../../../modules/currencies", default-features = false }
module-evm = { path = "../../../modules/evm", default-features = false }
module-evm-accounts = { path = "../../../modules/evm-accounts", default-features = false }
module-evm-bridge = { path = "../../../modules/evm-bridge", default-features = false }
module-evm-rpc-runtime-api = { path = "../../../modules/evm/rpc/runtime_api", default-features = false }
module-evm-manager = { path = "../../../modules/evm-manager", default-features = false }

module-nft = { path = "../../../modules/nft", default-features = false }
module-prices = { path = "../../../modules/prices", default-features = false }

module-support = { path = "../../../modules/support", default-features = false }
module-vesting = { path = "../../../modules/vesting", default-features = false }

primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
runtime-common = { path = "common", default-features = false }
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ pallet-membership = { git = "https://github.com/paritytech/substrate", branch =
orml-oracle = { path = "../../submodules/orml/oracle", default-features = false }
orml-traits = { path = "../../submodules/orml/traits", default-features = false }

module-evm = { path = "../../modules//evm", default-features = false }
module-support = { path = "../../modules/support", default-features = false }
module-transaction-payment = { path = "../../modules/transaction-payment", default-features = false }
primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives-proc-macro = { path = "../../primitives/proc-macro" }
module-evm = { path = "../../../modules//evm", default-features = false }
module-support = { path = "../../../modules/support", default-features = false }
module-transaction-payment = { path = "../../../modules/transaction-payment", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
primitives-proc-macro = { path = "../primitives/proc-macro" }

[dev-dependencies]
serde_json = "1.0.41"
Expand All @@ -41,13 +41,13 @@ pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "po
orml-tokens = { path = "../../submodules/orml/tokens" }
orml-nft = { path = "../../submodules/orml/nft" }

module-currencies = { path = "../../modules/currencies" }
module-evm-bridge = { path = "../../modules//evm-bridge" }
module-evm-manager = { path = "../../modules//evm-manager" }
module-nft = { path = "../../modules/nft" }
# module-dex = { path = "../../modules/defi/setswap/dex" }
module-prices = { path = "../../modules/prices" }
module-transaction-payment = { path = "../../modules/transaction-payment" }
module-currencies = { path = "../../../modules/currencies" }
module-evm-bridge = { path = "../../../modules//evm-bridge" }
module-evm-manager = { path = "../../../modules//evm-manager" }
module-nft = { path = "../../../modules/nft" }
# module-dex = { path = "../../../modules/defi/setswap/dex" }
module-prices = { path = "../../../modules/prices" }
module-transaction-payment = { path = "../../../modules/transaction-payment" }

[features]
default = ["std"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion blockchain/modules/airdrop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v

orml-traits = { package = "orml-traits", path = "../../submodules/orml/traits", default-features = false }
support = { package = "module-support", path = "../support", default-features = false }
primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }

[dev-dependencies]
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/currencies/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ frame-system = { git = "https://github.com/paritytech/substrate", branch = "polk
orml-traits = { path = "../../submodules/orml/traits", default-features = false }
orml-utilities = { path = "../../submodules/orml/utilities", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
support = { package = "module-support", path = "../support", default-features = false }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/currencies/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --template=.maintain/module-weight-template.hbs
// --output=./modules/currencies/src/weights.rs
// --output=./blockchain/modules/currencies/src/weights.rs


#![cfg_attr(rustfmt, rustfmt_skip)]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/evm-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v

orml-traits = { path = "../../submodules/orml/traits", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
module-support = { path = "../support", default-features = false }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/evm-accounts/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./modules/evm-accounts/src/weights.rs
// --output=./blockchain/modules/evm-accounts/src/weights.rs
// --template=.maintain/module-weight-template.hbs


Expand Down
4 changes: 2 additions & 2 deletions blockchain/modules/evm-bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ primitive-types = { version = "0.10.0", default-features = false, features = ["r
impl-trait-for-tuples = "0.2.1"
ethereum-types = { version = "0.12.0", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives-proc-macro = { path = "../../primitives/proc-macro" }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
primitives-proc-macro = { path = "../primitives/proc-macro" }
support = { package = "module-support", path = "../support", default-features = false }
module-evm = { path = "../evm", default-features = false }
num_enum = { version = "0.5.1", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/evm-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
module-support = { path = "../support", default-features = false }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v
orml-traits = { path = "../../submodules/orml/traits", default-features = false }

module-support = { path = "../support", default-features = false }
primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }

[dev-dependencies]
env_logger = "0.7"
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/evm/rpc/runtime_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
ethereum-types = { version = "0.12", default-features = false }

primitives = { package = "setheum-primitives", path = "../../../../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../../../../primitives", default-features = false }

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/evm/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./modules/evm/src/weights.rs
// --output=./blockchain/modules/evm/src/weights.rs
// --template=.maintain/module-weight-template.hbs


Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/idle-scheduler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }

setheum-primitives = { path = "../../primitives", default-features = false }
setheum-primitives = { path = "../primitives", default-features = false }
module-support = { path = "../support", default-features = false }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/idle-scheduler/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --template=.maintain/module-weight-template.hbs
// --output=./modules/idle-scheduler/src/weights.rs
// --output=./blockchain/modules/idle-scheduler/src/weights.rs


#![cfg_attr(rustfmt, rustfmt_skip)]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/nft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v
orml-nft = { path = "../../submodules/orml/nft", default-features = false }
orml-traits = { path = "../../submodules/orml/traits", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }

[dev-dependencies]
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10" }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/nft/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./modules/nft/src/weights.rs
// --output=./blockchain/modules/nft/src/weights.rs
// --template=.maintain/module-weight-template.hbs


Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/prices/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v

orml-traits = { package = "orml-traits", path = "../../submodules/orml/traits", default-features = false }
support = { package = "module-support", path = "../support", default-features = false }
primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }

[dev-dependencies]
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10" }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/prices/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./modules/prices/src/weights.rs
// --output=./blockchain/modules/prices/src/weights.rs
// --template=.maintain/module-weight-template.hbs


Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/transaction-pause/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ frame-system = { git = "https://github.com/paritytech/substrate", branch = "polk
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
sp-io= { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
support = { package = "module-support", path = "../support", default-features = false }

orml-traits = { path = "../../submodules/orml/traits", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/transaction-pause/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./modules/transaction-pause/src/weights.rs
// --output=./blockchain/modules/transaction-pause/src/weights.rs
// --template=.maintain/module-weight-template.hbs


Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/transaction-payment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sp-io= { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
support = { package = "module-support", path = "../support", default-features = false }
orml-traits = { path = "../../submodules/orml/traits", default-features = false }

Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/transaction-payment/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./modules/transaction-payment/src/weights.rs
// --output=./blockchain/modules/transaction-payment/src/weights.rs
// --template=.maintain/module-weight-template.hbs


Expand Down
2 changes: 1 addition & 1 deletion blockchain/modules/vesting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.10", default-features = false }

primitives = { package = "setheum-primitives", path = "../../primitives", default-features = false }
primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
support = { package = "module-support", path = "../support", default-features = false }
orml-traits = { path = "../../submodules/orml/traits", default-features = false }

Expand Down
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.

0 comments on commit c4c355c

Please sign in to comment.