From ae9eef7307075e264206de817a5a9f96492f7e52 Mon Sep 17 00:00:00 2001 From: Facundo Farall <37149322+ffarall@users.noreply.github.com> Date: Sun, 16 Nov 2025 16:44:17 +0100 Subject: [PATCH] build: :arrow_up: Upgrade to StorageHub release 0.1.4 (#298) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upgrades to StorageHub release [v0.1.4](https://github.com/Moonsong-Labs/storage-hub/releases/tag/v0.1.4). ## ⚠️ Breaking Changes ⚠️ - A DB migration for the indexer DB. Should be auto-applied by the indexer node on startup, if this is not disabled by the env var `SH_INDEXER_DB_AUTO_MIGRATE`. By default, it applies them. - A new runtime API (`shp_tx_implicits_runtime_api::TxImplicitsApi`) needed for StorageHub's Blockchain Service to build transactions using the runtime spec version from the currently run runtime. --------- Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com> --- operator/Cargo.lock | 86 +++++++++++------- operator/Cargo.toml | 69 +++++++------- operator/runtime/mainnet/Cargo.toml | 1 + .../mainnet/src/configs/storagehub/client.rs | 14 --- operator/runtime/mainnet/src/lib.rs | 23 +++++ operator/runtime/stagenet/Cargo.toml | 1 + .../stagenet/src/configs/storagehub/client.rs | 14 --- operator/runtime/stagenet/src/lib.rs | 22 +++++ operator/runtime/testnet/Cargo.toml | 1 + .../testnet/src/configs/storagehub/client.rs | 14 --- operator/runtime/testnet/src/lib.rs | 23 +++++ operator/scripts/verify-licenses.sh | 1 + test/.papi/descriptors/package.json | 2 +- test/.papi/metadata/datahaven.scale | Bin 622423 -> 622752 bytes 14 files changed, 160 insertions(+), 111 deletions(-) diff --git a/operator/Cargo.lock b/operator/Cargo.lock index 0c4c7c91..554e62ab 100644 --- a/operator/Cargo.lock +++ b/operator/Cargo.lock @@ -3008,6 +3008,7 @@ dependencies = [ "shp-forest-verifier", "shp-traits", "shp-treasury-funding", + "shp-tx-implicits-runtime-api", "smallvec", "snowbridge-beacon-primitives 0.7.0", "snowbridge-core 0.7.0", @@ -3298,6 +3299,7 @@ dependencies = [ "shp-forest-verifier", "shp-traits", "shp-treasury-funding", + "shp-tx-implicits-runtime-api", "smallvec", "snowbridge-beacon-primitives 0.7.0", "snowbridge-core 0.7.0", @@ -3448,6 +3450,7 @@ dependencies = [ "shp-forest-verifier", "shp-traits", "shp-treasury-funding", + "shp-tx-implicits-runtime-api", "smallvec", "snowbridge-beacon-primitives 0.7.0", "snowbridge-core 0.7.0", @@ -8989,7 +8992,7 @@ dependencies = [ [[package]] name = "pallet-bucket-nfts" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-benchmarking", "frame-support", @@ -9065,7 +9068,7 @@ dependencies = [ [[package]] name = "pallet-cr-randomness" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-support", "frame-system", @@ -9325,7 +9328,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-file-system" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "fp-account", "fp-evm", @@ -9578,7 +9581,7 @@ dependencies = [ [[package]] name = "pallet-file-system" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-benchmarking", "frame-support", @@ -9605,7 +9608,7 @@ dependencies = [ [[package]] name = "pallet-file-system-runtime-api" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "parity-scale-codec", "scale-info", @@ -9801,7 +9804,7 @@ dependencies = [ [[package]] name = "pallet-payment-streams" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-benchmarking", "frame-support", @@ -9821,7 +9824,7 @@ dependencies = [ [[package]] name = "pallet-payment-streams-runtime-api" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "parity-scale-codec", "scale-info", @@ -9849,7 +9852,7 @@ dependencies = [ [[package]] name = "pallet-proofs-dealer" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-benchmarking", "frame-support", @@ -9871,7 +9874,7 @@ dependencies = [ [[package]] name = "pallet-proofs-dealer-runtime-api" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "parity-scale-codec", "scale-info", @@ -9893,7 +9896,7 @@ dependencies = [ [[package]] name = "pallet-randomness" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-benchmarking", "frame-support", @@ -10034,7 +10037,7 @@ dependencies = [ [[package]] name = "pallet-storage-providers" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-benchmarking", "frame-support", @@ -10056,7 +10059,7 @@ dependencies = [ [[package]] name = "pallet-storage-providers-runtime-api" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "parity-scale-codec", "scale-info", @@ -15164,7 +15167,7 @@ dependencies = [ [[package]] name = "shc-actors-derive" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "once_cell", "proc-macro2", @@ -15177,7 +15180,7 @@ dependencies = [ [[package]] name = "shc-actors-framework" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "anyhow", "bincode", @@ -15195,7 +15198,7 @@ dependencies = [ [[package]] name = "shc-blockchain-service" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "anyhow", "array-bytes", @@ -15234,6 +15237,7 @@ dependencies = [ "shp-constants", "shp-file-key-verifier", "shp-file-metadata", + "shp-tx-implicits-runtime-api", "sp-api", "sp-blockchain", "sp-core", @@ -15247,7 +15251,7 @@ dependencies = [ [[package]] name = "shc-client" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "anyhow", "array-bytes", @@ -15313,7 +15317,7 @@ dependencies = [ [[package]] name = "shc-common" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "anyhow", "bigdecimal", @@ -15358,6 +15362,7 @@ dependencies = [ "shp-forest-verifier", "shp-opaque", "shp-traits", + "shp-tx-implicits-runtime-api", "shp-types", "sp-api", "sp-block-builder", @@ -15377,7 +15382,7 @@ dependencies = [ [[package]] name = "shc-file-manager" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "bincode", "hash-db", @@ -15401,7 +15406,7 @@ dependencies = [ [[package]] name = "shc-file-transfer-service" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "anyhow", "array-bytes", @@ -15430,7 +15435,7 @@ dependencies = [ [[package]] name = "shc-fisherman-service" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "async-trait", "diesel", @@ -15460,7 +15465,7 @@ dependencies = [ [[package]] name = "shc-forest-manager" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "async-trait", "bincode", @@ -15485,7 +15490,7 @@ dependencies = [ [[package]] name = "shc-indexer-db" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "bigdecimal", "chrono", @@ -15513,7 +15518,7 @@ dependencies = [ [[package]] name = "shc-indexer-service" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "anyhow", "array-bytes", @@ -15564,7 +15569,7 @@ dependencies = [ [[package]] name = "shc-rpc" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "array-bytes", "async-trait", @@ -15615,7 +15620,7 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "shp-constants" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "sp-core", "sp-runtime", @@ -15624,7 +15629,7 @@ dependencies = [ [[package]] name = "shp-data-price-updater" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-support", "parity-scale-codec", @@ -15639,7 +15644,7 @@ dependencies = [ [[package]] name = "shp-file-key-verifier" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-support", "parity-scale-codec", @@ -15657,7 +15662,7 @@ dependencies = [ [[package]] name = "shp-file-metadata" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "hex", "num-bigint", @@ -15673,7 +15678,7 @@ dependencies = [ [[package]] name = "shp-forest-verifier" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-support", "parity-scale-codec", @@ -15690,7 +15695,7 @@ dependencies = [ [[package]] name = "shp-opaque" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "parachains-common", "sp-runtime", @@ -15699,7 +15704,7 @@ dependencies = [ [[package]] name = "shp-session-keys" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "async-trait", "parity-scale-codec", @@ -15714,7 +15719,7 @@ dependencies = [ [[package]] name = "shp-traits" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "frame-support", "parity-scale-codec", @@ -15728,7 +15733,7 @@ dependencies = [ [[package]] name = "shp-treasury-funding" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "log", "shp-traits", @@ -15736,10 +15741,23 @@ dependencies = [ "sp-core", ] +[[package]] +name = "shp-tx-implicits-runtime-api" +version = "0.1.0" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "shp-types" version = "0.1.0" -source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.3#e3bf4fc81660ab1f4e2a72024ec8682654075496" +source = "git+https://github.com/Moonsong-Labs/storage-hub.git?tag=v0.1.4#18a562abfebeee7159ca9178dfb0a6c36f7fb94e" dependencies = [ "sp-core", "sp-runtime", diff --git a/operator/Cargo.toml b/operator/Cargo.toml index 02f8f0b9..e5e343e1 100644 --- a/operator/Cargo.toml +++ b/operator/Cargo.toml @@ -265,43 +265,44 @@ fc-storage = { git = "https://github.com/polkadot-evm/frontier", branch = "stabl # StorageHub ## Runtime -pallet-bucket-nfts = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-cr-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-file-system-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-payment-streams = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-payment-streams-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-proofs-dealer = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-proofs-dealer-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-storage-providers = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -pallet-storage-providers-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-constants = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-data-price-updater = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-file-key-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-file-metadata = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-forest-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-traits = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-treasury-funding = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -storage-hub-runtime = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } +pallet-bucket-nfts = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-cr-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-file-system-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-payment-streams = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-payment-streams-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-proofs-dealer = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-proofs-dealer-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-storage-providers = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +pallet-storage-providers-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-constants = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-data-price-updater = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-file-key-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-file-metadata = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-forest-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-traits = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-treasury-funding = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +storage-hub-runtime = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } ## Client cumulus-client-service = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } -shc-actors-derive = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-actors-framework = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-blockchain-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-client = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-common = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-file-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-file-transfer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-fisherman-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-forest-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-indexer-db = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-indexer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shc-rpc = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-opaque = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } -shp-types = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } +shc-actors-derive = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-actors-framework = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-blockchain-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-client = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-common = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-file-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-file-transfer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-fisherman-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-forest-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-indexer-db = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-indexer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shc-rpc = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-opaque = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-tx-implicits-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } +shp-types = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } ## Precompiles -pallet-evm-precompile-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.3", default-features = false } +pallet-evm-precompile-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.1.4", default-features = false } # The list of dependencies below (which can be both direct and indirect dependencies) are crates # that are suspected to be CPU-intensive, and that are unlikely to require debugging (as some of diff --git a/operator/runtime/mainnet/Cargo.toml b/operator/runtime/mainnet/Cargo.toml index 97e8e5d9..b8ec9fed 100644 --- a/operator/runtime/mainnet/Cargo.toml +++ b/operator/runtime/mainnet/Cargo.toml @@ -159,6 +159,7 @@ shp-file-metadata = { workspace = true } shp-forest-verifier = { workspace = true } shp-traits = { workspace = true } shp-treasury-funding = { workspace = true } +shp-tx-implicits-runtime-api = { workspace = true } sp-trie = { workspace = true } [build-dependencies] diff --git a/operator/runtime/mainnet/src/configs/storagehub/client.rs b/operator/runtime/mainnet/src/configs/storagehub/client.rs index dfe66724..9d176f52 100644 --- a/operator/runtime/mainnet/src/configs/storagehub/client.rs +++ b/operator/runtime/mainnet/src/configs/storagehub/client.rs @@ -51,20 +51,6 @@ impl ExtensionOperations for crate::SignedEx frame_metadata_hash_extension::CheckMetadataHash::new(false), ) } - - fn implicit(genesis_block_hash: Self::Hash, current_block_hash: Self::Hash) -> Self::Implicit { - ( - (), - crate::VERSION.spec_version, - crate::VERSION.transaction_version, - genesis_block_hash, - current_block_hash, - (), - (), - (), - None, - ) - } } // Map the runtime event into the client-facing storage events enum. diff --git a/operator/runtime/mainnet/src/lib.rs b/operator/runtime/mainnet/src/lib.rs index f69c0581..3b1be019 100644 --- a/operator/runtime/mainnet/src/lib.rs +++ b/operator/runtime/mainnet/src/lib.rs @@ -1387,6 +1387,29 @@ impl_runtime_apis! { Ok(sp_runtime::Vec::from_iter(Providers::query_buckets_of_user_stored_by_msp(msp_id, user)?)) } } + + impl shp_tx_implicits_runtime_api::TxImplicitsApi for Runtime { + fn compute_signed_extra_implicit( + era: sp_runtime::generic::Era, + enable_metadata: bool, + ) -> Result, sp_runtime::transaction_validity::TransactionValidityError> { + // Build the SignedExtra tuple with minimal values; only `era` and `enable_metadata` + // influence the implicit. Other extensions have `()` implicit. + let extra: SignedExtra = ( + frame_system::CheckNonZeroSender::::new(), + frame_system::CheckSpecVersion::::new(), + frame_system::CheckTxVersion::::new(), + frame_system::CheckGenesis::::new(), + frame_system::CheckEra::::from(era), + frame_system::CheckNonce::::from(::default()), + frame_system::CheckWeight::::new(), + pallet_transaction_payment::ChargeTransactionPayment::::from(::default()), + frame_metadata_hash_extension::CheckMetadataHash::::new(enable_metadata), + ); + let implicit = >::implicit(&extra)?; + Ok(implicit.encode()) + } + } } // Shorthand for a Get field of a pallet Config. diff --git a/operator/runtime/stagenet/Cargo.toml b/operator/runtime/stagenet/Cargo.toml index a4f28967..f277d54a 100644 --- a/operator/runtime/stagenet/Cargo.toml +++ b/operator/runtime/stagenet/Cargo.toml @@ -159,6 +159,7 @@ shp-file-metadata = { workspace = true } shp-forest-verifier = { workspace = true } shp-traits = { workspace = true } shp-treasury-funding = { workspace = true } +shp-tx-implicits-runtime-api = { workspace = true } sp-trie = { workspace = true } [build-dependencies] diff --git a/operator/runtime/stagenet/src/configs/storagehub/client.rs b/operator/runtime/stagenet/src/configs/storagehub/client.rs index dfe66724..9d176f52 100644 --- a/operator/runtime/stagenet/src/configs/storagehub/client.rs +++ b/operator/runtime/stagenet/src/configs/storagehub/client.rs @@ -51,20 +51,6 @@ impl ExtensionOperations for crate::SignedEx frame_metadata_hash_extension::CheckMetadataHash::new(false), ) } - - fn implicit(genesis_block_hash: Self::Hash, current_block_hash: Self::Hash) -> Self::Implicit { - ( - (), - crate::VERSION.spec_version, - crate::VERSION.transaction_version, - genesis_block_hash, - current_block_hash, - (), - (), - (), - None, - ) - } } // Map the runtime event into the client-facing storage events enum. diff --git a/operator/runtime/stagenet/src/lib.rs b/operator/runtime/stagenet/src/lib.rs index 99cff7f3..7f60cdc7 100644 --- a/operator/runtime/stagenet/src/lib.rs +++ b/operator/runtime/stagenet/src/lib.rs @@ -1391,6 +1391,28 @@ impl_runtime_apis! { } } + impl shp_tx_implicits_runtime_api::TxImplicitsApi for Runtime { + fn compute_signed_extra_implicit( + era: sp_runtime::generic::Era, + enable_metadata: bool, + ) -> Result, sp_runtime::transaction_validity::TransactionValidityError> { + // Build the SignedExtra tuple with minimal values; only `era` and `enable_metadata` + // influence the implicit. Other extensions have `()` implicit. + let extra: SignedExtra = ( + frame_system::CheckNonZeroSender::::new(), + frame_system::CheckSpecVersion::::new(), + frame_system::CheckTxVersion::::new(), + frame_system::CheckGenesis::::new(), + frame_system::CheckEra::::from(era), + frame_system::CheckNonce::::from(::default()), + frame_system::CheckWeight::::new(), + pallet_transaction_payment::ChargeTransactionPayment::::from(::default()), + frame_metadata_hash_extension::CheckMetadataHash::::new(enable_metadata), + ); + let implicit = >::implicit(&extra)?; + Ok(implicit.encode()) + } + } } // Shorthand for a Get field of a pallet Config. diff --git a/operator/runtime/testnet/Cargo.toml b/operator/runtime/testnet/Cargo.toml index c7087146..817a9057 100644 --- a/operator/runtime/testnet/Cargo.toml +++ b/operator/runtime/testnet/Cargo.toml @@ -159,6 +159,7 @@ shp-file-metadata = { workspace = true } shp-forest-verifier = { workspace = true } shp-traits = { workspace = true } shp-treasury-funding = { workspace = true } +shp-tx-implicits-runtime-api = { workspace = true } sp-trie = { workspace = true } [build-dependencies] diff --git a/operator/runtime/testnet/src/configs/storagehub/client.rs b/operator/runtime/testnet/src/configs/storagehub/client.rs index dfe66724..9d176f52 100644 --- a/operator/runtime/testnet/src/configs/storagehub/client.rs +++ b/operator/runtime/testnet/src/configs/storagehub/client.rs @@ -51,20 +51,6 @@ impl ExtensionOperations for crate::SignedEx frame_metadata_hash_extension::CheckMetadataHash::new(false), ) } - - fn implicit(genesis_block_hash: Self::Hash, current_block_hash: Self::Hash) -> Self::Implicit { - ( - (), - crate::VERSION.spec_version, - crate::VERSION.transaction_version, - genesis_block_hash, - current_block_hash, - (), - (), - (), - None, - ) - } } // Map the runtime event into the client-facing storage events enum. diff --git a/operator/runtime/testnet/src/lib.rs b/operator/runtime/testnet/src/lib.rs index c00e2988..04eb207f 100644 --- a/operator/runtime/testnet/src/lib.rs +++ b/operator/runtime/testnet/src/lib.rs @@ -1386,6 +1386,29 @@ impl_runtime_apis! { Ok(sp_runtime::Vec::from_iter(Providers::query_buckets_of_user_stored_by_msp(msp_id, user)?)) } } + + impl shp_tx_implicits_runtime_api::TxImplicitsApi for Runtime { + fn compute_signed_extra_implicit( + era: sp_runtime::generic::Era, + enable_metadata: bool, + ) -> Result, sp_runtime::transaction_validity::TransactionValidityError> { + // Build the SignedExtra tuple with minimal values; only `era` and `enable_metadata` + // influence the implicit. Other extensions have `()` implicit. + let extra: SignedExtra = ( + frame_system::CheckNonZeroSender::::new(), + frame_system::CheckSpecVersion::::new(), + frame_system::CheckTxVersion::::new(), + frame_system::CheckGenesis::::new(), + frame_system::CheckEra::::from(era), + frame_system::CheckNonce::::from(::default()), + frame_system::CheckWeight::::new(), + pallet_transaction_payment::ChargeTransactionPayment::::from(::default()), + frame_metadata_hash_extension::CheckMetadataHash::::new(enable_metadata), + ); + let implicit = >::implicit(&extra)?; + Ok(implicit.encode()) + } + } } // Shorthand for a Get field of a pallet Config. diff --git a/operator/scripts/verify-licenses.sh b/operator/scripts/verify-licenses.sh index 7f1bf434..6362029c 100755 --- a/operator/scripts/verify-licenses.sh +++ b/operator/scripts/verify-licenses.sh @@ -51,6 +51,7 @@ AUTHORS=( ) NAMES=( "ring" # v0.16.20 has null license metadata but contains Apache-2.0 AND ISC LICENSE file + "shp-tx-implicits-runtime-api" ) licenses_filter=$(printf ' .license != "%s" and' "${LICENSES[@]}") authors_filter=$(printf ' .authors != "%s" and' "${AUTHORS[@]}") diff --git a/test/.papi/descriptors/package.json b/test/.papi/descriptors/package.json index 0e2e9888..4b8553bd 100644 --- a/test/.papi/descriptors/package.json +++ b/test/.papi/descriptors/package.json @@ -1,5 +1,5 @@ { - "version": "0.1.0-autogenerated.40127769317338577", + "version": "0.1.0-autogenerated.13402936638329471124", "name": "@polkadot-api/descriptors", "files": [ "dist" diff --git a/test/.papi/metadata/datahaven.scale b/test/.papi/metadata/datahaven.scale index 3695e64dda8528dcd4ecc38c741dfc74c17e5d3d..324527a67636992386497b563a43754ceee71085 100644 GIT binary patch delta 427 zcmX|7y-UMD6u;9XCJ?HigW}h7P#3j>i-d|4%^)a3b#QBA^4c7>mvFggol1w|C?ewG zpu4Md(82%0O=od+5k$PU>Vx0%_prg0Ua9Et8) zq+GHZ&L^4Tx{{^V9BjjC1ETSV8U;rf*ReA)E2XGvs@)Yo&7kWtueu(}d;}u{D z^a=$_QYQ^8fhdVb4YMD9l&w}TUj2}ETm6?zpMM@8c(Pgukq=kEulCGtl1^BM93 D4DO4Q delta 98 zcmZ3`sCNCIDqC)9Ng}^vBU>vQV=Eg|D;skw8_QNU)~TG675il-+p}