diff --git a/Cargo.lock b/Cargo.lock index fe5d6edba..7b90e58b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2858,6 +2858,7 @@ dependencies = [ "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", + "pallet-treasury", "pallet-tx-pause", "pallet-utility", "pallet-xcm", @@ -3990,6 +3991,7 @@ dependencies = [ "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", + "pallet-treasury", "pallet-tx-pause", "pallet-utility", "parachain-info", diff --git a/Cargo.toml b/Cargo.toml index 59060db29..afb4f9e2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,6 +98,7 @@ pallet-staking = { git = "https://github.com/moondance-labs/polkadot-sdk", branc pallet-sudo = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.3.0", default-features = false } pallet-timestamp = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.3.0", default-features = false } pallet-transaction-payment = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.3.0", default-features = false } +pallet-treasury = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.3.0", default-features = false } pallet-tx-pause = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.3.0", default-features = false } pallet-utility = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.3.0", default-features = false } parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive", "max-encoded-len" ] } diff --git a/node/src/chain_spec/dancebox.rs b/node/src/chain_spec/dancebox.rs index fe48d3fb2..d5a6c6f28 100644 --- a/node/src/chain_spec/dancebox.rs +++ b/node/src/chain_spec/dancebox.rs @@ -291,6 +291,7 @@ fn testnet_genesis( polkadot_xcm: PolkadotXcmConfig::default(), transaction_payment: Default::default(), tx_pause: Default::default(), + treasury: Default::default(), } } diff --git a/node/src/chain_spec/flashbox.rs b/node/src/chain_spec/flashbox.rs index 5a5b95b0f..70821c27e 100644 --- a/node/src/chain_spec/flashbox.rs +++ b/node/src/chain_spec/flashbox.rs @@ -289,6 +289,7 @@ fn testnet_genesis( }, transaction_payment: Default::default(), tx_pause: Default::default(), + treasury: Default::default(), } } diff --git a/pallets/collator-assignment/src/tests.rs b/pallets/collator-assignment/src/tests.rs index ce444c442..1e248ebf1 100644 --- a/pallets/collator-assignment/src/tests.rs +++ b/pallets/collator-assignment/src/tests.rs @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Tanssi. If not, see -use dp_collator_assignment::AssignedCollators; use { crate::{mock::*, CollatorContainerChain, Event, PendingCollatorContainerChain}, + dp_collator_assignment::AssignedCollators, std::collections::BTreeMap, }; diff --git a/pallets/collator-assignment/src/tests/assign_full.rs b/pallets/collator-assignment/src/tests/assign_full.rs index 2ac36e2f3..593a552a5 100644 --- a/pallets/collator-assignment/src/tests/assign_full.rs +++ b/pallets/collator-assignment/src/tests/assign_full.rs @@ -14,9 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Tanssi. If not, see -use crate::assignment::AssignmentError; use { - crate::{assignment::Assignment, tests::Test}, + crate::{ + assignment::{Assignment, AssignmentError}, + tests::Test, + }, sp_std::collections::btree_map::BTreeMap, }; diff --git a/runtime/dancebox/Cargo.toml b/runtime/dancebox/Cargo.toml index 73f8bfb49..ec4efde40 100644 --- a/runtime/dancebox/Cargo.toml +++ b/runtime/dancebox/Cargo.toml @@ -60,6 +60,7 @@ 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 } @@ -193,6 +194,7 @@ 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-benchmarks?/std", @@ -276,6 +278,7 @@ runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", "pallet-sudo/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", "pallet-tx-pause/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-xcm-benchmarks/runtime-benchmarks", @@ -339,6 +342,7 @@ try-runtime = [ "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", + "pallet-treasury/try-runtime", "pallet-tx-pause/try-runtime", "pallet-utility/try-runtime", "pallet-xcm/try-runtime", diff --git a/runtime/dancebox/src/lib.rs b/runtime/dancebox/src/lib.rs index 71118bc0c..c466d5e9e 100644 --- a/runtime/dancebox/src/lib.rs +++ b/runtime/dancebox/src/lib.rs @@ -49,9 +49,10 @@ use { parameter_types, traits::{ fungible::{Balanced, Credit, Inspect}, + tokens::{PayFromAccount, UnityAssetBalanceConversion}, ConstBool, ConstU128, ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, - InsideBoth, InstanceFilter, OffchainWorker, OnFinalize, OnIdle, OnInitialize, - OnRuntimeUpgrade, ValidatorRegistration, + Imbalance, InsideBoth, InstanceFilter, OffchainWorker, OnFinalize, OnIdle, + OnInitialize, OnRuntimeUpgrade, OnUnbalanced, ValidatorRegistration, }, weights::{ constants::{ @@ -68,6 +69,7 @@ use { EnsureRoot, }, nimbus_primitives::NimbusId, + pallet_balances::NegativeImbalance, pallet_collator_assignment::{GetRandomnessForNextBlock, RotateCollatorsEveryNSessions}, pallet_invulnerables::InvulnerableRewardDistribution, pallet_pooled_staking::traits::{IsCandidateEligible, Timer}, @@ -86,6 +88,7 @@ use { create_runtime_str, generic, impl_opaque_keys, traits::{ AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, Hash as HashT, + IdentityLookup, }, transaction_validity::{TransactionSource, TransactionValidity}, AccountId32, ApplyExtrinsicResult, @@ -417,6 +420,44 @@ impl pallet_balances::Config for Runtime { type WeightInfo = pallet_balances::weights::SubstrateWeight; } +pub struct DealWithFees(sp_std::marker::PhantomData); +impl OnUnbalanced> for DealWithFees +where + R: pallet_balances::Config + pallet_treasury::Config, + pallet_treasury::Pallet: OnUnbalanced>, +{ + // this seems to be called for substrate-based transactions + fn on_unbalanceds(mut fees_then_tips: impl Iterator>) { + if let Some(fees) = fees_then_tips.next() { + // 80% is burned, 20% goes to the treasury + // Same policy applies for tips as well + let burn_percentage = 80; + let treasury_percentage = 20; + + let (_, to_treasury) = fees.ration(burn_percentage, treasury_percentage); + // Balances pallet automatically burns dropped Negative Imbalances by decreasing total_supply accordingly + as OnUnbalanced<_>>::on_unbalanced(to_treasury); + + // handle tip if there is one + if let Some(tip) = fees_then_tips.next() { + let (_, to_treasury) = tip.ration(burn_percentage, treasury_percentage); + as OnUnbalanced<_>>::on_unbalanced(to_treasury); + } + } + } + + // this is called from pallet_evm for Ethereum-based transactions + // (technically, it calls on_unbalanced, which calls this when non-zero) + fn on_nonzero_unbalanced(amount: NegativeImbalance) { + // 80% is burned, 20% goes to the treasury + let burn_percentage = 80; + let treasury_percentage = 20; + + let (_, to_treasury) = amount.ration(burn_percentage, treasury_percentage); + as OnUnbalanced<_>>::on_unbalanced(to_treasury); + } +} + parameter_types! { pub const TransactionByteFee: Balance = 1; pub const FeeMultiplier: Multiplier = Multiplier::from_u32(1); @@ -424,8 +465,8 @@ parameter_types! { impl pallet_transaction_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; - // This will burn the fees - type OnChargeTransaction = CurrencyAdapter; + // This will burn 80% from fees & tips and deposit the remainder into the treasury + type OnChargeTransaction = CurrencyAdapter>; type OperationalFeeMultiplier = ConstU8<5>; type WeightToFee = WeightToFee; type LengthToFee = ConstantMultiplier; @@ -1392,6 +1433,42 @@ impl pallet_identity::Config for Runtime { type WeightInfo = pallet_identity::weights::SubstrateWeight; } +parameter_types! { + pub const TreasuryId: PalletId = PalletId(*b"tns/tsry"); + pub const ProposalBond: Permill = Permill::from_percent(5); + pub TreasuryAccount: AccountId = Treasury::account_id(); +} + +impl pallet_treasury::Config for Runtime { + type PalletId = TreasuryId; + type Currency = Balances; + + type ApproveOrigin = EnsureRoot; + type RejectOrigin = EnsureRoot; + type RuntimeEvent = RuntimeEvent; + // If proposal gets rejected, bond goes to treasury + type OnSlash = Treasury; + type ProposalBond = ProposalBond; + type ProposalBondMinimum = ConstU128<{ 1 * currency::DANCE * currency::SUPPLY_FACTOR }>; + type SpendPeriod = ConstU32<{ 6 * DAYS }>; + type Burn = (); + type BurnDestination = (); + type MaxApprovals = ConstU32<100>; + type WeightInfo = pallet_treasury::weights::SubstrateWeight; + type SpendFunds = (); + type ProposalBondMaximum = (); + type SpendOrigin = frame_support::traits::NeverEnsureOrigin; // Same as Polkadot + type AssetKind = (); + type Beneficiary = AccountId; + type BeneficiaryLookup = IdentityLookup; + type Paymaster = PayFromAccount; + // TODO: implement pallet-asset-rate to allow the treasury to spend other assets + type BalanceConverter = UnityAssetBalanceConversion; + type PayoutPeriod = ConstU32<0>; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = (); +} + // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( pub enum Runtime @@ -1434,6 +1511,9 @@ construct_runtime!( // InflationRewards must be after Session and AuthorInherent InflationRewards: pallet_inflation_rewards = 35, + // Treasury stuff. + Treasury: pallet_treasury::{Pallet, Storage, Config, Event, Call} = 40, + //XCM XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event} = 50, CumulusXcm: cumulus_pallet_xcm::{Pallet, Event, Origin} = 51, @@ -1459,6 +1539,7 @@ mod benches { [pallet_sudo, Sudo] [pallet_proxy, Proxy] [pallet_utility, Utility] + [pallet_treasury, Treasury] [pallet_tx_pause, TxPause] [pallet_balances, Balances] [pallet_identity, Identity] diff --git a/runtime/dancebox/src/xcm_config.rs b/runtime/dancebox/src/xcm_config.rs index e99e6e2f1..4108afbe8 100644 --- a/runtime/dancebox/src/xcm_config.rs +++ b/runtime/dancebox/src/xcm_config.rs @@ -333,11 +333,12 @@ impl pallet_asset_rate::Config for Runtime { type BenchmarkHelper = ForeignAssetBenchmarkHelper; } -use crate::ForeignAssets; -use sp_runtime::{traits::CheckedDiv, FixedPointNumber}; -use staging_xcm_builder::FungiblesAdapter; -use staging_xcm_builder::NoChecking; -use staging_xcm_executor::traits::JustTry; +use { + crate::ForeignAssets, + sp_runtime::{traits::CheckedDiv, FixedPointNumber}, + staging_xcm_builder::{FungiblesAdapter, NoChecking}, + staging_xcm_executor::traits::JustTry, +}; /// Means for transacting foreign assets from different global consensus. pub type ForeignFungiblesTransactor = FungiblesAdapter< diff --git a/runtime/flashbox/Cargo.toml b/runtime/flashbox/Cargo.toml index 218c45d58..cdd4fce78 100644 --- a/runtime/flashbox/Cargo.toml +++ b/runtime/flashbox/Cargo.toml @@ -55,6 +55,7 @@ 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 } @@ -160,6 +161,7 @@ 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", "parachain-info/std", @@ -225,6 +227,7 @@ runtime-benchmarks = [ "pallet-services-payment/runtime-benchmarks", "pallet-sudo/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", "pallet-tx-pause/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "polkadot-parachain-primitives/runtime-benchmarks", @@ -266,6 +269,7 @@ try-runtime = [ "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", + "pallet-treasury/try-runtime", "pallet-tx-pause/try-runtime", "pallet-utility/try-runtime", "parachain-info/try-runtime", diff --git a/runtime/flashbox/src/lib.rs b/runtime/flashbox/src/lib.rs index 6d2ece965..ce860c441 100644 --- a/runtime/flashbox/src/lib.rs +++ b/runtime/flashbox/src/lib.rs @@ -43,9 +43,10 @@ use { parameter_types, traits::{ fungible::{Balanced, Credit, Inspect}, + tokens::{PayFromAccount, UnityAssetBalanceConversion}, ConstBool, ConstU128, ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, - InsideBoth, InstanceFilter, OffchainWorker, OnFinalize, OnIdle, OnInitialize, - OnRuntimeUpgrade, + Imbalance, InsideBoth, InstanceFilter, OffchainWorker, OnFinalize, OnIdle, + OnInitialize, OnRuntimeUpgrade, OnUnbalanced, }, weights::{ constants::{ @@ -62,6 +63,7 @@ use { EnsureRoot, }, nimbus_primitives::NimbusId, + pallet_balances::NegativeImbalance, pallet_invulnerables::InvulnerableRewardDistribution, pallet_registrar::RegistrarHooks, pallet_registrar_runtime_api::ContainerChainGenesisData, @@ -76,7 +78,9 @@ use { sp_core::{crypto::KeyTypeId, Decode, Encode, Get, MaxEncodedLen, OpaqueMetadata}, sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, - traits::{AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT}, + traits::{ + AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, IdentityLookup, + }, transaction_validity::{TransactionSource, TransactionValidity}, AccountId32, ApplyExtrinsicResult, }, @@ -400,6 +404,44 @@ impl pallet_balances::Config for Runtime { type WeightInfo = pallet_balances::weights::SubstrateWeight; } +pub struct DealWithFees(sp_std::marker::PhantomData); +impl OnUnbalanced> for DealWithFees +where + R: pallet_balances::Config + pallet_treasury::Config, + pallet_treasury::Pallet: OnUnbalanced>, +{ + // this seems to be called for substrate-based transactions + fn on_unbalanceds(mut fees_then_tips: impl Iterator>) { + if let Some(fees) = fees_then_tips.next() { + // 80% is burned, 20% goes to the treasury + // Same policy applies for tips as well + let burn_percentage = 80; + let treasury_percentage = 20; + + let (_, to_treasury) = fees.ration(burn_percentage, treasury_percentage); + // Balances pallet automatically burns dropped Negative Imbalances by decreasing total_supply accordingly + as OnUnbalanced<_>>::on_unbalanced(to_treasury); + + // handle tip if there is one + if let Some(tip) = fees_then_tips.next() { + let (_, to_treasury) = tip.ration(burn_percentage, treasury_percentage); + as OnUnbalanced<_>>::on_unbalanced(to_treasury); + } + } + } + + // this is called from pallet_evm for Ethereum-based transactions + // (technically, it calls on_unbalanced, which calls this when non-zero) + fn on_nonzero_unbalanced(amount: NegativeImbalance) { + // 80% is burned, 20% goes to the treasury + let burn_percentage = 80; + let treasury_percentage = 20; + + let (_, to_treasury) = amount.ration(burn_percentage, treasury_percentage); + as OnUnbalanced<_>>::on_unbalanced(to_treasury); + } +} + parameter_types! { pub const TransactionByteFee: Balance = 1; pub const FeeMultiplier: Multiplier = Multiplier::from_u32(1); @@ -408,7 +450,7 @@ parameter_types! { impl pallet_transaction_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; // This will burn the fees - type OnChargeTransaction = CurrencyAdapter; + type OnChargeTransaction = CurrencyAdapter>; type OperationalFeeMultiplier = ConstU8<5>; type WeightToFee = WeightToFee; type LengthToFee = ConstantMultiplier; @@ -1136,6 +1178,41 @@ impl pallet_identity::Config for Runtime { type WeightInfo = pallet_identity::weights::SubstrateWeight; } +parameter_types! { + pub const TreasuryId: PalletId = PalletId(*b"tns/tsry"); + pub const ProposalBond: Permill = Permill::from_percent(5); + pub TreasuryAccount: AccountId = Treasury::account_id(); +} + +impl pallet_treasury::Config for Runtime { + type PalletId = TreasuryId; + type Currency = Balances; + + type ApproveOrigin = EnsureRoot; + type RejectOrigin = EnsureRoot; + type RuntimeEvent = RuntimeEvent; + // If proposal gets rejected, bond goes to treasury + type OnSlash = Treasury; + type ProposalBond = ProposalBond; + type ProposalBondMinimum = ConstU128<{ 1 * currency::DANCE * currency::SUPPLY_FACTOR }>; + type SpendPeriod = ConstU32<{ 6 * DAYS }>; + type Burn = (); + type BurnDestination = (); + type MaxApprovals = ConstU32<100>; + type WeightInfo = pallet_treasury::weights::SubstrateWeight; + type SpendFunds = (); + type ProposalBondMaximum = (); + type SpendOrigin = frame_support::traits::NeverEnsureOrigin; // Same as Polkadot + type AssetKind = (); + type Beneficiary = AccountId; + type BeneficiaryLookup = IdentityLookup; + type Paymaster = PayFromAccount; + type BalanceConverter = UnityAssetBalanceConversion; + type PayoutPeriod = ConstU32<0>; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = (); +} + // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( pub enum Runtime @@ -1177,6 +1254,9 @@ construct_runtime!( // InflationRewards must be after Session and AuthorInherent InflationRewards: pallet_inflation_rewards = 35, + // Treasury stuff. + Treasury: pallet_treasury::{Pallet, Storage, Config, Event, Call} = 40, + // More system support stuff RelayStorageRoots: pallet_relay_storage_roots = 60, @@ -1193,6 +1273,7 @@ mod benches { [pallet_sudo, Sudo] [pallet_proxy, Proxy] [pallet_utility, Utility] + [pallet_treasury, Treasury] [pallet_tx_pause, TxPause] [pallet_balances, Balances] [pallet_identity, Identity] diff --git a/test/suites/common-tanssi/fees/test_fee_balance_transfer.ts b/test/suites/common-tanssi/fees/test_fee_balance_transfer.ts index 083c31c7f..e4681fcf0 100644 --- a/test/suites/common-tanssi/fees/test_fee_balance_transfer.ts +++ b/test/suites/common-tanssi/fees/test_fee_balance_transfer.ts @@ -171,7 +171,7 @@ describeSuite({ it({ id: "E04", - title: "Fees are burned", + title: "80% of Fees are burned", test: async function () { const totalSupplyBefore = (await polkadotJs.query.balances.totalIssuance()).toBigInt(); const balanceBefore = (await polkadotJs.query.system.account(alice.address)).data.free.toBigInt(); @@ -194,7 +194,7 @@ describeSuite({ const totalSupplyAfter = (await polkadotJs.query.balances.totalIssuance()).toBigInt(); - expect(totalSupplyAfter - totalSupplyBefore).to.equal(issuance - fee); + expect(totalSupplyAfter - totalSupplyBefore).to.equal(issuance - (fee * 4n) / 5n); }, }); diff --git a/test/suites/common-tanssi/pallet-treasury/test_pallet_treasury.ts b/test/suites/common-tanssi/pallet-treasury/test_pallet_treasury.ts new file mode 100644 index 000000000..f35da9933 --- /dev/null +++ b/test/suites/common-tanssi/pallet-treasury/test_pallet_treasury.ts @@ -0,0 +1,183 @@ +import "@tanssi/api-augment"; +import { describeSuite, expect, beforeAll } from "@moonwall/cli"; +import { ApiPromise } from "@polkadot/api"; +import { KeyringPair } from "@moonwall/util"; +import { extractFeeAuthor } from "util/block"; + +describeSuite({ + id: "CT0901", + title: "Treasury pallet test suite", + foundationMethods: "dev", + + testCases: ({ it, context }) => { + let polkadotJs: ApiPromise; + let sudo_alice: KeyringPair; + let user_charlie: KeyringPair; + let user_dave: KeyringPair; + let user_bob: KeyringPair; + // From Pallet Id "tns/tsry" -> Account + const treasury_address = "5EYCAe5jXiVvytpxmBupXPCNE9Vduq7gPeTwy9xMgQtKWMnR"; + + beforeAll(async () => { + polkadotJs = context.polkadotJs(); + sudo_alice = context.keyring.alice; + user_charlie = context.keyring.charlie; + user_dave = context.keyring.dave; + user_bob = context.keyring.bob; + }); + + it({ + id: "E01", + title: "20% of fees & tips go for treasury account", + test: async function () { + // Gets the initial pot deposit value + const initial_pot = await polkadotJs.query.system.account(treasury_address); + const initial_free_pot = initial_pot.data.free.toBigInt(); + + // Executes a tx adding an additional tip + const tx = polkadotJs.tx.balances.transferAllowDeath(user_charlie.address, 200_000); + const signedTx = await tx.signAsync(user_dave, { tip: 100_000 }); + await context.createBlock([signedTx]); + const events = await polkadotJs.query.system.events(); + const fee = extractFeeAuthor(events, user_dave.address).amount.toBigInt(); + + // Gets the new pot deposit value + const new_pot = await polkadotJs.query.system.account(treasury_address); + const new_free_pot = new_pot.data.free.toBigInt(); + + // Division operation rounding + const rounding = fee % 5n > 0 ? 1n : 0n; + + // Treasury pot should increase by 20% of the paid fee & tip + expect(new_free_pot).to.be.equal(initial_free_pot + fee / 5n + rounding); + }, + }); + + it({ + id: "E02", + title: "Create proposal locks minimum bond from proposer", + test: async function () { + // Gets the initial reserved amount from the proposer + const proposer_initial_balance = await polkadotJs.query.system.account(user_charlie.address); + const proposer_initial_reserved_balance = proposer_initial_balance.data.reserved.toBigInt(); + + // minimum configured bond > 5% of the proposal + const tx = polkadotJs.tx.treasury.proposeSpend(1, user_dave.address); + const signedTx = await tx.signAsync(user_charlie); + await context.createBlock([signedTx]); + + const proposer_new_balance = await polkadotJs.query.system.account(user_charlie.address); + const proposer_new_reserved_balance = proposer_new_balance.data.reserved.toBigInt(); + + // reserved value should be the minimum bond + expect(proposer_new_reserved_balance).to.be.equal( + proposer_initial_reserved_balance + 1_000_000_000_000n * 100n + ); + }, + }); + + it({ + id: "E03", + title: "Create proposal locks 5% of the proposal from proposer's account", + test: async function () { + // Gets the initial reserved amount from the proposer + const proposer_initial_balance = await polkadotJs.query.system.account(user_dave.address); + const proposer_initial_reserved_balance = proposer_initial_balance.data.reserved.toBigInt(); + + // minimum configured bond > 5% of the proposal + const proposal_value = 1_000_000_000_000_000_000n; + const tx = polkadotJs.tx.treasury.proposeSpend(proposal_value, user_charlie.address); + const signedTx = await tx.signAsync(user_dave); + await context.createBlock([signedTx]); + + const proposer_new_balance = await polkadotJs.query.system.account(user_dave.address); + const proposer_new_reserved_balance = proposer_new_balance.data.reserved.toBigInt(); + + // reserved value should be 5% from the total amount requested in the proposal + expect(proposer_new_reserved_balance).to.be.equal( + proposer_initial_reserved_balance + (proposal_value * 5n) / 100n + ); + }, + }); + + it({ + id: "E04", + title: "Bond goes to treasury upon proposal rejection", + test: async function () { + // Gets the initial pot deposit value + const initial_pot = await polkadotJs.query.system.account(treasury_address); + const initial_free_pot = initial_pot.data.free.toBigInt(); + + // Creates a proposal + const proposal_value = 1_000_000_000_000_000_000n; + const tx = polkadotJs.tx.treasury.proposeSpend(proposal_value, user_dave.address); + const signedTx = await tx.signAsync(user_bob); + await context.createBlock([signedTx]); + + // Proposal is rejected + const tx_rejection = polkadotJs.tx.treasury.rejectProposal(2); + const signedTx_rejection = await polkadotJs.tx.sudo.sudo(tx_rejection).signAsync(sudo_alice); + await context.createBlock([signedTx_rejection]); + + // Gets the after rejection pot deposit value + const new_pot = await polkadotJs.query.system.account(treasury_address); + const new_free_pot = new_pot.data.free.toBigInt(); + + // Pot value should be >= the initial value + reserved proposal bond + expect(new_free_pot).toBeGreaterThan(initial_free_pot + (proposal_value * 5n) / 100n); + }, + }); + + it({ + id: "E05", + title: "Proposal is approved", + test: async function () { + // initial approvals count + const initial_approvals_count = await context.polkadotJs().query.treasury.approvals(); + + // Creates a proposal + const proposal_value = 100n; + const tx = polkadotJs.tx.treasury.proposeSpend(proposal_value, user_dave.address); + const signedTx = await tx.signAsync(user_bob); + await context.createBlock([signedTx]); + + // Proposal is approved + const tx_approval = polkadotJs.tx.treasury.approveProposal(3); + const signedTx_approval = await polkadotJs.tx.sudo.sudo(tx_approval).signAsync(sudo_alice); + await context.createBlock([signedTx_approval]); + + // New approvals count + const new_approvals_count = await context.polkadotJs().query.treasury.approvals(); + + // There should be 1 new approval + expect(new_approvals_count.length).to.be.equal(initial_approvals_count.length + 1); + }, + }); + + it({ + id: "E06", + title: "Non root can not approve proposals", + test: async function () { + // initial approvals count + const initial_approvals_count = await context.polkadotJs().query.treasury.approvals(); + + // Creates a proposal + const proposal_value = 100n; + const tx = polkadotJs.tx.treasury.proposeSpend(proposal_value, user_dave.address); + const signedTx = await tx.signAsync(user_bob); + await context.createBlock([signedTx]); + + // Proposal is approved + const tx_approval = polkadotJs.tx.treasury.approveProposal(4); + const signedTx_approval = await tx_approval.signAsync(user_charlie); + await context.createBlock([signedTx_approval]); + + // New approvals count + const new_approvals_count = await context.polkadotJs().query.treasury.approvals(); + + // There should be no new approvals + expect(new_approvals_count.length).to.be.equal(initial_approvals_count.length); + }, + }); + }, +}); diff --git a/typescript-api/src/dancebox/interfaces/augment-api-consts.ts b/typescript-api/src/dancebox/interfaces/augment-api-consts.ts index 748e4c31c..76fbec8fc 100644 --- a/typescript-api/src/dancebox/interfaces/augment-api-consts.ts +++ b/typescript-api/src/dancebox/interfaces/augment-api-consts.ts @@ -6,9 +6,11 @@ import "@polkadot/api-base/types/consts"; import type { ApiTypes, AugmentedConst } from "@polkadot/api-base/types"; -import type { u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; +import type { Option, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; import type { Codec } from "@polkadot/types-codec/types"; +import type { Permill } from "@polkadot/types/interfaces/runtime"; import type { + FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, @@ -198,6 +200,33 @@ declare module "@polkadot/api-base/types/consts" { /** Generic const */ [key: string]: Codec; }; + treasury: { + /** Percentage of spare funds (if any) that are burnt per spend period. */ + burn: Permill & AugmentedConst; + /** + * The maximum number of approvals that can wait in the spending queue. + * + * NOTE: This parameter is also used within the Bounties Pallet extension if enabled. + */ + maxApprovals: u32 & AugmentedConst; + /** The treasury's pallet id, used for deriving its sovereign account ID. */ + palletId: FrameSupportPalletId & AugmentedConst; + /** The period during which an approved treasury spend has to be claimed. */ + payoutPeriod: u32 & AugmentedConst; + /** + * Fraction of a proposal's value that should be bonded in order to place the proposal. An accepted proposal gets + * these back. A rejected proposal does not. + */ + proposalBond: Permill & AugmentedConst; + /** Maximum amount of funds that should be placed in a deposit for making a proposal. */ + proposalBondMaximum: Option & AugmentedConst; + /** Minimum amount of funds that should be placed in a deposit for making a proposal. */ + proposalBondMinimum: u128 & AugmentedConst; + /** Period between successive spends. */ + spendPeriod: u32 & AugmentedConst; + /** Generic const */ + [key: string]: Codec; + }; txPause: { /** * Maximum length for pallet name and call name SCALE encoded string names. diff --git a/typescript-api/src/dancebox/interfaces/augment-api-errors.ts b/typescript-api/src/dancebox/interfaces/augment-api-errors.ts index 7728773e8..1b3864e99 100644 --- a/typescript-api/src/dancebox/interfaces/augment-api-errors.ts +++ b/typescript-api/src/dancebox/interfaces/augment-api-errors.ts @@ -392,6 +392,34 @@ declare module "@polkadot/api-base/types/errors" { /** Generic error */ [key: string]: AugmentedError; }; + treasury: { + /** The payment has already been attempted. */ + AlreadyAttempted: AugmentedError; + /** The spend is not yet eligible for payout. */ + EarlyPayout: AugmentedError; + /** The balance of the asset kind is not convertible to the balance of the native asset. */ + FailedToConvertBalance: AugmentedError; + /** The payment has neither failed nor succeeded yet. */ + Inconclusive: AugmentedError; + /** The spend origin is valid but the amount it is allowed to spend is lower than the amount to be spent. */ + InsufficientPermission: AugmentedError; + /** Proposer's balance is too low. */ + InsufficientProposersBalance: AugmentedError; + /** No proposal, bounty or spend at that index. */ + InvalidIndex: AugmentedError; + /** The payout was not yet attempted/claimed. */ + NotAttempted: AugmentedError; + /** There was some issue with the mechanism of payment. */ + PayoutError: AugmentedError; + /** Proposal has not been approved. */ + ProposalNotApproved: AugmentedError; + /** The spend has expired and cannot be claimed. */ + SpendExpired: AugmentedError; + /** Too many approvals in the queue. */ + TooManyApprovals: AugmentedError; + /** Generic error */ + [key: string]: AugmentedError; + }; txPause: { /** The call is paused. */ IsPaused: AugmentedError; diff --git a/typescript-api/src/dancebox/interfaces/augment-api-events.ts b/typescript-api/src/dancebox/interfaces/augment-api-events.ts index dd648dbb3..0800f750b 100644 --- a/typescript-api/src/dancebox/interfaces/augment-api-events.ts +++ b/typescript-api/src/dancebox/interfaces/augment-api-events.ts @@ -1004,6 +1004,58 @@ declare module "@polkadot/api-base/types/events" { /** Generic event */ [key: string]: AugmentedEvent; }; + treasury: { + /** A new asset spend proposal has been approved. */ + AssetSpendApproved: AugmentedEvent< + ApiType, + [index: u32, assetKind: Null, amount: u128, beneficiary: AccountId32, validFrom: u32, expireAt: u32], + { index: u32; assetKind: Null; amount: u128; beneficiary: AccountId32; validFrom: u32; expireAt: u32 } + >; + /** An approved spend was voided. */ + AssetSpendVoided: AugmentedEvent; + /** Some funds have been allocated. */ + Awarded: AugmentedEvent< + ApiType, + [proposalIndex: u32, award: u128, account: AccountId32], + { proposalIndex: u32; award: u128; account: AccountId32 } + >; + /** Some of our funds have been burnt. */ + Burnt: AugmentedEvent; + /** Some funds have been deposited. */ + Deposit: AugmentedEvent; + /** A payment happened. */ + Paid: AugmentedEvent; + /** A payment failed and can be retried. */ + PaymentFailed: AugmentedEvent; + /** New proposal. */ + Proposed: AugmentedEvent; + /** A proposal was rejected; funds were slashed. */ + Rejected: AugmentedEvent< + ApiType, + [proposalIndex: u32, slashed: u128], + { proposalIndex: u32; slashed: u128 } + >; + /** Spending has finished; this is the amount that rolls over until next spend. */ + Rollover: AugmentedEvent; + /** A new spend proposal has been approved. */ + SpendApproved: AugmentedEvent< + ApiType, + [proposalIndex: u32, amount: u128, beneficiary: AccountId32], + { proposalIndex: u32; amount: u128; beneficiary: AccountId32 } + >; + /** We have ended a spend period and will now allocate funds. */ + Spending: AugmentedEvent; + /** A spend was processed and removed from the storage. It might have been successfully paid or it may have expired. */ + SpendProcessed: AugmentedEvent; + /** The inactive funds of the pallet have been updated. */ + UpdatedInactive: AugmentedEvent< + ApiType, + [reactivated: u128, deactivated: u128], + { reactivated: u128; deactivated: u128 } + >; + /** Generic event */ + [key: string]: AugmentedEvent; + }; txPause: { /** This pallet, or a specific call is now paused. */ CallPaused: AugmentedEvent< diff --git a/typescript-api/src/dancebox/interfaces/augment-api-query.ts b/typescript-api/src/dancebox/interfaces/augment-api-query.ts index 90e5deeb3..af7c1d627 100644 --- a/typescript-api/src/dancebox/interfaces/augment-api-query.ts +++ b/typescript-api/src/dancebox/interfaces/augment-api-query.ts @@ -63,6 +63,8 @@ import type { PalletProxyProxyDefinition, PalletRegistrarDepositInfo, PalletTransactionPaymentReleases, + PalletTreasuryProposal, + PalletTreasurySpendStatus, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, @@ -1090,6 +1092,32 @@ declare module "@polkadot/api-base/types/storage" { /** Generic query */ [key: string]: QueryableStorageEntry; }; + treasury: { + /** Proposal indices that have been approved but not yet awarded. */ + approvals: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** The amount which has been reported as inactive to Currency. */ + deactivated: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** Number of proposals that have been made. */ + proposalCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** Proposals that have been made. */ + proposals: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** The count of spends that have been made. */ + spendCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** Spends that have been approved and being processed. */ + spends: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** Generic query */ + [key: string]: QueryableStorageEntry; + }; txPause: { /** The set of calls that are explicitly paused. */ pausedCalls: AugmentedQuery< diff --git a/typescript-api/src/dancebox/interfaces/augment-api-tx.ts b/typescript-api/src/dancebox/interfaces/augment-api-tx.ts index 5766f5cc7..e90418c68 100644 --- a/typescript-api/src/dancebox/interfaces/augment-api-tx.ts +++ b/typescript-api/src/dancebox/interfaces/augment-api-tx.ts @@ -12,7 +12,7 @@ import type { SubmittableExtrinsicFunction, } from "@polkadot/api-base/types"; import type { Data } from "@polkadot/types"; -import type { Bytes, Compact, Option, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; +import type { Bytes, Compact, Null, Option, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types"; import type { AccountId32, Call, H256, MultiAddress, Perbill } from "@polkadot/types/interfaces/runtime"; import type { @@ -1706,6 +1706,79 @@ declare module "@polkadot/api-base/types/submittable" { /** Generic tx */ [key: string]: SubmittableExtrinsicFunction; }; + treasury: { + /** See [`Pallet::approve_proposal`]. */ + approveProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** See [`Pallet::check_status`]. */ + checkStatus: AugmentedSubmittable< + (index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** See [`Pallet::payout`]. */ + payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** See [`Pallet::propose_spend`]. */ + proposeSpend: AugmentedSubmittable< + ( + value: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** See [`Pallet::reject_proposal`]. */ + rejectProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** See [`Pallet::remove_approval`]. */ + removeApproval: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** See [`Pallet::spend`]. */ + spend: AugmentedSubmittable< + ( + assetKind: Null | null, + amount: Compact | AnyNumber | Uint8Array, + beneficiary: AccountId32 | string | Uint8Array, + validFrom: Option | null | Uint8Array | u32 | AnyNumber + ) => SubmittableExtrinsic, + [Null, Compact, AccountId32, Option] + >; + /** See [`Pallet::spend_local`]. */ + spendLocal: AugmentedSubmittable< + ( + amount: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** See [`Pallet::void_spend`]. */ + voidSpend: AugmentedSubmittable< + (index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** Generic tx */ + [key: string]: SubmittableExtrinsicFunction; + }; txPause: { /** See [`Pallet::pause`]. */ pause: AugmentedSubmittable< diff --git a/typescript-api/src/dancebox/interfaces/lookup.ts b/typescript-api/src/dancebox/interfaces/lookup.ts index ad3b46a89..8cd19ffdc 100644 --- a/typescript-api/src/dancebox/interfaces/lookup.ts +++ b/typescript-api/src/dancebox/interfaces/lookup.ts @@ -636,7 +636,67 @@ export default { }, }, }, - /** Lookup63: cumulus_pallet_xcmp_queue::pallet::Event */ + /** Lookup63: pallet_treasury::pallet::Event */ + PalletTreasuryEvent: { + _enum: { + Proposed: { + proposalIndex: "u32", + }, + Spending: { + budgetRemaining: "u128", + }, + Awarded: { + proposalIndex: "u32", + award: "u128", + account: "AccountId32", + }, + Rejected: { + proposalIndex: "u32", + slashed: "u128", + }, + Burnt: { + burntFunds: "u128", + }, + Rollover: { + rolloverBalance: "u128", + }, + Deposit: { + value: "u128", + }, + SpendApproved: { + proposalIndex: "u32", + amount: "u128", + beneficiary: "AccountId32", + }, + UpdatedInactive: { + reactivated: "u128", + deactivated: "u128", + }, + AssetSpendApproved: { + index: "u32", + assetKind: "Null", + amount: "u128", + beneficiary: "AccountId32", + validFrom: "u32", + expireAt: "u32", + }, + AssetSpendVoided: { + index: "u32", + }, + Paid: { + index: "u32", + paymentId: "Null", + }, + PaymentFailed: { + index: "u32", + paymentId: "Null", + }, + SpendProcessed: { + index: "u32", + }, + }, + }, + /** Lookup64: cumulus_pallet_xcmp_queue::pallet::Event */ CumulusPalletXcmpQueueEvent: { _enum: { Success: { @@ -671,7 +731,7 @@ export default { }, }, }, - /** Lookup64: xcm::v3::traits::Error */ + /** Lookup65: xcm::v3::traits::Error */ XcmV3TraitsError: { _enum: { Overflow: "Null", @@ -716,7 +776,7 @@ export default { ExceedsStackLimit: "Null", }, }, - /** Lookup65: cumulus_pallet_xcm::pallet::Event */ + /** Lookup66: cumulus_pallet_xcm::pallet::Event */ CumulusPalletXcmEvent: { _enum: { InvalidFormat: "[u8;32]", @@ -724,7 +784,7 @@ export default { ExecutedDownward: "([u8;32],XcmV3TraitsOutcome)", }, }, - /** Lookup66: xcm::v3::traits::Outcome */ + /** Lookup67: xcm::v3::traits::Outcome */ XcmV3TraitsOutcome: { _enum: { Complete: "SpWeightsWeightV2Weight", @@ -732,7 +792,7 @@ export default { Error: "XcmV3TraitsError", }, }, - /** Lookup67: cumulus_pallet_dmp_queue::pallet::Event */ + /** Lookup68: cumulus_pallet_dmp_queue::pallet::Event */ CumulusPalletDmpQueueEvent: { _enum: { InvalidFormat: { @@ -767,7 +827,7 @@ export default { }, }, }, - /** Lookup68: pallet_xcm::pallet::Event */ + /** Lookup69: pallet_xcm::pallet::Event */ PalletXcmEvent: { _enum: { Attempted: { @@ -887,12 +947,12 @@ export default { }, }, }, - /** Lookup69: staging_xcm::v3::multilocation::MultiLocation */ + /** Lookup70: staging_xcm::v3::multilocation::MultiLocation */ StagingXcmV3MultiLocation: { parents: "u8", interior: "XcmV3Junctions", }, - /** Lookup70: xcm::v3::junctions::Junctions */ + /** Lookup71: xcm::v3::junctions::Junctions */ XcmV3Junctions: { _enum: { Here: "Null", @@ -906,7 +966,7 @@ export default { X8: "(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)", }, }, - /** Lookup71: xcm::v3::junction::Junction */ + /** Lookup72: xcm::v3::junction::Junction */ XcmV3Junction: { _enum: { Parachain: "Compact", @@ -936,7 +996,7 @@ export default { GlobalConsensus: "XcmV3JunctionNetworkId", }, }, - /** Lookup74: xcm::v3::junction::NetworkId */ + /** Lookup75: xcm::v3::junction::NetworkId */ XcmV3JunctionNetworkId: { _enum: { ByGenesis: "[u8;32]", @@ -956,7 +1016,7 @@ export default { BitcoinCash: "Null", }, }, - /** Lookup77: xcm::v3::junction::BodyId */ + /** Lookup78: xcm::v3::junction::BodyId */ XcmV3JunctionBodyId: { _enum: { Unit: "Null", @@ -971,7 +1031,7 @@ export default { Treasury: "Null", }, }, - /** Lookup78: xcm::v3::junction::BodyPart */ + /** Lookup79: xcm::v3::junction::BodyPart */ XcmV3JunctionBodyPart: { _enum: { Voice: "Null", @@ -992,9 +1052,9 @@ export default { }, }, }, - /** Lookup79: xcm::v3::Xcm */ + /** Lookup80: xcm::v3::Xcm */ XcmV3Xcm: "Vec", - /** Lookup81: xcm::v3::Instruction */ + /** Lookup82: xcm::v3::Instruction */ XcmV3Instruction: { _enum: { WithdrawAsset: "XcmV3MultiassetMultiAssets", @@ -1134,28 +1194,28 @@ export default { }, }, }, - /** Lookup82: xcm::v3::multiasset::MultiAssets */ + /** Lookup83: xcm::v3::multiasset::MultiAssets */ XcmV3MultiassetMultiAssets: "Vec", - /** Lookup84: xcm::v3::multiasset::MultiAsset */ + /** Lookup85: xcm::v3::multiasset::MultiAsset */ XcmV3MultiAsset: { id: "XcmV3MultiassetAssetId", fun: "XcmV3MultiassetFungibility", }, - /** Lookup85: xcm::v3::multiasset::AssetId */ + /** Lookup86: xcm::v3::multiasset::AssetId */ XcmV3MultiassetAssetId: { _enum: { Concrete: "StagingXcmV3MultiLocation", Abstract: "[u8;32]", }, }, - /** Lookup86: xcm::v3::multiasset::Fungibility */ + /** Lookup87: xcm::v3::multiasset::Fungibility */ XcmV3MultiassetFungibility: { _enum: { Fungible: "Compact", NonFungible: "XcmV3MultiassetAssetInstance", }, }, - /** Lookup87: xcm::v3::multiasset::AssetInstance */ + /** Lookup88: xcm::v3::multiasset::AssetInstance */ XcmV3MultiassetAssetInstance: { _enum: { Undefined: "Null", @@ -1166,7 +1226,7 @@ export default { Array32: "[u8;32]", }, }, - /** Lookup90: xcm::v3::Response */ + /** Lookup91: xcm::v3::Response */ XcmV3Response: { _enum: { Null: "Null", @@ -1177,7 +1237,7 @@ export default { DispatchResult: "XcmV3MaybeErrorCode", }, }, - /** Lookup94: xcm::v3::PalletInfo */ + /** Lookup95: xcm::v3::PalletInfo */ XcmV3PalletInfo: { index: "Compact", name: "Bytes", @@ -1186,7 +1246,7 @@ export default { minor: "Compact", patch: "Compact", }, - /** Lookup97: xcm::v3::MaybeErrorCode */ + /** Lookup98: xcm::v3::MaybeErrorCode */ XcmV3MaybeErrorCode: { _enum: { Success: "Null", @@ -1194,28 +1254,28 @@ export default { TruncatedError: "Bytes", }, }, - /** Lookup100: xcm::v2::OriginKind */ + /** Lookup101: xcm::v2::OriginKind */ XcmV2OriginKind: { _enum: ["Native", "SovereignAccount", "Superuser", "Xcm"], }, - /** Lookup101: xcm::double_encoded::DoubleEncoded */ + /** Lookup102: xcm::double_encoded::DoubleEncoded */ XcmDoubleEncoded: { encoded: "Bytes", }, - /** Lookup102: xcm::v3::QueryResponseInfo */ + /** Lookup103: xcm::v3::QueryResponseInfo */ XcmV3QueryResponseInfo: { destination: "StagingXcmV3MultiLocation", queryId: "Compact", maxWeight: "SpWeightsWeightV2Weight", }, - /** Lookup103: xcm::v3::multiasset::MultiAssetFilter */ + /** Lookup104: xcm::v3::multiasset::MultiAssetFilter */ XcmV3MultiassetMultiAssetFilter: { _enum: { Definite: "XcmV3MultiassetMultiAssets", Wild: "XcmV3MultiassetWildMultiAsset", }, }, - /** Lookup104: xcm::v3::multiasset::WildMultiAsset */ + /** Lookup105: xcm::v3::multiasset::WildMultiAsset */ XcmV3MultiassetWildMultiAsset: { _enum: { All: "Null", @@ -1231,18 +1291,18 @@ export default { }, }, }, - /** Lookup105: xcm::v3::multiasset::WildFungibility */ + /** Lookup106: xcm::v3::multiasset::WildFungibility */ XcmV3MultiassetWildFungibility: { _enum: ["Fungible", "NonFungible"], }, - /** Lookup106: xcm::v3::WeightLimit */ + /** Lookup107: xcm::v3::WeightLimit */ XcmV3WeightLimit: { _enum: { Unlimited: "Null", Limited: "SpWeightsWeightV2Weight", }, }, - /** Lookup107: xcm::VersionedMultiAssets */ + /** Lookup108: xcm::VersionedMultiAssets */ XcmVersionedMultiAssets: { _enum: { __Unused0: "Null", @@ -1251,26 +1311,26 @@ export default { V3: "XcmV3MultiassetMultiAssets", }, }, - /** Lookup108: xcm::v2::multiasset::MultiAssets */ + /** Lookup109: xcm::v2::multiasset::MultiAssets */ XcmV2MultiassetMultiAssets: "Vec", - /** Lookup110: xcm::v2::multiasset::MultiAsset */ + /** Lookup111: xcm::v2::multiasset::MultiAsset */ XcmV2MultiAsset: { id: "XcmV2MultiassetAssetId", fun: "XcmV2MultiassetFungibility", }, - /** Lookup111: xcm::v2::multiasset::AssetId */ + /** Lookup112: xcm::v2::multiasset::AssetId */ XcmV2MultiassetAssetId: { _enum: { Concrete: "XcmV2MultiLocation", Abstract: "Bytes", }, }, - /** Lookup112: xcm::v2::multilocation::MultiLocation */ + /** Lookup113: xcm::v2::multilocation::MultiLocation */ XcmV2MultiLocation: { parents: "u8", interior: "XcmV2MultilocationJunctions", }, - /** Lookup113: xcm::v2::multilocation::Junctions */ + /** Lookup114: xcm::v2::multilocation::Junctions */ XcmV2MultilocationJunctions: { _enum: { Here: "Null", @@ -1284,7 +1344,7 @@ export default { X8: "(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)", }, }, - /** Lookup114: xcm::v2::junction::Junction */ + /** Lookup115: xcm::v2::junction::Junction */ XcmV2Junction: { _enum: { Parachain: "Compact", @@ -1310,7 +1370,7 @@ export default { }, }, }, - /** Lookup115: xcm::v2::NetworkId */ + /** Lookup116: xcm::v2::NetworkId */ XcmV2NetworkId: { _enum: { Any: "Null", @@ -1319,7 +1379,7 @@ export default { Kusama: "Null", }, }, - /** Lookup117: xcm::v2::BodyId */ + /** Lookup118: xcm::v2::BodyId */ XcmV2BodyId: { _enum: { Unit: "Null", @@ -1334,7 +1394,7 @@ export default { Treasury: "Null", }, }, - /** Lookup118: xcm::v2::BodyPart */ + /** Lookup119: xcm::v2::BodyPart */ XcmV2BodyPart: { _enum: { Voice: "Null", @@ -1355,14 +1415,14 @@ export default { }, }, }, - /** Lookup119: xcm::v2::multiasset::Fungibility */ + /** Lookup120: xcm::v2::multiasset::Fungibility */ XcmV2MultiassetFungibility: { _enum: { Fungible: "Compact", NonFungible: "XcmV2MultiassetAssetInstance", }, }, - /** Lookup120: xcm::v2::multiasset::AssetInstance */ + /** Lookup121: xcm::v2::multiasset::AssetInstance */ XcmV2MultiassetAssetInstance: { _enum: { Undefined: "Null", @@ -1374,7 +1434,7 @@ export default { Blob: "Bytes", }, }, - /** Lookup121: xcm::VersionedMultiLocation */ + /** Lookup122: xcm::VersionedMultiLocation */ XcmVersionedMultiLocation: { _enum: { __Unused0: "Null", @@ -1383,7 +1443,7 @@ export default { V3: "StagingXcmV3MultiLocation", }, }, - /** Lookup122: pallet_assets::pallet::Event */ + /** Lookup123: pallet_assets::pallet::Event */ PalletAssetsEvent: { _enum: { Created: { @@ -1497,7 +1557,7 @@ export default { }, }, }, - /** Lookup123: pallet_foreign_asset_creator::pallet::Event */ + /** Lookup124: pallet_foreign_asset_creator::pallet::Event */ PalletForeignAssetCreatorEvent: { _enum: { ForeignAssetCreated: { @@ -1518,7 +1578,7 @@ export default { }, }, }, - /** Lookup124: pallet_asset_rate::pallet::Event */ + /** Lookup125: pallet_asset_rate::pallet::Event */ PalletAssetRateEvent: { _enum: { AssetRateCreated: { @@ -1538,7 +1598,7 @@ export default { }, }, }, - /** Lookup126: frame_system::Phase */ + /** Lookup127: frame_system::Phase */ FrameSystemPhase: { _enum: { ApplyExtrinsic: "u32", @@ -1546,12 +1606,12 @@ export default { Initialization: "Null", }, }, - /** Lookup130: frame_system::LastRuntimeUpgradeInfo */ + /** Lookup131: frame_system::LastRuntimeUpgradeInfo */ FrameSystemLastRuntimeUpgradeInfo: { specVersion: "Compact", specName: "Text", }, - /** Lookup132: frame_system::pallet::Call */ + /** Lookup133: frame_system::pallet::Call */ FrameSystemCall: { _enum: { remark: { @@ -1584,41 +1644,41 @@ export default { }, }, }, - /** Lookup136: frame_system::limits::BlockWeights */ + /** Lookup137: frame_system::limits::BlockWeights */ FrameSystemLimitsBlockWeights: { baseBlock: "SpWeightsWeightV2Weight", maxBlock: "SpWeightsWeightV2Weight", perClass: "FrameSupportDispatchPerDispatchClassWeightsPerClass", }, - /** Lookup137: frame_support::dispatch::PerDispatchClass */ + /** Lookup138: frame_support::dispatch::PerDispatchClass */ FrameSupportDispatchPerDispatchClassWeightsPerClass: { normal: "FrameSystemLimitsWeightsPerClass", operational: "FrameSystemLimitsWeightsPerClass", mandatory: "FrameSystemLimitsWeightsPerClass", }, - /** Lookup138: frame_system::limits::WeightsPerClass */ + /** Lookup139: frame_system::limits::WeightsPerClass */ FrameSystemLimitsWeightsPerClass: { baseExtrinsic: "SpWeightsWeightV2Weight", maxExtrinsic: "Option", maxTotal: "Option", reserved: "Option", }, - /** Lookup140: frame_system::limits::BlockLength */ + /** Lookup141: frame_system::limits::BlockLength */ FrameSystemLimitsBlockLength: { max: "FrameSupportDispatchPerDispatchClassU32", }, - /** Lookup141: frame_support::dispatch::PerDispatchClass */ + /** Lookup142: frame_support::dispatch::PerDispatchClass */ FrameSupportDispatchPerDispatchClassU32: { normal: "u32", operational: "u32", mandatory: "u32", }, - /** Lookup142: sp_weights::RuntimeDbWeight */ + /** Lookup143: sp_weights::RuntimeDbWeight */ SpWeightsRuntimeDbWeight: { read: "u64", write: "u64", }, - /** Lookup143: sp_version::RuntimeVersion */ + /** Lookup144: sp_version::RuntimeVersion */ SpVersionRuntimeVersion: { specName: "Text", implName: "Text", @@ -1629,7 +1689,7 @@ export default { transactionVersion: "u32", stateVersion: "u8", }, - /** Lookup147: frame_system::pallet::Error */ + /** Lookup148: frame_system::pallet::Error */ FrameSystemError: { _enum: [ "InvalidSpecName", @@ -1640,49 +1700,49 @@ export default { "CallFiltered", ], }, - /** Lookup149: cumulus_pallet_parachain_system::unincluded_segment::Ancestor */ + /** Lookup150: cumulus_pallet_parachain_system::unincluded_segment::Ancestor */ CumulusPalletParachainSystemUnincludedSegmentAncestor: { usedBandwidth: "CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth", paraHeadHash: "Option", consumedGoAheadSignal: "Option", }, - /** Lookup150: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth */ + /** Lookup151: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth */ CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: { umpMsgCount: "u32", umpTotalBytes: "u32", hrmpOutgoing: "BTreeMap", }, - /** Lookup152: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate */ + /** Lookup153: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate */ CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: { msgCount: "u32", totalBytes: "u32", }, - /** Lookup157: polkadot_primitives::v6::UpgradeGoAhead */ + /** Lookup158: polkadot_primitives::v6::UpgradeGoAhead */ PolkadotPrimitivesV6UpgradeGoAhead: { _enum: ["Abort", "GoAhead"], }, - /** Lookup158: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker */ + /** Lookup159: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker */ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: { usedBandwidth: "CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth", hrmpWatermark: "Option", consumedGoAheadSignal: "Option", }, - /** Lookup159: polkadot_primitives::v6::PersistedValidationData */ + /** Lookup160: polkadot_primitives::v6::PersistedValidationData */ PolkadotPrimitivesV6PersistedValidationData: { parentHead: "Bytes", relayParentNumber: "u32", relayParentStorageRoot: "H256", maxPovSize: "u32", }, - /** Lookup162: polkadot_primitives::v6::UpgradeRestriction */ + /** Lookup163: polkadot_primitives::v6::UpgradeRestriction */ PolkadotPrimitivesV6UpgradeRestriction: { _enum: ["Present"], }, - /** Lookup163: sp_trie::storage_proof::StorageProof */ + /** Lookup164: sp_trie::storage_proof::StorageProof */ SpTrieStorageProof: { trieNodes: "BTreeSet", }, - /** Lookup165: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot */ + /** Lookup166: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot */ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { dmqMqcHead: "H256", relayDispatchQueueRemainingCapacity: @@ -1690,12 +1750,12 @@ export default { ingressChannels: "Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>", egressChannels: "Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>", }, - /** Lookup166: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity */ + /** Lookup167: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity */ CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: { remainingCount: "u32", remainingSize: "u32", }, - /** Lookup169: polkadot_primitives::v6::AbridgedHrmpChannel */ + /** Lookup170: polkadot_primitives::v6::AbridgedHrmpChannel */ PolkadotPrimitivesV6AbridgedHrmpChannel: { maxCapacity: "u32", maxTotalSize: "u32", @@ -1704,7 +1764,7 @@ export default { totalSize: "u32", mqcHead: "Option", }, - /** Lookup170: polkadot_primitives::v6::AbridgedHostConfiguration */ + /** Lookup171: polkadot_primitives::v6::AbridgedHostConfiguration */ PolkadotPrimitivesV6AbridgedHostConfiguration: { maxCodeSize: "u32", maxHeadDataSize: "u32", @@ -1717,22 +1777,22 @@ export default { validationUpgradeDelay: "u32", asyncBackingParams: "PolkadotPrimitivesV6AsyncBackingAsyncBackingParams", }, - /** Lookup171: polkadot_primitives::v6::async_backing::AsyncBackingParams */ + /** Lookup172: polkadot_primitives::v6::async_backing::AsyncBackingParams */ PolkadotPrimitivesV6AsyncBackingAsyncBackingParams: { maxCandidateDepth: "u32", allowedAncestryLen: "u32", }, - /** Lookup177: polkadot_core_primitives::OutboundHrmpMessage */ + /** Lookup178: polkadot_core_primitives::OutboundHrmpMessage */ PolkadotCorePrimitivesOutboundHrmpMessage: { recipient: "u32", data: "Bytes", }, - /** Lookup178: cumulus_pallet_parachain_system::CodeUpgradeAuthorization */ + /** Lookup179: cumulus_pallet_parachain_system::CodeUpgradeAuthorization */ CumulusPalletParachainSystemCodeUpgradeAuthorization: { codeHash: "H256", checkVersion: "bool", }, - /** Lookup179: cumulus_pallet_parachain_system::pallet::Call */ + /** Lookup180: cumulus_pallet_parachain_system::pallet::Call */ CumulusPalletParachainSystemCall: { _enum: { set_validation_data: { @@ -1750,24 +1810,24 @@ export default { }, }, }, - /** Lookup180: cumulus_primitives_parachain_inherent::ParachainInherentData */ + /** Lookup181: cumulus_primitives_parachain_inherent::ParachainInherentData */ CumulusPrimitivesParachainInherentParachainInherentData: { validationData: "PolkadotPrimitivesV6PersistedValidationData", relayChainState: "SpTrieStorageProof", downwardMessages: "Vec", horizontalMessages: "BTreeMap>", }, - /** Lookup182: polkadot_core_primitives::InboundDownwardMessage */ + /** Lookup183: polkadot_core_primitives::InboundDownwardMessage */ PolkadotCorePrimitivesInboundDownwardMessage: { sentAt: "u32", msg: "Bytes", }, - /** Lookup185: polkadot_core_primitives::InboundHrmpMessage */ + /** Lookup186: polkadot_core_primitives::InboundHrmpMessage */ PolkadotCorePrimitivesInboundHrmpMessage: { sentAt: "u32", data: "Bytes", }, - /** Lookup188: cumulus_pallet_parachain_system::pallet::Error */ + /** Lookup189: cumulus_pallet_parachain_system::pallet::Error */ CumulusPalletParachainSystemError: { _enum: [ "OverlappingUpgrades", @@ -1780,7 +1840,7 @@ export default { "Unauthorized", ], }, - /** Lookup189: pallet_timestamp::pallet::Call */ + /** Lookup190: pallet_timestamp::pallet::Call */ PalletTimestampCall: { _enum: { set: { @@ -1788,9 +1848,9 @@ export default { }, }, }, - /** Lookup190: parachain_info::pallet::Call */ + /** Lookup191: parachain_info::pallet::Call */ ParachainInfoCall: "Null", - /** Lookup191: pallet_sudo::pallet::Call */ + /** Lookup192: pallet_sudo::pallet::Call */ PalletSudoCall: { _enum: { sudo: { @@ -1812,7 +1872,7 @@ export default { }, }, }, - /** Lookup193: pallet_utility::pallet::Call */ + /** Lookup194: pallet_utility::pallet::Call */ PalletUtilityCall: { _enum: { batch: { @@ -1838,7 +1898,7 @@ export default { }, }, }, - /** Lookup195: dancebox_runtime::OriginCaller */ + /** Lookup196: dancebox_runtime::OriginCaller */ DanceboxRuntimeOriginCaller: { _enum: { system: "FrameSupportDispatchRawOrigin", @@ -1897,7 +1957,7 @@ export default { PolkadotXcm: "PalletXcmOrigin", }, }, - /** Lookup196: frame_support::dispatch::RawOrigin */ + /** Lookup197: frame_support::dispatch::RawOrigin */ FrameSupportDispatchRawOrigin: { _enum: { Root: "Null", @@ -1905,23 +1965,23 @@ export default { None: "Null", }, }, - /** Lookup197: cumulus_pallet_xcm::pallet::Origin */ + /** Lookup198: cumulus_pallet_xcm::pallet::Origin */ CumulusPalletXcmOrigin: { _enum: { Relay: "Null", SiblingParachain: "u32", }, }, - /** Lookup198: pallet_xcm::pallet::Origin */ + /** Lookup199: pallet_xcm::pallet::Origin */ PalletXcmOrigin: { _enum: { Xcm: "StagingXcmV3MultiLocation", Response: "StagingXcmV3MultiLocation", }, }, - /** Lookup199: sp_core::Void */ + /** Lookup200: sp_core::Void */ SpCoreVoid: "Null", - /** Lookup200: pallet_proxy::pallet::Call */ + /** Lookup201: pallet_proxy::pallet::Call */ PalletProxyCall: { _enum: { proxy: { @@ -1972,11 +2032,11 @@ export default { }, }, }, - /** Lookup204: pallet_maintenance_mode::pallet::Call */ + /** Lookup205: pallet_maintenance_mode::pallet::Call */ PalletMaintenanceModeCall: { _enum: ["enter_maintenance_mode", "resume_normal_operation"], }, - /** Lookup205: pallet_tx_pause::pallet::Call */ + /** Lookup206: pallet_tx_pause::pallet::Call */ PalletTxPauseCall: { _enum: { pause: { @@ -1987,7 +2047,7 @@ export default { }, }, }, - /** Lookup206: pallet_balances::pallet::Call */ + /** Lookup207: pallet_balances::pallet::Call */ PalletBalancesCall: { _enum: { transfer_allow_death: { @@ -2022,7 +2082,7 @@ export default { }, }, }, - /** Lookup207: pallet_identity::pallet::Call */ + /** Lookup208: pallet_identity::pallet::Call */ PalletIdentityCall: { _enum: { add_registrar: { @@ -2080,7 +2140,7 @@ export default { quit_sub: "Null", }, }, - /** Lookup208: pallet_identity::simple::IdentityInfo */ + /** Lookup209: pallet_identity::simple::IdentityInfo */ PalletIdentitySimpleIdentityInfo: { additional: "Vec<(Data,Data)>", display: "Data", @@ -2092,7 +2152,7 @@ export default { image: "Data", twitter: "Data", }, - /** Lookup244: pallet_identity::types::BitFlags */ + /** Lookup245: pallet_identity::types::BitFlags */ PalletIdentityBitFlags: { _bitLength: 64, Display: 0, @@ -2104,11 +2164,11 @@ export default { Image: 6, Twitter: 7, }, - /** Lookup245: pallet_identity::simple::IdentityField */ + /** Lookup246: pallet_identity::simple::IdentityField */ PalletIdentitySimpleIdentityField: { _enum: ["Display", "Legal", "Web", "Riot", "Email", "PgpFingerprint", "Image", "Twitter"], }, - /** Lookup246: pallet_identity::types::Judgement */ + /** Lookup247: pallet_identity::types::Judgement */ PalletIdentityJudgement: { _enum: { Unknown: "Null", @@ -2120,7 +2180,7 @@ export default { Erroneous: "Null", }, }, - /** Lookup247: pallet_registrar::pallet::Call */ + /** Lookup248: pallet_registrar::pallet::Call */ PalletRegistrarCall: { _enum: { register: { @@ -2151,7 +2211,7 @@ export default { }, }, }, - /** Lookup248: tp_container_chain_genesis_data::ContainerChainGenesisData */ + /** Lookup249: tp_container_chain_genesis_data::ContainerChainGenesisData */ TpContainerChainGenesisDataContainerChainGenesisData: { storage: "Vec", name: "Bytes", @@ -2160,28 +2220,28 @@ export default { extensions: "Bytes", properties: "TpContainerChainGenesisDataProperties", }, - /** Lookup250: tp_container_chain_genesis_data::ContainerChainGenesisDataItem */ + /** Lookup251: tp_container_chain_genesis_data::ContainerChainGenesisDataItem */ TpContainerChainGenesisDataContainerChainGenesisDataItem: { key: "Bytes", value: "Bytes", }, - /** Lookup252: tp_container_chain_genesis_data::Properties */ + /** Lookup253: tp_container_chain_genesis_data::Properties */ TpContainerChainGenesisDataProperties: { tokenMetadata: "TpContainerChainGenesisDataTokenMetadata", isEthereum: "bool", }, - /** Lookup253: tp_container_chain_genesis_data::TokenMetadata */ + /** Lookup254: tp_container_chain_genesis_data::TokenMetadata */ TpContainerChainGenesisDataTokenMetadata: { tokenSymbol: "Bytes", ss58Format: "u32", tokenDecimals: "u32", }, - /** Lookup255: tp_traits::SlotFrequency */ + /** Lookup256: tp_traits::SlotFrequency */ TpTraitsSlotFrequency: { min: "u32", max: "u32", }, - /** Lookup256: pallet_configuration::pallet::Call */ + /** Lookup257: pallet_configuration::pallet::Call */ PalletConfigurationCall: { _enum: { set_max_collators: { @@ -2276,9 +2336,9 @@ export default { }, }, }, - /** Lookup258: pallet_collator_assignment::pallet::Call */ + /** Lookup259: pallet_collator_assignment::pallet::Call */ PalletCollatorAssignmentCall: "Null", - /** Lookup259: pallet_author_noting::pallet::Call */ + /** Lookup260: pallet_author_noting::pallet::Call */ PalletAuthorNotingCall: { _enum: { set_latest_author_data: { @@ -2294,13 +2354,13 @@ export default { }, }, }, - /** Lookup260: tp_author_noting_inherent::OwnParachainInherentData */ + /** Lookup261: tp_author_noting_inherent::OwnParachainInherentData */ TpAuthorNotingInherentOwnParachainInherentData: { relayStorageProof: "SpTrieStorageProof", }, - /** Lookup261: pallet_authority_assignment::pallet::Call */ + /** Lookup262: pallet_authority_assignment::pallet::Call */ PalletAuthorityAssignmentCall: "Null", - /** Lookup262: pallet_services_payment::pallet::Call */ + /** Lookup263: pallet_services_payment::pallet::Call */ PalletServicesPaymentCall: { _enum: { purchase_credits: { @@ -2317,7 +2377,7 @@ export default { }, }, }, - /** Lookup263: pallet_data_preservers::pallet::Call */ + /** Lookup264: pallet_data_preservers::pallet::Call */ PalletDataPreserversCall: { _enum: { set_boot_nodes: { @@ -2326,7 +2386,7 @@ export default { }, }, }, - /** Lookup267: pallet_invulnerables::pallet::Call */ + /** Lookup268: pallet_invulnerables::pallet::Call */ PalletInvulnerablesCall: { _enum: { set_invulnerables: { @@ -2343,7 +2403,7 @@ export default { }, }, }, - /** Lookup268: pallet_session::pallet::Call */ + /** Lookup269: pallet_session::pallet::Call */ PalletSessionCall: { _enum: { set_keys: { @@ -2356,19 +2416,19 @@ export default { purge_keys: "Null", }, }, - /** Lookup269: dancebox_runtime::SessionKeys */ + /** Lookup270: dancebox_runtime::SessionKeys */ DanceboxRuntimeSessionKeys: { nimbus: "NimbusPrimitivesNimbusCryptoPublic", }, - /** Lookup270: nimbus_primitives::nimbus_crypto::Public */ + /** Lookup271: nimbus_primitives::nimbus_crypto::Public */ NimbusPrimitivesNimbusCryptoPublic: "SpCoreSr25519Public", - /** Lookup271: sp_core::sr25519::Public */ + /** Lookup272: sp_core::sr25519::Public */ SpCoreSr25519Public: "[u8;32]", - /** Lookup272: pallet_author_inherent::pallet::Call */ + /** Lookup273: pallet_author_inherent::pallet::Call */ PalletAuthorInherentCall: { _enum: ["kick_off_authorship_validation"], }, - /** Lookup273: pallet_pooled_staking::pallet::Call */ + /** Lookup274: pallet_pooled_staking::pallet::Call */ PalletPooledStakingCall: { _enum: { rebalance_hold: { @@ -2402,16 +2462,16 @@ export default { }, }, }, - /** Lookup274: pallet_pooled_staking::pallet::AllTargetPool */ + /** Lookup275: pallet_pooled_staking::pallet::AllTargetPool */ PalletPooledStakingAllTargetPool: { _enum: ["Joining", "AutoCompounding", "ManualRewards", "Leaving"], }, - /** Lookup276: pallet_pooled_staking::pallet::PendingOperationQuery */ + /** Lookup277: pallet_pooled_staking::pallet::PendingOperationQuery */ PalletPooledStakingPendingOperationQuery: { delegator: "AccountId32", operation: "PalletPooledStakingPendingOperationKey", }, - /** Lookup277: pallet_pooled_staking::pallet::PendingOperationKey */ + /** Lookup278: pallet_pooled_staking::pallet::PendingOperationKey */ PalletPooledStakingPendingOperationKey: { _enum: { JoiningAutoCompounding: { @@ -2428,14 +2488,51 @@ export default { }, }, }, - /** Lookup278: pallet_pooled_staking::pallet::SharesOrStake */ + /** Lookup279: pallet_pooled_staking::pallet::SharesOrStake */ PalletPooledStakingSharesOrStake: { _enum: { Shares: "u128", Stake: "u128", }, }, - /** Lookup281: cumulus_pallet_xcmp_queue::pallet::Call */ + /** Lookup282: pallet_treasury::pallet::Call */ + PalletTreasuryCall: { + _enum: { + propose_spend: { + value: "Compact", + beneficiary: "MultiAddress", + }, + reject_proposal: { + proposalId: "Compact", + }, + approve_proposal: { + proposalId: "Compact", + }, + spend_local: { + amount: "Compact", + beneficiary: "MultiAddress", + }, + remove_approval: { + proposalId: "Compact", + }, + spend: { + assetKind: "Null", + amount: "Compact", + beneficiary: "AccountId32", + validFrom: "Option", + }, + payout: { + index: "u32", + }, + check_status: { + index: "u32", + }, + void_spend: { + index: "u32", + }, + }, + }, + /** Lookup283: cumulus_pallet_xcmp_queue::pallet::Call */ CumulusPalletXcmpQueueCall: { _enum: { service_overweight: { @@ -2482,7 +2579,7 @@ export default { }, }, }, - /** Lookup282: cumulus_pallet_dmp_queue::pallet::Call */ + /** Lookup284: cumulus_pallet_dmp_queue::pallet::Call */ CumulusPalletDmpQueueCall: { _enum: { service_overweight: { @@ -2491,7 +2588,7 @@ export default { }, }, }, - /** Lookup283: pallet_xcm::pallet::Call */ + /** Lookup285: pallet_xcm::pallet::Call */ PalletXcmCall: { _enum: { send: { @@ -2546,7 +2643,7 @@ export default { }, }, }, - /** Lookup284: xcm::VersionedXcm */ + /** Lookup286: xcm::VersionedXcm */ XcmVersionedXcm: { _enum: { __Unused0: "Null", @@ -2555,9 +2652,9 @@ export default { V3: "XcmV3Xcm", }, }, - /** Lookup285: xcm::v2::Xcm */ + /** Lookup287: xcm::v2::Xcm */ XcmV2Xcm: "Vec", - /** Lookup287: xcm::v2::Instruction */ + /** Lookup289: xcm::v2::Instruction */ XcmV2Instruction: { _enum: { WithdrawAsset: "XcmV2MultiassetMultiAssets", @@ -2653,7 +2750,7 @@ export default { UnsubscribeVersion: "Null", }, }, - /** Lookup288: xcm::v2::Response */ + /** Lookup290: xcm::v2::Response */ XcmV2Response: { _enum: { Null: "Null", @@ -2662,7 +2759,7 @@ export default { Version: "u32", }, }, - /** Lookup291: xcm::v2::traits::Error */ + /** Lookup293: xcm::v2::traits::Error */ XcmV2TraitsError: { _enum: { Overflow: "Null", @@ -2693,14 +2790,14 @@ export default { WeightNotComputable: "Null", }, }, - /** Lookup292: xcm::v2::multiasset::MultiAssetFilter */ + /** Lookup294: xcm::v2::multiasset::MultiAssetFilter */ XcmV2MultiassetMultiAssetFilter: { _enum: { Definite: "XcmV2MultiassetMultiAssets", Wild: "XcmV2MultiassetWildMultiAsset", }, }, - /** Lookup293: xcm::v2::multiasset::WildMultiAsset */ + /** Lookup295: xcm::v2::multiasset::WildMultiAsset */ XcmV2MultiassetWildMultiAsset: { _enum: { All: "Null", @@ -2710,18 +2807,18 @@ export default { }, }, }, - /** Lookup294: xcm::v2::multiasset::WildFungibility */ + /** Lookup296: xcm::v2::multiasset::WildFungibility */ XcmV2MultiassetWildFungibility: { _enum: ["Fungible", "NonFungible"], }, - /** Lookup295: xcm::v2::WeightLimit */ + /** Lookup297: xcm::v2::WeightLimit */ XcmV2WeightLimit: { _enum: { Unlimited: "Null", Limited: "Compact", }, }, - /** Lookup304: pallet_assets::pallet::Call */ + /** Lookup306: pallet_assets::pallet::Call */ PalletAssetsCall: { _enum: { create: { @@ -2871,7 +2968,7 @@ export default { }, }, }, - /** Lookup305: pallet_foreign_asset_creator::pallet::Call */ + /** Lookup307: pallet_foreign_asset_creator::pallet::Call */ PalletForeignAssetCreatorCall: { _enum: { create_foreign_asset: { @@ -2893,7 +2990,7 @@ export default { }, }, }, - /** Lookup306: pallet_asset_rate::pallet::Call */ + /** Lookup308: pallet_asset_rate::pallet::Call */ PalletAssetRateCall: { _enum: { create: { @@ -2909,7 +3006,7 @@ export default { }, }, }, - /** Lookup307: pallet_root_testing::pallet::Call */ + /** Lookup309: pallet_root_testing::pallet::Call */ PalletRootTestingCall: { _enum: { fill_block: { @@ -2917,27 +3014,27 @@ export default { }, }, }, - /** Lookup308: pallet_sudo::pallet::Error */ + /** Lookup310: pallet_sudo::pallet::Error */ PalletSudoError: { _enum: ["RequireSudo"], }, - /** Lookup309: pallet_utility::pallet::Error */ + /** Lookup311: pallet_utility::pallet::Error */ PalletUtilityError: { _enum: ["TooManyCalls"], }, - /** Lookup312: pallet_proxy::ProxyDefinition */ + /** Lookup314: pallet_proxy::ProxyDefinition */ PalletProxyProxyDefinition: { delegate: "AccountId32", proxyType: "DanceboxRuntimeProxyType", delay: "u32", }, - /** Lookup316: pallet_proxy::Announcement */ + /** Lookup318: pallet_proxy::Announcement */ PalletProxyAnnouncement: { real: "AccountId32", callHash: "H256", height: "u32", }, - /** Lookup318: pallet_proxy::pallet::Error */ + /** Lookup320: pallet_proxy::pallet::Error */ PalletProxyError: { _enum: [ "TooMany", @@ -2950,34 +3047,34 @@ export default { "NoSelfProxy", ], }, - /** Lookup319: pallet_migrations::pallet::Error */ + /** Lookup321: pallet_migrations::pallet::Error */ PalletMigrationsError: { _enum: ["PreimageMissing", "WrongUpperBound", "PreimageIsTooBig", "PreimageAlreadyExists"], }, - /** Lookup320: pallet_maintenance_mode::pallet::Error */ + /** Lookup322: pallet_maintenance_mode::pallet::Error */ PalletMaintenanceModeError: { _enum: ["AlreadyInMaintenanceMode", "NotInMaintenanceMode"], }, - /** Lookup321: pallet_tx_pause::pallet::Error */ + /** Lookup323: pallet_tx_pause::pallet::Error */ PalletTxPauseError: { _enum: ["IsPaused", "IsUnpaused", "Unpausable", "NotFound"], }, - /** Lookup323: pallet_balances::types::BalanceLock */ + /** Lookup325: pallet_balances::types::BalanceLock */ PalletBalancesBalanceLock: { id: "[u8;8]", amount: "u128", reasons: "PalletBalancesReasons", }, - /** Lookup324: pallet_balances::types::Reasons */ + /** Lookup326: pallet_balances::types::Reasons */ PalletBalancesReasons: { _enum: ["Fee", "Misc", "All"], }, - /** Lookup327: pallet_balances::types::ReserveData */ + /** Lookup329: pallet_balances::types::ReserveData */ PalletBalancesReserveData: { id: "[u8;8]", amount: "u128", }, - /** Lookup331: dancebox_runtime::RuntimeHoldReason */ + /** Lookup333: dancebox_runtime::RuntimeHoldReason */ DanceboxRuntimeRuntimeHoldReason: { _enum: { __Unused0: "Null", @@ -3017,16 +3114,16 @@ export default { PooledStaking: "PalletPooledStakingHoldReason", }, }, - /** Lookup332: pallet_pooled_staking::pallet::HoldReason */ + /** Lookup334: pallet_pooled_staking::pallet::HoldReason */ PalletPooledStakingHoldReason: { _enum: ["PooledStake"], }, - /** Lookup335: pallet_balances::types::IdAmount */ + /** Lookup337: pallet_balances::types::IdAmount */ PalletBalancesIdAmount: { id: "[u8;8]", amount: "u128", }, - /** Lookup337: pallet_balances::pallet::Error */ + /** Lookup339: pallet_balances::pallet::Error */ PalletBalancesError: { _enum: [ "VestingBalance", @@ -3041,18 +3138,18 @@ export default { "TooManyFreezes", ], }, - /** Lookup338: pallet_transaction_payment::Releases */ + /** Lookup340: pallet_transaction_payment::Releases */ PalletTransactionPaymentReleases: { _enum: ["V1Ancient", "V2"], }, - /** Lookup339: pallet_identity::types::Registration> */ + /** Lookup341: pallet_identity::types::Registration> */ PalletIdentityRegistration: { judgements: "Vec<(u32,PalletIdentityJudgement)>", deposit: "u128", info: "PalletIdentitySimpleIdentityInfo", }, /** - * Lookup347: pallet_identity::types::RegistrarInfo */ PalletIdentityRegistrarInfo: { @@ -3060,7 +3157,7 @@ export default { fee: "u128", fields: "PalletIdentityBitFlags", }, - /** Lookup349: pallet_identity::pallet::Error */ + /** Lookup351: pallet_identity::pallet::Error */ PalletIdentityError: { _enum: [ "TooManySubAccounts", @@ -3083,16 +3180,16 @@ export default { "JudgementPaymentFailed", ], }, - /** Lookup354: tp_traits::ParathreadParams */ + /** Lookup356: tp_traits::ParathreadParams */ TpTraitsParathreadParams: { slotFrequency: "TpTraitsSlotFrequency", }, - /** Lookup360: pallet_registrar::pallet::DepositInfo */ + /** Lookup362: pallet_registrar::pallet::DepositInfo */ PalletRegistrarDepositInfo: { creator: "AccountId32", deposit: "u128", }, - /** Lookup361: pallet_registrar::pallet::Error */ + /** Lookup363: pallet_registrar::pallet::Error */ PalletRegistrarError: { _enum: [ "ParaIdAlreadyRegistered", @@ -3107,7 +3204,7 @@ export default { "NotAParathread", ], }, - /** Lookup362: pallet_configuration::HostConfiguration */ + /** Lookup364: pallet_configuration::HostConfiguration */ PalletConfigurationHostConfiguration: { maxCollators: "u32", minOrchestratorCollators: "u32", @@ -3118,21 +3215,21 @@ export default { parathreadsPerCollator: "u32", targetContainerChainFullness: "Perbill", }, - /** Lookup365: pallet_configuration::pallet::Error */ + /** Lookup367: pallet_configuration::pallet::Error */ PalletConfigurationError: { _enum: ["InvalidNewValue"], }, - /** Lookup366: dp_collator_assignment::AssignedCollators */ + /** Lookup368: dp_collator_assignment::AssignedCollators */ DpCollatorAssignmentAssignedCollatorsAccountId32: { orchestratorChain: "Vec", containerChains: "BTreeMap>", }, - /** Lookup371: pallet_author_noting::pallet::ContainerChainBlockInfo */ + /** Lookup373: pallet_author_noting::pallet::ContainerChainBlockInfo */ PalletAuthorNotingContainerChainBlockInfo: { blockNumber: "u32", author: "AccountId32", }, - /** Lookup372: pallet_author_noting::pallet::Error */ + /** Lookup374: pallet_author_noting::pallet::Error */ PalletAuthorNotingError: { _enum: [ "FailedReading", @@ -3144,39 +3241,39 @@ export default { "NonAuraDigest", ], }, - /** Lookup373: dp_collator_assignment::AssignedCollators */ + /** Lookup375: dp_collator_assignment::AssignedCollators */ DpCollatorAssignmentAssignedCollatorsPublic: { orchestratorChain: "Vec", containerChains: "BTreeMap>", }, - /** Lookup378: pallet_services_payment::pallet::Error */ + /** Lookup380: pallet_services_payment::pallet::Error */ PalletServicesPaymentError: { _enum: ["InsufficientFundsToPurchaseCredits", "InsufficientCredits", "CreditPriceTooExpensive"], }, - /** Lookup379: pallet_data_preservers::pallet::Error */ + /** Lookup381: pallet_data_preservers::pallet::Error */ PalletDataPreserversError: { _enum: ["NoBootNodes"], }, - /** Lookup381: pallet_invulnerables::pallet::Error */ + /** Lookup383: pallet_invulnerables::pallet::Error */ PalletInvulnerablesError: { _enum: ["TooManyInvulnerables", "AlreadyInvulnerable", "NotInvulnerable"], }, - /** Lookup386: sp_core::crypto::KeyTypeId */ + /** Lookup388: sp_core::crypto::KeyTypeId */ SpCoreCryptoKeyTypeId: "[u8;4]", - /** Lookup387: pallet_session::pallet::Error */ + /** Lookup389: pallet_session::pallet::Error */ PalletSessionError: { _enum: ["InvalidProof", "NoAssociatedValidatorId", "DuplicatedKey", "NoKeys", "NoAccount"], }, - /** Lookup391: pallet_author_inherent::pallet::Error */ + /** Lookup393: pallet_author_inherent::pallet::Error */ PalletAuthorInherentError: { _enum: ["AuthorAlreadySet", "NoAccountId", "CannotBeAuthor"], }, - /** Lookup393: pallet_pooled_staking::candidate::EligibleCandidate */ + /** Lookup395: pallet_pooled_staking::candidate::EligibleCandidate */ PalletPooledStakingCandidateEligibleCandidate: { candidate: "AccountId32", stake: "u128", }, - /** Lookup396: pallet_pooled_staking::pallet::PoolsKey */ + /** Lookup398: pallet_pooled_staking::pallet::PoolsKey */ PalletPooledStakingPoolsKey: { _enum: { CandidateTotalStake: "Null", @@ -3218,7 +3315,7 @@ export default { }, }, }, - /** Lookup398: pallet_pooled_staking::pallet::Error */ + /** Lookup400: pallet_pooled_staking::pallet::Error */ PalletPooledStakingError: { _enum: { InvalidPalletSetting: "Null", @@ -3237,26 +3334,71 @@ export default { SwapResultsInZeroShares: "Null", }, }, - /** Lookup399: pallet_inflation_rewards::pallet::ChainsToRewardValue */ + /** Lookup401: pallet_inflation_rewards::pallet::ChainsToRewardValue */ PalletInflationRewardsChainsToRewardValue: { paraIds: "Vec", rewardsPerChain: "u128", }, - /** Lookup401: cumulus_pallet_xcmp_queue::InboundChannelDetails */ + /** Lookup402: pallet_treasury::Proposal */ + PalletTreasuryProposal: { + proposer: "AccountId32", + value: "u128", + beneficiary: "AccountId32", + bond: "u128", + }, + /** Lookup404: pallet_treasury::SpendStatus */ + PalletTreasurySpendStatus: { + assetKind: "Null", + amount: "u128", + beneficiary: "AccountId32", + validFrom: "u32", + expireAt: "u32", + status: "PalletTreasuryPaymentState", + }, + /** Lookup405: pallet_treasury::PaymentState */ + PalletTreasuryPaymentState: { + _enum: { + Pending: "Null", + Attempted: { + id: "Null", + }, + Failed: "Null", + }, + }, + /** Lookup408: frame_support::PalletId */ + FrameSupportPalletId: "[u8;8]", + /** Lookup409: pallet_treasury::pallet::Error */ + PalletTreasuryError: { + _enum: [ + "InsufficientProposersBalance", + "InvalidIndex", + "TooManyApprovals", + "InsufficientPermission", + "ProposalNotApproved", + "FailedToConvertBalance", + "SpendExpired", + "EarlyPayout", + "AlreadyAttempted", + "PayoutError", + "NotAttempted", + "Inconclusive", + ], + }, + /** Lookup411: cumulus_pallet_xcmp_queue::InboundChannelDetails */ CumulusPalletXcmpQueueInboundChannelDetails: { sender: "u32", state: "CumulusPalletXcmpQueueInboundState", messageMetadata: "Vec<(u32,PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat)>", }, - /** Lookup402: cumulus_pallet_xcmp_queue::InboundState */ + /** Lookup412: cumulus_pallet_xcmp_queue::InboundState */ CumulusPalletXcmpQueueInboundState: { _enum: ["Ok", "Suspended"], }, - /** Lookup405: polkadot_parachain_primitives::primitives::XcmpMessageFormat */ + /** Lookup415: polkadot_parachain_primitives::primitives::XcmpMessageFormat */ PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat: { _enum: ["ConcatenatedVersionedXcm", "ConcatenatedEncodedBlob", "Signals"], }, - /** Lookup408: cumulus_pallet_xcmp_queue::OutboundChannelDetails */ + /** Lookup418: cumulus_pallet_xcmp_queue::OutboundChannelDetails */ CumulusPalletXcmpQueueOutboundChannelDetails: { recipient: "u32", state: "CumulusPalletXcmpQueueOutboundState", @@ -3264,11 +3406,11 @@ export default { firstIndex: "u16", lastIndex: "u16", }, - /** Lookup409: cumulus_pallet_xcmp_queue::OutboundState */ + /** Lookup419: cumulus_pallet_xcmp_queue::OutboundState */ CumulusPalletXcmpQueueOutboundState: { _enum: ["Ok", "Suspended"], }, - /** Lookup411: cumulus_pallet_xcmp_queue::QueueConfigData */ + /** Lookup421: cumulus_pallet_xcmp_queue::QueueConfigData */ CumulusPalletXcmpQueueQueueConfigData: { suspendThreshold: "u32", dropThreshold: "u32", @@ -3277,27 +3419,27 @@ export default { weightRestrictDecay: "SpWeightsWeightV2Weight", xcmpMaxIndividualWeight: "SpWeightsWeightV2Weight", }, - /** Lookup413: cumulus_pallet_xcmp_queue::pallet::Error */ + /** Lookup423: cumulus_pallet_xcmp_queue::pallet::Error */ CumulusPalletXcmpQueueError: { _enum: ["FailedToSend", "BadXcmOrigin", "BadXcm", "BadOverweightIndex", "WeightOverLimit"], }, - /** Lookup414: cumulus_pallet_xcm::pallet::Error */ + /** Lookup424: cumulus_pallet_xcm::pallet::Error */ CumulusPalletXcmError: "Null", - /** Lookup415: cumulus_pallet_dmp_queue::ConfigData */ + /** Lookup425: cumulus_pallet_dmp_queue::ConfigData */ CumulusPalletDmpQueueConfigData: { maxIndividual: "SpWeightsWeightV2Weight", }, - /** Lookup416: cumulus_pallet_dmp_queue::PageIndexData */ + /** Lookup426: cumulus_pallet_dmp_queue::PageIndexData */ CumulusPalletDmpQueuePageIndexData: { beginUsed: "u32", endUsed: "u32", overweightCount: "u64", }, - /** Lookup419: cumulus_pallet_dmp_queue::pallet::Error */ + /** Lookup429: cumulus_pallet_dmp_queue::pallet::Error */ CumulusPalletDmpQueueError: { _enum: ["Unknown", "OverLimit"], }, - /** Lookup420: pallet_xcm::pallet::QueryStatus */ + /** Lookup430: pallet_xcm::pallet::QueryStatus */ PalletXcmQueryStatus: { _enum: { Pending: { @@ -3316,7 +3458,7 @@ export default { }, }, }, - /** Lookup424: xcm::VersionedResponse */ + /** Lookup434: xcm::VersionedResponse */ XcmVersionedResponse: { _enum: { __Unused0: "Null", @@ -3325,7 +3467,7 @@ export default { V3: "XcmV3Response", }, }, - /** Lookup430: pallet_xcm::pallet::VersionMigrationStage */ + /** Lookup440: pallet_xcm::pallet::VersionMigrationStage */ PalletXcmVersionMigrationStage: { _enum: { MigrateSupportedVersion: "Null", @@ -3334,7 +3476,7 @@ export default { MigrateAndNotifyOldTargets: "Null", }, }, - /** Lookup432: xcm::VersionedAssetId */ + /** Lookup442: xcm::VersionedAssetId */ XcmVersionedAssetId: { _enum: { __Unused0: "Null", @@ -3343,14 +3485,14 @@ export default { V3: "XcmV3MultiassetAssetId", }, }, - /** Lookup433: pallet_xcm::pallet::RemoteLockedFungibleRecord */ + /** Lookup443: pallet_xcm::pallet::RemoteLockedFungibleRecord */ PalletXcmRemoteLockedFungibleRecord: { amount: "u128", owner: "XcmVersionedMultiLocation", locker: "XcmVersionedMultiLocation", consumers: "Vec<(Null,u128)>", }, - /** Lookup440: pallet_xcm::pallet::Error */ + /** Lookup450: pallet_xcm::pallet::Error */ PalletXcmError: { _enum: [ "Unreachable", @@ -3375,7 +3517,7 @@ export default { "InUse", ], }, - /** Lookup441: pallet_assets::types::AssetDetails */ + /** Lookup451: pallet_assets::types::AssetDetails */ PalletAssetsAssetDetails: { owner: "AccountId32", issuer: "AccountId32", @@ -3390,22 +3532,22 @@ export default { approvals: "u32", status: "PalletAssetsAssetStatus", }, - /** Lookup442: pallet_assets::types::AssetStatus */ + /** Lookup452: pallet_assets::types::AssetStatus */ PalletAssetsAssetStatus: { _enum: ["Live", "Frozen", "Destroying"], }, - /** Lookup444: pallet_assets::types::AssetAccount */ + /** Lookup454: pallet_assets::types::AssetAccount */ PalletAssetsAssetAccount: { balance: "u128", status: "PalletAssetsAccountStatus", reason: "PalletAssetsExistenceReason", extra: "Null", }, - /** Lookup445: pallet_assets::types::AccountStatus */ + /** Lookup455: pallet_assets::types::AccountStatus */ PalletAssetsAccountStatus: { _enum: ["Liquid", "Frozen", "Blocked"], }, - /** Lookup446: pallet_assets::types::ExistenceReason */ + /** Lookup456: pallet_assets::types::ExistenceReason */ PalletAssetsExistenceReason: { _enum: { Consumer: "Null", @@ -3415,12 +3557,12 @@ export default { DepositFrom: "(AccountId32,u128)", }, }, - /** Lookup448: pallet_assets::types::Approval */ + /** Lookup458: pallet_assets::types::Approval */ PalletAssetsApproval: { amount: "u128", deposit: "u128", }, - /** Lookup449: pallet_assets::types::AssetMetadata> */ + /** Lookup459: pallet_assets::types::AssetMetadata> */ PalletAssetsAssetMetadata: { deposit: "u128", name: "Bytes", @@ -3428,7 +3570,7 @@ export default { decimals: "u8", isFrozen: "bool", }, - /** Lookup451: pallet_assets::pallet::Error */ + /** Lookup461: pallet_assets::pallet::Error */ PalletAssetsError: { _enum: [ "BalanceLow", @@ -3453,15 +3595,15 @@ export default { "CallbackFailed", ], }, - /** Lookup452: pallet_foreign_asset_creator::pallet::Error */ + /** Lookup462: pallet_foreign_asset_creator::pallet::Error */ PalletForeignAssetCreatorError: { _enum: ["AssetAlreadyExists", "AssetDoesNotExist"], }, - /** Lookup453: pallet_asset_rate::pallet::Error */ + /** Lookup463: pallet_asset_rate::pallet::Error */ PalletAssetRateError: { _enum: ["UnknownAssetKind", "AlreadyExists"], }, - /** Lookup458: sp_runtime::MultiSignature */ + /** Lookup468: sp_runtime::MultiSignature */ SpRuntimeMultiSignature: { _enum: { Ed25519: "SpCoreEd25519Signature", @@ -3469,26 +3611,26 @@ export default { Ecdsa: "SpCoreEcdsaSignature", }, }, - /** Lookup459: sp_core::ed25519::Signature */ + /** Lookup469: sp_core::ed25519::Signature */ SpCoreEd25519Signature: "[u8;64]", - /** Lookup461: sp_core::sr25519::Signature */ + /** Lookup471: sp_core::sr25519::Signature */ SpCoreSr25519Signature: "[u8;64]", - /** Lookup462: sp_core::ecdsa::Signature */ + /** Lookup472: sp_core::ecdsa::Signature */ SpCoreEcdsaSignature: "[u8;65]", - /** Lookup465: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender */ + /** Lookup475: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender */ FrameSystemExtensionsCheckNonZeroSender: "Null", - /** Lookup466: frame_system::extensions::check_spec_version::CheckSpecVersion */ + /** Lookup476: frame_system::extensions::check_spec_version::CheckSpecVersion */ FrameSystemExtensionsCheckSpecVersion: "Null", - /** Lookup467: frame_system::extensions::check_tx_version::CheckTxVersion */ + /** Lookup477: frame_system::extensions::check_tx_version::CheckTxVersion */ FrameSystemExtensionsCheckTxVersion: "Null", - /** Lookup468: frame_system::extensions::check_genesis::CheckGenesis */ + /** Lookup478: frame_system::extensions::check_genesis::CheckGenesis */ FrameSystemExtensionsCheckGenesis: "Null", - /** Lookup471: frame_system::extensions::check_nonce::CheckNonce */ + /** Lookup481: frame_system::extensions::check_nonce::CheckNonce */ FrameSystemExtensionsCheckNonce: "Compact", - /** Lookup472: frame_system::extensions::check_weight::CheckWeight */ + /** Lookup482: frame_system::extensions::check_weight::CheckWeight */ FrameSystemExtensionsCheckWeight: "Null", - /** Lookup473: pallet_transaction_payment::ChargeTransactionPayment */ + /** Lookup483: pallet_transaction_payment::ChargeTransactionPayment */ PalletTransactionPaymentChargeTransactionPayment: "Compact", - /** Lookup474: dancebox_runtime::Runtime */ + /** Lookup484: dancebox_runtime::Runtime */ DanceboxRuntimeRuntime: "Null", }; diff --git a/typescript-api/src/dancebox/interfaces/registry.ts b/typescript-api/src/dancebox/interfaces/registry.ts index ba71ee2d5..dd09a2200 100644 --- a/typescript-api/src/dancebox/interfaces/registry.ts +++ b/typescript-api/src/dancebox/interfaces/registry.ts @@ -47,6 +47,7 @@ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, + FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, @@ -157,6 +158,12 @@ import type { PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, + PalletTreasuryCall, + PalletTreasuryError, + PalletTreasuryEvent, + PalletTreasuryPaymentState, + PalletTreasuryProposal, + PalletTreasurySpendStatus, PalletTxPauseCall, PalletTxPauseError, PalletTxPauseEvent, @@ -300,6 +307,7 @@ declare module "@polkadot/types/types/registry" { FrameSupportDispatchPerDispatchClassWeight: FrameSupportDispatchPerDispatchClassWeight; FrameSupportDispatchPerDispatchClassWeightsPerClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; FrameSupportDispatchRawOrigin: FrameSupportDispatchRawOrigin; + FrameSupportPalletId: FrameSupportPalletId; FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus; FrameSystemAccountInfo: FrameSystemAccountInfo; FrameSystemCall: FrameSystemCall; @@ -410,6 +418,12 @@ declare module "@polkadot/types/types/registry" { PalletTransactionPaymentChargeTransactionPayment: PalletTransactionPaymentChargeTransactionPayment; PalletTransactionPaymentEvent: PalletTransactionPaymentEvent; PalletTransactionPaymentReleases: PalletTransactionPaymentReleases; + PalletTreasuryCall: PalletTreasuryCall; + PalletTreasuryError: PalletTreasuryError; + PalletTreasuryEvent: PalletTreasuryEvent; + PalletTreasuryPaymentState: PalletTreasuryPaymentState; + PalletTreasuryProposal: PalletTreasuryProposal; + PalletTreasurySpendStatus: PalletTreasurySpendStatus; PalletTxPauseCall: PalletTxPauseCall; PalletTxPauseError: PalletTxPauseError; PalletTxPauseEvent: PalletTxPauseEvent; diff --git a/typescript-api/src/dancebox/interfaces/types-lookup.ts b/typescript-api/src/dancebox/interfaces/types-lookup.ts index 39569862a..2b4d41b84 100644 --- a/typescript-api/src/dancebox/interfaces/types-lookup.ts +++ b/typescript-api/src/dancebox/interfaces/types-lookup.ts @@ -912,7 +912,95 @@ declare module "@polkadot/types/lookup" { readonly type: "RewardedOrchestrator" | "RewardedContainer"; } - /** @name CumulusPalletXcmpQueueEvent (63) */ + /** @name PalletTreasuryEvent (63) */ + interface PalletTreasuryEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly proposalIndex: u32; + } & Struct; + readonly isSpending: boolean; + readonly asSpending: { + readonly budgetRemaining: u128; + } & Struct; + readonly isAwarded: boolean; + readonly asAwarded: { + readonly proposalIndex: u32; + readonly award: u128; + readonly account: AccountId32; + } & Struct; + readonly isRejected: boolean; + readonly asRejected: { + readonly proposalIndex: u32; + readonly slashed: u128; + } & Struct; + readonly isBurnt: boolean; + readonly asBurnt: { + readonly burntFunds: u128; + } & Struct; + readonly isRollover: boolean; + readonly asRollover: { + readonly rolloverBalance: u128; + } & Struct; + readonly isDeposit: boolean; + readonly asDeposit: { + readonly value: u128; + } & Struct; + readonly isSpendApproved: boolean; + readonly asSpendApproved: { + readonly proposalIndex: u32; + readonly amount: u128; + readonly beneficiary: AccountId32; + } & Struct; + readonly isUpdatedInactive: boolean; + readonly asUpdatedInactive: { + readonly reactivated: u128; + readonly deactivated: u128; + } & Struct; + readonly isAssetSpendApproved: boolean; + readonly asAssetSpendApproved: { + readonly index: u32; + readonly assetKind: Null; + readonly amount: u128; + readonly beneficiary: AccountId32; + readonly validFrom: u32; + readonly expireAt: u32; + } & Struct; + readonly isAssetSpendVoided: boolean; + readonly asAssetSpendVoided: { + readonly index: u32; + } & Struct; + readonly isPaid: boolean; + readonly asPaid: { + readonly index: u32; + readonly paymentId: Null; + } & Struct; + readonly isPaymentFailed: boolean; + readonly asPaymentFailed: { + readonly index: u32; + readonly paymentId: Null; + } & Struct; + readonly isSpendProcessed: boolean; + readonly asSpendProcessed: { + readonly index: u32; + } & Struct; + readonly type: + | "Proposed" + | "Spending" + | "Awarded" + | "Rejected" + | "Burnt" + | "Rollover" + | "Deposit" + | "SpendApproved" + | "UpdatedInactive" + | "AssetSpendApproved" + | "AssetSpendVoided" + | "Paid" + | "PaymentFailed" + | "SpendProcessed"; + } + + /** @name CumulusPalletXcmpQueueEvent (64) */ interface CumulusPalletXcmpQueueEvent extends Enum { readonly isSuccess: boolean; readonly asSuccess: { @@ -961,7 +1049,7 @@ declare module "@polkadot/types/lookup" { | "OverweightServiced"; } - /** @name XcmV3TraitsError (64) */ + /** @name XcmV3TraitsError (65) */ interface XcmV3TraitsError extends Enum { readonly isOverflow: boolean; readonly isUnimplemented: boolean; @@ -1048,7 +1136,7 @@ declare module "@polkadot/types/lookup" { | "ExceedsStackLimit"; } - /** @name CumulusPalletXcmEvent (65) */ + /** @name CumulusPalletXcmEvent (66) */ interface CumulusPalletXcmEvent extends Enum { readonly isInvalidFormat: boolean; readonly asInvalidFormat: U8aFixed; @@ -1059,7 +1147,7 @@ declare module "@polkadot/types/lookup" { readonly type: "InvalidFormat" | "UnsupportedVersion" | "ExecutedDownward"; } - /** @name XcmV3TraitsOutcome (66) */ + /** @name XcmV3TraitsOutcome (67) */ interface XcmV3TraitsOutcome extends Enum { readonly isComplete: boolean; readonly asComplete: SpWeightsWeightV2Weight; @@ -1070,7 +1158,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Complete" | "Incomplete" | "Error"; } - /** @name CumulusPalletDmpQueueEvent (67) */ + /** @name CumulusPalletDmpQueueEvent (68) */ interface CumulusPalletDmpQueueEvent extends Enum { readonly isInvalidFormat: boolean; readonly asInvalidFormat: { @@ -1119,7 +1207,7 @@ declare module "@polkadot/types/lookup" { | "MaxMessagesExhausted"; } - /** @name PalletXcmEvent (68) */ + /** @name PalletXcmEvent (69) */ interface PalletXcmEvent extends Enum { readonly isAttempted: boolean; readonly asAttempted: { @@ -1279,13 +1367,13 @@ declare module "@polkadot/types/lookup" { | "AssetsClaimed"; } - /** @name StagingXcmV3MultiLocation (69) */ + /** @name StagingXcmV3MultiLocation (70) */ interface StagingXcmV3MultiLocation extends Struct { readonly parents: u8; readonly interior: XcmV3Junctions; } - /** @name XcmV3Junctions (70) */ + /** @name XcmV3Junctions (71) */ interface XcmV3Junctions extends Enum { readonly isHere: boolean; readonly isX1: boolean; @@ -1322,7 +1410,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Here" | "X1" | "X2" | "X3" | "X4" | "X5" | "X6" | "X7" | "X8"; } - /** @name XcmV3Junction (71) */ + /** @name XcmV3Junction (72) */ interface XcmV3Junction extends Enum { readonly isParachain: boolean; readonly asParachain: Compact; @@ -1371,7 +1459,7 @@ declare module "@polkadot/types/lookup" { | "GlobalConsensus"; } - /** @name XcmV3JunctionNetworkId (74) */ + /** @name XcmV3JunctionNetworkId (75) */ interface XcmV3JunctionNetworkId extends Enum { readonly isByGenesis: boolean; readonly asByGenesis: U8aFixed; @@ -1404,7 +1492,7 @@ declare module "@polkadot/types/lookup" { | "BitcoinCash"; } - /** @name XcmV3JunctionBodyId (77) */ + /** @name XcmV3JunctionBodyId (78) */ interface XcmV3JunctionBodyId extends Enum { readonly isUnit: boolean; readonly isMoniker: boolean; @@ -1431,7 +1519,7 @@ declare module "@polkadot/types/lookup" { | "Treasury"; } - /** @name XcmV3JunctionBodyPart (78) */ + /** @name XcmV3JunctionBodyPart (79) */ interface XcmV3JunctionBodyPart extends Enum { readonly isVoice: boolean; readonly isMembers: boolean; @@ -1456,10 +1544,10 @@ declare module "@polkadot/types/lookup" { readonly type: "Voice" | "Members" | "Fraction" | "AtLeastProportion" | "MoreThanProportion"; } - /** @name XcmV3Xcm (79) */ + /** @name XcmV3Xcm (80) */ interface XcmV3Xcm extends Vec {} - /** @name XcmV3Instruction (81) */ + /** @name XcmV3Instruction (82) */ interface XcmV3Instruction extends Enum { readonly isWithdrawAsset: boolean; readonly asWithdrawAsset: XcmV3MultiassetMultiAssets; @@ -1689,16 +1777,16 @@ declare module "@polkadot/types/lookup" { | "UnpaidExecution"; } - /** @name XcmV3MultiassetMultiAssets (82) */ + /** @name XcmV3MultiassetMultiAssets (83) */ interface XcmV3MultiassetMultiAssets extends Vec {} - /** @name XcmV3MultiAsset (84) */ + /** @name XcmV3MultiAsset (85) */ interface XcmV3MultiAsset extends Struct { readonly id: XcmV3MultiassetAssetId; readonly fun: XcmV3MultiassetFungibility; } - /** @name XcmV3MultiassetAssetId (85) */ + /** @name XcmV3MultiassetAssetId (86) */ interface XcmV3MultiassetAssetId extends Enum { readonly isConcrete: boolean; readonly asConcrete: StagingXcmV3MultiLocation; @@ -1707,7 +1795,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Concrete" | "Abstract"; } - /** @name XcmV3MultiassetFungibility (86) */ + /** @name XcmV3MultiassetFungibility (87) */ interface XcmV3MultiassetFungibility extends Enum { readonly isFungible: boolean; readonly asFungible: Compact; @@ -1716,7 +1804,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Fungible" | "NonFungible"; } - /** @name XcmV3MultiassetAssetInstance (87) */ + /** @name XcmV3MultiassetAssetInstance (88) */ interface XcmV3MultiassetAssetInstance extends Enum { readonly isUndefined: boolean; readonly isIndex: boolean; @@ -1732,7 +1820,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Undefined" | "Index" | "Array4" | "Array8" | "Array16" | "Array32"; } - /** @name XcmV3Response (90) */ + /** @name XcmV3Response (91) */ interface XcmV3Response extends Enum { readonly isNull: boolean; readonly isAssets: boolean; @@ -1748,7 +1836,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Null" | "Assets" | "ExecutionResult" | "Version" | "PalletsInfo" | "DispatchResult"; } - /** @name XcmV3PalletInfo (94) */ + /** @name XcmV3PalletInfo (95) */ interface XcmV3PalletInfo extends Struct { readonly index: Compact; readonly name: Bytes; @@ -1758,7 +1846,7 @@ declare module "@polkadot/types/lookup" { readonly patch: Compact; } - /** @name XcmV3MaybeErrorCode (97) */ + /** @name XcmV3MaybeErrorCode (98) */ interface XcmV3MaybeErrorCode extends Enum { readonly isSuccess: boolean; readonly isError: boolean; @@ -1768,7 +1856,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Success" | "Error" | "TruncatedError"; } - /** @name XcmV2OriginKind (100) */ + /** @name XcmV2OriginKind (101) */ interface XcmV2OriginKind extends Enum { readonly isNative: boolean; readonly isSovereignAccount: boolean; @@ -1777,19 +1865,19 @@ declare module "@polkadot/types/lookup" { readonly type: "Native" | "SovereignAccount" | "Superuser" | "Xcm"; } - /** @name XcmDoubleEncoded (101) */ + /** @name XcmDoubleEncoded (102) */ interface XcmDoubleEncoded extends Struct { readonly encoded: Bytes; } - /** @name XcmV3QueryResponseInfo (102) */ + /** @name XcmV3QueryResponseInfo (103) */ interface XcmV3QueryResponseInfo extends Struct { readonly destination: StagingXcmV3MultiLocation; readonly queryId: Compact; readonly maxWeight: SpWeightsWeightV2Weight; } - /** @name XcmV3MultiassetMultiAssetFilter (103) */ + /** @name XcmV3MultiassetMultiAssetFilter (104) */ interface XcmV3MultiassetMultiAssetFilter extends Enum { readonly isDefinite: boolean; readonly asDefinite: XcmV3MultiassetMultiAssets; @@ -1798,7 +1886,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Definite" | "Wild"; } - /** @name XcmV3MultiassetWildMultiAsset (104) */ + /** @name XcmV3MultiassetWildMultiAsset (105) */ interface XcmV3MultiassetWildMultiAsset extends Enum { readonly isAll: boolean; readonly isAllOf: boolean; @@ -1817,14 +1905,14 @@ declare module "@polkadot/types/lookup" { readonly type: "All" | "AllOf" | "AllCounted" | "AllOfCounted"; } - /** @name XcmV3MultiassetWildFungibility (105) */ + /** @name XcmV3MultiassetWildFungibility (106) */ interface XcmV3MultiassetWildFungibility extends Enum { readonly isFungible: boolean; readonly isNonFungible: boolean; readonly type: "Fungible" | "NonFungible"; } - /** @name XcmV3WeightLimit (106) */ + /** @name XcmV3WeightLimit (107) */ interface XcmV3WeightLimit extends Enum { readonly isUnlimited: boolean; readonly isLimited: boolean; @@ -1832,7 +1920,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Unlimited" | "Limited"; } - /** @name XcmVersionedMultiAssets (107) */ + /** @name XcmVersionedMultiAssets (108) */ interface XcmVersionedMultiAssets extends Enum { readonly isV2: boolean; readonly asV2: XcmV2MultiassetMultiAssets; @@ -1841,16 +1929,16 @@ declare module "@polkadot/types/lookup" { readonly type: "V2" | "V3"; } - /** @name XcmV2MultiassetMultiAssets (108) */ + /** @name XcmV2MultiassetMultiAssets (109) */ interface XcmV2MultiassetMultiAssets extends Vec {} - /** @name XcmV2MultiAsset (110) */ + /** @name XcmV2MultiAsset (111) */ interface XcmV2MultiAsset extends Struct { readonly id: XcmV2MultiassetAssetId; readonly fun: XcmV2MultiassetFungibility; } - /** @name XcmV2MultiassetAssetId (111) */ + /** @name XcmV2MultiassetAssetId (112) */ interface XcmV2MultiassetAssetId extends Enum { readonly isConcrete: boolean; readonly asConcrete: XcmV2MultiLocation; @@ -1859,13 +1947,13 @@ declare module "@polkadot/types/lookup" { readonly type: "Concrete" | "Abstract"; } - /** @name XcmV2MultiLocation (112) */ + /** @name XcmV2MultiLocation (113) */ interface XcmV2MultiLocation extends Struct { readonly parents: u8; readonly interior: XcmV2MultilocationJunctions; } - /** @name XcmV2MultilocationJunctions (113) */ + /** @name XcmV2MultilocationJunctions (114) */ interface XcmV2MultilocationJunctions extends Enum { readonly isHere: boolean; readonly isX1: boolean; @@ -1902,7 +1990,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Here" | "X1" | "X2" | "X3" | "X4" | "X5" | "X6" | "X7" | "X8"; } - /** @name XcmV2Junction (114) */ + /** @name XcmV2Junction (115) */ interface XcmV2Junction extends Enum { readonly isParachain: boolean; readonly asParachain: Compact; @@ -1945,7 +2033,7 @@ declare module "@polkadot/types/lookup" { | "Plurality"; } - /** @name XcmV2NetworkId (115) */ + /** @name XcmV2NetworkId (116) */ interface XcmV2NetworkId extends Enum { readonly isAny: boolean; readonly isNamed: boolean; @@ -1955,7 +2043,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Any" | "Named" | "Polkadot" | "Kusama"; } - /** @name XcmV2BodyId (117) */ + /** @name XcmV2BodyId (118) */ interface XcmV2BodyId extends Enum { readonly isUnit: boolean; readonly isNamed: boolean; @@ -1982,7 +2070,7 @@ declare module "@polkadot/types/lookup" { | "Treasury"; } - /** @name XcmV2BodyPart (118) */ + /** @name XcmV2BodyPart (119) */ interface XcmV2BodyPart extends Enum { readonly isVoice: boolean; readonly isMembers: boolean; @@ -2007,7 +2095,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Voice" | "Members" | "Fraction" | "AtLeastProportion" | "MoreThanProportion"; } - /** @name XcmV2MultiassetFungibility (119) */ + /** @name XcmV2MultiassetFungibility (120) */ interface XcmV2MultiassetFungibility extends Enum { readonly isFungible: boolean; readonly asFungible: Compact; @@ -2016,7 +2104,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Fungible" | "NonFungible"; } - /** @name XcmV2MultiassetAssetInstance (120) */ + /** @name XcmV2MultiassetAssetInstance (121) */ interface XcmV2MultiassetAssetInstance extends Enum { readonly isUndefined: boolean; readonly isIndex: boolean; @@ -2034,7 +2122,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Undefined" | "Index" | "Array4" | "Array8" | "Array16" | "Array32" | "Blob"; } - /** @name XcmVersionedMultiLocation (121) */ + /** @name XcmVersionedMultiLocation (122) */ interface XcmVersionedMultiLocation extends Enum { readonly isV2: boolean; readonly asV2: XcmV2MultiLocation; @@ -2043,7 +2131,7 @@ declare module "@polkadot/types/lookup" { readonly type: "V2" | "V3"; } - /** @name PalletAssetsEvent (122) */ + /** @name PalletAssetsEvent (123) */ interface PalletAssetsEvent extends Enum { readonly isCreated: boolean; readonly asCreated: { @@ -2205,7 +2293,7 @@ declare module "@polkadot/types/lookup" { | "Blocked"; } - /** @name PalletForeignAssetCreatorEvent (123) */ + /** @name PalletForeignAssetCreatorEvent (124) */ interface PalletForeignAssetCreatorEvent extends Enum { readonly isForeignAssetCreated: boolean; readonly asForeignAssetCreated: { @@ -2234,7 +2322,7 @@ declare module "@polkadot/types/lookup" { | "ForeignAssetDestroyed"; } - /** @name PalletAssetRateEvent (124) */ + /** @name PalletAssetRateEvent (125) */ interface PalletAssetRateEvent extends Enum { readonly isAssetRateCreated: boolean; readonly asAssetRateCreated: { @@ -2254,7 +2342,7 @@ declare module "@polkadot/types/lookup" { readonly type: "AssetRateCreated" | "AssetRateRemoved" | "AssetRateUpdated"; } - /** @name FrameSystemPhase (126) */ + /** @name FrameSystemPhase (127) */ interface FrameSystemPhase extends Enum { readonly isApplyExtrinsic: boolean; readonly asApplyExtrinsic: u32; @@ -2263,13 +2351,13 @@ declare module "@polkadot/types/lookup" { readonly type: "ApplyExtrinsic" | "Finalization" | "Initialization"; } - /** @name FrameSystemLastRuntimeUpgradeInfo (130) */ + /** @name FrameSystemLastRuntimeUpgradeInfo (131) */ interface FrameSystemLastRuntimeUpgradeInfo extends Struct { readonly specVersion: Compact; readonly specName: Text; } - /** @name FrameSystemCall (132) */ + /** @name FrameSystemCall (133) */ interface FrameSystemCall extends Enum { readonly isRemark: boolean; readonly asRemark: { @@ -2315,21 +2403,21 @@ declare module "@polkadot/types/lookup" { | "RemarkWithEvent"; } - /** @name FrameSystemLimitsBlockWeights (136) */ + /** @name FrameSystemLimitsBlockWeights (137) */ interface FrameSystemLimitsBlockWeights extends Struct { readonly baseBlock: SpWeightsWeightV2Weight; readonly maxBlock: SpWeightsWeightV2Weight; readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; } - /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (137) */ + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (138) */ interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { readonly normal: FrameSystemLimitsWeightsPerClass; readonly operational: FrameSystemLimitsWeightsPerClass; readonly mandatory: FrameSystemLimitsWeightsPerClass; } - /** @name FrameSystemLimitsWeightsPerClass (138) */ + /** @name FrameSystemLimitsWeightsPerClass (139) */ interface FrameSystemLimitsWeightsPerClass extends Struct { readonly baseExtrinsic: SpWeightsWeightV2Weight; readonly maxExtrinsic: Option; @@ -2337,25 +2425,25 @@ declare module "@polkadot/types/lookup" { readonly reserved: Option; } - /** @name FrameSystemLimitsBlockLength (140) */ + /** @name FrameSystemLimitsBlockLength (141) */ interface FrameSystemLimitsBlockLength extends Struct { readonly max: FrameSupportDispatchPerDispatchClassU32; } - /** @name FrameSupportDispatchPerDispatchClassU32 (141) */ + /** @name FrameSupportDispatchPerDispatchClassU32 (142) */ interface FrameSupportDispatchPerDispatchClassU32 extends Struct { readonly normal: u32; readonly operational: u32; readonly mandatory: u32; } - /** @name SpWeightsRuntimeDbWeight (142) */ + /** @name SpWeightsRuntimeDbWeight (143) */ interface SpWeightsRuntimeDbWeight extends Struct { readonly read: u64; readonly write: u64; } - /** @name SpVersionRuntimeVersion (143) */ + /** @name SpVersionRuntimeVersion (144) */ interface SpVersionRuntimeVersion extends Struct { readonly specName: Text; readonly implName: Text; @@ -2367,7 +2455,7 @@ declare module "@polkadot/types/lookup" { readonly stateVersion: u8; } - /** @name FrameSystemError (147) */ + /** @name FrameSystemError (148) */ interface FrameSystemError extends Enum { readonly isInvalidSpecName: boolean; readonly isSpecVersionNeedsToIncrease: boolean; @@ -2384,41 +2472,41 @@ declare module "@polkadot/types/lookup" { | "CallFiltered"; } - /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (149) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (150) */ interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct { readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; readonly paraHeadHash: Option; readonly consumedGoAheadSignal: Option; } - /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (150) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (151) */ interface CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth extends Struct { readonly umpMsgCount: u32; readonly umpTotalBytes: u32; readonly hrmpOutgoing: BTreeMap; } - /** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (152) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (153) */ interface CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate extends Struct { readonly msgCount: u32; readonly totalBytes: u32; } - /** @name PolkadotPrimitivesV6UpgradeGoAhead (157) */ + /** @name PolkadotPrimitivesV6UpgradeGoAhead (158) */ interface PolkadotPrimitivesV6UpgradeGoAhead extends Enum { readonly isAbort: boolean; readonly isGoAhead: boolean; readonly type: "Abort" | "GoAhead"; } - /** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (158) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (159) */ interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct { readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; readonly hrmpWatermark: Option; readonly consumedGoAheadSignal: Option; } - /** @name PolkadotPrimitivesV6PersistedValidationData (159) */ + /** @name PolkadotPrimitivesV6PersistedValidationData (160) */ interface PolkadotPrimitivesV6PersistedValidationData extends Struct { readonly parentHead: Bytes; readonly relayParentNumber: u32; @@ -2426,18 +2514,18 @@ declare module "@polkadot/types/lookup" { readonly maxPovSize: u32; } - /** @name PolkadotPrimitivesV6UpgradeRestriction (162) */ + /** @name PolkadotPrimitivesV6UpgradeRestriction (163) */ interface PolkadotPrimitivesV6UpgradeRestriction extends Enum { readonly isPresent: boolean; readonly type: "Present"; } - /** @name SpTrieStorageProof (163) */ + /** @name SpTrieStorageProof (164) */ interface SpTrieStorageProof extends Struct { readonly trieNodes: BTreeSet; } - /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (165) */ + /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (166) */ interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { readonly dmqMqcHead: H256; readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; @@ -2445,13 +2533,13 @@ declare module "@polkadot/types/lookup" { readonly egressChannels: Vec>; } - /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (166) */ + /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (167) */ interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity extends Struct { readonly remainingCount: u32; readonly remainingSize: u32; } - /** @name PolkadotPrimitivesV6AbridgedHrmpChannel (169) */ + /** @name PolkadotPrimitivesV6AbridgedHrmpChannel (170) */ interface PolkadotPrimitivesV6AbridgedHrmpChannel extends Struct { readonly maxCapacity: u32; readonly maxTotalSize: u32; @@ -2461,7 +2549,7 @@ declare module "@polkadot/types/lookup" { readonly mqcHead: Option; } - /** @name PolkadotPrimitivesV6AbridgedHostConfiguration (170) */ + /** @name PolkadotPrimitivesV6AbridgedHostConfiguration (171) */ interface PolkadotPrimitivesV6AbridgedHostConfiguration extends Struct { readonly maxCodeSize: u32; readonly maxHeadDataSize: u32; @@ -2475,25 +2563,25 @@ declare module "@polkadot/types/lookup" { readonly asyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; } - /** @name PolkadotPrimitivesV6AsyncBackingAsyncBackingParams (171) */ + /** @name PolkadotPrimitivesV6AsyncBackingAsyncBackingParams (172) */ interface PolkadotPrimitivesV6AsyncBackingAsyncBackingParams extends Struct { readonly maxCandidateDepth: u32; readonly allowedAncestryLen: u32; } - /** @name PolkadotCorePrimitivesOutboundHrmpMessage (177) */ + /** @name PolkadotCorePrimitivesOutboundHrmpMessage (178) */ interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct { readonly recipient: u32; readonly data: Bytes; } - /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (178) */ + /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (179) */ interface CumulusPalletParachainSystemCodeUpgradeAuthorization extends Struct { readonly codeHash: H256; readonly checkVersion: bool; } - /** @name CumulusPalletParachainSystemCall (179) */ + /** @name CumulusPalletParachainSystemCall (180) */ interface CumulusPalletParachainSystemCall extends Enum { readonly isSetValidationData: boolean; readonly asSetValidationData: { @@ -2515,7 +2603,7 @@ declare module "@polkadot/types/lookup" { readonly type: "SetValidationData" | "SudoSendUpwardMessage" | "AuthorizeUpgrade" | "EnactAuthorizedUpgrade"; } - /** @name CumulusPrimitivesParachainInherentParachainInherentData (180) */ + /** @name CumulusPrimitivesParachainInherentParachainInherentData (181) */ interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { readonly validationData: PolkadotPrimitivesV6PersistedValidationData; readonly relayChainState: SpTrieStorageProof; @@ -2523,19 +2611,19 @@ declare module "@polkadot/types/lookup" { readonly horizontalMessages: BTreeMap>; } - /** @name PolkadotCorePrimitivesInboundDownwardMessage (182) */ + /** @name PolkadotCorePrimitivesInboundDownwardMessage (183) */ interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct { readonly sentAt: u32; readonly msg: Bytes; } - /** @name PolkadotCorePrimitivesInboundHrmpMessage (185) */ + /** @name PolkadotCorePrimitivesInboundHrmpMessage (186) */ interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct { readonly sentAt: u32; readonly data: Bytes; } - /** @name CumulusPalletParachainSystemError (188) */ + /** @name CumulusPalletParachainSystemError (189) */ interface CumulusPalletParachainSystemError extends Enum { readonly isOverlappingUpgrades: boolean; readonly isProhibitedByPolkadot: boolean; @@ -2556,7 +2644,7 @@ declare module "@polkadot/types/lookup" { | "Unauthorized"; } - /** @name PalletTimestampCall (189) */ + /** @name PalletTimestampCall (190) */ interface PalletTimestampCall extends Enum { readonly isSet: boolean; readonly asSet: { @@ -2565,10 +2653,10 @@ declare module "@polkadot/types/lookup" { readonly type: "Set"; } - /** @name ParachainInfoCall (190) */ + /** @name ParachainInfoCall (191) */ type ParachainInfoCall = Null; - /** @name PalletSudoCall (191) */ + /** @name PalletSudoCall (192) */ interface PalletSudoCall extends Enum { readonly isSudo: boolean; readonly asSudo: { @@ -2591,7 +2679,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Sudo" | "SudoUncheckedWeight" | "SetKey" | "SudoAs"; } - /** @name PalletUtilityCall (193) */ + /** @name PalletUtilityCall (194) */ interface PalletUtilityCall extends Enum { readonly isBatch: boolean; readonly asBatch: { @@ -2623,7 +2711,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Batch" | "AsDerivative" | "BatchAll" | "DispatchAs" | "ForceBatch" | "WithWeight"; } - /** @name DanceboxRuntimeOriginCaller (195) */ + /** @name DanceboxRuntimeOriginCaller (196) */ interface DanceboxRuntimeOriginCaller extends Enum { readonly isSystem: boolean; readonly asSystem: FrameSupportDispatchRawOrigin; @@ -2635,7 +2723,7 @@ declare module "@polkadot/types/lookup" { readonly type: "System" | "Void" | "CumulusXcm" | "PolkadotXcm"; } - /** @name FrameSupportDispatchRawOrigin (196) */ + /** @name FrameSupportDispatchRawOrigin (197) */ interface FrameSupportDispatchRawOrigin extends Enum { readonly isRoot: boolean; readonly isSigned: boolean; @@ -2644,7 +2732,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Root" | "Signed" | "None"; } - /** @name CumulusPalletXcmOrigin (197) */ + /** @name CumulusPalletXcmOrigin (198) */ interface CumulusPalletXcmOrigin extends Enum { readonly isRelay: boolean; readonly isSiblingParachain: boolean; @@ -2652,7 +2740,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Relay" | "SiblingParachain"; } - /** @name PalletXcmOrigin (198) */ + /** @name PalletXcmOrigin (199) */ interface PalletXcmOrigin extends Enum { readonly isXcm: boolean; readonly asXcm: StagingXcmV3MultiLocation; @@ -2661,10 +2749,10 @@ declare module "@polkadot/types/lookup" { readonly type: "Xcm" | "Response"; } - /** @name SpCoreVoid (199) */ + /** @name SpCoreVoid (200) */ type SpCoreVoid = Null; - /** @name PalletProxyCall (200) */ + /** @name PalletProxyCall (201) */ interface PalletProxyCall extends Enum { readonly isProxy: boolean; readonly asProxy: { @@ -2734,14 +2822,14 @@ declare module "@polkadot/types/lookup" { | "ProxyAnnounced"; } - /** @name PalletMaintenanceModeCall (204) */ + /** @name PalletMaintenanceModeCall (205) */ interface PalletMaintenanceModeCall extends Enum { readonly isEnterMaintenanceMode: boolean; readonly isResumeNormalOperation: boolean; readonly type: "EnterMaintenanceMode" | "ResumeNormalOperation"; } - /** @name PalletTxPauseCall (205) */ + /** @name PalletTxPauseCall (206) */ interface PalletTxPauseCall extends Enum { readonly isPause: boolean; readonly asPause: { @@ -2754,7 +2842,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Pause" | "Unpause"; } - /** @name PalletBalancesCall (206) */ + /** @name PalletBalancesCall (207) */ interface PalletBalancesCall extends Enum { readonly isTransferAllowDeath: boolean; readonly asTransferAllowDeath: { @@ -2801,7 +2889,7 @@ declare module "@polkadot/types/lookup" { | "ForceSetBalance"; } - /** @name PalletIdentityCall (207) */ + /** @name PalletIdentityCall (208) */ interface PalletIdentityCall extends Enum { readonly isAddRegistrar: boolean; readonly asAddRegistrar: { @@ -2884,7 +2972,7 @@ declare module "@polkadot/types/lookup" { | "QuitSub"; } - /** @name PalletIdentitySimpleIdentityInfo (208) */ + /** @name PalletIdentitySimpleIdentityInfo (209) */ interface PalletIdentitySimpleIdentityInfo extends Struct { readonly additional: Vec>; readonly display: Data; @@ -2897,7 +2985,7 @@ declare module "@polkadot/types/lookup" { readonly twitter: Data; } - /** @name PalletIdentityBitFlags (244) */ + /** @name PalletIdentityBitFlags (245) */ interface PalletIdentityBitFlags extends Set { readonly isDisplay: boolean; readonly isLegal: boolean; @@ -2909,7 +2997,7 @@ declare module "@polkadot/types/lookup" { readonly isTwitter: boolean; } - /** @name PalletIdentitySimpleIdentityField (245) */ + /** @name PalletIdentitySimpleIdentityField (246) */ interface PalletIdentitySimpleIdentityField extends Enum { readonly isDisplay: boolean; readonly isLegal: boolean; @@ -2922,7 +3010,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Display" | "Legal" | "Web" | "Riot" | "Email" | "PgpFingerprint" | "Image" | "Twitter"; } - /** @name PalletIdentityJudgement (246) */ + /** @name PalletIdentityJudgement (247) */ interface PalletIdentityJudgement extends Enum { readonly isUnknown: boolean; readonly isFeePaid: boolean; @@ -2935,7 +3023,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Unknown" | "FeePaid" | "Reasonable" | "KnownGood" | "OutOfDate" | "LowQuality" | "Erroneous"; } - /** @name PalletRegistrarCall (247) */ + /** @name PalletRegistrarCall (248) */ interface PalletRegistrarCall extends Enum { readonly isRegister: boolean; readonly asRegister: { @@ -2979,7 +3067,7 @@ declare module "@polkadot/types/lookup" { | "SetParathreadParams"; } - /** @name TpContainerChainGenesisDataContainerChainGenesisData (248) */ + /** @name TpContainerChainGenesisDataContainerChainGenesisData (249) */ interface TpContainerChainGenesisDataContainerChainGenesisData extends Struct { readonly storage: Vec; readonly name: Bytes; @@ -2989,32 +3077,32 @@ declare module "@polkadot/types/lookup" { readonly properties: TpContainerChainGenesisDataProperties; } - /** @name TpContainerChainGenesisDataContainerChainGenesisDataItem (250) */ + /** @name TpContainerChainGenesisDataContainerChainGenesisDataItem (251) */ interface TpContainerChainGenesisDataContainerChainGenesisDataItem extends Struct { readonly key: Bytes; readonly value: Bytes; } - /** @name TpContainerChainGenesisDataProperties (252) */ + /** @name TpContainerChainGenesisDataProperties (253) */ interface TpContainerChainGenesisDataProperties extends Struct { readonly tokenMetadata: TpContainerChainGenesisDataTokenMetadata; readonly isEthereum: bool; } - /** @name TpContainerChainGenesisDataTokenMetadata (253) */ + /** @name TpContainerChainGenesisDataTokenMetadata (254) */ interface TpContainerChainGenesisDataTokenMetadata extends Struct { readonly tokenSymbol: Bytes; readonly ss58Format: u32; readonly tokenDecimals: u32; } - /** @name TpTraitsSlotFrequency (255) */ + /** @name TpTraitsSlotFrequency (256) */ interface TpTraitsSlotFrequency extends Struct { readonly min: u32; readonly max: u32; } - /** @name PalletConfigurationCall (256) */ + /** @name PalletConfigurationCall (257) */ interface PalletConfigurationCall extends Enum { readonly isSetMaxCollators: boolean; readonly asSetMaxCollators: { @@ -3064,10 +3152,10 @@ declare module "@polkadot/types/lookup" { | "SetBypassConsistencyCheck"; } - /** @name PalletCollatorAssignmentCall (258) */ + /** @name PalletCollatorAssignmentCall (259) */ type PalletCollatorAssignmentCall = Null; - /** @name PalletAuthorNotingCall (259) */ + /** @name PalletAuthorNotingCall (260) */ interface PalletAuthorNotingCall extends Enum { readonly isSetLatestAuthorData: boolean; readonly asSetLatestAuthorData: { @@ -3086,15 +3174,15 @@ declare module "@polkadot/types/lookup" { readonly type: "SetLatestAuthorData" | "SetAuthor" | "KillAuthorData"; } - /** @name TpAuthorNotingInherentOwnParachainInherentData (260) */ + /** @name TpAuthorNotingInherentOwnParachainInherentData (261) */ interface TpAuthorNotingInherentOwnParachainInherentData extends Struct { readonly relayStorageProof: SpTrieStorageProof; } - /** @name PalletAuthorityAssignmentCall (261) */ + /** @name PalletAuthorityAssignmentCall (262) */ type PalletAuthorityAssignmentCall = Null; - /** @name PalletServicesPaymentCall (262) */ + /** @name PalletServicesPaymentCall (263) */ interface PalletServicesPaymentCall extends Enum { readonly isPurchaseCredits: boolean; readonly asPurchaseCredits: { @@ -3114,7 +3202,7 @@ declare module "@polkadot/types/lookup" { readonly type: "PurchaseCredits" | "SetCredits" | "SetGivenFreeCredits"; } - /** @name PalletDataPreserversCall (263) */ + /** @name PalletDataPreserversCall (264) */ interface PalletDataPreserversCall extends Enum { readonly isSetBootNodes: boolean; readonly asSetBootNodes: { @@ -3124,7 +3212,7 @@ declare module "@polkadot/types/lookup" { readonly type: "SetBootNodes"; } - /** @name PalletInvulnerablesCall (267) */ + /** @name PalletInvulnerablesCall (268) */ interface PalletInvulnerablesCall extends Enum { readonly isSetInvulnerables: boolean; readonly asSetInvulnerables: { @@ -3141,7 +3229,7 @@ declare module "@polkadot/types/lookup" { readonly type: "SetInvulnerables" | "AddInvulnerable" | "RemoveInvulnerable"; } - /** @name PalletSessionCall (268) */ + /** @name PalletSessionCall (269) */ interface PalletSessionCall extends Enum { readonly isSetKeys: boolean; readonly asSetKeys: { @@ -3152,24 +3240,24 @@ declare module "@polkadot/types/lookup" { readonly type: "SetKeys" | "PurgeKeys"; } - /** @name DanceboxRuntimeSessionKeys (269) */ + /** @name DanceboxRuntimeSessionKeys (270) */ interface DanceboxRuntimeSessionKeys extends Struct { readonly nimbus: NimbusPrimitivesNimbusCryptoPublic; } - /** @name NimbusPrimitivesNimbusCryptoPublic (270) */ + /** @name NimbusPrimitivesNimbusCryptoPublic (271) */ interface NimbusPrimitivesNimbusCryptoPublic extends SpCoreSr25519Public {} - /** @name SpCoreSr25519Public (271) */ + /** @name SpCoreSr25519Public (272) */ interface SpCoreSr25519Public extends U8aFixed {} - /** @name PalletAuthorInherentCall (272) */ + /** @name PalletAuthorInherentCall (273) */ interface PalletAuthorInherentCall extends Enum { readonly isKickOffAuthorshipValidation: boolean; readonly type: "KickOffAuthorshipValidation"; } - /** @name PalletPooledStakingCall (273) */ + /** @name PalletPooledStakingCall (274) */ interface PalletPooledStakingCall extends Enum { readonly isRebalanceHold: boolean; readonly asRebalanceHold: { @@ -3217,7 +3305,7 @@ declare module "@polkadot/types/lookup" { | "SwapPool"; } - /** @name PalletPooledStakingAllTargetPool (274) */ + /** @name PalletPooledStakingAllTargetPool (275) */ interface PalletPooledStakingAllTargetPool extends Enum { readonly isJoining: boolean; readonly isAutoCompounding: boolean; @@ -3226,13 +3314,13 @@ declare module "@polkadot/types/lookup" { readonly type: "Joining" | "AutoCompounding" | "ManualRewards" | "Leaving"; } - /** @name PalletPooledStakingPendingOperationQuery (276) */ + /** @name PalletPooledStakingPendingOperationQuery (277) */ interface PalletPooledStakingPendingOperationQuery extends Struct { readonly delegator: AccountId32; readonly operation: PalletPooledStakingPendingOperationKey; } - /** @name PalletPooledStakingPendingOperationKey (277) */ + /** @name PalletPooledStakingPendingOperationKey (278) */ interface PalletPooledStakingPendingOperationKey extends Enum { readonly isJoiningAutoCompounding: boolean; readonly asJoiningAutoCompounding: { @@ -3252,7 +3340,7 @@ declare module "@polkadot/types/lookup" { readonly type: "JoiningAutoCompounding" | "JoiningManualRewards" | "Leaving"; } - /** @name PalletPooledStakingSharesOrStake (278) */ + /** @name PalletPooledStakingSharesOrStake (279) */ interface PalletPooledStakingSharesOrStake extends Enum { readonly isShares: boolean; readonly asShares: u128; @@ -3261,7 +3349,62 @@ declare module "@polkadot/types/lookup" { readonly type: "Shares" | "Stake"; } - /** @name CumulusPalletXcmpQueueCall (281) */ + /** @name PalletTreasuryCall (282) */ + interface PalletTreasuryCall extends Enum { + readonly isProposeSpend: boolean; + readonly asProposeSpend: { + readonly value: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRejectProposal: boolean; + readonly asRejectProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isApproveProposal: boolean; + readonly asApproveProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isSpendLocal: boolean; + readonly asSpendLocal: { + readonly amount: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRemoveApproval: boolean; + readonly asRemoveApproval: { + readonly proposalId: Compact; + } & Struct; + readonly isSpend: boolean; + readonly asSpend: { + readonly assetKind: Null; + readonly amount: Compact; + readonly beneficiary: AccountId32; + readonly validFrom: Option; + } & Struct; + readonly isPayout: boolean; + readonly asPayout: { + readonly index: u32; + } & Struct; + readonly isCheckStatus: boolean; + readonly asCheckStatus: { + readonly index: u32; + } & Struct; + readonly isVoidSpend: boolean; + readonly asVoidSpend: { + readonly index: u32; + } & Struct; + readonly type: + | "ProposeSpend" + | "RejectProposal" + | "ApproveProposal" + | "SpendLocal" + | "RemoveApproval" + | "Spend" + | "Payout" + | "CheckStatus" + | "VoidSpend"; + } + + /** @name CumulusPalletXcmpQueueCall (283) */ interface CumulusPalletXcmpQueueCall extends Enum { readonly isServiceOverweight: boolean; readonly asServiceOverweight: { @@ -3306,7 +3449,7 @@ declare module "@polkadot/types/lookup" { | "UpdateXcmpMaxIndividualWeight"; } - /** @name CumulusPalletDmpQueueCall (282) */ + /** @name CumulusPalletDmpQueueCall (284) */ interface CumulusPalletDmpQueueCall extends Enum { readonly isServiceOverweight: boolean; readonly asServiceOverweight: { @@ -3316,7 +3459,7 @@ declare module "@polkadot/types/lookup" { readonly type: "ServiceOverweight"; } - /** @name PalletXcmCall (283) */ + /** @name PalletXcmCall (285) */ interface PalletXcmCall extends Enum { readonly isSend: boolean; readonly asSend: { @@ -3393,7 +3536,7 @@ declare module "@polkadot/types/lookup" { | "ForceSuspension"; } - /** @name XcmVersionedXcm (284) */ + /** @name XcmVersionedXcm (286) */ interface XcmVersionedXcm extends Enum { readonly isV2: boolean; readonly asV2: XcmV2Xcm; @@ -3402,10 +3545,10 @@ declare module "@polkadot/types/lookup" { readonly type: "V2" | "V3"; } - /** @name XcmV2Xcm (285) */ + /** @name XcmV2Xcm (287) */ interface XcmV2Xcm extends Vec {} - /** @name XcmV2Instruction (287) */ + /** @name XcmV2Instruction (289) */ interface XcmV2Instruction extends Enum { readonly isWithdrawAsset: boolean; readonly asWithdrawAsset: XcmV2MultiassetMultiAssets; @@ -3553,7 +3696,7 @@ declare module "@polkadot/types/lookup" { | "UnsubscribeVersion"; } - /** @name XcmV2Response (288) */ + /** @name XcmV2Response (290) */ interface XcmV2Response extends Enum { readonly isNull: boolean; readonly isAssets: boolean; @@ -3565,7 +3708,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Null" | "Assets" | "ExecutionResult" | "Version"; } - /** @name XcmV2TraitsError (291) */ + /** @name XcmV2TraitsError (293) */ interface XcmV2TraitsError extends Enum { readonly isOverflow: boolean; readonly isUnimplemented: boolean; @@ -3624,7 +3767,7 @@ declare module "@polkadot/types/lookup" { | "WeightNotComputable"; } - /** @name XcmV2MultiassetMultiAssetFilter (292) */ + /** @name XcmV2MultiassetMultiAssetFilter (294) */ interface XcmV2MultiassetMultiAssetFilter extends Enum { readonly isDefinite: boolean; readonly asDefinite: XcmV2MultiassetMultiAssets; @@ -3633,7 +3776,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Definite" | "Wild"; } - /** @name XcmV2MultiassetWildMultiAsset (293) */ + /** @name XcmV2MultiassetWildMultiAsset (295) */ interface XcmV2MultiassetWildMultiAsset extends Enum { readonly isAll: boolean; readonly isAllOf: boolean; @@ -3644,14 +3787,14 @@ declare module "@polkadot/types/lookup" { readonly type: "All" | "AllOf"; } - /** @name XcmV2MultiassetWildFungibility (294) */ + /** @name XcmV2MultiassetWildFungibility (296) */ interface XcmV2MultiassetWildFungibility extends Enum { readonly isFungible: boolean; readonly isNonFungible: boolean; readonly type: "Fungible" | "NonFungible"; } - /** @name XcmV2WeightLimit (295) */ + /** @name XcmV2WeightLimit (297) */ interface XcmV2WeightLimit extends Enum { readonly isUnlimited: boolean; readonly isLimited: boolean; @@ -3659,7 +3802,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Unlimited" | "Limited"; } - /** @name PalletAssetsCall (304) */ + /** @name PalletAssetsCall (306) */ interface PalletAssetsCall extends Enum { readonly isCreate: boolean; readonly asCreate: { @@ -3873,7 +4016,7 @@ declare module "@polkadot/types/lookup" { | "Block"; } - /** @name PalletForeignAssetCreatorCall (305) */ + /** @name PalletForeignAssetCreatorCall (307) */ interface PalletForeignAssetCreatorCall extends Enum { readonly isCreateForeignAsset: boolean; readonly asCreateForeignAsset: { @@ -3903,7 +4046,7 @@ declare module "@polkadot/types/lookup" { | "DestroyForeignAsset"; } - /** @name PalletAssetRateCall (306) */ + /** @name PalletAssetRateCall (308) */ interface PalletAssetRateCall extends Enum { readonly isCreate: boolean; readonly asCreate: { @@ -3922,7 +4065,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Create" | "Update" | "Remove"; } - /** @name PalletRootTestingCall (307) */ + /** @name PalletRootTestingCall (309) */ interface PalletRootTestingCall extends Enum { readonly isFillBlock: boolean; readonly asFillBlock: { @@ -3931,33 +4074,33 @@ declare module "@polkadot/types/lookup" { readonly type: "FillBlock"; } - /** @name PalletSudoError (308) */ + /** @name PalletSudoError (310) */ interface PalletSudoError extends Enum { readonly isRequireSudo: boolean; readonly type: "RequireSudo"; } - /** @name PalletUtilityError (309) */ + /** @name PalletUtilityError (311) */ interface PalletUtilityError extends Enum { readonly isTooManyCalls: boolean; readonly type: "TooManyCalls"; } - /** @name PalletProxyProxyDefinition (312) */ + /** @name PalletProxyProxyDefinition (314) */ interface PalletProxyProxyDefinition extends Struct { readonly delegate: AccountId32; readonly proxyType: DanceboxRuntimeProxyType; readonly delay: u32; } - /** @name PalletProxyAnnouncement (316) */ + /** @name PalletProxyAnnouncement (318) */ interface PalletProxyAnnouncement extends Struct { readonly real: AccountId32; readonly callHash: H256; readonly height: u32; } - /** @name PalletProxyError (318) */ + /** @name PalletProxyError (320) */ interface PalletProxyError extends Enum { readonly isTooMany: boolean; readonly isNotFound: boolean; @@ -3978,7 +4121,7 @@ declare module "@polkadot/types/lookup" { | "NoSelfProxy"; } - /** @name PalletMigrationsError (319) */ + /** @name PalletMigrationsError (321) */ interface PalletMigrationsError extends Enum { readonly isPreimageMissing: boolean; readonly isWrongUpperBound: boolean; @@ -3987,14 +4130,14 @@ declare module "@polkadot/types/lookup" { readonly type: "PreimageMissing" | "WrongUpperBound" | "PreimageIsTooBig" | "PreimageAlreadyExists"; } - /** @name PalletMaintenanceModeError (320) */ + /** @name PalletMaintenanceModeError (322) */ interface PalletMaintenanceModeError extends Enum { readonly isAlreadyInMaintenanceMode: boolean; readonly isNotInMaintenanceMode: boolean; readonly type: "AlreadyInMaintenanceMode" | "NotInMaintenanceMode"; } - /** @name PalletTxPauseError (321) */ + /** @name PalletTxPauseError (323) */ interface PalletTxPauseError extends Enum { readonly isIsPaused: boolean; readonly isIsUnpaused: boolean; @@ -4003,14 +4146,14 @@ declare module "@polkadot/types/lookup" { readonly type: "IsPaused" | "IsUnpaused" | "Unpausable" | "NotFound"; } - /** @name PalletBalancesBalanceLock (323) */ + /** @name PalletBalancesBalanceLock (325) */ interface PalletBalancesBalanceLock extends Struct { readonly id: U8aFixed; readonly amount: u128; readonly reasons: PalletBalancesReasons; } - /** @name PalletBalancesReasons (324) */ + /** @name PalletBalancesReasons (326) */ interface PalletBalancesReasons extends Enum { readonly isFee: boolean; readonly isMisc: boolean; @@ -4018,32 +4161,32 @@ declare module "@polkadot/types/lookup" { readonly type: "Fee" | "Misc" | "All"; } - /** @name PalletBalancesReserveData (327) */ + /** @name PalletBalancesReserveData (329) */ interface PalletBalancesReserveData extends Struct { readonly id: U8aFixed; readonly amount: u128; } - /** @name DanceboxRuntimeRuntimeHoldReason (331) */ + /** @name DanceboxRuntimeRuntimeHoldReason (333) */ interface DanceboxRuntimeRuntimeHoldReason extends Enum { readonly isPooledStaking: boolean; readonly asPooledStaking: PalletPooledStakingHoldReason; readonly type: "PooledStaking"; } - /** @name PalletPooledStakingHoldReason (332) */ + /** @name PalletPooledStakingHoldReason (334) */ interface PalletPooledStakingHoldReason extends Enum { readonly isPooledStake: boolean; readonly type: "PooledStake"; } - /** @name PalletBalancesIdAmount (335) */ + /** @name PalletBalancesIdAmount (337) */ interface PalletBalancesIdAmount extends Struct { readonly id: U8aFixed; readonly amount: u128; } - /** @name PalletBalancesError (337) */ + /** @name PalletBalancesError (339) */ interface PalletBalancesError extends Enum { readonly isVestingBalance: boolean; readonly isLiquidityRestrictions: boolean; @@ -4068,28 +4211,28 @@ declare module "@polkadot/types/lookup" { | "TooManyFreezes"; } - /** @name PalletTransactionPaymentReleases (338) */ + /** @name PalletTransactionPaymentReleases (340) */ interface PalletTransactionPaymentReleases extends Enum { readonly isV1Ancient: boolean; readonly isV2: boolean; readonly type: "V1Ancient" | "V2"; } - /** @name PalletIdentityRegistration (339) */ + /** @name PalletIdentityRegistration (341) */ interface PalletIdentityRegistration extends Struct { readonly judgements: Vec>; readonly deposit: u128; readonly info: PalletIdentitySimpleIdentityInfo; } - /** @name PalletIdentityRegistrarInfo (347) */ + /** @name PalletIdentityRegistrarInfo (349) */ interface PalletIdentityRegistrarInfo extends Struct { readonly account: AccountId32; readonly fee: u128; readonly fields: PalletIdentityBitFlags; } - /** @name PalletIdentityError (349) */ + /** @name PalletIdentityError (351) */ interface PalletIdentityError extends Enum { readonly isTooManySubAccounts: boolean; readonly isNotFound: boolean; @@ -4130,18 +4273,18 @@ declare module "@polkadot/types/lookup" { | "JudgementPaymentFailed"; } - /** @name TpTraitsParathreadParams (354) */ + /** @name TpTraitsParathreadParams (356) */ interface TpTraitsParathreadParams extends Struct { readonly slotFrequency: TpTraitsSlotFrequency; } - /** @name PalletRegistrarDepositInfo (360) */ + /** @name PalletRegistrarDepositInfo (362) */ interface PalletRegistrarDepositInfo extends Struct { readonly creator: AccountId32; readonly deposit: u128; } - /** @name PalletRegistrarError (361) */ + /** @name PalletRegistrarError (363) */ interface PalletRegistrarError extends Enum { readonly isParaIdAlreadyRegistered: boolean; readonly isParaIdNotRegistered: boolean; @@ -4166,7 +4309,7 @@ declare module "@polkadot/types/lookup" { | "NotAParathread"; } - /** @name PalletConfigurationHostConfiguration (362) */ + /** @name PalletConfigurationHostConfiguration (364) */ interface PalletConfigurationHostConfiguration extends Struct { readonly maxCollators: u32; readonly minOrchestratorCollators: u32; @@ -4178,25 +4321,25 @@ declare module "@polkadot/types/lookup" { readonly targetContainerChainFullness: Perbill; } - /** @name PalletConfigurationError (365) */ + /** @name PalletConfigurationError (367) */ interface PalletConfigurationError extends Enum { readonly isInvalidNewValue: boolean; readonly type: "InvalidNewValue"; } - /** @name DpCollatorAssignmentAssignedCollatorsAccountId32 (366) */ + /** @name DpCollatorAssignmentAssignedCollatorsAccountId32 (368) */ interface DpCollatorAssignmentAssignedCollatorsAccountId32 extends Struct { readonly orchestratorChain: Vec; readonly containerChains: BTreeMap>; } - /** @name PalletAuthorNotingContainerChainBlockInfo (371) */ + /** @name PalletAuthorNotingContainerChainBlockInfo (373) */ interface PalletAuthorNotingContainerChainBlockInfo extends Struct { readonly blockNumber: u32; readonly author: AccountId32; } - /** @name PalletAuthorNotingError (372) */ + /** @name PalletAuthorNotingError (374) */ interface PalletAuthorNotingError extends Enum { readonly isFailedReading: boolean; readonly isFailedDecodingHeader: boolean; @@ -4215,13 +4358,13 @@ declare module "@polkadot/types/lookup" { | "NonAuraDigest"; } - /** @name DpCollatorAssignmentAssignedCollatorsPublic (373) */ + /** @name DpCollatorAssignmentAssignedCollatorsPublic (375) */ interface DpCollatorAssignmentAssignedCollatorsPublic extends Struct { readonly orchestratorChain: Vec; readonly containerChains: BTreeMap>; } - /** @name PalletServicesPaymentError (378) */ + /** @name PalletServicesPaymentError (380) */ interface PalletServicesPaymentError extends Enum { readonly isInsufficientFundsToPurchaseCredits: boolean; readonly isInsufficientCredits: boolean; @@ -4229,13 +4372,13 @@ declare module "@polkadot/types/lookup" { readonly type: "InsufficientFundsToPurchaseCredits" | "InsufficientCredits" | "CreditPriceTooExpensive"; } - /** @name PalletDataPreserversError (379) */ + /** @name PalletDataPreserversError (381) */ interface PalletDataPreserversError extends Enum { readonly isNoBootNodes: boolean; readonly type: "NoBootNodes"; } - /** @name PalletInvulnerablesError (381) */ + /** @name PalletInvulnerablesError (383) */ interface PalletInvulnerablesError extends Enum { readonly isTooManyInvulnerables: boolean; readonly isAlreadyInvulnerable: boolean; @@ -4243,10 +4386,10 @@ declare module "@polkadot/types/lookup" { readonly type: "TooManyInvulnerables" | "AlreadyInvulnerable" | "NotInvulnerable"; } - /** @name SpCoreCryptoKeyTypeId (386) */ + /** @name SpCoreCryptoKeyTypeId (388) */ interface SpCoreCryptoKeyTypeId extends U8aFixed {} - /** @name PalletSessionError (387) */ + /** @name PalletSessionError (389) */ interface PalletSessionError extends Enum { readonly isInvalidProof: boolean; readonly isNoAssociatedValidatorId: boolean; @@ -4256,7 +4399,7 @@ declare module "@polkadot/types/lookup" { readonly type: "InvalidProof" | "NoAssociatedValidatorId" | "DuplicatedKey" | "NoKeys" | "NoAccount"; } - /** @name PalletAuthorInherentError (391) */ + /** @name PalletAuthorInherentError (393) */ interface PalletAuthorInherentError extends Enum { readonly isAuthorAlreadySet: boolean; readonly isNoAccountId: boolean; @@ -4264,13 +4407,13 @@ declare module "@polkadot/types/lookup" { readonly type: "AuthorAlreadySet" | "NoAccountId" | "CannotBeAuthor"; } - /** @name PalletPooledStakingCandidateEligibleCandidate (393) */ + /** @name PalletPooledStakingCandidateEligibleCandidate (395) */ interface PalletPooledStakingCandidateEligibleCandidate extends Struct { readonly candidate: AccountId32; readonly stake: u128; } - /** @name PalletPooledStakingPoolsKey (396) */ + /** @name PalletPooledStakingPoolsKey (398) */ interface PalletPooledStakingPoolsKey extends Enum { readonly isCandidateTotalStake: boolean; readonly isJoiningShares: boolean; @@ -4340,7 +4483,7 @@ declare module "@polkadot/types/lookup" { | "LeavingSharesHeldStake"; } - /** @name PalletPooledStakingError (398) */ + /** @name PalletPooledStakingError (400) */ interface PalletPooledStakingError extends Enum { readonly isInvalidPalletSetting: boolean; readonly isDisabledFeature: boolean; @@ -4374,27 +4517,88 @@ declare module "@polkadot/types/lookup" { | "SwapResultsInZeroShares"; } - /** @name PalletInflationRewardsChainsToRewardValue (399) */ + /** @name PalletInflationRewardsChainsToRewardValue (401) */ interface PalletInflationRewardsChainsToRewardValue extends Struct { readonly paraIds: Vec; readonly rewardsPerChain: u128; } - /** @name CumulusPalletXcmpQueueInboundChannelDetails (401) */ + /** @name PalletTreasuryProposal (402) */ + interface PalletTreasuryProposal extends Struct { + readonly proposer: AccountId32; + readonly value: u128; + readonly beneficiary: AccountId32; + readonly bond: u128; + } + + /** @name PalletTreasurySpendStatus (404) */ + interface PalletTreasurySpendStatus extends Struct { + readonly assetKind: Null; + readonly amount: u128; + readonly beneficiary: AccountId32; + readonly validFrom: u32; + readonly expireAt: u32; + readonly status: PalletTreasuryPaymentState; + } + + /** @name PalletTreasuryPaymentState (405) */ + interface PalletTreasuryPaymentState extends Enum { + readonly isPending: boolean; + readonly isAttempted: boolean; + readonly asAttempted: { + readonly id: Null; + } & Struct; + readonly isFailed: boolean; + readonly type: "Pending" | "Attempted" | "Failed"; + } + + /** @name FrameSupportPalletId (408) */ + interface FrameSupportPalletId extends U8aFixed {} + + /** @name PalletTreasuryError (409) */ + interface PalletTreasuryError extends Enum { + readonly isInsufficientProposersBalance: boolean; + readonly isInvalidIndex: boolean; + readonly isTooManyApprovals: boolean; + readonly isInsufficientPermission: boolean; + readonly isProposalNotApproved: boolean; + readonly isFailedToConvertBalance: boolean; + readonly isSpendExpired: boolean; + readonly isEarlyPayout: boolean; + readonly isAlreadyAttempted: boolean; + readonly isPayoutError: boolean; + readonly isNotAttempted: boolean; + readonly isInconclusive: boolean; + readonly type: + | "InsufficientProposersBalance" + | "InvalidIndex" + | "TooManyApprovals" + | "InsufficientPermission" + | "ProposalNotApproved" + | "FailedToConvertBalance" + | "SpendExpired" + | "EarlyPayout" + | "AlreadyAttempted" + | "PayoutError" + | "NotAttempted" + | "Inconclusive"; + } + + /** @name CumulusPalletXcmpQueueInboundChannelDetails (411) */ interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct { readonly sender: u32; readonly state: CumulusPalletXcmpQueueInboundState; readonly messageMetadata: Vec>; } - /** @name CumulusPalletXcmpQueueInboundState (402) */ + /** @name CumulusPalletXcmpQueueInboundState (412) */ interface CumulusPalletXcmpQueueInboundState extends Enum { readonly isOk: boolean; readonly isSuspended: boolean; readonly type: "Ok" | "Suspended"; } - /** @name PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat (405) */ + /** @name PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat (415) */ interface PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat extends Enum { readonly isConcatenatedVersionedXcm: boolean; readonly isConcatenatedEncodedBlob: boolean; @@ -4402,7 +4606,7 @@ declare module "@polkadot/types/lookup" { readonly type: "ConcatenatedVersionedXcm" | "ConcatenatedEncodedBlob" | "Signals"; } - /** @name CumulusPalletXcmpQueueOutboundChannelDetails (408) */ + /** @name CumulusPalletXcmpQueueOutboundChannelDetails (418) */ interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct { readonly recipient: u32; readonly state: CumulusPalletXcmpQueueOutboundState; @@ -4411,14 +4615,14 @@ declare module "@polkadot/types/lookup" { readonly lastIndex: u16; } - /** @name CumulusPalletXcmpQueueOutboundState (409) */ + /** @name CumulusPalletXcmpQueueOutboundState (419) */ interface CumulusPalletXcmpQueueOutboundState extends Enum { readonly isOk: boolean; readonly isSuspended: boolean; readonly type: "Ok" | "Suspended"; } - /** @name CumulusPalletXcmpQueueQueueConfigData (411) */ + /** @name CumulusPalletXcmpQueueQueueConfigData (421) */ interface CumulusPalletXcmpQueueQueueConfigData extends Struct { readonly suspendThreshold: u32; readonly dropThreshold: u32; @@ -4428,7 +4632,7 @@ declare module "@polkadot/types/lookup" { readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight; } - /** @name CumulusPalletXcmpQueueError (413) */ + /** @name CumulusPalletXcmpQueueError (423) */ interface CumulusPalletXcmpQueueError extends Enum { readonly isFailedToSend: boolean; readonly isBadXcmOrigin: boolean; @@ -4438,29 +4642,29 @@ declare module "@polkadot/types/lookup" { readonly type: "FailedToSend" | "BadXcmOrigin" | "BadXcm" | "BadOverweightIndex" | "WeightOverLimit"; } - /** @name CumulusPalletXcmError (414) */ + /** @name CumulusPalletXcmError (424) */ type CumulusPalletXcmError = Null; - /** @name CumulusPalletDmpQueueConfigData (415) */ + /** @name CumulusPalletDmpQueueConfigData (425) */ interface CumulusPalletDmpQueueConfigData extends Struct { readonly maxIndividual: SpWeightsWeightV2Weight; } - /** @name CumulusPalletDmpQueuePageIndexData (416) */ + /** @name CumulusPalletDmpQueuePageIndexData (426) */ interface CumulusPalletDmpQueuePageIndexData extends Struct { readonly beginUsed: u32; readonly endUsed: u32; readonly overweightCount: u64; } - /** @name CumulusPalletDmpQueueError (419) */ + /** @name CumulusPalletDmpQueueError (429) */ interface CumulusPalletDmpQueueError extends Enum { readonly isUnknown: boolean; readonly isOverLimit: boolean; readonly type: "Unknown" | "OverLimit"; } - /** @name PalletXcmQueryStatus (420) */ + /** @name PalletXcmQueryStatus (430) */ interface PalletXcmQueryStatus extends Enum { readonly isPending: boolean; readonly asPending: { @@ -4482,7 +4686,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Pending" | "VersionNotifier" | "Ready"; } - /** @name XcmVersionedResponse (424) */ + /** @name XcmVersionedResponse (434) */ interface XcmVersionedResponse extends Enum { readonly isV2: boolean; readonly asV2: XcmV2Response; @@ -4491,7 +4695,7 @@ declare module "@polkadot/types/lookup" { readonly type: "V2" | "V3"; } - /** @name PalletXcmVersionMigrationStage (430) */ + /** @name PalletXcmVersionMigrationStage (440) */ interface PalletXcmVersionMigrationStage extends Enum { readonly isMigrateSupportedVersion: boolean; readonly isMigrateVersionNotifiers: boolean; @@ -4505,14 +4709,14 @@ declare module "@polkadot/types/lookup" { | "MigrateAndNotifyOldTargets"; } - /** @name XcmVersionedAssetId (432) */ + /** @name XcmVersionedAssetId (442) */ interface XcmVersionedAssetId extends Enum { readonly isV3: boolean; readonly asV3: XcmV3MultiassetAssetId; readonly type: "V3"; } - /** @name PalletXcmRemoteLockedFungibleRecord (433) */ + /** @name PalletXcmRemoteLockedFungibleRecord (443) */ interface PalletXcmRemoteLockedFungibleRecord extends Struct { readonly amount: u128; readonly owner: XcmVersionedMultiLocation; @@ -4520,7 +4724,7 @@ declare module "@polkadot/types/lookup" { readonly consumers: Vec>; } - /** @name PalletXcmError (440) */ + /** @name PalletXcmError (450) */ interface PalletXcmError extends Enum { readonly isUnreachable: boolean; readonly isSendFailure: boolean; @@ -4565,7 +4769,7 @@ declare module "@polkadot/types/lookup" { | "InUse"; } - /** @name PalletAssetsAssetDetails (441) */ + /** @name PalletAssetsAssetDetails (451) */ interface PalletAssetsAssetDetails extends Struct { readonly owner: AccountId32; readonly issuer: AccountId32; @@ -4581,7 +4785,7 @@ declare module "@polkadot/types/lookup" { readonly status: PalletAssetsAssetStatus; } - /** @name PalletAssetsAssetStatus (442) */ + /** @name PalletAssetsAssetStatus (452) */ interface PalletAssetsAssetStatus extends Enum { readonly isLive: boolean; readonly isFrozen: boolean; @@ -4589,7 +4793,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Live" | "Frozen" | "Destroying"; } - /** @name PalletAssetsAssetAccount (444) */ + /** @name PalletAssetsAssetAccount (454) */ interface PalletAssetsAssetAccount extends Struct { readonly balance: u128; readonly status: PalletAssetsAccountStatus; @@ -4597,7 +4801,7 @@ declare module "@polkadot/types/lookup" { readonly extra: Null; } - /** @name PalletAssetsAccountStatus (445) */ + /** @name PalletAssetsAccountStatus (455) */ interface PalletAssetsAccountStatus extends Enum { readonly isLiquid: boolean; readonly isFrozen: boolean; @@ -4605,7 +4809,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Liquid" | "Frozen" | "Blocked"; } - /** @name PalletAssetsExistenceReason (446) */ + /** @name PalletAssetsExistenceReason (456) */ interface PalletAssetsExistenceReason extends Enum { readonly isConsumer: boolean; readonly isSufficient: boolean; @@ -4617,13 +4821,13 @@ declare module "@polkadot/types/lookup" { readonly type: "Consumer" | "Sufficient" | "DepositHeld" | "DepositRefunded" | "DepositFrom"; } - /** @name PalletAssetsApproval (448) */ + /** @name PalletAssetsApproval (458) */ interface PalletAssetsApproval extends Struct { readonly amount: u128; readonly deposit: u128; } - /** @name PalletAssetsAssetMetadata (449) */ + /** @name PalletAssetsAssetMetadata (459) */ interface PalletAssetsAssetMetadata extends Struct { readonly deposit: u128; readonly name: Bytes; @@ -4632,7 +4836,7 @@ declare module "@polkadot/types/lookup" { readonly isFrozen: bool; } - /** @name PalletAssetsError (451) */ + /** @name PalletAssetsError (461) */ interface PalletAssetsError extends Enum { readonly isBalanceLow: boolean; readonly isNoAccount: boolean; @@ -4677,21 +4881,21 @@ declare module "@polkadot/types/lookup" { | "CallbackFailed"; } - /** @name PalletForeignAssetCreatorError (452) */ + /** @name PalletForeignAssetCreatorError (462) */ interface PalletForeignAssetCreatorError extends Enum { readonly isAssetAlreadyExists: boolean; readonly isAssetDoesNotExist: boolean; readonly type: "AssetAlreadyExists" | "AssetDoesNotExist"; } - /** @name PalletAssetRateError (453) */ + /** @name PalletAssetRateError (463) */ interface PalletAssetRateError extends Enum { readonly isUnknownAssetKind: boolean; readonly isAlreadyExists: boolean; readonly type: "UnknownAssetKind" | "AlreadyExists"; } - /** @name SpRuntimeMultiSignature (458) */ + /** @name SpRuntimeMultiSignature (468) */ interface SpRuntimeMultiSignature extends Enum { readonly isEd25519: boolean; readonly asEd25519: SpCoreEd25519Signature; @@ -4702,36 +4906,36 @@ declare module "@polkadot/types/lookup" { readonly type: "Ed25519" | "Sr25519" | "Ecdsa"; } - /** @name SpCoreEd25519Signature (459) */ + /** @name SpCoreEd25519Signature (469) */ interface SpCoreEd25519Signature extends U8aFixed {} - /** @name SpCoreSr25519Signature (461) */ + /** @name SpCoreSr25519Signature (471) */ interface SpCoreSr25519Signature extends U8aFixed {} - /** @name SpCoreEcdsaSignature (462) */ + /** @name SpCoreEcdsaSignature (472) */ interface SpCoreEcdsaSignature extends U8aFixed {} - /** @name FrameSystemExtensionsCheckNonZeroSender (465) */ + /** @name FrameSystemExtensionsCheckNonZeroSender (475) */ type FrameSystemExtensionsCheckNonZeroSender = Null; - /** @name FrameSystemExtensionsCheckSpecVersion (466) */ + /** @name FrameSystemExtensionsCheckSpecVersion (476) */ type FrameSystemExtensionsCheckSpecVersion = Null; - /** @name FrameSystemExtensionsCheckTxVersion (467) */ + /** @name FrameSystemExtensionsCheckTxVersion (477) */ type FrameSystemExtensionsCheckTxVersion = Null; - /** @name FrameSystemExtensionsCheckGenesis (468) */ + /** @name FrameSystemExtensionsCheckGenesis (478) */ type FrameSystemExtensionsCheckGenesis = Null; - /** @name FrameSystemExtensionsCheckNonce (471) */ + /** @name FrameSystemExtensionsCheckNonce (481) */ interface FrameSystemExtensionsCheckNonce extends Compact {} - /** @name FrameSystemExtensionsCheckWeight (472) */ + /** @name FrameSystemExtensionsCheckWeight (482) */ type FrameSystemExtensionsCheckWeight = Null; - /** @name PalletTransactionPaymentChargeTransactionPayment (473) */ + /** @name PalletTransactionPaymentChargeTransactionPayment (483) */ interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} - /** @name DanceboxRuntimeRuntime (474) */ + /** @name DanceboxRuntimeRuntime (484) */ type DanceboxRuntimeRuntime = Null; } // declare module diff --git a/typescript-api/src/flashbox/interfaces/augment-api-consts.ts b/typescript-api/src/flashbox/interfaces/augment-api-consts.ts index 317586e2e..c1001de8a 100644 --- a/typescript-api/src/flashbox/interfaces/augment-api-consts.ts +++ b/typescript-api/src/flashbox/interfaces/augment-api-consts.ts @@ -6,9 +6,11 @@ import "@polkadot/api-base/types/consts"; import type { ApiTypes, AugmentedConst } from "@polkadot/api-base/types"; -import type { u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; +import type { Option, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; import type { Codec } from "@polkadot/types-codec/types"; +import type { Permill } from "@polkadot/types/interfaces/runtime"; import type { + FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, @@ -176,6 +178,33 @@ declare module "@polkadot/api-base/types/consts" { /** Generic const */ [key: string]: Codec; }; + treasury: { + /** Percentage of spare funds (if any) that are burnt per spend period. */ + burn: Permill & AugmentedConst; + /** + * The maximum number of approvals that can wait in the spending queue. + * + * NOTE: This parameter is also used within the Bounties Pallet extension if enabled. + */ + maxApprovals: u32 & AugmentedConst; + /** The treasury's pallet id, used for deriving its sovereign account ID. */ + palletId: FrameSupportPalletId & AugmentedConst; + /** The period during which an approved treasury spend has to be claimed. */ + payoutPeriod: u32 & AugmentedConst; + /** + * Fraction of a proposal's value that should be bonded in order to place the proposal. An accepted proposal gets + * these back. A rejected proposal does not. + */ + proposalBond: Permill & AugmentedConst; + /** Maximum amount of funds that should be placed in a deposit for making a proposal. */ + proposalBondMaximum: Option & AugmentedConst; + /** Minimum amount of funds that should be placed in a deposit for making a proposal. */ + proposalBondMinimum: u128 & AugmentedConst; + /** Period between successive spends. */ + spendPeriod: u32 & AugmentedConst; + /** Generic const */ + [key: string]: Codec; + }; txPause: { /** * Maximum length for pallet name and call name SCALE encoded string names. diff --git a/typescript-api/src/flashbox/interfaces/augment-api-errors.ts b/typescript-api/src/flashbox/interfaces/augment-api-errors.ts index b2f2361cf..70a91cd2a 100644 --- a/typescript-api/src/flashbox/interfaces/augment-api-errors.ts +++ b/typescript-api/src/flashbox/interfaces/augment-api-errors.ts @@ -250,6 +250,34 @@ declare module "@polkadot/api-base/types/errors" { /** Generic error */ [key: string]: AugmentedError; }; + treasury: { + /** The payment has already been attempted. */ + AlreadyAttempted: AugmentedError; + /** The spend is not yet eligible for payout. */ + EarlyPayout: AugmentedError; + /** The balance of the asset kind is not convertible to the balance of the native asset. */ + FailedToConvertBalance: AugmentedError; + /** The payment has neither failed nor succeeded yet. */ + Inconclusive: AugmentedError; + /** The spend origin is valid but the amount it is allowed to spend is lower than the amount to be spent. */ + InsufficientPermission: AugmentedError; + /** Proposer's balance is too low. */ + InsufficientProposersBalance: AugmentedError; + /** No proposal, bounty or spend at that index. */ + InvalidIndex: AugmentedError; + /** The payout was not yet attempted/claimed. */ + NotAttempted: AugmentedError; + /** There was some issue with the mechanism of payment. */ + PayoutError: AugmentedError; + /** Proposal has not been approved. */ + ProposalNotApproved: AugmentedError; + /** The spend has expired and cannot be claimed. */ + SpendExpired: AugmentedError; + /** Too many approvals in the queue. */ + TooManyApprovals: AugmentedError; + /** Generic error */ + [key: string]: AugmentedError; + }; txPause: { /** The call is paused. */ IsPaused: AugmentedError; diff --git a/typescript-api/src/flashbox/interfaces/augment-api-events.ts b/typescript-api/src/flashbox/interfaces/augment-api-events.ts index 61cd8d495..0d1dd6f1f 100644 --- a/typescript-api/src/flashbox/interfaces/augment-api-events.ts +++ b/typescript-api/src/flashbox/interfaces/augment-api-events.ts @@ -415,6 +415,58 @@ declare module "@polkadot/api-base/types/events" { /** Generic event */ [key: string]: AugmentedEvent; }; + treasury: { + /** A new asset spend proposal has been approved. */ + AssetSpendApproved: AugmentedEvent< + ApiType, + [index: u32, assetKind: Null, amount: u128, beneficiary: AccountId32, validFrom: u32, expireAt: u32], + { index: u32; assetKind: Null; amount: u128; beneficiary: AccountId32; validFrom: u32; expireAt: u32 } + >; + /** An approved spend was voided. */ + AssetSpendVoided: AugmentedEvent; + /** Some funds have been allocated. */ + Awarded: AugmentedEvent< + ApiType, + [proposalIndex: u32, award: u128, account: AccountId32], + { proposalIndex: u32; award: u128; account: AccountId32 } + >; + /** Some of our funds have been burnt. */ + Burnt: AugmentedEvent; + /** Some funds have been deposited. */ + Deposit: AugmentedEvent; + /** A payment happened. */ + Paid: AugmentedEvent; + /** A payment failed and can be retried. */ + PaymentFailed: AugmentedEvent; + /** New proposal. */ + Proposed: AugmentedEvent; + /** A proposal was rejected; funds were slashed. */ + Rejected: AugmentedEvent< + ApiType, + [proposalIndex: u32, slashed: u128], + { proposalIndex: u32; slashed: u128 } + >; + /** Spending has finished; this is the amount that rolls over until next spend. */ + Rollover: AugmentedEvent; + /** A new spend proposal has been approved. */ + SpendApproved: AugmentedEvent< + ApiType, + [proposalIndex: u32, amount: u128, beneficiary: AccountId32], + { proposalIndex: u32; amount: u128; beneficiary: AccountId32 } + >; + /** We have ended a spend period and will now allocate funds. */ + Spending: AugmentedEvent; + /** A spend was processed and removed from the storage. It might have been successfully paid or it may have expired. */ + SpendProcessed: AugmentedEvent; + /** The inactive funds of the pallet have been updated. */ + UpdatedInactive: AugmentedEvent< + ApiType, + [reactivated: u128, deactivated: u128], + { reactivated: u128; deactivated: u128 } + >; + /** Generic event */ + [key: string]: AugmentedEvent; + }; txPause: { /** This pallet, or a specific call is now paused. */ CallPaused: AugmentedEvent< diff --git a/typescript-api/src/flashbox/interfaces/augment-api-query.ts b/typescript-api/src/flashbox/interfaces/augment-api-query.ts index ffa54e075..ae6e19aa6 100644 --- a/typescript-api/src/flashbox/interfaces/augment-api-query.ts +++ b/typescript-api/src/flashbox/interfaces/augment-api-query.ts @@ -38,6 +38,8 @@ import type { PalletProxyProxyDefinition, PalletRegistrarDepositInfo, PalletTransactionPaymentReleases, + PalletTreasuryProposal, + PalletTreasurySpendStatus, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV6AbridgedHostConfiguration, PolkadotPrimitivesV6PersistedValidationData, @@ -790,6 +792,32 @@ declare module "@polkadot/api-base/types/storage" { /** Generic query */ [key: string]: QueryableStorageEntry; }; + treasury: { + /** Proposal indices that have been approved but not yet awarded. */ + approvals: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** The amount which has been reported as inactive to Currency. */ + deactivated: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** Number of proposals that have been made. */ + proposalCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** Proposals that have been made. */ + proposals: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** The count of spends that have been made. */ + spendCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** Spends that have been approved and being processed. */ + spends: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** Generic query */ + [key: string]: QueryableStorageEntry; + }; txPause: { /** The set of calls that are explicitly paused. */ pausedCalls: AugmentedQuery< diff --git a/typescript-api/src/flashbox/interfaces/augment-api-tx.ts b/typescript-api/src/flashbox/interfaces/augment-api-tx.ts index 45e57bfdf..fe43b5462 100644 --- a/typescript-api/src/flashbox/interfaces/augment-api-tx.ts +++ b/typescript-api/src/flashbox/interfaces/augment-api-tx.ts @@ -12,7 +12,7 @@ import type { SubmittableExtrinsicFunction, } from "@polkadot/api-base/types"; import type { Data } from "@polkadot/types"; -import type { Bytes, Compact, Option, Vec, bool, u128, u16, u32, u64 } from "@polkadot/types-codec"; +import type { Bytes, Compact, Null, Option, Vec, bool, u128, u16, u32, u64 } from "@polkadot/types-codec"; import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types"; import type { AccountId32, Call, H256, MultiAddress, Perbill } from "@polkadot/types/interfaces/runtime"; import type { @@ -984,6 +984,79 @@ declare module "@polkadot/api-base/types/submittable" { /** Generic tx */ [key: string]: SubmittableExtrinsicFunction; }; + treasury: { + /** See [`Pallet::approve_proposal`]. */ + approveProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** See [`Pallet::check_status`]. */ + checkStatus: AugmentedSubmittable< + (index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** See [`Pallet::payout`]. */ + payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** See [`Pallet::propose_spend`]. */ + proposeSpend: AugmentedSubmittable< + ( + value: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** See [`Pallet::reject_proposal`]. */ + rejectProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** See [`Pallet::remove_approval`]. */ + removeApproval: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** See [`Pallet::spend`]. */ + spend: AugmentedSubmittable< + ( + assetKind: Null | null, + amount: Compact | AnyNumber | Uint8Array, + beneficiary: AccountId32 | string | Uint8Array, + validFrom: Option | null | Uint8Array | u32 | AnyNumber + ) => SubmittableExtrinsic, + [Null, Compact, AccountId32, Option] + >; + /** See [`Pallet::spend_local`]. */ + spendLocal: AugmentedSubmittable< + ( + amount: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** See [`Pallet::void_spend`]. */ + voidSpend: AugmentedSubmittable< + (index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** Generic tx */ + [key: string]: SubmittableExtrinsicFunction; + }; txPause: { /** See [`Pallet::pause`]. */ pause: AugmentedSubmittable< diff --git a/typescript-api/src/flashbox/interfaces/lookup.ts b/typescript-api/src/flashbox/interfaces/lookup.ts index 69d92c4c8..44c3bc07b 100644 --- a/typescript-api/src/flashbox/interfaces/lookup.ts +++ b/typescript-api/src/flashbox/interfaces/lookup.ts @@ -537,7 +537,67 @@ export default { }, }, }, - /** Lookup60: frame_system::Phase */ + /** Lookup60: pallet_treasury::pallet::Event */ + PalletTreasuryEvent: { + _enum: { + Proposed: { + proposalIndex: "u32", + }, + Spending: { + budgetRemaining: "u128", + }, + Awarded: { + proposalIndex: "u32", + award: "u128", + account: "AccountId32", + }, + Rejected: { + proposalIndex: "u32", + slashed: "u128", + }, + Burnt: { + burntFunds: "u128", + }, + Rollover: { + rolloverBalance: "u128", + }, + Deposit: { + value: "u128", + }, + SpendApproved: { + proposalIndex: "u32", + amount: "u128", + beneficiary: "AccountId32", + }, + UpdatedInactive: { + reactivated: "u128", + deactivated: "u128", + }, + AssetSpendApproved: { + index: "u32", + assetKind: "Null", + amount: "u128", + beneficiary: "AccountId32", + validFrom: "u32", + expireAt: "u32", + }, + AssetSpendVoided: { + index: "u32", + }, + Paid: { + index: "u32", + paymentId: "Null", + }, + PaymentFailed: { + index: "u32", + paymentId: "Null", + }, + SpendProcessed: { + index: "u32", + }, + }, + }, + /** Lookup61: frame_system::Phase */ FrameSystemPhase: { _enum: { ApplyExtrinsic: "u32", @@ -545,12 +605,12 @@ export default { Initialization: "Null", }, }, - /** Lookup64: frame_system::LastRuntimeUpgradeInfo */ + /** Lookup65: frame_system::LastRuntimeUpgradeInfo */ FrameSystemLastRuntimeUpgradeInfo: { specVersion: "Compact", specName: "Text", }, - /** Lookup67: frame_system::pallet::Call */ + /** Lookup68: frame_system::pallet::Call */ FrameSystemCall: { _enum: { remark: { @@ -583,41 +643,41 @@ export default { }, }, }, - /** Lookup71: frame_system::limits::BlockWeights */ + /** Lookup72: frame_system::limits::BlockWeights */ FrameSystemLimitsBlockWeights: { baseBlock: "SpWeightsWeightV2Weight", maxBlock: "SpWeightsWeightV2Weight", perClass: "FrameSupportDispatchPerDispatchClassWeightsPerClass", }, - /** Lookup72: frame_support::dispatch::PerDispatchClass */ + /** Lookup73: frame_support::dispatch::PerDispatchClass */ FrameSupportDispatchPerDispatchClassWeightsPerClass: { normal: "FrameSystemLimitsWeightsPerClass", operational: "FrameSystemLimitsWeightsPerClass", mandatory: "FrameSystemLimitsWeightsPerClass", }, - /** Lookup73: frame_system::limits::WeightsPerClass */ + /** Lookup74: frame_system::limits::WeightsPerClass */ FrameSystemLimitsWeightsPerClass: { baseExtrinsic: "SpWeightsWeightV2Weight", maxExtrinsic: "Option", maxTotal: "Option", reserved: "Option", }, - /** Lookup75: frame_system::limits::BlockLength */ + /** Lookup76: frame_system::limits::BlockLength */ FrameSystemLimitsBlockLength: { max: "FrameSupportDispatchPerDispatchClassU32", }, - /** Lookup76: frame_support::dispatch::PerDispatchClass */ + /** Lookup77: frame_support::dispatch::PerDispatchClass */ FrameSupportDispatchPerDispatchClassU32: { normal: "u32", operational: "u32", mandatory: "u32", }, - /** Lookup77: sp_weights::RuntimeDbWeight */ + /** Lookup78: sp_weights::RuntimeDbWeight */ SpWeightsRuntimeDbWeight: { read: "u64", write: "u64", }, - /** Lookup78: sp_version::RuntimeVersion */ + /** Lookup79: sp_version::RuntimeVersion */ SpVersionRuntimeVersion: { specName: "Text", implName: "Text", @@ -628,7 +688,7 @@ export default { transactionVersion: "u32", stateVersion: "u8", }, - /** Lookup83: frame_system::pallet::Error */ + /** Lookup84: frame_system::pallet::Error */ FrameSystemError: { _enum: [ "InvalidSpecName", @@ -639,49 +699,49 @@ export default { "CallFiltered", ], }, - /** Lookup85: cumulus_pallet_parachain_system::unincluded_segment::Ancestor */ + /** Lookup86: cumulus_pallet_parachain_system::unincluded_segment::Ancestor */ CumulusPalletParachainSystemUnincludedSegmentAncestor: { usedBandwidth: "CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth", paraHeadHash: "Option", consumedGoAheadSignal: "Option", }, - /** Lookup86: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth */ + /** Lookup87: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth */ CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: { umpMsgCount: "u32", umpTotalBytes: "u32", hrmpOutgoing: "BTreeMap", }, - /** Lookup88: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate */ + /** Lookup89: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate */ CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: { msgCount: "u32", totalBytes: "u32", }, - /** Lookup93: polkadot_primitives::v6::UpgradeGoAhead */ + /** Lookup94: polkadot_primitives::v6::UpgradeGoAhead */ PolkadotPrimitivesV6UpgradeGoAhead: { _enum: ["Abort", "GoAhead"], }, - /** Lookup94: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker */ + /** Lookup95: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker */ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: { usedBandwidth: "CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth", hrmpWatermark: "Option", consumedGoAheadSignal: "Option", }, - /** Lookup96: polkadot_primitives::v6::PersistedValidationData */ + /** Lookup97: polkadot_primitives::v6::PersistedValidationData */ PolkadotPrimitivesV6PersistedValidationData: { parentHead: "Bytes", relayParentNumber: "u32", relayParentStorageRoot: "H256", maxPovSize: "u32", }, - /** Lookup99: polkadot_primitives::v6::UpgradeRestriction */ + /** Lookup100: polkadot_primitives::v6::UpgradeRestriction */ PolkadotPrimitivesV6UpgradeRestriction: { _enum: ["Present"], }, - /** Lookup100: sp_trie::storage_proof::StorageProof */ + /** Lookup101: sp_trie::storage_proof::StorageProof */ SpTrieStorageProof: { trieNodes: "BTreeSet", }, - /** Lookup102: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot */ + /** Lookup103: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot */ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { dmqMqcHead: "H256", relayDispatchQueueRemainingCapacity: @@ -689,12 +749,12 @@ export default { ingressChannels: "Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>", egressChannels: "Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>", }, - /** Lookup103: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity */ + /** Lookup104: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity */ CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: { remainingCount: "u32", remainingSize: "u32", }, - /** Lookup106: polkadot_primitives::v6::AbridgedHrmpChannel */ + /** Lookup107: polkadot_primitives::v6::AbridgedHrmpChannel */ PolkadotPrimitivesV6AbridgedHrmpChannel: { maxCapacity: "u32", maxTotalSize: "u32", @@ -703,7 +763,7 @@ export default { totalSize: "u32", mqcHead: "Option", }, - /** Lookup107: polkadot_primitives::v6::AbridgedHostConfiguration */ + /** Lookup108: polkadot_primitives::v6::AbridgedHostConfiguration */ PolkadotPrimitivesV6AbridgedHostConfiguration: { maxCodeSize: "u32", maxHeadDataSize: "u32", @@ -716,22 +776,22 @@ export default { validationUpgradeDelay: "u32", asyncBackingParams: "PolkadotPrimitivesV6AsyncBackingAsyncBackingParams", }, - /** Lookup108: polkadot_primitives::v6::async_backing::AsyncBackingParams */ + /** Lookup109: polkadot_primitives::v6::async_backing::AsyncBackingParams */ PolkadotPrimitivesV6AsyncBackingAsyncBackingParams: { maxCandidateDepth: "u32", allowedAncestryLen: "u32", }, - /** Lookup114: polkadot_core_primitives::OutboundHrmpMessage */ + /** Lookup115: polkadot_core_primitives::OutboundHrmpMessage */ PolkadotCorePrimitivesOutboundHrmpMessage: { recipient: "u32", data: "Bytes", }, - /** Lookup116: cumulus_pallet_parachain_system::CodeUpgradeAuthorization */ + /** Lookup117: cumulus_pallet_parachain_system::CodeUpgradeAuthorization */ CumulusPalletParachainSystemCodeUpgradeAuthorization: { codeHash: "H256", checkVersion: "bool", }, - /** Lookup117: cumulus_pallet_parachain_system::pallet::Call */ + /** Lookup118: cumulus_pallet_parachain_system::pallet::Call */ CumulusPalletParachainSystemCall: { _enum: { set_validation_data: { @@ -749,24 +809,24 @@ export default { }, }, }, - /** Lookup118: cumulus_primitives_parachain_inherent::ParachainInherentData */ + /** Lookup119: cumulus_primitives_parachain_inherent::ParachainInherentData */ CumulusPrimitivesParachainInherentParachainInherentData: { validationData: "PolkadotPrimitivesV6PersistedValidationData", relayChainState: "SpTrieStorageProof", downwardMessages: "Vec", horizontalMessages: "BTreeMap>", }, - /** Lookup120: polkadot_core_primitives::InboundDownwardMessage */ + /** Lookup121: polkadot_core_primitives::InboundDownwardMessage */ PolkadotCorePrimitivesInboundDownwardMessage: { sentAt: "u32", msg: "Bytes", }, - /** Lookup123: polkadot_core_primitives::InboundHrmpMessage */ + /** Lookup124: polkadot_core_primitives::InboundHrmpMessage */ PolkadotCorePrimitivesInboundHrmpMessage: { sentAt: "u32", data: "Bytes", }, - /** Lookup126: cumulus_pallet_parachain_system::pallet::Error */ + /** Lookup127: cumulus_pallet_parachain_system::pallet::Error */ CumulusPalletParachainSystemError: { _enum: [ "OverlappingUpgrades", @@ -779,7 +839,7 @@ export default { "Unauthorized", ], }, - /** Lookup127: pallet_timestamp::pallet::Call */ + /** Lookup128: pallet_timestamp::pallet::Call */ PalletTimestampCall: { _enum: { set: { @@ -787,9 +847,9 @@ export default { }, }, }, - /** Lookup128: parachain_info::pallet::Call */ + /** Lookup129: parachain_info::pallet::Call */ ParachainInfoCall: "Null", - /** Lookup129: pallet_sudo::pallet::Call */ + /** Lookup130: pallet_sudo::pallet::Call */ PalletSudoCall: { _enum: { sudo: { @@ -811,7 +871,7 @@ export default { }, }, }, - /** Lookup131: pallet_utility::pallet::Call */ + /** Lookup132: pallet_utility::pallet::Call */ PalletUtilityCall: { _enum: { batch: { @@ -837,14 +897,14 @@ export default { }, }, }, - /** Lookup133: flashbox_runtime::OriginCaller */ + /** Lookup134: flashbox_runtime::OriginCaller */ FlashboxRuntimeOriginCaller: { _enum: { system: "FrameSupportDispatchRawOrigin", Void: "SpCoreVoid", }, }, - /** Lookup134: frame_support::dispatch::RawOrigin */ + /** Lookup135: frame_support::dispatch::RawOrigin */ FrameSupportDispatchRawOrigin: { _enum: { Root: "Null", @@ -852,9 +912,9 @@ export default { None: "Null", }, }, - /** Lookup135: sp_core::Void */ + /** Lookup136: sp_core::Void */ SpCoreVoid: "Null", - /** Lookup136: pallet_proxy::pallet::Call */ + /** Lookup137: pallet_proxy::pallet::Call */ PalletProxyCall: { _enum: { proxy: { @@ -905,11 +965,11 @@ export default { }, }, }, - /** Lookup141: pallet_maintenance_mode::pallet::Call */ + /** Lookup142: pallet_maintenance_mode::pallet::Call */ PalletMaintenanceModeCall: { _enum: ["enter_maintenance_mode", "resume_normal_operation"], }, - /** Lookup142: pallet_tx_pause::pallet::Call */ + /** Lookup143: pallet_tx_pause::pallet::Call */ PalletTxPauseCall: { _enum: { pause: { @@ -920,7 +980,7 @@ export default { }, }, }, - /** Lookup143: pallet_balances::pallet::Call */ + /** Lookup144: pallet_balances::pallet::Call */ PalletBalancesCall: { _enum: { transfer_allow_death: { @@ -955,7 +1015,7 @@ export default { }, }, }, - /** Lookup145: pallet_identity::pallet::Call */ + /** Lookup146: pallet_identity::pallet::Call */ PalletIdentityCall: { _enum: { add_registrar: { @@ -1013,7 +1073,7 @@ export default { quit_sub: "Null", }, }, - /** Lookup146: pallet_identity::simple::IdentityInfo */ + /** Lookup147: pallet_identity::simple::IdentityInfo */ PalletIdentitySimpleIdentityInfo: { additional: "Vec<(Data,Data)>", display: "Data", @@ -1025,7 +1085,7 @@ export default { image: "Data", twitter: "Data", }, - /** Lookup183: pallet_identity::types::BitFlags */ + /** Lookup184: pallet_identity::types::BitFlags */ PalletIdentityBitFlags: { _bitLength: 64, Display: 0, @@ -1037,11 +1097,11 @@ export default { Image: 6, Twitter: 7, }, - /** Lookup184: pallet_identity::simple::IdentityField */ + /** Lookup185: pallet_identity::simple::IdentityField */ PalletIdentitySimpleIdentityField: { _enum: ["Display", "Legal", "Web", "Riot", "Email", "PgpFingerprint", "Image", "Twitter"], }, - /** Lookup185: pallet_identity::types::Judgement */ + /** Lookup186: pallet_identity::types::Judgement */ PalletIdentityJudgement: { _enum: { Unknown: "Null", @@ -1053,7 +1113,7 @@ export default { Erroneous: "Null", }, }, - /** Lookup186: pallet_registrar::pallet::Call */ + /** Lookup187: pallet_registrar::pallet::Call */ PalletRegistrarCall: { _enum: { register: { @@ -1084,7 +1144,7 @@ export default { }, }, }, - /** Lookup187: tp_container_chain_genesis_data::ContainerChainGenesisData */ + /** Lookup188: tp_container_chain_genesis_data::ContainerChainGenesisData */ TpContainerChainGenesisDataContainerChainGenesisData: { storage: "Vec", name: "Bytes", @@ -1093,28 +1153,28 @@ export default { extensions: "Bytes", properties: "TpContainerChainGenesisDataProperties", }, - /** Lookup189: tp_container_chain_genesis_data::ContainerChainGenesisDataItem */ + /** Lookup190: tp_container_chain_genesis_data::ContainerChainGenesisDataItem */ TpContainerChainGenesisDataContainerChainGenesisDataItem: { key: "Bytes", value: "Bytes", }, - /** Lookup191: tp_container_chain_genesis_data::Properties */ + /** Lookup192: tp_container_chain_genesis_data::Properties */ TpContainerChainGenesisDataProperties: { tokenMetadata: "TpContainerChainGenesisDataTokenMetadata", isEthereum: "bool", }, - /** Lookup192: tp_container_chain_genesis_data::TokenMetadata */ + /** Lookup193: tp_container_chain_genesis_data::TokenMetadata */ TpContainerChainGenesisDataTokenMetadata: { tokenSymbol: "Bytes", ss58Format: "u32", tokenDecimals: "u32", }, - /** Lookup194: tp_traits::SlotFrequency */ + /** Lookup195: tp_traits::SlotFrequency */ TpTraitsSlotFrequency: { min: "u32", max: "u32", }, - /** Lookup195: pallet_configuration::pallet::Call */ + /** Lookup196: pallet_configuration::pallet::Call */ PalletConfigurationCall: { _enum: { set_max_collators: { @@ -1209,9 +1269,9 @@ export default { }, }, }, - /** Lookup197: pallet_collator_assignment::pallet::Call */ + /** Lookup198: pallet_collator_assignment::pallet::Call */ PalletCollatorAssignmentCall: "Null", - /** Lookup198: pallet_author_noting::pallet::Call */ + /** Lookup199: pallet_author_noting::pallet::Call */ PalletAuthorNotingCall: { _enum: { set_latest_author_data: { @@ -1227,13 +1287,13 @@ export default { }, }, }, - /** Lookup199: tp_author_noting_inherent::OwnParachainInherentData */ + /** Lookup200: tp_author_noting_inherent::OwnParachainInherentData */ TpAuthorNotingInherentOwnParachainInherentData: { relayStorageProof: "SpTrieStorageProof", }, - /** Lookup200: pallet_authority_assignment::pallet::Call */ + /** Lookup201: pallet_authority_assignment::pallet::Call */ PalletAuthorityAssignmentCall: "Null", - /** Lookup201: pallet_services_payment::pallet::Call */ + /** Lookup202: pallet_services_payment::pallet::Call */ PalletServicesPaymentCall: { _enum: { purchase_credits: { @@ -1250,7 +1310,7 @@ export default { }, }, }, - /** Lookup202: pallet_data_preservers::pallet::Call */ + /** Lookup203: pallet_data_preservers::pallet::Call */ PalletDataPreserversCall: { _enum: { set_boot_nodes: { @@ -1259,7 +1319,7 @@ export default { }, }, }, - /** Lookup206: pallet_invulnerables::pallet::Call */ + /** Lookup207: pallet_invulnerables::pallet::Call */ PalletInvulnerablesCall: { _enum: { set_invulnerables: { @@ -1276,7 +1336,7 @@ export default { }, }, }, - /** Lookup207: pallet_session::pallet::Call */ + /** Lookup208: pallet_session::pallet::Call */ PalletSessionCall: { _enum: { set_keys: { @@ -1289,19 +1349,56 @@ export default { purge_keys: "Null", }, }, - /** Lookup208: flashbox_runtime::SessionKeys */ + /** Lookup209: flashbox_runtime::SessionKeys */ FlashboxRuntimeSessionKeys: { nimbus: "NimbusPrimitivesNimbusCryptoPublic", }, - /** Lookup209: nimbus_primitives::nimbus_crypto::Public */ + /** Lookup210: nimbus_primitives::nimbus_crypto::Public */ NimbusPrimitivesNimbusCryptoPublic: "SpCoreSr25519Public", - /** Lookup210: sp_core::sr25519::Public */ + /** Lookup211: sp_core::sr25519::Public */ SpCoreSr25519Public: "[u8;32]", - /** Lookup211: pallet_author_inherent::pallet::Call */ + /** Lookup212: pallet_author_inherent::pallet::Call */ PalletAuthorInherentCall: { _enum: ["kick_off_authorship_validation"], }, - /** Lookup212: pallet_root_testing::pallet::Call */ + /** Lookup213: pallet_treasury::pallet::Call */ + PalletTreasuryCall: { + _enum: { + propose_spend: { + value: "Compact", + beneficiary: "MultiAddress", + }, + reject_proposal: { + proposalId: "Compact", + }, + approve_proposal: { + proposalId: "Compact", + }, + spend_local: { + amount: "Compact", + beneficiary: "MultiAddress", + }, + remove_approval: { + proposalId: "Compact", + }, + spend: { + assetKind: "Null", + amount: "Compact", + beneficiary: "AccountId32", + validFrom: "Option", + }, + payout: { + index: "u32", + }, + check_status: { + index: "u32", + }, + void_spend: { + index: "u32", + }, + }, + }, + /** Lookup214: pallet_root_testing::pallet::Call */ PalletRootTestingCall: { _enum: { fill_block: { @@ -1309,27 +1406,27 @@ export default { }, }, }, - /** Lookup213: pallet_sudo::pallet::Error */ + /** Lookup215: pallet_sudo::pallet::Error */ PalletSudoError: { _enum: ["RequireSudo"], }, - /** Lookup214: pallet_utility::pallet::Error */ + /** Lookup216: pallet_utility::pallet::Error */ PalletUtilityError: { _enum: ["TooManyCalls"], }, - /** Lookup217: pallet_proxy::ProxyDefinition */ + /** Lookup219: pallet_proxy::ProxyDefinition */ PalletProxyProxyDefinition: { delegate: "AccountId32", proxyType: "FlashboxRuntimeProxyType", delay: "u32", }, - /** Lookup221: pallet_proxy::Announcement */ + /** Lookup223: pallet_proxy::Announcement */ PalletProxyAnnouncement: { real: "AccountId32", callHash: "H256", height: "u32", }, - /** Lookup223: pallet_proxy::pallet::Error */ + /** Lookup225: pallet_proxy::pallet::Error */ PalletProxyError: { _enum: [ "TooMany", @@ -1342,41 +1439,41 @@ export default { "NoSelfProxy", ], }, - /** Lookup224: pallet_migrations::pallet::Error */ + /** Lookup226: pallet_migrations::pallet::Error */ PalletMigrationsError: { _enum: ["PreimageMissing", "WrongUpperBound", "PreimageIsTooBig", "PreimageAlreadyExists"], }, - /** Lookup225: pallet_maintenance_mode::pallet::Error */ + /** Lookup227: pallet_maintenance_mode::pallet::Error */ PalletMaintenanceModeError: { _enum: ["AlreadyInMaintenanceMode", "NotInMaintenanceMode"], }, - /** Lookup226: pallet_tx_pause::pallet::Error */ + /** Lookup228: pallet_tx_pause::pallet::Error */ PalletTxPauseError: { _enum: ["IsPaused", "IsUnpaused", "Unpausable", "NotFound"], }, - /** Lookup228: pallet_balances::types::BalanceLock */ + /** Lookup230: pallet_balances::types::BalanceLock */ PalletBalancesBalanceLock: { id: "[u8;8]", amount: "u128", reasons: "PalletBalancesReasons", }, - /** Lookup229: pallet_balances::types::Reasons */ + /** Lookup231: pallet_balances::types::Reasons */ PalletBalancesReasons: { _enum: ["Fee", "Misc", "All"], }, - /** Lookup232: pallet_balances::types::ReserveData */ + /** Lookup234: pallet_balances::types::ReserveData */ PalletBalancesReserveData: { id: "[u8;8]", amount: "u128", }, - /** Lookup236: flashbox_runtime::RuntimeHoldReason */ + /** Lookup238: flashbox_runtime::RuntimeHoldReason */ FlashboxRuntimeRuntimeHoldReason: "Null", - /** Lookup239: pallet_balances::types::IdAmount */ + /** Lookup241: pallet_balances::types::IdAmount */ PalletBalancesIdAmount: { id: "[u8;8]", amount: "u128", }, - /** Lookup241: pallet_balances::pallet::Error */ + /** Lookup243: pallet_balances::pallet::Error */ PalletBalancesError: { _enum: [ "VestingBalance", @@ -1391,18 +1488,18 @@ export default { "TooManyFreezes", ], }, - /** Lookup242: pallet_transaction_payment::Releases */ + /** Lookup244: pallet_transaction_payment::Releases */ PalletTransactionPaymentReleases: { _enum: ["V1Ancient", "V2"], }, - /** Lookup243: pallet_identity::types::Registration> */ + /** Lookup245: pallet_identity::types::Registration> */ PalletIdentityRegistration: { judgements: "Vec<(u32,PalletIdentityJudgement)>", deposit: "u128", info: "PalletIdentitySimpleIdentityInfo", }, /** - * Lookup251: pallet_identity::types::RegistrarInfo */ PalletIdentityRegistrarInfo: { @@ -1410,7 +1507,7 @@ export default { fee: "u128", fields: "PalletIdentityBitFlags", }, - /** Lookup253: pallet_identity::pallet::Error */ + /** Lookup255: pallet_identity::pallet::Error */ PalletIdentityError: { _enum: [ "TooManySubAccounts", @@ -1433,16 +1530,16 @@ export default { "JudgementPaymentFailed", ], }, - /** Lookup258: tp_traits::ParathreadParams */ + /** Lookup260: tp_traits::ParathreadParams */ TpTraitsParathreadParams: { slotFrequency: "TpTraitsSlotFrequency", }, - /** Lookup264: pallet_registrar::pallet::DepositInfo */ + /** Lookup266: pallet_registrar::pallet::DepositInfo */ PalletRegistrarDepositInfo: { creator: "AccountId32", deposit: "u128", }, - /** Lookup265: pallet_registrar::pallet::Error */ + /** Lookup267: pallet_registrar::pallet::Error */ PalletRegistrarError: { _enum: [ "ParaIdAlreadyRegistered", @@ -1457,7 +1554,7 @@ export default { "NotAParathread", ], }, - /** Lookup266: pallet_configuration::HostConfiguration */ + /** Lookup268: pallet_configuration::HostConfiguration */ PalletConfigurationHostConfiguration: { maxCollators: "u32", minOrchestratorCollators: "u32", @@ -1468,21 +1565,21 @@ export default { parathreadsPerCollator: "u32", targetContainerChainFullness: "Perbill", }, - /** Lookup269: pallet_configuration::pallet::Error */ + /** Lookup271: pallet_configuration::pallet::Error */ PalletConfigurationError: { _enum: ["InvalidNewValue"], }, - /** Lookup270: dp_collator_assignment::AssignedCollators */ + /** Lookup272: dp_collator_assignment::AssignedCollators */ DpCollatorAssignmentAssignedCollatorsAccountId32: { orchestratorChain: "Vec", containerChains: "BTreeMap>", }, - /** Lookup275: pallet_author_noting::pallet::ContainerChainBlockInfo */ + /** Lookup277: pallet_author_noting::pallet::ContainerChainBlockInfo */ PalletAuthorNotingContainerChainBlockInfo: { blockNumber: "u32", author: "AccountId32", }, - /** Lookup276: pallet_author_noting::pallet::Error */ + /** Lookup278: pallet_author_noting::pallet::Error */ PalletAuthorNotingError: { _enum: [ "FailedReading", @@ -1494,39 +1591,84 @@ export default { "NonAuraDigest", ], }, - /** Lookup277: dp_collator_assignment::AssignedCollators */ + /** Lookup279: dp_collator_assignment::AssignedCollators */ DpCollatorAssignmentAssignedCollatorsPublic: { orchestratorChain: "Vec", containerChains: "BTreeMap>", }, - /** Lookup282: pallet_services_payment::pallet::Error */ + /** Lookup284: pallet_services_payment::pallet::Error */ PalletServicesPaymentError: { _enum: ["InsufficientFundsToPurchaseCredits", "InsufficientCredits", "CreditPriceTooExpensive"], }, - /** Lookup283: pallet_data_preservers::pallet::Error */ + /** Lookup285: pallet_data_preservers::pallet::Error */ PalletDataPreserversError: { _enum: ["NoBootNodes"], }, - /** Lookup285: pallet_invulnerables::pallet::Error */ + /** Lookup287: pallet_invulnerables::pallet::Error */ PalletInvulnerablesError: { _enum: ["TooManyInvulnerables", "AlreadyInvulnerable", "NotInvulnerable"], }, - /** Lookup290: sp_core::crypto::KeyTypeId */ + /** Lookup292: sp_core::crypto::KeyTypeId */ SpCoreCryptoKeyTypeId: "[u8;4]", - /** Lookup291: pallet_session::pallet::Error */ + /** Lookup293: pallet_session::pallet::Error */ PalletSessionError: { _enum: ["InvalidProof", "NoAssociatedValidatorId", "DuplicatedKey", "NoKeys", "NoAccount"], }, - /** Lookup295: pallet_author_inherent::pallet::Error */ + /** Lookup297: pallet_author_inherent::pallet::Error */ PalletAuthorInherentError: { _enum: ["AuthorAlreadySet", "NoAccountId", "CannotBeAuthor"], }, - /** Lookup296: pallet_inflation_rewards::pallet::ChainsToRewardValue */ + /** Lookup298: pallet_inflation_rewards::pallet::ChainsToRewardValue */ PalletInflationRewardsChainsToRewardValue: { paraIds: "Vec", rewardsPerChain: "u128", }, - /** Lookup301: sp_runtime::MultiSignature */ + /** Lookup299: pallet_treasury::Proposal */ + PalletTreasuryProposal: { + proposer: "AccountId32", + value: "u128", + beneficiary: "AccountId32", + bond: "u128", + }, + /** Lookup301: pallet_treasury::SpendStatus */ + PalletTreasurySpendStatus: { + assetKind: "Null", + amount: "u128", + beneficiary: "AccountId32", + validFrom: "u32", + expireAt: "u32", + status: "PalletTreasuryPaymentState", + }, + /** Lookup302: pallet_treasury::PaymentState */ + PalletTreasuryPaymentState: { + _enum: { + Pending: "Null", + Attempted: { + id: "Null", + }, + Failed: "Null", + }, + }, + /** Lookup305: frame_support::PalletId */ + FrameSupportPalletId: "[u8;8]", + /** Lookup306: pallet_treasury::pallet::Error */ + PalletTreasuryError: { + _enum: [ + "InsufficientProposersBalance", + "InvalidIndex", + "TooManyApprovals", + "InsufficientPermission", + "ProposalNotApproved", + "FailedToConvertBalance", + "SpendExpired", + "EarlyPayout", + "AlreadyAttempted", + "PayoutError", + "NotAttempted", + "Inconclusive", + ], + }, + /** Lookup311: sp_runtime::MultiSignature */ SpRuntimeMultiSignature: { _enum: { Ed25519: "SpCoreEd25519Signature", @@ -1534,26 +1676,26 @@ export default { Ecdsa: "SpCoreEcdsaSignature", }, }, - /** Lookup302: sp_core::ed25519::Signature */ + /** Lookup312: sp_core::ed25519::Signature */ SpCoreEd25519Signature: "[u8;64]", - /** Lookup304: sp_core::sr25519::Signature */ + /** Lookup314: sp_core::sr25519::Signature */ SpCoreSr25519Signature: "[u8;64]", - /** Lookup305: sp_core::ecdsa::Signature */ + /** Lookup315: sp_core::ecdsa::Signature */ SpCoreEcdsaSignature: "[u8;65]", - /** Lookup308: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender */ + /** Lookup318: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender */ FrameSystemExtensionsCheckNonZeroSender: "Null", - /** Lookup309: frame_system::extensions::check_spec_version::CheckSpecVersion */ + /** Lookup319: frame_system::extensions::check_spec_version::CheckSpecVersion */ FrameSystemExtensionsCheckSpecVersion: "Null", - /** Lookup310: frame_system::extensions::check_tx_version::CheckTxVersion */ + /** Lookup320: frame_system::extensions::check_tx_version::CheckTxVersion */ FrameSystemExtensionsCheckTxVersion: "Null", - /** Lookup311: frame_system::extensions::check_genesis::CheckGenesis */ + /** Lookup321: frame_system::extensions::check_genesis::CheckGenesis */ FrameSystemExtensionsCheckGenesis: "Null", - /** Lookup314: frame_system::extensions::check_nonce::CheckNonce */ + /** Lookup324: frame_system::extensions::check_nonce::CheckNonce */ FrameSystemExtensionsCheckNonce: "Compact", - /** Lookup315: frame_system::extensions::check_weight::CheckWeight */ + /** Lookup325: frame_system::extensions::check_weight::CheckWeight */ FrameSystemExtensionsCheckWeight: "Null", - /** Lookup316: pallet_transaction_payment::ChargeTransactionPayment */ + /** Lookup326: pallet_transaction_payment::ChargeTransactionPayment */ PalletTransactionPaymentChargeTransactionPayment: "Compact", - /** Lookup317: flashbox_runtime::Runtime */ + /** Lookup327: flashbox_runtime::Runtime */ FlashboxRuntimeRuntime: "Null", }; diff --git a/typescript-api/src/flashbox/interfaces/registry.ts b/typescript-api/src/flashbox/interfaces/registry.ts index 9a5db4d5b..79e7a02a5 100644 --- a/typescript-api/src/flashbox/interfaces/registry.ts +++ b/typescript-api/src/flashbox/interfaces/registry.ts @@ -31,6 +31,7 @@ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, + FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, @@ -114,6 +115,12 @@ import type { PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, + PalletTreasuryCall, + PalletTreasuryError, + PalletTreasuryEvent, + PalletTreasuryPaymentState, + PalletTreasuryProposal, + PalletTreasurySpendStatus, PalletTxPauseCall, PalletTxPauseError, PalletTxPauseEvent, @@ -184,6 +191,7 @@ declare module "@polkadot/types/types/registry" { FrameSupportDispatchPerDispatchClassWeight: FrameSupportDispatchPerDispatchClassWeight; FrameSupportDispatchPerDispatchClassWeightsPerClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; FrameSupportDispatchRawOrigin: FrameSupportDispatchRawOrigin; + FrameSupportPalletId: FrameSupportPalletId; FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus; FrameSystemAccountInfo: FrameSystemAccountInfo; FrameSystemCall: FrameSystemCall; @@ -267,6 +275,12 @@ declare module "@polkadot/types/types/registry" { PalletTransactionPaymentChargeTransactionPayment: PalletTransactionPaymentChargeTransactionPayment; PalletTransactionPaymentEvent: PalletTransactionPaymentEvent; PalletTransactionPaymentReleases: PalletTransactionPaymentReleases; + PalletTreasuryCall: PalletTreasuryCall; + PalletTreasuryError: PalletTreasuryError; + PalletTreasuryEvent: PalletTreasuryEvent; + PalletTreasuryPaymentState: PalletTreasuryPaymentState; + PalletTreasuryProposal: PalletTreasuryProposal; + PalletTreasurySpendStatus: PalletTreasurySpendStatus; PalletTxPauseCall: PalletTxPauseCall; PalletTxPauseError: PalletTxPauseError; PalletTxPauseEvent: PalletTxPauseEvent; diff --git a/typescript-api/src/flashbox/interfaces/types-lookup.ts b/typescript-api/src/flashbox/interfaces/types-lookup.ts index fc327a435..ae0ebf4eb 100644 --- a/typescript-api/src/flashbox/interfaces/types-lookup.ts +++ b/typescript-api/src/flashbox/interfaces/types-lookup.ts @@ -780,7 +780,95 @@ declare module "@polkadot/types/lookup" { readonly type: "RewardedOrchestrator" | "RewardedContainer"; } - /** @name FrameSystemPhase (60) */ + /** @name PalletTreasuryEvent (60) */ + interface PalletTreasuryEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly proposalIndex: u32; + } & Struct; + readonly isSpending: boolean; + readonly asSpending: { + readonly budgetRemaining: u128; + } & Struct; + readonly isAwarded: boolean; + readonly asAwarded: { + readonly proposalIndex: u32; + readonly award: u128; + readonly account: AccountId32; + } & Struct; + readonly isRejected: boolean; + readonly asRejected: { + readonly proposalIndex: u32; + readonly slashed: u128; + } & Struct; + readonly isBurnt: boolean; + readonly asBurnt: { + readonly burntFunds: u128; + } & Struct; + readonly isRollover: boolean; + readonly asRollover: { + readonly rolloverBalance: u128; + } & Struct; + readonly isDeposit: boolean; + readonly asDeposit: { + readonly value: u128; + } & Struct; + readonly isSpendApproved: boolean; + readonly asSpendApproved: { + readonly proposalIndex: u32; + readonly amount: u128; + readonly beneficiary: AccountId32; + } & Struct; + readonly isUpdatedInactive: boolean; + readonly asUpdatedInactive: { + readonly reactivated: u128; + readonly deactivated: u128; + } & Struct; + readonly isAssetSpendApproved: boolean; + readonly asAssetSpendApproved: { + readonly index: u32; + readonly assetKind: Null; + readonly amount: u128; + readonly beneficiary: AccountId32; + readonly validFrom: u32; + readonly expireAt: u32; + } & Struct; + readonly isAssetSpendVoided: boolean; + readonly asAssetSpendVoided: { + readonly index: u32; + } & Struct; + readonly isPaid: boolean; + readonly asPaid: { + readonly index: u32; + readonly paymentId: Null; + } & Struct; + readonly isPaymentFailed: boolean; + readonly asPaymentFailed: { + readonly index: u32; + readonly paymentId: Null; + } & Struct; + readonly isSpendProcessed: boolean; + readonly asSpendProcessed: { + readonly index: u32; + } & Struct; + readonly type: + | "Proposed" + | "Spending" + | "Awarded" + | "Rejected" + | "Burnt" + | "Rollover" + | "Deposit" + | "SpendApproved" + | "UpdatedInactive" + | "AssetSpendApproved" + | "AssetSpendVoided" + | "Paid" + | "PaymentFailed" + | "SpendProcessed"; + } + + /** @name FrameSystemPhase (61) */ interface FrameSystemPhase extends Enum { readonly isApplyExtrinsic: boolean; readonly asApplyExtrinsic: u32; @@ -789,13 +877,13 @@ declare module "@polkadot/types/lookup" { readonly type: "ApplyExtrinsic" | "Finalization" | "Initialization"; } - /** @name FrameSystemLastRuntimeUpgradeInfo (64) */ + /** @name FrameSystemLastRuntimeUpgradeInfo (65) */ interface FrameSystemLastRuntimeUpgradeInfo extends Struct { readonly specVersion: Compact; readonly specName: Text; } - /** @name FrameSystemCall (67) */ + /** @name FrameSystemCall (68) */ interface FrameSystemCall extends Enum { readonly isRemark: boolean; readonly asRemark: { @@ -841,21 +929,21 @@ declare module "@polkadot/types/lookup" { | "RemarkWithEvent"; } - /** @name FrameSystemLimitsBlockWeights (71) */ + /** @name FrameSystemLimitsBlockWeights (72) */ interface FrameSystemLimitsBlockWeights extends Struct { readonly baseBlock: SpWeightsWeightV2Weight; readonly maxBlock: SpWeightsWeightV2Weight; readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; } - /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (72) */ + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (73) */ interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { readonly normal: FrameSystemLimitsWeightsPerClass; readonly operational: FrameSystemLimitsWeightsPerClass; readonly mandatory: FrameSystemLimitsWeightsPerClass; } - /** @name FrameSystemLimitsWeightsPerClass (73) */ + /** @name FrameSystemLimitsWeightsPerClass (74) */ interface FrameSystemLimitsWeightsPerClass extends Struct { readonly baseExtrinsic: SpWeightsWeightV2Weight; readonly maxExtrinsic: Option; @@ -863,25 +951,25 @@ declare module "@polkadot/types/lookup" { readonly reserved: Option; } - /** @name FrameSystemLimitsBlockLength (75) */ + /** @name FrameSystemLimitsBlockLength (76) */ interface FrameSystemLimitsBlockLength extends Struct { readonly max: FrameSupportDispatchPerDispatchClassU32; } - /** @name FrameSupportDispatchPerDispatchClassU32 (76) */ + /** @name FrameSupportDispatchPerDispatchClassU32 (77) */ interface FrameSupportDispatchPerDispatchClassU32 extends Struct { readonly normal: u32; readonly operational: u32; readonly mandatory: u32; } - /** @name SpWeightsRuntimeDbWeight (77) */ + /** @name SpWeightsRuntimeDbWeight (78) */ interface SpWeightsRuntimeDbWeight extends Struct { readonly read: u64; readonly write: u64; } - /** @name SpVersionRuntimeVersion (78) */ + /** @name SpVersionRuntimeVersion (79) */ interface SpVersionRuntimeVersion extends Struct { readonly specName: Text; readonly implName: Text; @@ -893,7 +981,7 @@ declare module "@polkadot/types/lookup" { readonly stateVersion: u8; } - /** @name FrameSystemError (83) */ + /** @name FrameSystemError (84) */ interface FrameSystemError extends Enum { readonly isInvalidSpecName: boolean; readonly isSpecVersionNeedsToIncrease: boolean; @@ -910,41 +998,41 @@ declare module "@polkadot/types/lookup" { | "CallFiltered"; } - /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (85) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (86) */ interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct { readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; readonly paraHeadHash: Option; readonly consumedGoAheadSignal: Option; } - /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (86) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (87) */ interface CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth extends Struct { readonly umpMsgCount: u32; readonly umpTotalBytes: u32; readonly hrmpOutgoing: BTreeMap; } - /** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (88) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (89) */ interface CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate extends Struct { readonly msgCount: u32; readonly totalBytes: u32; } - /** @name PolkadotPrimitivesV6UpgradeGoAhead (93) */ + /** @name PolkadotPrimitivesV6UpgradeGoAhead (94) */ interface PolkadotPrimitivesV6UpgradeGoAhead extends Enum { readonly isAbort: boolean; readonly isGoAhead: boolean; readonly type: "Abort" | "GoAhead"; } - /** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (94) */ + /** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (95) */ interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct { readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; readonly hrmpWatermark: Option; readonly consumedGoAheadSignal: Option; } - /** @name PolkadotPrimitivesV6PersistedValidationData (96) */ + /** @name PolkadotPrimitivesV6PersistedValidationData (97) */ interface PolkadotPrimitivesV6PersistedValidationData extends Struct { readonly parentHead: Bytes; readonly relayParentNumber: u32; @@ -952,18 +1040,18 @@ declare module "@polkadot/types/lookup" { readonly maxPovSize: u32; } - /** @name PolkadotPrimitivesV6UpgradeRestriction (99) */ + /** @name PolkadotPrimitivesV6UpgradeRestriction (100) */ interface PolkadotPrimitivesV6UpgradeRestriction extends Enum { readonly isPresent: boolean; readonly type: "Present"; } - /** @name SpTrieStorageProof (100) */ + /** @name SpTrieStorageProof (101) */ interface SpTrieStorageProof extends Struct { readonly trieNodes: BTreeSet; } - /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (102) */ + /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (103) */ interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { readonly dmqMqcHead: H256; readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; @@ -971,13 +1059,13 @@ declare module "@polkadot/types/lookup" { readonly egressChannels: Vec>; } - /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (103) */ + /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (104) */ interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity extends Struct { readonly remainingCount: u32; readonly remainingSize: u32; } - /** @name PolkadotPrimitivesV6AbridgedHrmpChannel (106) */ + /** @name PolkadotPrimitivesV6AbridgedHrmpChannel (107) */ interface PolkadotPrimitivesV6AbridgedHrmpChannel extends Struct { readonly maxCapacity: u32; readonly maxTotalSize: u32; @@ -987,7 +1075,7 @@ declare module "@polkadot/types/lookup" { readonly mqcHead: Option; } - /** @name PolkadotPrimitivesV6AbridgedHostConfiguration (107) */ + /** @name PolkadotPrimitivesV6AbridgedHostConfiguration (108) */ interface PolkadotPrimitivesV6AbridgedHostConfiguration extends Struct { readonly maxCodeSize: u32; readonly maxHeadDataSize: u32; @@ -1001,25 +1089,25 @@ declare module "@polkadot/types/lookup" { readonly asyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; } - /** @name PolkadotPrimitivesV6AsyncBackingAsyncBackingParams (108) */ + /** @name PolkadotPrimitivesV6AsyncBackingAsyncBackingParams (109) */ interface PolkadotPrimitivesV6AsyncBackingAsyncBackingParams extends Struct { readonly maxCandidateDepth: u32; readonly allowedAncestryLen: u32; } - /** @name PolkadotCorePrimitivesOutboundHrmpMessage (114) */ + /** @name PolkadotCorePrimitivesOutboundHrmpMessage (115) */ interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct { readonly recipient: u32; readonly data: Bytes; } - /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (116) */ + /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (117) */ interface CumulusPalletParachainSystemCodeUpgradeAuthorization extends Struct { readonly codeHash: H256; readonly checkVersion: bool; } - /** @name CumulusPalletParachainSystemCall (117) */ + /** @name CumulusPalletParachainSystemCall (118) */ interface CumulusPalletParachainSystemCall extends Enum { readonly isSetValidationData: boolean; readonly asSetValidationData: { @@ -1041,7 +1129,7 @@ declare module "@polkadot/types/lookup" { readonly type: "SetValidationData" | "SudoSendUpwardMessage" | "AuthorizeUpgrade" | "EnactAuthorizedUpgrade"; } - /** @name CumulusPrimitivesParachainInherentParachainInherentData (118) */ + /** @name CumulusPrimitivesParachainInherentParachainInherentData (119) */ interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { readonly validationData: PolkadotPrimitivesV6PersistedValidationData; readonly relayChainState: SpTrieStorageProof; @@ -1049,19 +1137,19 @@ declare module "@polkadot/types/lookup" { readonly horizontalMessages: BTreeMap>; } - /** @name PolkadotCorePrimitivesInboundDownwardMessage (120) */ + /** @name PolkadotCorePrimitivesInboundDownwardMessage (121) */ interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct { readonly sentAt: u32; readonly msg: Bytes; } - /** @name PolkadotCorePrimitivesInboundHrmpMessage (123) */ + /** @name PolkadotCorePrimitivesInboundHrmpMessage (124) */ interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct { readonly sentAt: u32; readonly data: Bytes; } - /** @name CumulusPalletParachainSystemError (126) */ + /** @name CumulusPalletParachainSystemError (127) */ interface CumulusPalletParachainSystemError extends Enum { readonly isOverlappingUpgrades: boolean; readonly isProhibitedByPolkadot: boolean; @@ -1082,7 +1170,7 @@ declare module "@polkadot/types/lookup" { | "Unauthorized"; } - /** @name PalletTimestampCall (127) */ + /** @name PalletTimestampCall (128) */ interface PalletTimestampCall extends Enum { readonly isSet: boolean; readonly asSet: { @@ -1091,10 +1179,10 @@ declare module "@polkadot/types/lookup" { readonly type: "Set"; } - /** @name ParachainInfoCall (128) */ + /** @name ParachainInfoCall (129) */ type ParachainInfoCall = Null; - /** @name PalletSudoCall (129) */ + /** @name PalletSudoCall (130) */ interface PalletSudoCall extends Enum { readonly isSudo: boolean; readonly asSudo: { @@ -1117,7 +1205,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Sudo" | "SudoUncheckedWeight" | "SetKey" | "SudoAs"; } - /** @name PalletUtilityCall (131) */ + /** @name PalletUtilityCall (132) */ interface PalletUtilityCall extends Enum { readonly isBatch: boolean; readonly asBatch: { @@ -1149,7 +1237,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Batch" | "AsDerivative" | "BatchAll" | "DispatchAs" | "ForceBatch" | "WithWeight"; } - /** @name FlashboxRuntimeOriginCaller (133) */ + /** @name FlashboxRuntimeOriginCaller (134) */ interface FlashboxRuntimeOriginCaller extends Enum { readonly isSystem: boolean; readonly asSystem: FrameSupportDispatchRawOrigin; @@ -1157,7 +1245,7 @@ declare module "@polkadot/types/lookup" { readonly type: "System" | "Void"; } - /** @name FrameSupportDispatchRawOrigin (134) */ + /** @name FrameSupportDispatchRawOrigin (135) */ interface FrameSupportDispatchRawOrigin extends Enum { readonly isRoot: boolean; readonly isSigned: boolean; @@ -1166,10 +1254,10 @@ declare module "@polkadot/types/lookup" { readonly type: "Root" | "Signed" | "None"; } - /** @name SpCoreVoid (135) */ + /** @name SpCoreVoid (136) */ type SpCoreVoid = Null; - /** @name PalletProxyCall (136) */ + /** @name PalletProxyCall (137) */ interface PalletProxyCall extends Enum { readonly isProxy: boolean; readonly asProxy: { @@ -1239,14 +1327,14 @@ declare module "@polkadot/types/lookup" { | "ProxyAnnounced"; } - /** @name PalletMaintenanceModeCall (141) */ + /** @name PalletMaintenanceModeCall (142) */ interface PalletMaintenanceModeCall extends Enum { readonly isEnterMaintenanceMode: boolean; readonly isResumeNormalOperation: boolean; readonly type: "EnterMaintenanceMode" | "ResumeNormalOperation"; } - /** @name PalletTxPauseCall (142) */ + /** @name PalletTxPauseCall (143) */ interface PalletTxPauseCall extends Enum { readonly isPause: boolean; readonly asPause: { @@ -1259,7 +1347,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Pause" | "Unpause"; } - /** @name PalletBalancesCall (143) */ + /** @name PalletBalancesCall (144) */ interface PalletBalancesCall extends Enum { readonly isTransferAllowDeath: boolean; readonly asTransferAllowDeath: { @@ -1306,7 +1394,7 @@ declare module "@polkadot/types/lookup" { | "ForceSetBalance"; } - /** @name PalletIdentityCall (145) */ + /** @name PalletIdentityCall (146) */ interface PalletIdentityCall extends Enum { readonly isAddRegistrar: boolean; readonly asAddRegistrar: { @@ -1389,7 +1477,7 @@ declare module "@polkadot/types/lookup" { | "QuitSub"; } - /** @name PalletIdentitySimpleIdentityInfo (146) */ + /** @name PalletIdentitySimpleIdentityInfo (147) */ interface PalletIdentitySimpleIdentityInfo extends Struct { readonly additional: Vec>; readonly display: Data; @@ -1402,7 +1490,7 @@ declare module "@polkadot/types/lookup" { readonly twitter: Data; } - /** @name PalletIdentityBitFlags (183) */ + /** @name PalletIdentityBitFlags (184) */ interface PalletIdentityBitFlags extends Set { readonly isDisplay: boolean; readonly isLegal: boolean; @@ -1414,7 +1502,7 @@ declare module "@polkadot/types/lookup" { readonly isTwitter: boolean; } - /** @name PalletIdentitySimpleIdentityField (184) */ + /** @name PalletIdentitySimpleIdentityField (185) */ interface PalletIdentitySimpleIdentityField extends Enum { readonly isDisplay: boolean; readonly isLegal: boolean; @@ -1427,7 +1515,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Display" | "Legal" | "Web" | "Riot" | "Email" | "PgpFingerprint" | "Image" | "Twitter"; } - /** @name PalletIdentityJudgement (185) */ + /** @name PalletIdentityJudgement (186) */ interface PalletIdentityJudgement extends Enum { readonly isUnknown: boolean; readonly isFeePaid: boolean; @@ -1440,7 +1528,7 @@ declare module "@polkadot/types/lookup" { readonly type: "Unknown" | "FeePaid" | "Reasonable" | "KnownGood" | "OutOfDate" | "LowQuality" | "Erroneous"; } - /** @name PalletRegistrarCall (186) */ + /** @name PalletRegistrarCall (187) */ interface PalletRegistrarCall extends Enum { readonly isRegister: boolean; readonly asRegister: { @@ -1484,7 +1572,7 @@ declare module "@polkadot/types/lookup" { | "SetParathreadParams"; } - /** @name TpContainerChainGenesisDataContainerChainGenesisData (187) */ + /** @name TpContainerChainGenesisDataContainerChainGenesisData (188) */ interface TpContainerChainGenesisDataContainerChainGenesisData extends Struct { readonly storage: Vec; readonly name: Bytes; @@ -1494,32 +1582,32 @@ declare module "@polkadot/types/lookup" { readonly properties: TpContainerChainGenesisDataProperties; } - /** @name TpContainerChainGenesisDataContainerChainGenesisDataItem (189) */ + /** @name TpContainerChainGenesisDataContainerChainGenesisDataItem (190) */ interface TpContainerChainGenesisDataContainerChainGenesisDataItem extends Struct { readonly key: Bytes; readonly value: Bytes; } - /** @name TpContainerChainGenesisDataProperties (191) */ + /** @name TpContainerChainGenesisDataProperties (192) */ interface TpContainerChainGenesisDataProperties extends Struct { readonly tokenMetadata: TpContainerChainGenesisDataTokenMetadata; readonly isEthereum: bool; } - /** @name TpContainerChainGenesisDataTokenMetadata (192) */ + /** @name TpContainerChainGenesisDataTokenMetadata (193) */ interface TpContainerChainGenesisDataTokenMetadata extends Struct { readonly tokenSymbol: Bytes; readonly ss58Format: u32; readonly tokenDecimals: u32; } - /** @name TpTraitsSlotFrequency (194) */ + /** @name TpTraitsSlotFrequency (195) */ interface TpTraitsSlotFrequency extends Struct { readonly min: u32; readonly max: u32; } - /** @name PalletConfigurationCall (195) */ + /** @name PalletConfigurationCall (196) */ interface PalletConfigurationCall extends Enum { readonly isSetMaxCollators: boolean; readonly asSetMaxCollators: { @@ -1569,10 +1657,10 @@ declare module "@polkadot/types/lookup" { | "SetBypassConsistencyCheck"; } - /** @name PalletCollatorAssignmentCall (197) */ + /** @name PalletCollatorAssignmentCall (198) */ type PalletCollatorAssignmentCall = Null; - /** @name PalletAuthorNotingCall (198) */ + /** @name PalletAuthorNotingCall (199) */ interface PalletAuthorNotingCall extends Enum { readonly isSetLatestAuthorData: boolean; readonly asSetLatestAuthorData: { @@ -1591,15 +1679,15 @@ declare module "@polkadot/types/lookup" { readonly type: "SetLatestAuthorData" | "SetAuthor" | "KillAuthorData"; } - /** @name TpAuthorNotingInherentOwnParachainInherentData (199) */ + /** @name TpAuthorNotingInherentOwnParachainInherentData (200) */ interface TpAuthorNotingInherentOwnParachainInherentData extends Struct { readonly relayStorageProof: SpTrieStorageProof; } - /** @name PalletAuthorityAssignmentCall (200) */ + /** @name PalletAuthorityAssignmentCall (201) */ type PalletAuthorityAssignmentCall = Null; - /** @name PalletServicesPaymentCall (201) */ + /** @name PalletServicesPaymentCall (202) */ interface PalletServicesPaymentCall extends Enum { readonly isPurchaseCredits: boolean; readonly asPurchaseCredits: { @@ -1619,7 +1707,7 @@ declare module "@polkadot/types/lookup" { readonly type: "PurchaseCredits" | "SetCredits" | "SetGivenFreeCredits"; } - /** @name PalletDataPreserversCall (202) */ + /** @name PalletDataPreserversCall (203) */ interface PalletDataPreserversCall extends Enum { readonly isSetBootNodes: boolean; readonly asSetBootNodes: { @@ -1629,7 +1717,7 @@ declare module "@polkadot/types/lookup" { readonly type: "SetBootNodes"; } - /** @name PalletInvulnerablesCall (206) */ + /** @name PalletInvulnerablesCall (207) */ interface PalletInvulnerablesCall extends Enum { readonly isSetInvulnerables: boolean; readonly asSetInvulnerables: { @@ -1646,7 +1734,7 @@ declare module "@polkadot/types/lookup" { readonly type: "SetInvulnerables" | "AddInvulnerable" | "RemoveInvulnerable"; } - /** @name PalletSessionCall (207) */ + /** @name PalletSessionCall (208) */ interface PalletSessionCall extends Enum { readonly isSetKeys: boolean; readonly asSetKeys: { @@ -1657,24 +1745,79 @@ declare module "@polkadot/types/lookup" { readonly type: "SetKeys" | "PurgeKeys"; } - /** @name FlashboxRuntimeSessionKeys (208) */ + /** @name FlashboxRuntimeSessionKeys (209) */ interface FlashboxRuntimeSessionKeys extends Struct { readonly nimbus: NimbusPrimitivesNimbusCryptoPublic; } - /** @name NimbusPrimitivesNimbusCryptoPublic (209) */ + /** @name NimbusPrimitivesNimbusCryptoPublic (210) */ interface NimbusPrimitivesNimbusCryptoPublic extends SpCoreSr25519Public {} - /** @name SpCoreSr25519Public (210) */ + /** @name SpCoreSr25519Public (211) */ interface SpCoreSr25519Public extends U8aFixed {} - /** @name PalletAuthorInherentCall (211) */ + /** @name PalletAuthorInherentCall (212) */ interface PalletAuthorInherentCall extends Enum { readonly isKickOffAuthorshipValidation: boolean; readonly type: "KickOffAuthorshipValidation"; } - /** @name PalletRootTestingCall (212) */ + /** @name PalletTreasuryCall (213) */ + interface PalletTreasuryCall extends Enum { + readonly isProposeSpend: boolean; + readonly asProposeSpend: { + readonly value: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRejectProposal: boolean; + readonly asRejectProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isApproveProposal: boolean; + readonly asApproveProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isSpendLocal: boolean; + readonly asSpendLocal: { + readonly amount: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRemoveApproval: boolean; + readonly asRemoveApproval: { + readonly proposalId: Compact; + } & Struct; + readonly isSpend: boolean; + readonly asSpend: { + readonly assetKind: Null; + readonly amount: Compact; + readonly beneficiary: AccountId32; + readonly validFrom: Option; + } & Struct; + readonly isPayout: boolean; + readonly asPayout: { + readonly index: u32; + } & Struct; + readonly isCheckStatus: boolean; + readonly asCheckStatus: { + readonly index: u32; + } & Struct; + readonly isVoidSpend: boolean; + readonly asVoidSpend: { + readonly index: u32; + } & Struct; + readonly type: + | "ProposeSpend" + | "RejectProposal" + | "ApproveProposal" + | "SpendLocal" + | "RemoveApproval" + | "Spend" + | "Payout" + | "CheckStatus" + | "VoidSpend"; + } + + /** @name PalletRootTestingCall (214) */ interface PalletRootTestingCall extends Enum { readonly isFillBlock: boolean; readonly asFillBlock: { @@ -1683,33 +1826,33 @@ declare module "@polkadot/types/lookup" { readonly type: "FillBlock"; } - /** @name PalletSudoError (213) */ + /** @name PalletSudoError (215) */ interface PalletSudoError extends Enum { readonly isRequireSudo: boolean; readonly type: "RequireSudo"; } - /** @name PalletUtilityError (214) */ + /** @name PalletUtilityError (216) */ interface PalletUtilityError extends Enum { readonly isTooManyCalls: boolean; readonly type: "TooManyCalls"; } - /** @name PalletProxyProxyDefinition (217) */ + /** @name PalletProxyProxyDefinition (219) */ interface PalletProxyProxyDefinition extends Struct { readonly delegate: AccountId32; readonly proxyType: FlashboxRuntimeProxyType; readonly delay: u32; } - /** @name PalletProxyAnnouncement (221) */ + /** @name PalletProxyAnnouncement (223) */ interface PalletProxyAnnouncement extends Struct { readonly real: AccountId32; readonly callHash: H256; readonly height: u32; } - /** @name PalletProxyError (223) */ + /** @name PalletProxyError (225) */ interface PalletProxyError extends Enum { readonly isTooMany: boolean; readonly isNotFound: boolean; @@ -1730,7 +1873,7 @@ declare module "@polkadot/types/lookup" { | "NoSelfProxy"; } - /** @name PalletMigrationsError (224) */ + /** @name PalletMigrationsError (226) */ interface PalletMigrationsError extends Enum { readonly isPreimageMissing: boolean; readonly isWrongUpperBound: boolean; @@ -1739,14 +1882,14 @@ declare module "@polkadot/types/lookup" { readonly type: "PreimageMissing" | "WrongUpperBound" | "PreimageIsTooBig" | "PreimageAlreadyExists"; } - /** @name PalletMaintenanceModeError (225) */ + /** @name PalletMaintenanceModeError (227) */ interface PalletMaintenanceModeError extends Enum { readonly isAlreadyInMaintenanceMode: boolean; readonly isNotInMaintenanceMode: boolean; readonly type: "AlreadyInMaintenanceMode" | "NotInMaintenanceMode"; } - /** @name PalletTxPauseError (226) */ + /** @name PalletTxPauseError (228) */ interface PalletTxPauseError extends Enum { readonly isIsPaused: boolean; readonly isIsUnpaused: boolean; @@ -1755,14 +1898,14 @@ declare module "@polkadot/types/lookup" { readonly type: "IsPaused" | "IsUnpaused" | "Unpausable" | "NotFound"; } - /** @name PalletBalancesBalanceLock (228) */ + /** @name PalletBalancesBalanceLock (230) */ interface PalletBalancesBalanceLock extends Struct { readonly id: U8aFixed; readonly amount: u128; readonly reasons: PalletBalancesReasons; } - /** @name PalletBalancesReasons (229) */ + /** @name PalletBalancesReasons (231) */ interface PalletBalancesReasons extends Enum { readonly isFee: boolean; readonly isMisc: boolean; @@ -1770,22 +1913,22 @@ declare module "@polkadot/types/lookup" { readonly type: "Fee" | "Misc" | "All"; } - /** @name PalletBalancesReserveData (232) */ + /** @name PalletBalancesReserveData (234) */ interface PalletBalancesReserveData extends Struct { readonly id: U8aFixed; readonly amount: u128; } - /** @name FlashboxRuntimeRuntimeHoldReason (236) */ + /** @name FlashboxRuntimeRuntimeHoldReason (238) */ type FlashboxRuntimeRuntimeHoldReason = Null; - /** @name PalletBalancesIdAmount (239) */ + /** @name PalletBalancesIdAmount (241) */ interface PalletBalancesIdAmount extends Struct { readonly id: U8aFixed; readonly amount: u128; } - /** @name PalletBalancesError (241) */ + /** @name PalletBalancesError (243) */ interface PalletBalancesError extends Enum { readonly isVestingBalance: boolean; readonly isLiquidityRestrictions: boolean; @@ -1810,28 +1953,28 @@ declare module "@polkadot/types/lookup" { | "TooManyFreezes"; } - /** @name PalletTransactionPaymentReleases (242) */ + /** @name PalletTransactionPaymentReleases (244) */ interface PalletTransactionPaymentReleases extends Enum { readonly isV1Ancient: boolean; readonly isV2: boolean; readonly type: "V1Ancient" | "V2"; } - /** @name PalletIdentityRegistration (243) */ + /** @name PalletIdentityRegistration (245) */ interface PalletIdentityRegistration extends Struct { readonly judgements: Vec>; readonly deposit: u128; readonly info: PalletIdentitySimpleIdentityInfo; } - /** @name PalletIdentityRegistrarInfo (251) */ + /** @name PalletIdentityRegistrarInfo (253) */ interface PalletIdentityRegistrarInfo extends Struct { readonly account: AccountId32; readonly fee: u128; readonly fields: PalletIdentityBitFlags; } - /** @name PalletIdentityError (253) */ + /** @name PalletIdentityError (255) */ interface PalletIdentityError extends Enum { readonly isTooManySubAccounts: boolean; readonly isNotFound: boolean; @@ -1872,18 +2015,18 @@ declare module "@polkadot/types/lookup" { | "JudgementPaymentFailed"; } - /** @name TpTraitsParathreadParams (258) */ + /** @name TpTraitsParathreadParams (260) */ interface TpTraitsParathreadParams extends Struct { readonly slotFrequency: TpTraitsSlotFrequency; } - /** @name PalletRegistrarDepositInfo (264) */ + /** @name PalletRegistrarDepositInfo (266) */ interface PalletRegistrarDepositInfo extends Struct { readonly creator: AccountId32; readonly deposit: u128; } - /** @name PalletRegistrarError (265) */ + /** @name PalletRegistrarError (267) */ interface PalletRegistrarError extends Enum { readonly isParaIdAlreadyRegistered: boolean; readonly isParaIdNotRegistered: boolean; @@ -1908,7 +2051,7 @@ declare module "@polkadot/types/lookup" { | "NotAParathread"; } - /** @name PalletConfigurationHostConfiguration (266) */ + /** @name PalletConfigurationHostConfiguration (268) */ interface PalletConfigurationHostConfiguration extends Struct { readonly maxCollators: u32; readonly minOrchestratorCollators: u32; @@ -1920,25 +2063,25 @@ declare module "@polkadot/types/lookup" { readonly targetContainerChainFullness: Perbill; } - /** @name PalletConfigurationError (269) */ + /** @name PalletConfigurationError (271) */ interface PalletConfigurationError extends Enum { readonly isInvalidNewValue: boolean; readonly type: "InvalidNewValue"; } - /** @name DpCollatorAssignmentAssignedCollatorsAccountId32 (270) */ + /** @name DpCollatorAssignmentAssignedCollatorsAccountId32 (272) */ interface DpCollatorAssignmentAssignedCollatorsAccountId32 extends Struct { readonly orchestratorChain: Vec; readonly containerChains: BTreeMap>; } - /** @name PalletAuthorNotingContainerChainBlockInfo (275) */ + /** @name PalletAuthorNotingContainerChainBlockInfo (277) */ interface PalletAuthorNotingContainerChainBlockInfo extends Struct { readonly blockNumber: u32; readonly author: AccountId32; } - /** @name PalletAuthorNotingError (276) */ + /** @name PalletAuthorNotingError (278) */ interface PalletAuthorNotingError extends Enum { readonly isFailedReading: boolean; readonly isFailedDecodingHeader: boolean; @@ -1957,13 +2100,13 @@ declare module "@polkadot/types/lookup" { | "NonAuraDigest"; } - /** @name DpCollatorAssignmentAssignedCollatorsPublic (277) */ + /** @name DpCollatorAssignmentAssignedCollatorsPublic (279) */ interface DpCollatorAssignmentAssignedCollatorsPublic extends Struct { readonly orchestratorChain: Vec; readonly containerChains: BTreeMap>; } - /** @name PalletServicesPaymentError (282) */ + /** @name PalletServicesPaymentError (284) */ interface PalletServicesPaymentError extends Enum { readonly isInsufficientFundsToPurchaseCredits: boolean; readonly isInsufficientCredits: boolean; @@ -1971,13 +2114,13 @@ declare module "@polkadot/types/lookup" { readonly type: "InsufficientFundsToPurchaseCredits" | "InsufficientCredits" | "CreditPriceTooExpensive"; } - /** @name PalletDataPreserversError (283) */ + /** @name PalletDataPreserversError (285) */ interface PalletDataPreserversError extends Enum { readonly isNoBootNodes: boolean; readonly type: "NoBootNodes"; } - /** @name PalletInvulnerablesError (285) */ + /** @name PalletInvulnerablesError (287) */ interface PalletInvulnerablesError extends Enum { readonly isTooManyInvulnerables: boolean; readonly isAlreadyInvulnerable: boolean; @@ -1985,10 +2128,10 @@ declare module "@polkadot/types/lookup" { readonly type: "TooManyInvulnerables" | "AlreadyInvulnerable" | "NotInvulnerable"; } - /** @name SpCoreCryptoKeyTypeId (290) */ + /** @name SpCoreCryptoKeyTypeId (292) */ interface SpCoreCryptoKeyTypeId extends U8aFixed {} - /** @name PalletSessionError (291) */ + /** @name PalletSessionError (293) */ interface PalletSessionError extends Enum { readonly isInvalidProof: boolean; readonly isNoAssociatedValidatorId: boolean; @@ -1998,7 +2141,7 @@ declare module "@polkadot/types/lookup" { readonly type: "InvalidProof" | "NoAssociatedValidatorId" | "DuplicatedKey" | "NoKeys" | "NoAccount"; } - /** @name PalletAuthorInherentError (295) */ + /** @name PalletAuthorInherentError (297) */ interface PalletAuthorInherentError extends Enum { readonly isAuthorAlreadySet: boolean; readonly isNoAccountId: boolean; @@ -2006,13 +2149,74 @@ declare module "@polkadot/types/lookup" { readonly type: "AuthorAlreadySet" | "NoAccountId" | "CannotBeAuthor"; } - /** @name PalletInflationRewardsChainsToRewardValue (296) */ + /** @name PalletInflationRewardsChainsToRewardValue (298) */ interface PalletInflationRewardsChainsToRewardValue extends Struct { readonly paraIds: Vec; readonly rewardsPerChain: u128; } - /** @name SpRuntimeMultiSignature (301) */ + /** @name PalletTreasuryProposal (299) */ + interface PalletTreasuryProposal extends Struct { + readonly proposer: AccountId32; + readonly value: u128; + readonly beneficiary: AccountId32; + readonly bond: u128; + } + + /** @name PalletTreasurySpendStatus (301) */ + interface PalletTreasurySpendStatus extends Struct { + readonly assetKind: Null; + readonly amount: u128; + readonly beneficiary: AccountId32; + readonly validFrom: u32; + readonly expireAt: u32; + readonly status: PalletTreasuryPaymentState; + } + + /** @name PalletTreasuryPaymentState (302) */ + interface PalletTreasuryPaymentState extends Enum { + readonly isPending: boolean; + readonly isAttempted: boolean; + readonly asAttempted: { + readonly id: Null; + } & Struct; + readonly isFailed: boolean; + readonly type: "Pending" | "Attempted" | "Failed"; + } + + /** @name FrameSupportPalletId (305) */ + interface FrameSupportPalletId extends U8aFixed {} + + /** @name PalletTreasuryError (306) */ + interface PalletTreasuryError extends Enum { + readonly isInsufficientProposersBalance: boolean; + readonly isInvalidIndex: boolean; + readonly isTooManyApprovals: boolean; + readonly isInsufficientPermission: boolean; + readonly isProposalNotApproved: boolean; + readonly isFailedToConvertBalance: boolean; + readonly isSpendExpired: boolean; + readonly isEarlyPayout: boolean; + readonly isAlreadyAttempted: boolean; + readonly isPayoutError: boolean; + readonly isNotAttempted: boolean; + readonly isInconclusive: boolean; + readonly type: + | "InsufficientProposersBalance" + | "InvalidIndex" + | "TooManyApprovals" + | "InsufficientPermission" + | "ProposalNotApproved" + | "FailedToConvertBalance" + | "SpendExpired" + | "EarlyPayout" + | "AlreadyAttempted" + | "PayoutError" + | "NotAttempted" + | "Inconclusive"; + } + + /** @name SpRuntimeMultiSignature (311) */ interface SpRuntimeMultiSignature extends Enum { readonly isEd25519: boolean; readonly asEd25519: SpCoreEd25519Signature; @@ -2023,36 +2227,36 @@ declare module "@polkadot/types/lookup" { readonly type: "Ed25519" | "Sr25519" | "Ecdsa"; } - /** @name SpCoreEd25519Signature (302) */ + /** @name SpCoreEd25519Signature (312) */ interface SpCoreEd25519Signature extends U8aFixed {} - /** @name SpCoreSr25519Signature (304) */ + /** @name SpCoreSr25519Signature (314) */ interface SpCoreSr25519Signature extends U8aFixed {} - /** @name SpCoreEcdsaSignature (305) */ + /** @name SpCoreEcdsaSignature (315) */ interface SpCoreEcdsaSignature extends U8aFixed {} - /** @name FrameSystemExtensionsCheckNonZeroSender (308) */ + /** @name FrameSystemExtensionsCheckNonZeroSender (318) */ type FrameSystemExtensionsCheckNonZeroSender = Null; - /** @name FrameSystemExtensionsCheckSpecVersion (309) */ + /** @name FrameSystemExtensionsCheckSpecVersion (319) */ type FrameSystemExtensionsCheckSpecVersion = Null; - /** @name FrameSystemExtensionsCheckTxVersion (310) */ + /** @name FrameSystemExtensionsCheckTxVersion (320) */ type FrameSystemExtensionsCheckTxVersion = Null; - /** @name FrameSystemExtensionsCheckGenesis (311) */ + /** @name FrameSystemExtensionsCheckGenesis (321) */ type FrameSystemExtensionsCheckGenesis = Null; - /** @name FrameSystemExtensionsCheckNonce (314) */ + /** @name FrameSystemExtensionsCheckNonce (324) */ interface FrameSystemExtensionsCheckNonce extends Compact {} - /** @name FrameSystemExtensionsCheckWeight (315) */ + /** @name FrameSystemExtensionsCheckWeight (325) */ type FrameSystemExtensionsCheckWeight = Null; - /** @name PalletTransactionPaymentChargeTransactionPayment (316) */ + /** @name PalletTransactionPaymentChargeTransactionPayment (326) */ interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} - /** @name FlashboxRuntimeRuntime (317) */ + /** @name FlashboxRuntimeRuntime (327) */ type FlashboxRuntimeRuntime = Null; } // declare module