@@ -1959,9 +1959,9 @@ pub mod api {
19591959 .hash();
19601960 runtime_metadata_hash ==
19611961 [
1962- 9u8, 252u8, 101u8, 200u8, 161u8, 142u8, 241u8, 130u8, 224u8, 189u8, 72u8, 23u8 ,
1963- 15u8, 35u8, 16u8, 38u8, 233u8, 12u8, 177u8, 101u8, 41u8, 225u8, 185u8, 137u8 ,
1964- 187u8, 153u8, 77u8, 45u8, 214u8, 214u8, 215u8, 198u8 ,
1962+ 126u8, 218u8, 159u8, 250u8, 59u8, 149u8, 173u8, 241u8, 56u8, 124u8, 210u8, 212u8 ,
1963+ 182u8, 54u8, 120u8, 239u8, 158u8, 147u8, 158u8, 70u8, 131u8, 157u8, 164u8, 69u8 ,
1964+ 167u8, 177u8, 13u8, 11u8, 12u8, 225u8, 206u8, 202u8 ,
19651965 ]
19661966 }
19671967 pub mod system {
@@ -7466,7 +7466,7 @@ pub mod api {
74667466 [::core::primitive::u8; 32usize],
74677467 runtime_types::frame_support::traits::preimages::Bounded<
74687468 runtime_types::quantus_runtime::RuntimeCall,
7469- runtime_types::qp_poseidon::PoseidonHasher ,
7469+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
74707470 >,
74717471 ::core::primitive::u32,
74727472 runtime_types::quantus_runtime::OriginCaller,
@@ -8531,7 +8531,7 @@ pub mod api {
85318531 pub type ProposalOrigin = runtime_types::quantus_runtime::OriginCaller;
85328532 pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
85338533 runtime_types::quantus_runtime::RuntimeCall,
8534- runtime_types::qp_poseidon::PoseidonHasher ,
8534+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
85358535 >;
85368536 pub type EnactmentMoment =
85378537 runtime_types::frame_support::traits::schedule::DispatchTime<
@@ -9022,7 +9022,7 @@ pub mod api {
90229022 pub type Track = ::core::primitive::u16;
90239023 pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
90249024 runtime_types::quantus_runtime::RuntimeCall,
9025- runtime_types::qp_poseidon::PoseidonHasher ,
9025+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
90269026 >;
90279027 }
90289028 impl ::subxt::ext::subxt_core::events::StaticEvent for Submitted {
@@ -9116,7 +9116,7 @@ pub mod api {
91169116 pub type Track = ::core::primitive::u16;
91179117 pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
91189118 runtime_types::quantus_runtime::RuntimeCall,
9119- runtime_types::qp_poseidon::PoseidonHasher ,
9119+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
91209120 >;
91219121 pub type Tally =
91229122 runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>;
@@ -9373,7 +9373,7 @@ pub mod api {
93739373 ::core::primitive::u32,
93749374 runtime_types::frame_support::traits::preimages::Bounded<
93759375 runtime_types::quantus_runtime::RuntimeCall,
9376- runtime_types::qp_poseidon::PoseidonHasher ,
9376+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
93779377 >,
93789378 ::core::primitive::u128,
93799379 runtime_types::pallet_conviction_voting::types::Tally<
@@ -10344,7 +10344,7 @@ pub mod api {
1034410344 ::core::primitive::u128,
1034510345 runtime_types::frame_support::traits::preimages::Bounded<
1034610346 runtime_types::quantus_runtime::RuntimeCall,
10347- runtime_types::qp_poseidon::PoseidonHasher ,
10347+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
1034810348 >,
1034910349 >;
1035010350 pub type Param0 = ::subxt::ext::subxt_core::utils::H256;
@@ -12501,7 +12501,7 @@ pub mod api {
1250112501 pub type ProposalOrigin = runtime_types::quantus_runtime::OriginCaller;
1250212502 pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
1250312503 runtime_types::quantus_runtime::RuntimeCall,
12504- runtime_types::qp_poseidon::PoseidonHasher ,
12504+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
1250512505 >;
1250612506 pub type EnactmentMoment =
1250712507 runtime_types::frame_support::traits::schedule::DispatchTime<
@@ -12992,7 +12992,7 @@ pub mod api {
1299212992 pub type Track = ::core::primitive::u16;
1299312993 pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
1299412994 runtime_types::quantus_runtime::RuntimeCall,
12995- runtime_types::qp_poseidon::PoseidonHasher ,
12995+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
1299612996 >;
1299712997 }
1299812998 impl ::subxt::ext::subxt_core::events::StaticEvent for Submitted {
@@ -13086,7 +13086,7 @@ pub mod api {
1308613086 pub type Track = ::core::primitive::u16;
1308713087 pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
1308813088 runtime_types::quantus_runtime::RuntimeCall,
13089- runtime_types::qp_poseidon::PoseidonHasher ,
13089+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
1309013090 >;
1309113091 pub type Tally = runtime_types::pallet_ranked_collective::Tally;
1309213092 }
@@ -13337,7 +13337,7 @@ pub mod api {
1333713337 ::core::primitive::u32,
1333813338 runtime_types::frame_support::traits::preimages::Bounded<
1333913339 runtime_types::quantus_runtime::RuntimeCall,
13340- runtime_types::qp_poseidon::PoseidonHasher ,
13340+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
1334113341 >,
1334213342 ::core::primitive::u128,
1334313343 runtime_types::pallet_ranked_collective::Tally,
@@ -20420,7 +20420,11 @@ pub mod api {
2042020420 #[encode_as_type(
2042120421 crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
2042220422 )]
20423- #[doc = "Verify an aggregated wormhole proof and process all transfers in the batch"]
20423+ #[doc = "Verify an aggregated wormhole proof and process all transfers in the batch."]
20424+ #[doc = ""]
20425+ #[doc = "Returns `DispatchResultWithPostInfo` to allow weight correction on early failures."]
20426+ #[doc = "If pre-validation fails (deserialization, cheap checks), we return the actual"]
20427+ #[doc = "consumed weight to free block capacity for other transactions."]
2042420428 pub struct VerifyAggregatedProof {
2042520429 pub proof_bytes: verify_aggregated_proof::ProofBytes,
2042620430 }
@@ -20436,7 +20440,11 @@ pub mod api {
2043620440 }
2043720441 pub struct TransactionApi;
2043820442 impl TransactionApi {
20439- #[doc = "Verify an aggregated wormhole proof and process all transfers in the batch"]
20443+ #[doc = "Verify an aggregated wormhole proof and process all transfers in the batch."]
20444+ #[doc = ""]
20445+ #[doc = "Returns `DispatchResultWithPostInfo` to allow weight correction on early failures."]
20446+ #[doc = "If pre-validation fails (deserialization, cheap checks), we return the actual"]
20447+ #[doc = "consumed weight to free block capacity for other transactions."]
2044020448 pub fn verify_aggregated_proof(
2044120449 &self,
2044220450 proof_bytes: types::verify_aggregated_proof::ProofBytes,
@@ -20553,6 +20561,12 @@ pub mod api {
2055320561 pub type TransferCount = ::core::primitive::u64;
2055420562 pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
2055520563 }
20564+ pub mod genesis_endowments_pending {
20565+ use super::runtime_types;
20566+ pub type GenesisEndowmentsPending = ::subxt::ext::subxt_core::alloc::vec::Vec<
20567+ (::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128),
20568+ >;
20569+ }
2055620570 }
2055720571 pub struct StorageApi;
2055820572 impl StorageApi {
@@ -20709,6 +20723,32 @@ pub mod api {
2070920723 ],
2071020724 )
2071120725 }
20726+ #[doc = " Genesis endowments pending event emission."]
20727+ #[doc = " Stores (to_address, amount) for each genesis endowment."]
20728+ #[doc = " These are processed in on_initialize at block 1 to emit NativeTransferred events,"]
20729+ #[doc = " then cleared. This ensures indexers like Subsquid can track genesis transfers."]
20730+ #[doc = ""]
20731+ #[doc = " Unbounded because it's only populated at genesis and cleared on block 1."]
20732+ pub fn genesis_endowments_pending(
20733+ &self,
20734+ ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
20735+ (),
20736+ types::genesis_endowments_pending::GenesisEndowmentsPending,
20737+ ::subxt::ext::subxt_core::utils::Yes,
20738+ ::subxt::ext::subxt_core::utils::Yes,
20739+ (),
20740+ > {
20741+ ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
20742+ "Wormhole",
20743+ "GenesisEndowmentsPending",
20744+ (),
20745+ [
20746+ 92u8, 149u8, 109u8, 170u8, 10u8, 130u8, 163u8, 174u8, 224u8, 98u8,
20747+ 190u8, 125u8, 213u8, 240u8, 211u8, 23u8, 222u8, 20u8, 104u8, 45u8, 7u8,
20748+ 73u8, 225u8, 73u8, 21u8, 88u8, 91u8, 57u8, 207u8, 252u8, 25u8, 76u8,
20749+ ],
20750+ )
20751+ }
2071220752 }
2071320753 }
2071420754 pub mod constants {
@@ -25033,7 +25073,7 @@ pub mod api {
2503325073 >,
2503425074 proposal: runtime_types::frame_support::traits::preimages::Bounded<
2503525075 runtime_types::quantus_runtime::RuntimeCall,
25036- runtime_types::qp_poseidon::PoseidonHasher ,
25076+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
2503725077 >,
2503825078 enactment_moment:
2503925079 runtime_types::frame_support::traits::schedule::DispatchTime<
@@ -25190,7 +25230,7 @@ pub mod api {
2519025230 track: ::core::primitive::u16,
2519125231 proposal: runtime_types::frame_support::traits::preimages::Bounded<
2519225232 runtime_types::quantus_runtime::RuntimeCall,
25193- runtime_types::qp_poseidon::PoseidonHasher ,
25233+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
2519425234 >,
2519525235 },
2519625236 #[codec(index = 1)]
@@ -25220,7 +25260,7 @@ pub mod api {
2522025260 track: ::core::primitive::u16,
2522125261 proposal: runtime_types::frame_support::traits::preimages::Bounded<
2522225262 runtime_types::quantus_runtime::RuntimeCall,
25223- runtime_types::qp_poseidon::PoseidonHasher ,
25263+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
2522425264 >,
2522525265 tally: runtime_types::pallet_conviction_voting::types::Tally<
2522625266 ::core::primitive::u128,
@@ -25313,7 +25353,7 @@ pub mod api {
2531325353 track: ::core::primitive::u16,
2531425354 proposal: runtime_types::frame_support::traits::preimages::Bounded<
2531525355 runtime_types::quantus_runtime::RuntimeCall,
25316- runtime_types::qp_poseidon::PoseidonHasher ,
25356+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
2531725357 >,
2531825358 },
2531925359 #[codec(index = 1)]
@@ -25343,7 +25383,7 @@ pub mod api {
2534325383 track: ::core::primitive::u16,
2534425384 proposal: runtime_types::frame_support::traits::preimages::Bounded<
2534525385 runtime_types::quantus_runtime::RuntimeCall,
25346- runtime_types::qp_poseidon::PoseidonHasher ,
25386+ runtime_types::sp_runtime::traits::BlakeTwo256 ,
2534725387 >,
2534825388 tally: runtime_types::pallet_ranked_collective::Tally,
2534925389 },
@@ -26758,7 +26798,11 @@ pub mod api {
2675826798 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
2675926799 pub enum Call {
2676026800 #[codec(index = 2)]
26761- #[doc = "Verify an aggregated wormhole proof and process all transfers in the batch"]
26801+ #[doc = "Verify an aggregated wormhole proof and process all transfers in the batch."]
26802+ #[doc = ""]
26803+ #[doc = "Returns `DispatchResultWithPostInfo` to allow weight correction on early failures."]
26804+ #[doc = "If pre-validation fails (deserialization, cheap checks), we return the actual"]
26805+ #[doc = "consumed weight to free block capacity for other transactions."]
2676226806 verify_aggregated_proof {
2676326807 proof_bytes:
2676426808 ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
@@ -26782,24 +26826,22 @@ pub mod api {
2678226826 #[codec(index = 1)]
2678326827 NullifierAlreadyUsed,
2678426828 #[codec(index = 2)]
26785- VerifierNotAvailable,
26786- #[codec(index = 3)]
2678726829 BlockNotFound,
26788- #[codec(index = 4 )]
26830+ #[codec(index = 3 )]
2678926831 AggregatedVerifierNotAvailable,
26790- #[codec(index = 5 )]
26832+ #[codec(index = 4 )]
2679126833 AggregatedProofDeserializationFailed,
26792- #[codec(index = 6 )]
26834+ #[codec(index = 5 )]
2679326835 AggregatedVerificationFailed,
26794- #[codec(index = 7 )]
26836+ #[codec(index = 6 )]
2679526837 InvalidAggregatedPublicInputs,
26796- #[codec(index = 8 )]
26838+ #[codec(index = 7 )]
2679726839 #[doc = "The volume fee rate in the proof doesn't match the configured rate"]
2679826840 InvalidVolumeFeeRate,
26799- #[codec(index = 9 )]
26841+ #[codec(index = 8 )]
2680026842 #[doc = "Transfer amount is below the minimum required"]
2680126843 TransferAmountBelowMinimum,
26802- #[codec(index = 10 )]
26844+ #[codec(index = 9 )]
2680326845 #[doc = "Only native asset (asset_id = 0) is supported in this version"]
2680426846 NonNativeAssetNotSupported,
2680526847 }
@@ -26906,17 +26948,6 @@ pub mod api {
2690626948 pub digest: runtime_types::sp_runtime::generic::digest::Digest,
2690726949 }
2690826950 }
26909- pub mod qp_poseidon {
26910- use super::runtime_types;
26911- #[derive(
26912- :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
26913- :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
26914- Debug,
26915- )]
26916- #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
26917- #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
26918- pub struct PoseidonHasher;
26919- }
2692026951 pub mod qp_scheduler {
2692126952 use super::runtime_types;
2692226953 #[derive(
@@ -27968,6 +27999,21 @@ pub mod api {
2796827999 DecodeError,
2796928000 }
2797028001 }
28002+ pub mod traits {
28003+ use super::runtime_types;
28004+ #[derive(
28005+ :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
28006+ :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
28007+ Debug,
28008+ )]
28009+ #[decode_as_type(
28010+ crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
28011+ )]
28012+ #[encode_as_type(
28013+ crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
28014+ )]
28015+ pub struct BlakeTwo256;
28016+ }
2797128017 pub mod transaction_validity {
2797228018 use super::runtime_types;
2797328019 #[derive(
0 commit comments