Skip to content

Commit

Permalink
Merge pull request #176 from Abstracted-Labs/francisco-wasm_contracts
Browse files Browse the repository at this point in the history
InvArch WASM Contracts
  • Loading branch information
arrudagates authored Nov 11, 2024
2 parents 8492191 + d4aa94e commit 169cc8f
Show file tree
Hide file tree
Showing 10 changed files with 1,019 additions and 763 deletions.
1,338 changes: 751 additions & 587 deletions invarch/Cargo.lock

Large diffs are not rendered by default.

32 changes: 15 additions & 17 deletions invarch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@ resolver = "2"
members = ['node', 'runtime']

[workspace.package]
version = "1.2.0"
authors = ["InvArch Association <https://github.com/Abstracted-Labs>"]
edition = "2021"

homepage = "https://invarch.network"
license = "GPL-3.0"
authors = ["InvArch Association <https://github.com/Abstracted-Labs>"]
repository = "https://github.com/Abstracted-Labs/InvArch/"
homepage = "https://invarch.network"

version = "1.2.2"

[profile.release]
panic = 'unwind'

[workspace.dependencies]

# [build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }
substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }
substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }

array-bytes = { version = "6.2" }
array-bytes = { version = "6.2" }
async-trait = { version = "0.1.79" }
clap = { version = "4.5.3"}
clap = { version = "4.5.3" }
codec = { package = "parity-scale-codec", version = "3.6.12", features = [
"derive",
], default-features = false }
Expand All @@ -41,20 +39,18 @@ serde = { version = "1.0.197", default-features = false, features = ["derive"] }
serde_json = { version = "1.0.121", default-features = false }
smallvec = { version = "1.11.0", default-features = false }

# Local dependencies
new-modified-construct-runtime = { path = "../new-modified-construct-runtime", default-features = false }
pallet-tx-pause = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }


# InvArch
# InvArch/local
pallet-checked-inflation = { path = "../pallets/pallet-checked-inflation", default-features = false }
pallet-dao-manager = { path = "../pallets/pallet-dao-manager", default-features = false }
pallet-dao-staking = { path = "../pallets/pallet-dao-staking", default-features = false }
pallet-checked-inflation = { path = "../pallets/pallet-checked-inflation", default-features = false }
new-modified-construct-runtime = { path = "../new-modified-construct-runtime", default-features = false }

# Substrate
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }
frame-executive = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
frame-support = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
frame-system = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
Expand All @@ -63,16 +59,18 @@ frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", br
pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-contracts = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-identity = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false}
pallet-insecure-randomness-collective-flip = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-session = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-tx-pause = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
sp-api = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
Expand Down Expand Up @@ -168,4 +166,4 @@ sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk.gi
polkadot-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }
polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }
polkadot-service = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2407", default-features = false }
62 changes: 31 additions & 31 deletions invarch/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "invarch-node"
version.workspace = true
authors.workspace = true
build = "build.rs"
description = "A Substrate-based InvArch Node."
license.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
name = "invarch-node"
publish = false
repository.workspace = true
edition.workspace = true
build = "build.rs"
version.workspace = true

# [package.metadata.docs.rs]
# targets = ["x86_64-unknown-linux-gnu"]
Expand All @@ -18,68 +18,68 @@ name = "invarch-collator"
path = "src/main.rs"

[dependencies]
async-trait = { workspace = true }
array-bytes = { workspace = true }
async-trait = { workspace = true }
clap = { features = ["derive"], workspace = true }
log = { workspace = true, default-features = true }
codec = { workspace = true, default-features = true }
serde = { features = ["derive"], workspace = true, default-features = true }
jsonrpsee = { features = ["server"], workspace = true }
futures = { workspace = true }
jsonrpsee = { features = ["server"], workspace = true }
log = { workspace = true, default-features = true }
serde = { features = ["derive"], workspace = true, default-features = true }

## Local Dependencies
# Local Dependencies
invarch-runtime = { path = "../runtime" }

serde_json = { workspace = true, default-features = true }
color-print = { workspace = true }
cumulus-client-cli = { workspace = true, default-features = true }
cumulus-client-collator = { workspace = true, default-features = true }
cumulus-client-consensus-aura = { workspace = true, default-features = true }
cumulus-client-consensus-common = { workspace = true, default-features = true }
cumulus-client-consensus-proposer = { workspace = true, default-features = true }
cumulus-client-parachain-inherent = { workspace = true }
cumulus-client-service = { workspace = true, default-features = true }
cumulus-primitives-core = { workspace = true, default-features = true }
cumulus-primitives-parachain-inherent = { workspace = true, default-features = true }
cumulus-relay-chain-interface = { workspace = true, default-features = true }
docify = { workspace = true }
frame-benchmarking = { workspace = true, default-features = true }
frame-benchmarking-cli = { workspace = true, default-features = true }
pallet-transaction-payment-rpc = { workspace = true, default-features = true }
polkadot-cli = { features = [
"rococo-native",
], workspace = true, default-features = true }
polkadot-primitives = { workspace = true, default-features = true }
prometheus-endpoint = { workspace = true, default-features = true }
sc-basic-authorship = { workspace = true, default-features = true }
sc-chain-spec = { workspace = true, default-features = true }
sc-cli = { workspace = true, default-features = true }
sc-client-api = { workspace = true, default-features = true }
sc-consensus-aura = { workspace = true }
sc-offchain = { workspace = true, default-features = true }
sc-consensus = { workspace = true, default-features = true }
sc-consensus-aura = { workspace = true }
sc-executor = { workspace = true, default-features = true }
sc-network = { workspace = true, default-features = true }
sc-network-sync = { workspace = true, default-features = true }
sc-offchain = { workspace = true, default-features = true }
sc-rpc = { workspace = true, default-features = true }
sc-service = { workspace = true, default-features = true }
sc-sysinfo = { workspace = true, default-features = true }
sc-telemetry = { workspace = true, default-features = true }
sc-tracing = { workspace = true, default-features = true }
sc-transaction-pool = { workspace = true, default-features = true }
sc-transaction-pool-api = { workspace = true, default-features = true }
serde_json = { workspace = true, default-features = true }
sp-api = { workspace = true, default-features = true }
sp-block-builder = { workspace = true, default-features = true }
sp-blockchain = { workspace = true, default-features = true }
sp-consensus-aura = { workspace = true, default-features = true }
sp-core = { workspace = true, default-features = true }
sp-keystore = { workspace = true, default-features = true }
sp-io = { workspace = true, default-features = true }
sp-keystore = { workspace = true, default-features = true }
sp-runtime = { workspace = true, default-features = true }
sp-timestamp = { workspace = true, default-features = true }
substrate-frame-rpc-system = { workspace = true, default-features = true }
prometheus-endpoint = { workspace = true, default-features = true }
polkadot-cli = { features = [
"rococo-native",
], workspace = true, default-features = true }
polkadot-primitives = { workspace = true, default-features = true }
xcm = { workspace = true }
cumulus-client-cli = { workspace = true, default-features = true }
cumulus-client-collator = { workspace = true, default-features = true }
cumulus-client-consensus-aura = { workspace = true, default-features = true }
cumulus-client-consensus-common = { workspace = true, default-features = true }
cumulus-client-consensus-proposer = { workspace = true, default-features = true }
cumulus-client-parachain-inherent = { workspace = true }
cumulus-client-service = { workspace = true, default-features = true }
cumulus-primitives-core = { workspace = true, default-features = true }
cumulus-primitives-parachain-inherent = { workspace = true, default-features = true }
cumulus-relay-chain-interface = { workspace = true, default-features = true }
color-print = { workspace = true }
try-runtime-cli = { workspace = true, optional = true }
xcm = { workspace = true }

[build-dependencies]
substrate-build-script-utils = { workspace = true, default-features = true }
Expand Down
73 changes: 34 additions & 39 deletions invarch/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "invarch-runtime"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
name = "invarch-runtime"
publish = false
repository.workspace = true
edition.workspace = true
version.workspace = true

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand All @@ -22,12 +22,11 @@ log = { workspace = true }
scale-info = { workspace = true }
smallvec = { workspace = true }

new-modified-construct-runtime = { workspace = true }

# InvArch
# InvArch/local
pallet-checked-inflation = { workspace = true }
pallet-dao-manager = { workspace = true }
pallet-dao-staking = { workspace = true }
pallet-checked-inflation = { workspace = true }
new-modified-construct-runtime = { workspace = true }

# Substrate
frame-benchmarking = { workspace = true, optional = true }
Expand All @@ -41,14 +40,17 @@ frame-try-runtime = { workspace = true, optional = true }
pallet-aura = { workspace = true }
pallet-authorship = { workspace = true }
pallet-balances = { workspace = true }
pallet-contracts = { workspace = true }
pallet-identity = { workspace = true }
pallet-insecure-randomness-collective-flip = { workspace = true }
pallet-message-queue = { workspace = true }
pallet-session = { workspace = true }
pallet-sudo = { workspace = true }
pallet-timestamp = { workspace = true }
pallet-transaction-payment = { workspace = true }
pallet-transaction-payment-rpc-runtime-api = { workspace = true }
pallet-treasury = { workspace = true }
pallet-tx-pause = { workspace = true }
pallet-utility = { workspace = true }
sp-api = { workspace = true }
sp-block-builder = { workspace = true }
Expand All @@ -63,9 +65,6 @@ sp-std = { workspace = true }
sp-transaction-pool = { workspace = true }
sp-version = { workspace = true }

## Local tx-pause pallet as it wasn't available at the time of v0.9.43
pallet-tx-pause = { workspace = true }

# ORML
orml-asset-registry = { workspace = true }
orml-currencies = { workspace = true }
Expand Down Expand Up @@ -102,42 +101,55 @@ parachain-info = { workspace = true }

[features]

metadata-hash = [
"substrate-wasm-builder/metadata-hash",
]
metadata-hash = ["substrate-wasm-builder/metadata-hash"]

default = [
"std",
]
default = ["std"]

on-chain-release-build = ["metadata-hash"]

std = [
"codec/std",
"cumulus-pallet-aura-ext/std",
"cumulus-primitives-aura/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-primitives-aura/std",
"cumulus-primitives-core/std",
"cumulus-primitives-timestamp/std",
"cumulus-primitives-utility/std",
"frame-executive/std",
"frame-metadata-hash-extension/std",
"frame-metadata-hash-extension/std",
"frame-support/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"log/std",
"new-modified-construct-runtime/std",
"orml-asset-registry/std",
"orml-currencies/std",
"orml-tokens/std",
"orml-tokens2/std",
"orml-vesting/std",
"orml-xcm/std",
"orml-xtokens/std",
"pallet-aura/std",
"pallet-authorship/std",
"pallet-balances/std",
"pallet-checked-inflation/std",
"pallet-collator-selection/std",
"pallet-contracts/std",
"pallet-dao-manager/std",
"pallet-dao-staking/std",
"pallet-identity/std",
"pallet-insecure-randomness-collective-flip/std",
"pallet-session/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-treasury/std",
"pallet-tx-pause/std",
"pallet-utility/std",
"pallet-xcm/std",
"parachain-info/std",
"polkadot-parachain/std",
Expand All @@ -157,23 +169,6 @@ std = [
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"orml-asset-registry/std",
"orml-currencies/std",
"orml-vesting/std",
"orml-tokens/std",
"orml-tokens2/std",
"orml-xcm/std",
"orml-xtokens/std",
"pallet-identity/std",
"pallet-treasury/std",
"pallet-tx-pause/std",
"pallet-utility/std",

"new-modified-construct-runtime/std",

"pallet-checked-inflation/std",
"pallet-dao-manager/std",
"pallet-dao-staking/std"
]

runtime-benchmarks = [
Expand All @@ -184,14 +179,14 @@ runtime-benchmarks = [
"frame-system-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-checked-inflation/runtime-benchmarks",
"pallet-collator-selection/runtime-benchmarks",
"pallet-dao-manager/runtime-benchmarks",
"pallet-dao-staking/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"pallet-checked-inflation/runtime-benchmarks",
"pallet-dao-manager/runtime-benchmarks",
"pallet-dao-staking/runtime-benchmarks",
]

try-runtime = [
Expand Down
Loading

0 comments on commit 169cc8f

Please sign in to comment.